summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/tagpair/sample.tex
blob: 7fe529fa244836271a30c6a053db703d53297e1c (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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
\documentclass[a4paper]{ltxdoc}
\usepackage{tagpair}
\usepackage{hang}
\usepackage[hidelinks]{hyperref}
\usepackage{polyglossia}
\setdefaultlanguage{english}
\setotherlanguage{dutch}
\setlength{\leftmargini}{2em}
\frenchspacing
\sloppy

\begin{document}
\title{Sample use of the \textsf{tagpair} package}
\author{Andreas Nolda}
\date{2016/02/03}
\maketitle

\section{Pairing lines}

\begin{quote}
\DescribeMacro{paringline}\begin{pairingline}
\pairing{\textdutch{\textit{Dit}}}{this}
\pairing{\textdutch{\textit{is}}}{is}
\pairing{\textdutch{\textit{een}}}{a}
\pairing{\textdutch{\textit{voorbeeldje}}}{little example}
\pairing{\textdutch{\textit{in}}}{in}
\pairing{\textdutch{\textit{het}}}{}
\pairing{\textdutch{\textit{Nederlands.}}}{Dutch}
\end{pairingline}
\end{quote}

\begin{quote}
\DescribeMacro{paringline}\begin{pairingline}
\pairing{\textdutch{\textit{Dit}}}{this}
\pairing{\textdutch{\textit{is}}}{is}
\pairing{\textdutch{\textit{een}}}{a}
\pairing{\textdutch{\textit{voorbeeld.}}}{example}
\pairing{\textdutch{\textit{Dit}}}{this}
\pairing{\textdutch{\textit{is}}}{is}
\pairing{\textdutch{\textit{een}}}{a}
\pairing{\textdutch{\textit{lange}}}{long}
\pairing{\textdutch{\textit{voorbeeld.}}}{example}
\pairing{\textdutch{\textit{En}}}{and}
\pairing{\textdutch{\textit{dit}}}{this}
\pairing{\textdutch{\textit{is}}}{is}
\pairing{\textdutch{\textit{een}}}{a}
\pairing{\textdutch{\textit{zeer}}}{very}
\pairing{\textdutch{\textit{lange}}}{long}
\pairing{\textdutch{\textit{voorbeeld.}}}{example}
\end{pairingline}
\end{quote}

\section{Bottom lines}

\begin{quote}
\textdutch{\textit{Dit is een voorbeeld.}}
\bottomline{\DescribeMacro{\bottomline}`This is an example.'}
\end{quote}

\begin{quote}
\textdutch{\textit{Dit is een voorbeeldje in het Nederlands.}}
\bottomline{\DescribeMacro{\bottomline}`This is a short example in Dutch.'}
\end{quote}

\section{Tagged lines}

\begin{quote}
\DescribeMacro{taggedline}\begin{taggedline}{(Marcel R. van der Goot 1990)}
\textdutch{\textit{Dit is een Nederlands voorbeeld.}}
\end{taggedline}
\end{quote}

\begin{quote}
\DescribeMacro{taggedline}\begin{taggedline}{(Marcel R. van der Goot 1990)}
\textdutch{\textit{Dit is een voorbeeldje in het Nederlands.}}
\end{taggedline}
\end{quote}

\section{Putting them all together}

\begin{quote}
\DescribeMacro{paringline}\DescribeMacro{taggedline}\begin{taggedline}{(my
example)}
\begin{pairingline}
\pairing{\textdutch{\textit{Dit}}}{this}
\pairing{\textdutch{\textit{is}}}{is}
\pairing{\textdutch{\textit{een}}}{a}
\pairing{\textdutch{\textit{voorbeeld.}}}{example}
\end{pairingline}
\bottomline{\DescribeMacro{\bottomline}`This is an example.'}
\end{taggedline}
\end{quote}

\begin{quote}
\DescribeMacro{paringline}\DescribeMacro{taggedline}\begin{taggedline}{(Marcel
R. van der Goot 1990)}
\begin{pairingline}
\pairing{\textdutch{\textit{Dit}}}{this}
\pairing{\textdutch{\textit{is}}}{is}
\pairing{\textdutch{\textit{een}}}{a}
\pairing{\textdutch{\textit{voorbeeldje}}}{little example}
\pairing{\textdutch{\textit{in}}}{in}
\pairing{\textdutch{\textit{het}}}{}
\pairing{\textdutch{\textit{Nederlands.}}}{Dutch}
\end{pairingline}
\end{taggedline}
\bottomline{\DescribeMacro{\bottomline}`This is a short example in Dutch.'}
\end{quote}

\section*{\refname}
\begin{hangingpar}
Marcel R. van der Goot (1990). Midnight Macros: \textsf{gloss.tex}.
\url{http://mirrors.ctan.org/macros/generic/midnight/midnight.pdf}.
\end{hangingpar}
\end{document}