summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/fncylab/fncylab-example.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-03-08 17:14:01 +0000
committerKarl Berry <karl@freefriends.org>2010-03-08 17:14:01 +0000
commitfa5f154fe81b5cfda43334d7f4caa424b5e0a302 (patch)
treec58719688fa833d24ed0a1e608c6431d64164ff2 /Master/texmf-dist/doc/latex/fncylab/fncylab-example.tex
parent7bc3d71af69b04734daa32de9bbfd2f9cddfeac4 (diff)
fncylab update (7mar10)
git-svn-id: svn://tug.org/texlive/trunk@17382 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/fncylab/fncylab-example.tex')
-rw-r--r--Master/texmf-dist/doc/latex/fncylab/fncylab-example.tex78
1 files changed, 78 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/fncylab/fncylab-example.tex b/Master/texmf-dist/doc/latex/fncylab/fncylab-example.tex
new file mode 100644
index 00000000000..97f9d4173c8
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/fncylab/fncylab-example.tex
@@ -0,0 +1,78 @@
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% small sample file
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\documentclass{article}
+%
+% a brief demonstration of the use of fncylab
+%
+\usepackage{fncylab,enumerate}
+\begin{document}
+%
+% outer level lists (such as enumerate) use counter enumi for their
+% list tags.
+\begin{enumerate}[(i)]
+\item first item, defining a non-fancy label \label{first}
+%
+% that label was defined to look otherwise than it was printed for the
+% item:
+\item second item (see also item~\ref{first})
+%
+% redefine label formats for this list's labels:
+\labelformat{enumi}{(#1)}
+%
+% and label the another item in a different way:
+\item third item, defining a fancy label \label{third}
+%
+% redefine label formats for this list's labels again:
+\labelformat{enumi}{item~(#1)}
+%
+% we now see that the label has for item three has been defined
+% differently, and that for item four differently again. note the
+% reference starting a new sentence.
+\item fourth item, defining a fancy label in a different format (see
+ also item~\ref{third}). \Ref{fourth} shows how a sentence may start
+ with reference to a fancy label; note that it's the \emph{label}
+ that's fancy, so the second change to the label format only affects
+ the labels defined after it. \label{fourth}
+\end{enumerate}
+\end{document}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% small sample file
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\documentclass{article}
+%
+% a brief demonstration of the use of fncylab
+%
+\usepackage{fncylab,enumerate}
+\begin{document}
+%
+% outer level lists (such as enumerate) use counter enumi for their
+% list tags.
+\begin{enumerate}[(i)]
+\item first item, defining a non-fancy label \label{first}
+%
+% that label was defined to look otherwise than it was printed for the
+% item:
+\item second item (see also item~\ref{first})
+%
+% redefine label formats for this list's labels:
+\labelformat{enumi}{(#1)}
+%
+% and label the another item in a different way:
+\item third item, defining a fancy label \label{third}
+%
+% redefine label formats for this list's labels again:
+\labelformat{enumi}{item~(#1)}
+%
+% we now see that the label has for item three has been defined
+% differently, and that for item four differently again. note the
+% reference starting a new sentence.
+\item fourth item, defining a fancy label in a different format (see
+ also item~\ref{third}). \Ref{fourth} shows how a sentence may start
+ with reference to a fancy label; note that it's the \emph{label}
+ that's fancy, so the second change to the label format only affects
+ the labels defined after it. \label{fourth}
+\end{enumerate}
+\end{document}