diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/tagpair/sample.tex |
Initial commit
Diffstat (limited to 'macros/latex/contrib/tagpair/sample.tex')
-rw-r--r-- | macros/latex/contrib/tagpair/sample.tex | 115 |
1 files changed, 115 insertions, 0 deletions
diff --git a/macros/latex/contrib/tagpair/sample.tex b/macros/latex/contrib/tagpair/sample.tex new file mode 100644 index 0000000000..7fe529fa24 --- /dev/null +++ b/macros/latex/contrib/tagpair/sample.tex @@ -0,0 +1,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} |