| 1 |
\documentclass[a4paper]{ltxdoc} |
| 2 |
\usepackage{tagpair} |
| 3 |
\usepackage{hang} |
| 4 |
\usepackage[hidelinks]{hyperref} |
| 5 |
\usepackage{polyglossia} |
| 6 |
\setdefaultlanguage{english} |
| 7 |
\setotherlanguage{dutch} |
| 8 |
\setlength{\leftmargini}{2em} |
| 9 |
\frenchspacing |
| 10 |
\sloppy |
| 11 |
|
| 12 |
\begin{document} |
| 13 |
\title{Sample use of the \textsf{tagpair} package} |
| 14 |
\author{Andreas Nolda} |
| 15 |
\date{2016/02/03} |
| 16 |
\maketitle |
| 17 |
|
| 18 |
\section{Pairing lines} |
| 19 |
|
| 20 |
\begin{quote} |
| 21 |
\DescribeMacro{paringline}\begin{pairingline} |
| 22 |
\pairing{\textdutch{\textit{Dit}}}{this} |
| 23 |
\pairing{\textdutch{\textit{is}}}{is} |
| 24 |
\pairing{\textdutch{\textit{een}}}{a} |
| 25 |
\pairing{\textdutch{\textit{voorbeeldje}}}{little example} |
| 26 |
\pairing{\textdutch{\textit{in}}}{in} |
| 27 |
\pairing{\textdutch{\textit{het}}}{} |
| 28 |
\pairing{\textdutch{\textit{Nederlands.}}}{Dutch} |
| 29 |
\end{pairingline} |
| 30 |
\end{quote} |
| 31 |
|
| 32 |
\begin{quote} |
| 33 |
\DescribeMacro{paringline}\begin{pairingline} |
| 34 |
\pairing{\textdutch{\textit{Dit}}}{this} |
| 35 |
\pairing{\textdutch{\textit{is}}}{is} |
| 36 |
\pairing{\textdutch{\textit{een}}}{a} |
| 37 |
\pairing{\textdutch{\textit{voorbeeld.}}}{example} |
| 38 |
\pairing{\textdutch{\textit{Dit}}}{this} |
| 39 |
\pairing{\textdutch{\textit{is}}}{is} |
| 40 |
\pairing{\textdutch{\textit{een}}}{a} |
| 41 |
\pairing{\textdutch{\textit{lange}}}{long} |
| 42 |
\pairing{\textdutch{\textit{voorbeeld.}}}{example} |
| 43 |
\pairing{\textdutch{\textit{En}}}{and} |
| 44 |
\pairing{\textdutch{\textit{dit}}}{this} |
| 45 |
\pairing{\textdutch{\textit{is}}}{is} |
| 46 |
\pairing{\textdutch{\textit{een}}}{a} |
| 47 |
\pairing{\textdutch{\textit{zeer}}}{very} |
| 48 |
\pairing{\textdutch{\textit{lange}}}{long} |
| 49 |
\pairing{\textdutch{\textit{voorbeeld.}}}{example} |
| 50 |
\end{pairingline} |
| 51 |
\end{quote} |
| 52 |
|
| 53 |
\section{Bottom lines} |
| 54 |
|
| 55 |
\begin{quote} |
| 56 |
\textdutch{\textit{Dit is een voorbeeld.}} |
| 57 |
\bottomline{\DescribeMacro{\bottomline}`This is an example.'} |
| 58 |
\end{quote} |
| 59 |
|
| 60 |
\begin{quote} |
| 61 |
\textdutch{\textit{Dit is een voorbeeldje in het Nederlands.}} |
| 62 |
\bottomline{\DescribeMacro{\bottomline}`This is a short example in Dutch.'} |
| 63 |
\end{quote} |
| 64 |
|
| 65 |
\section{Tagged lines} |
| 66 |
|
| 67 |
\begin{quote} |
| 68 |
\DescribeMacro{taggedline}\begin{taggedline}{(Marcel R. van der Goot 1990)} |
| 69 |
\textdutch{\textit{Dit is een Nederlands voorbeeld.}} |
| 70 |
\end{taggedline} |
| 71 |
\end{quote} |
| 72 |
|
| 73 |
\begin{quote} |
| 74 |
\DescribeMacro{taggedline}\begin{taggedline}{(Marcel R. van der Goot 1990)} |
| 75 |
\textdutch{\textit{Dit is een voorbeeldje in het Nederlands.}} |
| 76 |
\end{taggedline} |
| 77 |
\end{quote} |
| 78 |
|
| 79 |
\section{Putting them all together} |
| 80 |
|
| 81 |
\begin{quote} |
| 82 |
\DescribeMacro{paringline}\DescribeMacro{taggedline}\begin{taggedline}{(my |
| 83 |
example)} |
| 84 |
\begin{pairingline} |
| 85 |
\pairing{\textdutch{\textit{Dit}}}{this} |
| 86 |
\pairing{\textdutch{\textit{is}}}{is} |
| 87 |
\pairing{\textdutch{\textit{een}}}{a} |
| 88 |
\pairing{\textdutch{\textit{voorbeeld.}}}{example} |
| 89 |
\end{pairingline} |
| 90 |
\bottomline{\DescribeMacro{\bottomline}`This is an example.'} |
| 91 |
\end{taggedline} |
| 92 |
\end{quote} |
| 93 |
|
| 94 |
\begin{quote} |
| 95 |
\DescribeMacro{paringline}\DescribeMacro{taggedline}\begin{taggedline}{(Marcel |
| 96 |
R. van der Goot 1990)} |
| 97 |
\begin{pairingline} |
| 98 |
\pairing{\textdutch{\textit{Dit}}}{this} |
| 99 |
\pairing{\textdutch{\textit{is}}}{is} |
| 100 |
\pairing{\textdutch{\textit{een}}}{a} |
| 101 |
\pairing{\textdutch{\textit{voorbeeldje}}}{little example} |
| 102 |
\pairing{\textdutch{\textit{in}}}{in} |
| 103 |
\pairing{\textdutch{\textit{het}}}{} |
| 104 |
\pairing{\textdutch{\textit{Nederlands.}}}{Dutch} |
| 105 |
\end{pairingline} |
| 106 |
\end{taggedline} |
| 107 |
\bottomline{\DescribeMacro{\bottomline}`This is a short example in Dutch.'} |
| 108 |
\end{quote} |
| 109 |
|
| 110 |
\section*{\refname} |
| 111 |
\begin{hangingpar} |
| 112 |
Marcel R. van der Goot (1990). Midnight Macros: \textsf{gloss.tex}. |
| 113 |
\url{http://mirrors.ctan.org/macros/generic/midnight/midnight.pdf}. |
| 114 |
\end{hangingpar} |
| 115 |
\end{document} |