• No results found

3Options 2Syntax 1Motivation Contents v0.1November26,2011 EnvironmentwithadjustablemarginsforonsideandtwosidedocumentsMarcoDaniel The package

N/A
N/A
Protected

Academic year: 2021

Share "3Options 2Syntax 1Motivation Contents v0.1November26,2011 EnvironmentwithadjustablemarginsforonsideandtwosidedocumentsMarcoDaniel The package"

Copied!
3
0
0

Bezig met laden.... (Bekijk nu de volledige tekst)

Hele tekst

(1)

The

fullwidth

package

Environment with adjustable margins for onside and twoside documents

Marco Daniel1 v0.1 November 26, 2011

This package provides the environment fullwidthwhich allows to set the left and right margins in a very simple way. It also allows page breaks. If you are using the

twosidemode you can set the inner and outer margins.

By defining new environments the user may choose between several individual designs.

Contents

1 Motivation 1 2 Syntax 1 3 Options 1 4 Known Problems 3 5 Acknowledgements 3

1 Motivation

The package is inspired by many questions ontex stackexchange. For example in the question How to switch between two margin sizes? I solved the problem by using the package mdframed. However, since the package wasn’t designed for such a environment, I decided to create a new package based on the algorithm of mdframed.

2 Syntax

The package itself loads the packageskvoptionsand etoolbox. Load the package as usual:

\ u s e p a c k a g e[ <GLOBAL OPTIONS> ] { f u l l w i d t h }

The package defines only one environment with the following syntax:

\ b e g i n{ f u l l w i d t h }[ <LOCAL OPTIONS>] <CONTENT>

\ e n d{ f u l l w i d t h }

Autodetecting floats

I added a detection of float andminipage environments. If fullwidthwould be used within such an environment, fullwidthit would automatically use the optionnobreak.

3 Options

The package provides various options for manipulating frames. All options are listed in the following section. Some internal macros are not shown in this documentation, though they can be manipulated.

1

(2)

3.1 Options with lengths 3 Options

\fullwidthsetup

The listed option can also be set via\fullwidthsetup. 3.1 Options with lengths

All lengths will be evaluated by the ε-TEX-command\dimexpr.

I know that the predefined lengths are not well prepared. Maybe I will change it later.

width default=0pt

Sets the width of the whole fullwidthenvironment.

skipabove default=\topskip

Sets an additional skip above the frame.

skipbelow default=\topskip

Sets an additional skip below the frame.

leftmargin default=0pt

Sets the length of the left margin of the environment.

rightmargin default=0pt

Sets the length of the right margin of the environment.

innertopmargin default=.4\baselineskip

Sets the length of the inner top margin of the environment.

innerbottommargin default=.4\baselineskip

Sets the length of the inner bottom margin of the environment.

outermargin default=0pt

Sets the length of the outer margin. This option is only avaidable intwosidemode.

innermargin default=0pt

Sets the length of the inner margin. This option is only avaidable intwosidemode.

splittopskip default=\topsep

Sets the length of the skip above the split part of the environment.

splitbottomskip default=0pt

Sets the length of the skip below the split part of the environment. 3.2 General options

twosidemode default=true

The package detects wether \twosidemode is active and uses innermargin and outermagin by default. If you don’t know this you can use this option.

(3)

3.3 Footnotes 5 Acknowledgements

needspace default=0pt

Sometimes it is useful to set a minimum height before the environment should be splitted. For such cases you can useneedspace. The option requires a length which sets the minimum height before a frame will be splitted.

3.3 Footnotes

Inside the environment you can use the command \footnoteas usual. mdframed uses the syntax of the environmentminipagewith the same counter.

Every footnote text will be collected inside a box and will be displayed at the end of the environment fullwidth.

footnotedistance default=\bigskipamount

The length is the distance between the end of the environmentfullwidthand the displaying of the\footnoterule.

4 Known Problems

In this section I will collect known problems. In case you encounter any further problems, please drop me an email, marco.daniel at mada-nada.de.

Do you have any ideas / wishes on further extensions to this package? Please let me know!

5 Acknowledgements

Thanks to the members oftex stackexchange. 5.1 Revision history

Version 0.1 submitted 26 Nov 2011 • first upload to CTAN

Referenties

GERELATEERDE DOCUMENTEN

The creation of the .toc file is not dealt with by tableof itself: either this will be done by a standard \tableofcontents command somewhere in the document, or, one may use the

This package implements new commands that can be used within the first argument of ifthen’s \ifthenelse to test whether a string is void or not, if a command is defined or equivalent

For example, the code point U+006E (the Latin lowercase ”n”) followed by U+0303 (the combining tilde) is defined by Unicode to be canonically equivalent to the single code point

In addition to the diagrams, there are macros that are intended to be used inline to make horizontal arrows, pointing left or right, plain, monic, epic, or user-definable shapes,

The default values for the items in the \paperref environment are the following command punctation begin commands end commands.. \by ,

The EASYBMAT package is a macro package for supporting block matri- ces having equal column widths or equal rows heights or both, and support- ing various kinds of rules (lines)

The package EASYEQN introduces some equation environments that sim- plify the typesetting of equations.. It uses a syntax similar to the array envi- ronment to define the

The EASYMAT package is a macro package for supporting block matrices having equal column widths or equal rows heights or both, and supporting various kinds of rules (lines) between