File: sample.tex

package info (click to toggle)
texlive-extra 2016.20170123-5
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 2,578,600 kB
  • ctags: 25,000
  • sloc: perl: 139,711; python: 20,370; makefile: 14,165; sh: 10,734; ansic: 7,723; xml: 4,202; java: 3,567; csh: 1,129; ruby: 938; lisp: 630; awk: 163; tcl: 142; sed: 36; pascal: 25; cpp: 18; haskell: 5
file content (115 lines) | stat: -rw-r--r-- 3,442 bytes parent folder | download | duplicates (7)
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}