Debian Codegraph @

texmf-dist/doc/latex/ledmac/ledeasy.tex

raw
1 %%
2 %% This is file `ledeasy.tex',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% ledmac.dtx (with options: `easy')
8 %%
9 %% Author: Peter Wilson (Herries Press) herries dot press at earthlink dot net
10 %% Copyright 2003 -- 2005 Peter R. Wilson
11 %%
12 %% This work may be distributed and/or modified under the
13 %% conditions of the LaTeX Project Public License, either
14 %% version 1.3 of this license or (at your option) any
15 %% later version.
16 %% The latest version of the license is in
17 %% http://www.latex-project.org/lppl.txt
18 %% and version 1.3 or later is part of all distributions of
19 %% LaTeX version 2003/06/01 or later.
20 %%
21 %% This work has the LPPL maintenance status "unmaintained".
22 %%
23 %% This work consists of the files listed in the README file.
24 %%
25 \documentclass{article}
26 \usepackage{ledmac}
27 %% number every line
28 \setcounter{firstlinenum}{1}
29 \setcounter{linenumincrement}{1}
30 %% Show some B series familiar footnotes, lettered and paragraphed
31 \renewcommand*{\thefootnoteB}{\alph{footnoteB}}
32 \footparagraphX{B}
33 %% no endnotes
34 \noendnotes
35 %% narrow sidenotes
36 \setlength{\ledrsnotewidth}{4em}
37 \title{Simple Example}
38 \author{Peter Wilson\thanks{Standing on the shoulders of giants.}}
39 \date{}
40 \begin{document}
41 \maketitle
42 \tableofcontents
43 \section{First}
44 This is a simple example of using the \textsf{ledmac}
45 package with ordinary LaTeX constructs.
46
47 \subsection{Example text}\label{subsec}
48
49 \beginnumbering
50 \pstart
51 The \textsf{ledmac} package lets you do some unusual things in
52 a LaTeX document. For example you can have lines numbered and
53 there are
54 \edtext{several}{\Afootnote{This is an `A' footnote.}}
55 \edtext{levels}{\Bfootnote{This is a `B' level footnote.}}
56 of footnotes.
57 You can label lines within the numbered text and refer to them
58 outside. Do not try and use any normal LaTeX
59 marginpars\footnote{You will get a warning but no text.}%
60 \ledrightnote{Sidenotes are OK}
61 or \edtext{exotica}{\Afootnote{Like floats.}}
62 within the numbered portions of the text\edlabel{line}.
63 \pend
64 \endnumbering
65
66 \section{Last}
67
68 I forgot to mention that you can use ordinary
69 footnotes\footnote{An ordinary footnote}\footnote{And another}
70 outside the numbered text. You can also\footnoteB{Additionally}
71 have\footnoteB{Specify} formatted footnotes\footnoteB{Like this}
72 in normal\footnoteB{Text that does not have line numbers} text.
73
74 There are \lineref{line} numbered lines in the example shown
75 in section~\ref{subsec}.
76
77 \end{document}
78 \endinput
79 %%
80 %% End of file `ledeasy.tex'.