12.07.2015 Views

The memoir class - The UK TeX Archive

The memoir class - The UK TeX Archive

The memoir class - The UK TeX Archive

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

8.5. Changing the textwidthTypeset example 8.5: A sprung paragraphText at the left is setflushleft and raggedright.But the text at the right is set raggedleft andflushright. It’s as though there was a spring pushingthe lines apart.lines to show the effect of this.\everypar{}8.4.5 Left spring rightTypically the lines of a paragraph are both flushleft and flushright and filled with text, butsometimes filling is not desired.\leftspringright{〈lfrac〉}{〈rfrac〉}{〈ltext〉}{〈rtext〉}<strong>The</strong> \leftspringright macro sets 〈ltext〉 flushleft and raggedright in a column whosewidth is 〈lfrac〉 of the textwidth and, in parallel, it also sets 〈rtext〉 raggedleft and flushrightin a column that is 〈rfrac〉 of the textwidth; the effect is as though there are springs betweenthe lines of the two texts. <strong>The</strong> sum of 〈lfrac〉 and 〈rfac〉 must be less than one.Source for example 8.5\leftspringright{0.3}{0.6}%{Text at the left is set flushleft and raggedright.}{But the text at the right is set raggedleft and flushright.It’s as though there was a spring pushing the lines apart.}8.5 CHANGING THE TEXTWIDTH<strong>The</strong> quote and quotation environments both locally change the textwidth, or more precisely,they temporarily increase the left and right margins by equal amounts. Generallyspeaking it is not a good idea to change the textwidth but sometimes it may be called for.<strong>The</strong> commands and environment described below are similar to those in the originallyfound in the chngpage package, but do differ in some respects.\begin{adjustwidth}{〈left〉}{〈right〉} text \end{adjustwidth}\begin{adjustwidth*}{〈left〉}{〈right〉} text \end{adjustwidth*}131

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!