diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/teubner/teubner-doc.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/teubner/teubner-doc.tex | 27 |
1 files changed, 17 insertions, 10 deletions
diff --git a/Master/texmf-dist/doc/latex/teubner/teubner-doc.tex b/Master/texmf-dist/doc/latex/teubner/teubner-doc.tex index 4dd6ae6cf03..40a32ba1e86 100644 --- a/Master/texmf-dist/doc/latex/teubner/teubner-doc.tex +++ b/Master/texmf-dist/doc/latex/teubner/teubner-doc.tex @@ -45,7 +45,7 @@ \thanks{This paper documents \texttt{teubner.sty} version \fileversion\ of \filedate.}\\ An extension to the \textsf{greek} option\\ of the \babel\ package} \author{Claudio Beccari\thanks{\texttt{claudio dot beccari at gmail dot com}}} -\date{Turin, December 2013}% <---- this is the date of the teubenr-doc document! +\date{Turin, October 2014}% <---- this is the date of the teubenr-doc document! \def\comando#1{\expandafter\texttt\expandafter{\string#1}} \def\ARG#1{\texttt{\char123}\meta{#1}\texttt{\char125}} \def\meta#1{$\langle${\normalfont\itshape#1}$\rangle$} @@ -65,11 +65,18 @@ An extension to the \textsf{greek} option\\ of the \babel\ package} \newcommand*\class[1]{\textsf{\slshape#1}} \newcommand*\pack[1]{\textsf{\slshape#1}} \def\babel{\pack{babel}} +\newcommand*\file[1]{\texttt{#1}} + +\newcommand\pdfLaTeX{pdf\/\LaTeX} +\newcommand\XeLaTeX{X\kern-0.14em\raisebox{-0.7ex}{\rotatebox[origin=c]{180}{E}}\kern-0.075em\LaTeX} +\newcommand\LuaLaTeX{Lua\/\LaTeX} \advance\textheight80pt \advance\topmargin-40pt \begin{document}\errorcontextlines=20 +%\expandafter\show\csname ver@greek.ldf\endcsname %%versione del file-opzione + \maketitle {\columnseprule=0.4pt \begin{multicols}{2} @@ -325,20 +332,20 @@ any letter, due to the limitation of 256 glyphs per font; but they may be input by means of commands \verb|\M| and \verb|\B| respectively when typesetting in Greek in order to use them as single diacritics; for more than one diacritic superimposed to one another, when macrons and breves are involved, some other commands are available as shown in table~\ref{t:accentmacros}. -The new (2013) Greek support for \babel\ contains now the LICR encoded accent macros that allow to use any encoding input method, including direct input of Greek characters. The internal representation of accent macros resort to the same symbols shown in table~\ref{t:accenti}; simply they are prefixed by a backslash and/or the accent sequence is prefixed with one backslash; therefore \textDidot{>'a|} may be obtained with \verb+>'a|+, or \verb+\>\'a|+, or \verb+\>'a|+. The last form is to be preferred with some shapes as discussed in the following paragraphs. - +The new (2013) Greek support for \babel\ contains now the LICR encoded accent macros that allow to use any encoding input method, including direct input of Greek characters. The internal representation of accent macros resorts to the same symbols shown in table~\ref{t:accenti}; simply they are prefixed by a backslash and/or the accent sequence is prefixed with one backslash; therefore \textDidot{>'a|} may be obtained with \verb+>'a|+, or \verb+\>\'a|+, or \verb+\>'a|+. The last form is to be preferred with some shapes as discussed in the following paragraphs. Buth the LICR (\LaTeX\ Internal Character Representation) is much more than this; it separates the input encoding from the output font encoding, so that direct literal greek input is possible (of course with the \opt{utf8} encoding) and the output is useful for both LGR encoded 8-bit fonts and the UNICODE encoded OpentYpe fonts; this is way \pack{babel} and the Greek support for +\babel\ provided by the new \file{greek.ldf} may be used also with \XeLaTeX\ and \LuaLaTeX. Moreover now (October 2014) file \file{greek.ldf} can select the ancient Greek hyphenation when typesetting with \pdfLaTeX\footnote{This is why with this release of the \pack{teubner} package, the default language attribute is set to \texttt{ancient}.}; with \pack{polyglossia} this possibility was available from the very beginning of the Greek support for this package. Together with the macros for inserting such symbols, a complete set is available for inserting any combination of diacritical marks over or under any letter, not only vowels: see table~\ref{t:accentmacros}. -Of course the results may not be comparable with the ones one can obtain with the regular ligature mechanism or by using the extended accent macros; the advantage of the redefined accent macros is twofold: (a) it is connected to the possibility of inserting macrons and breves and/or to set the various combinations over or under \emph{any} letter, even if it is a consonant; (b) for all accent vowel combinations that have a specific glyph in the font, the actual accented symbol is used so that kernings and ligatures are maintained; this result is achieved also by using the extended accent macros shown in the third line of table~\ref{t:accenti}; as shown elsewhere there is a noticeable difference between {\Lipsiakostext a>ut'os} and \textLipsias{a\s{u}t\'os} or \textLipsias{a\>ut\'os} or \textLipsias{a\>ut'os}. In this example the first word is typed in as \verb+a>ut'os+, while the other words may be typed in as \verb+a\s{u}t\'os+, or \verb*+a\us t\oa s+, or \verb+a\>ut'os+, or even in mixed form \verb*+a\us t'os+, thanks to the fact that there is no kerning between `tau' and `omicron with or without acute' +Of course the results may not be comparable with the ones one can obtain with the regular ligature mechanism or by using the LICR macros; the advantage of the redefined accent macros is twofold: (a) it is connected to the possibility of inserting macrons and breves and/or to set the various combinations over or under \emph{any} letter, even if it is a consonant; (b) for all accent vowel combinations that have a specific glyph in the font, the actual accented symbol is used so that kernings and ligatures are maintained; this result is achieved also by using the extended accent macros shown in the third line of table~\ref{t:accenti}; as shown elsewhere there is a noticeable difference between {\Lipsiakostext a>ut'os} and \textLipsias{a\s{u}t\'os} or \textLipsias{a\>ut\'os} or \textLipsias{a\>ut'os}. In this example the first word is typed in as \verb+a>ut'os+, while the other words may be typed in as \verb+a\s{u}t\'os+, or \verb*+a\us t\oa s+, or \verb+a\>ut'os+, or even in mixed form \verb*+a\us t'os+, thanks to the fact that there is no kerning between `tau' and `omicron with or without acute' \begin{table}[tb]\thrule -\makebox[\textwidth]{% +\makebox[\textwidth]{\def\V{\rule{0pt}{2.5ex}}% \begin{tabular}{cl|cl} -Example & \multicolumn1c{Syntax} & Example & \multicolumn1c{Syntax} \\ +Example & \multicolumn1c{Syntax} & Example & \multicolumn1c{Syntax} \\[0.7ex] \hline -\g \`{a} & \comando\G\ARG{letter}\ap{1} & \g\ut{aw} & \comando\ut\ARG{letters} \\ +\g \`{a} & \comando\G\ARG{letter}\ap{1}\V & \g\ut{aw} & \comando\ut\ARG{letters} \\ \g \'{a} & \comando\A\ARG{letter}\ap{1} & \g\Ab{a} & \comando\Ab\ARG{letter} \\ \g \~{a} & \comando\C\ARG{letter}\ap{1} & \g\Gb{a} & \comando\Gb\ARG{letter} \\ \g \"{i} & \comando\D\ARG{letter}\ap{1} & \g\Arb{a} & \comando\Arb\ARG{letter} \\ @@ -360,7 +367,7 @@ Example & \multicolumn1c{Syntax} & Example & \multicolumn1c{Sy \g\Gs{a} & \comando\Gs\ARG{letter} & \g\iS{a} & \comando\iS\ARG{letter} \\ \g\Cs{a} & \comando\Cs\ARG{letter} & \g\d{p} & \comando\d\ARG{letter} \\ \g\c{i} & \comando\c\ARG{letter} & \g\bd{i} & \comando\bd\ARG{letter} \\ -\semiv{u} & \comando\semiv\ARG{letter}\ap{2} & \ring{a} & \comando\ring\ARG{letter}\ap{2} \\ +\semiv{u} & \comando\semiv\ARG{letter}\ap{2} & \ring{a} & \comando\ring\ARG{letter}\ap{2} \\[0.7ex] \hline \end{tabular}} \caption{Accent macros}\label{t:accentmacros} @@ -642,8 +649,8 @@ text & \c\textlatin\ARG{text} &\cap{g} } \bhrule\smallskip -{\footnotesize\mbox{\ap{($a$)}\enspace}Ansten M\o rch Klev spottes a conflict -with the Homonymous math command; this is now resolved. Thank you Ansten.\par} +{\footnotesize\mbox{\ap{($a$)}\enspace}Ansten M\o rch Klev spotted a conflict +with the homonymous math command; this is now resolved. Thank you Ansten.\par} \caption{Extended commands}\label{t:extcomandi} \end{table} |