TeXnik - Tips TeX and LaTeX


Welcome to the TeXnik website (under construction)

Margins
TUG logo

Main page

Index
UK FAQ
Documentation
Software
CTAN
Search CTAN:

Statistics

Google c.t.t.

Google d.c.t.t.

 


 


Different Marginparwidth |  Hanging indentation |  Left Margins |  Left/Right Margins |  Marginwidth |  Page Margins  |  Paragraph Margins  |  Right Margins | 


Different Marginparwidth

It is also possible to change the margins without a list environment.


Paragraph Margins

Left margin

    \par
    \begingroup
    \leftskip2.5cm
    [ ...the text ... ]
    \endgroup
    \par
Left AND right margin
    start with
  • \begin{center}
    \begin{minpage}{}
    ... the text ...
    \end{minipage}
    \end{center}

    another solution is to define your own environment in latex preamble
    \newenvironment{myQuote}[2]%
                   {\begin{list}{}{\leftmargin#1\rightmargin#2}\item{}}%
                   {\end{list}}
    in your text than
  • \begin{myQuote}{3cm}{5cm}
  • the text ... bla bla bla ... the text
  • \end{myQuote}
    or with any other values for left and right margin.
Right margin
    same as above with \begin{myQuote}{0cm}{5cm}
    or with any other value for right margin.


It is also possible to set the margins without a list environment. Download


Page margins
Changing the documentwide pagemargins is easy with the chngpage. Do not change the variables textheight, textwidth, .. with the setlength-command. Choose always the packages geometry or chngpage!


Hanging indented paragagraphs

\begingroup
\parindent=-3em
\leftskip=3em
[paragraphs following will have hanging indent]
\endgroup

local time: Wed Apr 24 23:14:10 CEST 2024 ; file is: 1767.31365740741 days old
contact webmaster _at_ TeXnik.de