diff options
author | Karl Berry <karl@freefriends.org> | 2006-01-09 00:49:07 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2006-01-09 00:49:07 +0000 |
commit | 007f67a693e4d031fd3d792df8e4d5f43e2cb2e7 (patch) | |
tree | 90d17e00e572ecb1e24764b6f29c80e098b08d29 /Master/texmf-dist/doc/latex/polyglot | |
parent | 950209b26f70aa87ed07c54f82a95b6f03b7c3a0 (diff) |
doc/latex
git-svn-id: svn://tug.org/texlive/trunk@84 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/polyglot')
-rw-r--r-- | Master/texmf-dist/doc/latex/polyglot/sample.tex | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/polyglot/sample.tex b/Master/texmf-dist/doc/latex/polyglot/sample.tex new file mode 100644 index 00000000000..6f4a1f24521 --- /dev/null +++ b/Master/texmf-dist/doc/latex/polyglot/sample.tex @@ -0,0 +1,80 @@ +\documentclass{book} + +\typeout{I am going to load five languages. Don't get desperate} +\usepackage[english,german,spanish,french,hebrew,american]{polyglot} + +\raggedbottom + +\begin{document} + +\chapter{A sample document} + +\section{1st language: English} + +This document illustrates some points of the package \textsf{polyglot}. +For instance, the British date is \today. + +The American one is +\uselanguage[date]{american}{\today}.\\ +\verb=\uselanguage[date]{american}{\today}= + +\unselectlanguage +\selectlanguage*{french} + +\section{2\sptext{e} langue: fran/cais} + +The first things you will notice in French is the indentation of the +first line after the title, which is in the \verb=layout= group, and the +small space just before the colon. Other features are: +\begin{itemize} +\item Dashes in every level of \verb=itemize= environment. +\item Ligatures for a lot of accents (and encyclop"aedic +task). \verb=encyclop"aedic= +\item French << guillemets >>. \verb=<< guillemets >>=. +\item French spacing. +\end{itemize} + +Today is \today. + +\unselectlanguage +\selectlanguage*{spanish} + +\section{3\sptext{er} idioma: espa~nol} + +Also ligatures, guillemets, new layout, etc. Today is \today. + +\clearpage + +\unselectlanguage +\selectlanguage*{german} + +\section{4. Sprache: Deutsche} + +The usual ligatures are implemented, as "`German quotes"' +\verb="`German quotes"'=, \verb="ck=, usw. +In \verb=OT1= you get low umlauts: +"a, "o, "u. Today is \today. + +\section{5th language: hebrew} + +In this section we illustrate the use of the package +for romanizing languages. In \verb=r_hebrew= we define +some ligatures which simplifly the typing of text (following +the ISO recomendations, with lots of diacritic marks). For example: +\let\k\c +\begin{quote} +\selectlanguage{hebrew} +b.ar-.a, tim-z-.en".a, te-z-e, r-o^s, y.av^o'', k.al^u'', n.av^i'', +p.ar".a, z".e, q'en"e, g.al"o, b.an.a(y)w, r'e''iyy".a, h.a--.ar.e-z, +w.e--'.e-d^om, r^ua.h +\end{quote} +\begin{verbatim} +b.ar-.a, tim-z-.en".a, te-z-e, r-o^s, y.av^o'', +k.al^u'', n.av^i'', p.ar".a, z".e, q'en"e, +g.al"o, b.an.a(y)w, r'e''iyy".a, h.a--.ar.e-z, +w.e--'.e-d^om, r^ua.h +\end{verbatim} + +\end{document} + + |