summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/tabto-ltx/tabto-doc.tex
blob: f0b4b35f97cf287037cf40a8cdb42fb40f5a9a0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
\documentclass[a4paper]{article}
\usepackage[a4paper]{geometry}
\usepackage{miscdoc}
\usepackage[scaled=0.85]{luximono}
\begin{document}
\title{The \Package{tabto} package}
\author{Donald Arseneau\thanks{Documentation file assembled by Robin
    Fairbairns}}
\date{May 2006, version 1.0}
\maketitle

\section*{Tabbing to fixed positions in a paragraph}

Two new text positioning commands are defined: \cs{tabto} and \cs{tab}.

\vspace*{\baselineskip}
\noindent\cmdinvoke{tabto}{\meta{length}}

Tab to a position relative to the left margin in a paragraph
(any indentation due to a list is part of the `margin' in this
context).  If the text on the line already goes past the desired
position, the tab starts a new line and moves to the requested
horizontal  position.

\vspace*{\baselineskip}
\noindent\cmdinvoke{tabto*}{\meta{length}}

Similar to \cs{tabto}, except it will perform backspacing, and over-
print previous text on the line whenever that text is already
longer than the specified length (i.e., no linebreak is produced).
Line-breaks are suppressed immediately after \cs{tabto} or \cs{tabto*}.

\vspace*{\baselineskip}
\noindent\cs{tab}

Tab to the next tab-stop chosen from a list of tab positions, in
the traditional style of typewriters.  A \cs{tab} will always move
to the next tab stop (or the next line), even if it is already
exactly at a tab stop. Thus, ``\cs{tab}\cs{tab}'' skips a position.  A
linebreak is permitted immediately following a \cs{tab}, in case the
ensuing text does not fit well in the remaining space.

The tab-stop positions are declared using either \cs{TabPositions}
or \cs{NumTabs}:

\vspace*{\baselineskip}
\noindent\cmdinvoke{TabPositions}{\meta{length}, \meta{length}, ... \meta{length}}

Declares the tab stops as a comma-separated list of positions 
relative to the left margin. A tab-stop at \texttt{0pt} is implicit, and 
need not be listed.

\vspace*{\baselineskip}
\noindent\cmdinvoke{NumTabs}{\meta{number}}

Declares a list of \meta{number} equally-spaced tabs, starting at the
left margin and spanning \cs{linewidth}.  For example
\cmdinvoke{NumTabs}{2} declares tab-stops at \texttt{0pt} and
\texttt{0.5}\cs{linewidth}, the same as
\cmdinvoke{TabPositions}{\texttt{0pt}, \texttt{0.5}\cs{linewidth}}
or \cmdinvoke{TabPositions}{\texttt{0.5}\cs{linewidth}}


\end{document}