Debian Codegraph @

texmf-dist/doc/latex/fncylab/fncylab-example.tex

raw
1 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2 % small sample file
3 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4
5 \documentclass{article}
6 %
7 % a brief demonstration of the use of fncylab
8 %
9 \usepackage{fncylab,enumerate}
10 \begin{document}
11 %
12 % outer level lists (such as enumerate) use counter enumi for their
13 % list tags.
14 \begin{enumerate}[(i)]
15 \item first item, defining a non-fancy label \label{first}
16 %
17 % that label was defined to look otherwise than it was printed for the
18 % item:
19 \item second item (see also item~\ref{first})
20 %
21 % redefine label formats for this list's labels:
22 \labelformat{enumi}{(#1)}
23 %
24 % and label the another item in a different way:
25 \item third item, defining a fancy label \label{third}
26 %
27 % redefine label formats for this list's labels again:
28 \labelformat{enumi}{item~(#1)}
29 %
30 % we now see that the label has for item three has been defined
31 % differently, and that for item four differently again. note the
32 % reference starting a new sentence.
33 \item fourth item, defining a fancy label in a different format (see
34 also item~\ref{third}). \Ref{fourth} shows how a sentence may start
35 with reference to a fancy label; note that it's the \emph{label}
36 that's fancy, so the second change to the label format only affects
37 the labels defined after it. \label{fourth}
38 \end{enumerate}
39 \end{document}
40 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
41 % small sample file
42 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
43
44 \documentclass{article}
45 %
46 % a brief demonstration of the use of fncylab
47 %
48 \usepackage{fncylab,enumerate}
49 \begin{document}
50 %
51 % outer level lists (such as enumerate) use counter enumi for their
52 % list tags.
53 \begin{enumerate}[(i)]
54 \item first item, defining a non-fancy label \label{first}
55 %
56 % that label was defined to look otherwise than it was printed for the
57 % item:
58 \item second item (see also item~\ref{first})
59 %
60 % redefine label formats for this list's labels:
61 \labelformat{enumi}{(#1)}
62 %
63 % and label the another item in a different way:
64 \item third item, defining a fancy label \label{third}
65 %
66 % redefine label formats for this list's labels again:
67 \labelformat{enumi}{item~(#1)}
68 %
69 % we now see that the label has for item three has been defined
70 % differently, and that for item four differently again. note the
71 % reference starting a new sentence.
72 \item fourth item, defining a fancy label in a different format (see
73 also item~\ref{third}). \Ref{fourth} shows how a sentence may start
74 with reference to a fancy label; note that it's the \emph{label}
75 that's fancy, so the second change to the label format only affects
76 the labels defined after it. \label{fourth}
77 \end{enumerate}
78 \end{document}