| 1 |
% \iffalse meta-comment |
| 2 |
% |
| 3 |
% metre.dtx |
| 4 |
% Copyright 2000 2001 Gianfranco Boggio-Togna |
| 5 |
% |
| 6 |
% This program may be distributed and/or modified under the |
| 7 |
% conditions of the LaTeX Project Public License, either version~1.2 |
| 8 |
% of this license or (at your option) any later version. |
| 9 |
% The latest version of this license is in |
| 10 |
% http://www.latex-project.org/lppl.txt |
| 11 |
% and version 1.2 or later is part of all distributions of LaTeX |
| 12 |
% version 1999/12/01 or later. |
| 13 |
% |
| 14 |
% This program consists of the files metre.dtx and metre.ins |
| 15 |
% |
| 16 |
%<*driver> |
| 17 |
\documentclass[11pt]{ltxdoc} |
| 18 |
\setlength{\parindent}{0pt} |
| 19 |
\setlength{\parskip}{\medskipamount} |
| 20 |
\usepackage{metre} |
| 21 |
\MakeShortVerb{|} |
| 22 |
\def\M@yields{ yields\kern .15em\relax} |
| 23 |
%\EnableCrossrefs |
| 24 |
%\CodelineIndex |
| 25 |
\DisableCrossrefs |
| 26 |
% To get the documented source of the package, comment out |
| 27 |
% the next line and uncomment the following one. |
| 28 |
\OnlyDescription |
| 29 |
%\AlsoImplementation |
| 30 |
\begin{document} |
| 31 |
\renewcommand{\IndexMin}{100ex} |
| 32 |
\setcounter{IndexColumns}{2} |
| 33 |
\renewcommand{\usage}[1]{#1} |
| 34 |
\IndexPrologue{\section{Index of commands} The index does not include % |
| 35 |
the commands listed on pp. \pageref{metsym} and \pageref{accsym}} |
| 36 |
\DocInput{metre.dtx} |
| 37 |
\PrintIndex |
| 38 |
\end{document} |
| 39 |
%</driver> |
| 40 |
% |
| 41 |
% \fi |
| 42 |
% |
| 43 |
% \CheckSum{5562} |
| 44 |
% |
| 45 |
% \title{{\LARGE\tt metre.sty}\\ |
| 46 |
% A \LaTeX{} package for classicists\\ |
| 47 |
% {\small Version 1.0\ \ (2001/12/05)}\\} |
| 48 |
% \author{Gianfranco Boggio\,--Togna |
| 49 |
% \thanks{Author's address: C.P. 14021, I-20140 Milano}\\ |
| 50 |
% \textsl{gbt\kern .08em @\kern .1em acm.org}} |
| 51 |
% \date{} |
| 52 |
% \maketitle |
| 53 |
% \vspace{-2ex} |
| 54 |
% \begin{center} |
| 55 |
% \begin{minipage}{.7\linewidth} |
| 56 |
% \small\it |
| 57 |
% \begin{center} |
| 58 |
% Questo piccolo lavoro \`e dedicato ai\\ |
| 59 |
% miei insegnanti di greco e latino del\\ |
| 60 |
% Liceo Ginnasio `Girolamo Rossi' di Ventimiglia. |
| 61 |
% \end{center} |
| 62 |
% \end{minipage} |
| 63 |
% \end{center} |
| 64 |
% \vspace{2ex} |
| 65 |
% \section*{License} |
| 66 |
% \noindent \copyright\ Copyright 2000 2001 Gianfranco Boggio\,--Togna.\par |
| 67 |
% This program may be distributed and/or modified under the |
| 68 |
% conditions of the \LaTeX{} Project Public License, either version~1.2 |
| 69 |
% of this license or (at your option) any later version. |
| 70 |
% The latest version of this license is in |
| 71 |
% \texttt{http://www.latex-project.org/lppl.txt} |
| 72 |
% and version 1.2 or later is part of all distributions of \LaTeX{} |
| 73 |
% version 1999/12/01 or later.\par |
| 74 |
% This program consists of the files \texttt{metre.dtx} and |
| 75 |
% \texttt{metre.ins}. |
| 76 |
% \section*{Acknowledgement} |
| 77 |
% The author wishes to thank Dr.~Rainer Thiel of |
| 78 |
% Philipps--Universit\"at, Marburg, for providing him with |
| 79 |
% much material and expert advice on the \textit{arcana} |
| 80 |
% of classical philology. Without Dr.~Thiel's |
| 81 |
% assistance, the package would never have seen |
| 82 |
% the light of day. |
| 83 |
% |
| 84 |
% \newpage |
| 85 |
% |
| 86 |
% \section*{Introduction} |
| 87 |
% |
| 88 |
% The package provides classicists with some of the tools that are needed |
| 89 |
% for typesetting scholarly publications dealing with Greek and Latin |
| 90 |
% texts, with special emphasis on Greek verse. |
| 91 |
% |
| 92 |
% As the name suggests, the core of the package is a comprehensive set of |
| 93 |
% commands for generating metrical schemes and for placing prosodical marks |
| 94 |
% on text set in the Latin or the Greek alphabet. |
| 95 |
% |
| 96 |
% The rest of the package provides a miscellany of commands for symbols |
| 97 |
% (most of them not directly related to metre) that are often used |
| 98 |
% in critical editions of classical texts. |
| 99 |
% |
| 100 |
% The package does not require any special font: all symbols are taken |
| 101 |
% from the Computer Modern OT1 fonts (included in all distributions of |
| 102 |
% \TeX) or are generated by means of \TeX{} primitives. |
| 103 |
% |
| 104 |
% \section*{Notation} |
| 105 |
% |
| 106 |
% The notation used for quantities that can appear as command arguments |
| 107 |
% is that of \textit{The \TeX{}book}: |
| 108 |
% \begin{tabbing} |
| 109 |
% mmmm\=mmmmmmm\=\kill |
| 110 |
% \>\meta{dimen}\>a legitimate \TeX{} dimension.\\ |
| 111 |
% \>\meta{number}\>a (signed) integer.\\ |
| 112 |
% \>\meta{factor}\>a (signed) decimal constant.\\ |
| 113 |
% \end{tabbing} |
| 114 |
% |
| 115 |
% Many commands accept an \meta{optional argument} that can be used |
| 116 |
% to modify the effect of the command. The \meta{optional argument} |
| 117 |
% is specified according to the usual \LaTeX{} conventions: within |
| 118 |
% square brackets, after the command name. |
| 119 |
% \newpage |
| 120 |
% \tableofcontents |
| 121 |
% |
| 122 |
% \newpage |
| 123 |
% |
| 124 |
% \section{Package option\label{option}} |
| 125 |
% |
| 126 |
% The package has one option, which can be specified in the usual way |
| 127 |
% within square brackets (e.g.~|\usepackage[en]{metre}|). The option |
| 128 |
% determines the vertical placement of the metrical symbols generated |
| 129 |
% by |\metra|. |
| 130 |
% |
| 131 |
% The default style is the one that is commonly used in Germany |
| 132 |
% (and universally in Italy). The base of the metrical symbols is aligned |
| 133 |
% with the baseline of the surrounding text and composite symbols are |
| 134 |
% built upwards from the baseline: \metra{\m\b\bm\mb\bbm}. |
| 135 |
% |
| 136 |
% The |en|\footnote{% |
| 137 |
% |En| selects the same style as |en| with one difference: |
| 138 |
% the \textit{macron} in \metra{\bbmb} is placed on the horizontal axis |
| 139 |
% \metra[\ms{En}]{\m\bbmb\m}\,, while the |[en]| option puts the |
| 140 |
% \textit{breve} on the axis \metra[\ms{en}]{\m\bbmb\m}\,.} |
| 141 |
% option selects an alternative style which is usual in English typography |
| 142 |
% (for instance, in books published by Oxford University Press). |
| 143 |
% The horizontal axis of the metrical symbols is aligned with the axis of |
| 144 |
% characters such as |=| in the surrounding text and symbols, whether |
| 145 |
% simple or composite, are roughly symmetrical with respect to the |
| 146 |
% axis: \metra[\ms{en}]{\m\b\bm\mb\bbm}. |
| 147 |
% |
| 148 |
% You can change the style \label{style} at any time with the |
| 149 |
% |\MetraStyle| command (see sect.~\ref{metrastyle}). |
| 150 |
% |
| 151 |
% \newpage |
| 152 |
% |
| 153 |
% \section{Metrical notation} |
| 154 |
% |
| 155 |
% \subsection{The \texttt{\protect\bslash metra} command} |
| 156 |
% |
| 157 |
% \subsubsection{Metrical symbols\label{metra}} |
| 158 |
% |
| 159 |
% The |\metra| \DescribeMacro{\metra} command takes one argument and |
| 160 |
% generates the metrical scheme defined by the commands given within the |
| 161 |
% argument. |
| 162 |
% |
| 163 |
% The list of metrical symbols and corresponding commands is on page |
| 164 |
% \pageref{metsym}; it includes all the symbols (marked [\textit{W}] in |
| 165 |
% the table) used by M.\,L.~West in \textit{Greek Metre} (Oxford, 1982). |
| 166 |
% The commands for metrical symbols are defined only within the argument |
| 167 |
% of |\metra| and are not available outside it. The text typeset by |
| 168 |
% |\metra| is never split across lines; if it does not fit within the line, |
| 169 |
% \TeX{} gives an |Overfull box| message. |
| 170 |
% |
| 171 |
% The |\r|, |\R|, |\t| and |\T| commands take an \meta{optional argument}, |
| 172 |
% a \meta{factor} which is multiplied by the |ex| value for the font in use |
| 173 |
% for the metrical symbols; the result is the amount by which the symbol |
| 174 |
% is raised (\meta{factor} $> 0$) or lowered (\meta{factor} $< 0$). |
| 175 |
% |
| 176 |
% The metrical symbols are separated by a short space, whose size may be set |
| 177 |
% with the |\InterSigna| command (see sect. \ref{intersigna}). To generate a |
| 178 |
% larger space (typically between feet) use the |\s| \DescribeMacro{\s} |
| 179 |
% command; you can modify the size of the space generated by |\s| with the |
| 180 |
% |\InterPedes| command (see sect.~\ref{interpedes}). You can also use the |
| 181 |
% standard \TeX{} and \LaTeX{} commands for horizontal spacing. |
| 182 |
% |
| 183 |
% The |\v| \DescribeMacro{\v} command inserts a comma. |
| 184 |
% |
| 185 |
% \subsubsection{Placing marks on symbols} |
| 186 |
% |
| 187 |
% The |\'| \DescribeMacro{\'} and |\`| commands place an accent (respectively |
| 188 |
% acute or grave) over the metrical symbol which follows: |\'\m|\M@yields |
| 189 |
% \metra{\'\m}\,, |\`\m| \DescribeMacro{\`}\M@yields \metra{\`\m}\,. |
| 190 |
% Both commands accept an \meta{optional argument}, a \meta{factor} which |
| 191 |
% specifies the displacement of the accent to the right, as a fraction of |
| 192 |
% the width of the symbol. The default value (.5) places the accent over the |
| 193 |
% midpoint of the symbol: |\'[.25]\bb|\M@yields \metra{\'[.25]\bb}, |
| 194 |
% |\'\bb|\M@yields \metra{\'\bb}, |\'[.75]\bb|\M@yields \metra{\'[.75]\bb}. |
| 195 |
% For convenience, a set of commands (see page \pageref{accsym}) is provided |
| 196 |
% for generating the most common combinations of accents and symbols. |
| 197 |
% |
| 198 |
% The |\k| \DescribeMacro{\k} command places the symbol for \textit{catalexis} |
| 199 |
% under the symbol which follows: |\k\m|\M@yields \metra{\k\m}\,, |
| 200 |
% |\k\bm|\M@yields \metra{\k\bm}\,. The |\K| \DescribeMacro{\K} command |
| 201 |
% generates a slightly larger symbol: |\K\m|\M@yields \metra{\K\m}\,, |
| 202 |
% |\K\bm|\M@yields \metra{\K\bm}\,. |
| 203 |
% |
| 204 |
% The |\q| \DescribeMacro{\q} command encloses the argument in some kind of |
| 205 |
% \textit{``quotation marks''}; the type of mark used is selected by |
| 206 |
% the character that follows the command. |
| 207 |
% The |\Q| \DescribeMacro{\Q} command generates slightly larger marks.\par |
| 208 |
% \vspace{2ex} |
| 209 |
% \tabskip 4em plus 4em minus 2em% |
| 210 |
% \halign to \hsize{% |
| 211 |
% \hfill#\hfill\tabskip 1em plus 1em&\hfill#\hfill |
| 212 |
% \tabskip 4em plus 4em minus 2em\cr |
| 213 |
% \it Type&\it to get\cr |
| 214 |
% \noalign{\smallskip} |
| 215 |
% |\q(\bbm|&\metra{\q(\bbm}\cr |
| 216 |
% |\Q(\bbm|&\metra{\Q(\bbm}\cr |
| 217 |
% |\q'\bbm|&\metra{\q'\bbm}\cr |
| 218 |
% |\Q'\bbm|&\metra{\Q'\bbm}\cr |
| 219 |
% |\q"\bbm|&\metra{\q"\bbm}\cr |
| 220 |
% |\Q"\bbm|&\metra{\Q"\bbm}\cr |
| 221 |
% |\q!\bbm|&\metra{\q!\bbm}\cr |
| 222 |
% |\Q!\bbm|&\metra{\Q!\bbm}\cr |
| 223 |
% |\q<\bbm|&\metra{\q<\bbm}\cr |
| 224 |
% |\Q<\bbm|&\metra{\Q<\bbm}\cr |
| 225 |
% } |
| 226 |
% |
| 227 |
% The |\d| \DescribeMacro{\d} command places the symbol for \textit{caesura} |
| 228 |
% at the middle point of the symbol which follows: |\d\mbb|\M@yields |
| 229 |
% \metra{\d\mbb}\,, |\d\bbm|\M@yields \metra{\d\bbm}\,. |
| 230 |
% |
| 231 |
% The |\S| \DescribeMacro{\S} command has one argument: a sequence of |
| 232 |
% characters, which is raised from the baseline by 1.25 times |
| 233 |
% the \texttt{ex} value for the font in use for the metrical symbols |
| 234 |
% and set in a smaller size: |\C\S{H}|\M@yields \metra{\C\S{H}}. You can |
| 235 |
% change the amount by which the argument is raised by specifying an |
| 236 |
% \meta{optional argument}. The argument is a \meta{factor} which is |
| 237 |
% multiplied by the \texttt{ex} value for the font in use for the metrical |
| 238 |
% symbols; the result is added to the default value. |\S[-.3]?\mb| \M@yields |
| 239 |
% \metra{\S[-.3]?\mb}, |\bm\S[-.3]?| \M@yields \metra{\bm\S[-.3]?}. |
| 240 |
% |
| 241 |
% \subsubsection{Placing annotations on symbols}\label{annot} |
| 242 |
% |
| 243 |
% The |\n| \DescribeMacro{\n} command has two arguments: the first is the |
| 244 |
% text to be placed over a symbol; the second is the command for the symbol. |
| 245 |
% The |\ni| \DescribeMacro{\ni} command places the text \textit{under} |
| 246 |
% the symbol. |\n1\m|\M@yields \metra{\n1\m}\,, |
| 247 |
% |\ni1\m|\M@yields \metra{\ni1\m}\,. |
| 248 |
% |
| 249 |
% The |\N| \DescribeMacro{\N} command has three arguments: the first is |
| 250 |
% the text to be placed over a symbol; the second is the command for the |
| 251 |
% symbol itself; the third is the text to be placed \textit{under} the symbol. |
| 252 |
% The |\mbbx| and |\bbmx| commands are meant to be used in conjunction |
| 253 |
% with |\N|: |\N{25}\mbbx{36}|\M@yields \metra{\N{25}\mbbx{36}}\,, |
| 254 |
% |\N{25}\bbmx{36}|\M@yields \metra{\N{25}\bbmx{36}}\,. |
| 255 |
% |
| 256 |
% In some circumstances (for instance, if the metrical symbol is |
| 257 |
% surrounded by taller symbols) it may be necessary to increase the |
| 258 |
% spacing between the symbol and the text above or under it. This can |
| 259 |
% be achieved by specifying an \meta{optional argument}, a \meta{factor} |
| 260 |
% which is multiplied by the value of the default spacing. For the |\N| |
| 261 |
% command, the new spacing applies to both sides. |
| 262 |
% |
| 263 |
% In metrical schemes, |\n| and |\N| can be used to give a reference to |
| 264 |
% one or more line numbers within the text. It is advisable to restrict |
| 265 |
% such references to one or two numbers. For more than two |
| 266 |
% numbers (and whenever the numbers placed over different symbols |
| 267 |
% overlap) it is usually better to place a single mark over |
| 268 |
% the symbol. The corresponding list of line numbers can be given in a |
| 269 |
% separate note, which may be generated with the |\numeri| |
| 270 |
% \DescribeMacro{\numeri}command: the argument is a sequence of |
| 271 |
% characters that \textit{must} contain a colon: the text preceding the |
| 272 |
% colon is set in italics (it is assumed that the same text, also set in |
| 273 |
% italics, appears over the symbol). |
| 274 |
% |
| 275 |
% It is also possible to stack the numbers up vertically by using the |
| 276 |
% |\structa| command (see page \pageref{structa}): |
| 277 |
% |
| 278 |
% |\n{\structa{20}{36}}\mb| \M@yields \metra{\n{\structa{20}{36}}\mb} |
| 279 |
% |
| 280 |
% |\n{\structa{31}{\structa{54}{108}}}\mb| \M@yields |
| 281 |
% \metra{\n{\structa{31}{\structa{54}{108}}}\mb} |
| 282 |
% |
| 283 |
% |\n{\structa[.1]{31;54}{108}}\mb|\ \ yields \kern .5em\relax |
| 284 |
% \metra{\n{\structa[.1]{31;54}{108}}\mb} |
| 285 |
% \newpage |
| 286 |
% \centerline{\Large METRICAL SYMBOLS}\par |
| 287 |
% \label{metsym} |
| 288 |
% \vspace {1ex} |
| 289 |
% \begin{tabbing} |
| 290 |
% mmmmmmm\=mmmmmmmmm\=mmmmmmmmmm\=\kill |
| 291 |
% |\m|\>\metra{\m}\>long [\textit{W}]\\ |
| 292 |
% |\b|\>\metra{\b}\>short [\textit{W}]\\ |
| 293 |
% |\a|\>\metra{\a}\>anceps [\textit{W}]\\ |
| 294 |
% |\ma|\>\metra{\ma}\>long syllable in anceps position [\textit{W}]\\ |
| 295 |
% |\bba|\>\metra{\bba}\>`teilbares Anceps'\\ |
| 296 |
% |\bm|\>\metra{\bm}\>usually long [\textit{W}]\\ |
| 297 |
% |\mb|\>\metra{\mb}\>usually short [\textit{W}]\\ |
| 298 |
% |\bbmb|\>\metra{\bbmb}\>short replaceable by resolvable long\\ |
| 299 |
% |\bbm|\>\metra{\bbm}\>resolvable long [\textit{W}]\\ |
| 300 |
% |\bbmx|\>\metra{\bbmx}\>\textsl{see sect.~\ref{annot} % |
| 301 |
% (page \pageref{annot})}\\ |
| 302 |
% |\bb|\>\metra{\bb}\>resolved long [\textit{W}]\\ |
| 303 |
% |\bbb|\>\metra{\bbb}\>`teilbares Breve'\\ |
| 304 |
% |\mbb|\>\metra{\mbb}\>contractible biceps [\textit{W}]\\ |
| 305 |
% |\mbbx|\>\metra{\mbbx}\>\textsl{see sect.~\ref{annot} % |
| 306 |
% (page \pageref{annot})}\\ |
| 307 |
% |\pm|\>\metra{\pm}\>\\ |
| 308 |
% |\ppm|\>\metra{\ppm}\>contracted biceps [\textit{W}]\\ |
| 309 |
% |\vppm|\>\metra{\vppm}\\ |
| 310 |
% |\vpppm|\>\metra{\vpppm}\\ |
| 311 |
% |\tsmb|\>\metra{\tsmb}\>triseme (equivalent to \metra{\m\b}) [\textit{W}]\\ |
| 312 |
% |\tsbm|\>\metra{\tsbm}\>triseme (equivalent to \metra{\b\m}) [\textit{W}]\\ |
| 313 |
% |\tsmm|\>\metra{\tsmm}\>tetraseme (equivalent to \metra{\m\m}) [\textit{W}]\\ |
| 314 |
% |\ps|\>\metra{\ps}\>pentaseme\\ |
| 315 |
% |\oo|\>\metra{\oo}\>two positions of which one at least |
| 316 |
% must be long [\textit{W}]\\ |
| 317 |
% |\C|\>\metra{\C}\>word-end [\textit{W}]\\ |
| 318 |
% |\Ppp|\>\metra{\Ppp}\>often word end [\textit{W}]\\ |
| 319 |
% |\Pp|\>\metra{\Pp}\>less often word end [\textit{W}]\\ |
| 320 |
% |\Pxp|\>\metra{\Pxp}\\ |
| 321 |
% |\Pppp|\>\metra{\Pppp}\>\\ |
| 322 |
% |\Ppppp|\>\metra{\Ppppp}\>\\ |
| 323 |
% |\Cc|\>\metra{\Cc}\>period-end (or beginning) [\textit{W}]\\ |
| 324 |
% |\Ccc|\>\metra{\Ccc}\>strophe-end (or beginning) [\textit{W}]\\ |
| 325 |
% |\c|\>\metra{\c}\>({\it caesura}) same as \verb/\C/ but with wider spacing\\ |
| 326 |
% |\cc|\>\metra{\cc}\>same as \verb/\Cc/ but with wider spacing\\ |
| 327 |
% |\ccc|\>\metra{\ccc}\>same as \verb/\Ccc/ but with wider spacing\\ |
| 328 |
% |\ppp|\>\metra{\ppp}\>same as \verb/\Ppp/ but with wider spacing\\ |
| 329 |
% |\pp|\>\metra{\pp}\>same as \verb/\Pp/ but with wider spacing\\ |
| 330 |
% |\pxp|\>\metra{\pxp}\>same as \verb/\Pxp/ but with wider spacing\\ |
| 331 |
% |\pppp|\>\metra{\pppp}\>same as \verb/\Pppp/ but with wider spacing\\ |
| 332 |
% |\ppppp|\>\metra{\ppppp}\>same as \verb/\Ppppp/ but with wider spacing\\ |
| 333 |
% |\p|\>\metra{\p}\>syncopation \\ |
| 334 |
% |\r|\ |\R|\>\metra{\r\s\R}\>in responsion with [\textit{W}]\\ |
| 335 |
% |\t|\ |\T|\>\metra{\t\s\T}\>beginning or end of composition [\textit{W}]\\ |
| 336 |
% |\x|\>\metra{\x}\>change of speaker [\textit{W}]\\ |
| 337 |
% \end{tabbing} |
| 338 |
% \vspace{8ex} |
| 339 |
% \hrule height .6pt |
| 340 |
% \vspace{8ex} |
| 341 |
% \begin{center} |
| 342 |
% {\Large SYMBOLS WITH ACCENT}\par |
| 343 |
% \end{center} |
| 344 |
% \label{accsym} |
| 345 |
% \vspace {1ex} |
| 346 |
% \tabskip 4em plus 4em minus 2em% |
| 347 |
% \halign to \hsize{% |
| 348 |
% #\hfill\tabskip 1em plus 1em&\hfill#\hfill |
| 349 |
% \tabskip 3em plus 3em minus 2em |
| 350 |
% &#\hfill\tabskip 1em plus 1em&\hfill#\hfill |
| 351 |
% \tabskip 4em plus 4em minus 2em \cr |
| 352 |
% |\M|&\metra{\M}&|\gM|&\metra{\gM}\cr |
| 353 |
% |\B|&\metra{\B}&|\gB|&\metra{\gB}\cr |
| 354 |
% |\Bm|&\metra{\Bm}&|\gBm|&\metra{\gBm}\cr |
| 355 |
% |\Mb|&\metra{\Mb}&|\gMb|&\metra{\gMb}\cr |
| 356 |
% |\Mbb|&\metra{\Mbb}&|\gMbb|&\metra{\gMbb}\cr |
| 357 |
% |\mBb|&\metra{\mBb}&|\gmBb|&\metra{\gmBb}\cr |
| 358 |
% |\mbB|&\metra{\mbB}&|\gmbB|&\metra{\gmbB}\cr |
| 359 |
% |\BBm|&\metra{\BBm}&|\gBBm|&\metra{\gBBm}\cr |
| 360 |
% |\Bbm|&\metra{\Bbm}&|\gBbm|&\metra{\gBbm}\cr |
| 361 |
% |\bBm|&\metra{\bBm}&|\gbBm|&\metra{\gbBm}\cr |
| 362 |
% |\BB|&\metra{\BB}&|\gBB|&\metra{\gBB}\cr |
| 363 |
% |\Bb|&\metra{\Bb}&|\gBb|&\metra{\gBb}\cr |
| 364 |
% |\bB|&\metra{\bB}&|\gbB|&\metra{\gbB}\cr |
| 365 |
% } |
| 366 |
% \newpage |
| 367 |
% |
| 368 |
% \subsubsection{Changing the appearance of the symbols} |
| 369 |
% |
| 370 |
% You can change the appearance of the metrical symbols with these |
| 371 |
% commands: |
| 372 |
% |
| 373 |
% \begin{list}{}{\leftmargin 0pt} |
| 374 |
% |
| 375 |
% \item |\MetraStyle|\DescribeMacro{\MetraStyle}\label{metrastyle} |
| 376 |
% changes the style (see sect.~\ref{option}) for the metrical symbols. |
| 377 |
% The argument is either |en| (or |En|) for the `English' style or |
| 378 |
% |st| for the standard, default style. |
| 379 |
% |
| 380 |
% \item |\InterSigna| \DescribeMacro{\InterSigna} \label{intersigna} sets |
| 381 |
% the size of the space between adjacent metrical symbols. The argument is a |
| 382 |
% \meta{factor} which is multiplied by the width of a \textit{macron} |
| 383 |
% (default:~.2). |
| 384 |
% |
| 385 |
% \item |\InterPedes| \DescribeMacro{\InterPedes}\label{interpedes} sets |
| 386 |
% the size of the space generated by the |\s| command. The argument is a |
| 387 |
% \meta{factor} which is multiplied by the width of a \textit{macron} |
| 388 |
% (default:~.67). |
| 389 |
% |
| 390 |
% \item |\SubSigna| \DescribeMacro{\SubSigna} modifies the distance between |
| 391 |
% the horizontal axis of the metrical symbols and the baseline of the |
| 392 |
% surrounding text. The parameter is a \meta{factor} which is multiplied |
| 393 |
% by the \texttt{ex} value for the font in use immediately before the |
| 394 |
% |\metra| command; the result is added to the default displacement |
| 395 |
% of the axis from the baseline. |
| 396 |
% |
| 397 |
% \item |\Intervallum| \DescribeMacro{\Intervallum} sets the spacing between |
| 398 |
% the components of composite symbols such as |\bm| or |\mb|. It may be |
| 399 |
% necessary to increase the spacing if the output is to be printed on a |
| 400 |
% low-resolution device. The parameter is a \meta{factor} which is multiplied |
| 401 |
% by the \texttt{ex} value for the font in use for the metrical symbols |
| 402 |
% (default:~.08). |
| 403 |
% |
| 404 |
% \item |\Magnitudo| \DescribeMacro{\Magnitudo} modifies the size of the |
| 405 |
% metrical symbols. The parameter is a \meta{number}: a positive value |
| 406 |
% increases the size, a negative value decreases it. |\Magnitudo{+1}| |
| 407 |
% selects the next higher font size in the \LaTeX{} font hierarchy extending |
| 408 |
% from |\tiny| to |\Huge|; |\Magnitudo{-1}| the next lower. |
| 409 |
% |
| 410 |
% \end{list} |
| 411 |
% |
| 412 |
% The effect of these commands, unless they occur inside a \TeX{} |
| 413 |
% \textit{group}, applies to the rest of the document from the point of |
| 414 |
% use forwards. You can confine the effect to the argument of a single |
| 415 |
% |\metra| command by placing the command(s) inside an \meta{optional argument}. |
| 416 |
% For convenience, an abbreviated form of the command names is provided |
| 417 |
% for use (only) within the optional argument: |\ms|, |\is|, |\ip|, |\ss|, |
| 418 |
% |\i|, |\m|, with the obvious meaning. |\en| and |\st| may be used as |
| 419 |
% shorthand for |\ms{en}| and |\ms{st}|. |
| 420 |
% |
| 421 |
% \subsection{The environments} |
| 422 |
% |
| 423 |
% The two environments, \texttt{metrica} and \texttt{metrike}, allow you |
| 424 |
% to place prosodical marks over text set in, respectively, the Latin |
| 425 |
% and the Greek alphabet. |
| 426 |
% |
| 427 |
% To place a \textit{macron} over a letter, put |\=| \DescribeMacro{\=} |
| 428 |
% in front of the letter; to place a \textit{breve}, put |\-| \DescribeMacro{\-} |
| 429 |
% in front of the letter (the standard \TeX{} control sequence |\u| may also |
| 430 |
% be used). |\begin{metrica} \=a\-e \end{metrica}|\M@yields |
| 431 |
% \begin{metrica} \=a\-e \end{metrica}. |
| 432 |
% |
| 433 |
% To place a \textit{macron} or \textit{breve} over a diphthong, enclose |
| 434 |
% the diphthong in braces: |{\metrica \={ae}}|\M@yields{\metrica \={ae}}. |
| 435 |
% |
| 436 |
% The environments appear to be compatible with most \LaTeX{} |
| 437 |
% environments. They are \textbf{not} compatible with the \LaTeX{} |
| 438 |
% \texttt{tabbing} environment, which redefines some critical |
| 439 |
% control sequences. |
| 440 |
% |
| 441 |
% By default, the \textit{macron} and \textit{breve} are placed at the |
| 442 |
% natural height for an accent. In some cases, this may make the metrical |
| 443 |
% structure difficult to grasp at a glance. The |\Elevatio| |
| 444 |
% \DescribeMacro{\Elevatio} command causes the prosodical marks to be placed |
| 445 |
% at a constant distance from the baseline; the command argument is the |
| 446 |
% distance, a \meta{factor} of the \texttt{ex} value for the font in use. |
| 447 |
% Note that the distance may be negative, in which case the metrical symbol |
| 448 |
% is placed \textit{under} the letter. |\Elevatio{0}| restores the default. |
| 449 |
% |
| 450 |
% The effect of the |\Elevatio| command, unless it occurs inside a \TeX{} |
| 451 |
% \textit{group}, applies to the rest of the document from the point of |
| 452 |
% use forwards. To modify the vertical spacing for a single instance of |
| 453 |
% the environment, give the command inside the environment. |
| 454 |
% |
| 455 |
% The |\Translatio| \DescribeMacro{\Translatio} command is analogous to |
| 456 |
% |\Elevatio| and controls the horizontal position of the prosodical marks. |
| 457 |
% The argument is a \meta{factor} of the \texttt{em} value for the font |
| 458 |
% in use; prosodical marks are shifted to the right by this amount. A value |
| 459 |
% around .1 is generally satisfactory for text set in italics. |
| 460 |
% \newpage |
| 461 |
% Within the environments, the following commands are defined: |
| 462 |
% |
| 463 |
% |\c|, |\cc|, |\ccc|, |\C|, |\Cc|, |\Ccc|, |
| 464 |
% |\p|, |\pp|, |\ppp|, |\pppp|, |\ppppp|, |\Pp|, |\Ppp|, |\Pppp|, |\Ppppp|, |
| 465 |
% |\pxp|, |\Pxp| with the meaning they have within the argument of |\metra|. |
| 466 |
% |
| 467 |
% |\pos|, |\Pos|, |\!|, as abbreviations for |\positio|, |\Positio|, |\dubia|. |
| 468 |
% (see sect.~\ref{diacr}) |
| 469 |
% \SpecialUsageIndex{\pos} |
| 470 |
% \SpecialUsageIndex{\Pos} |
| 471 |
% \SpecialUsageIndex{\!} |
| 472 |
% |
| 473 |
% |\e| and |\t| as abbreviations for |\Elevatio| and |\Translatio|. |
| 474 |
% \SpecialUsageIndex{\e} |
| 475 |
% \SpecialUsageIndex{\t} |
| 476 |
% |
| 477 |
% In case of conflicts, definition of these commands may be suppressed |
| 478 |
% by specifying an \meta{optional parameter} for the environment, |
| 479 |
% with the value |n| or |N| (e.g. |\begin{metrike}[n]|, |
| 480 |
% |\begin{metrica}[N]|). |
| 481 |
% |
| 482 |
% \subsubsection{The \texttt{metrica} environment} |
| 483 |
% |
| 484 |
% \DescribeEnv{metrica}To place an accent over a letter carrying a |
| 485 |
% prosodical mark, put the accent before the letter: |\=`a|\M@yields |
| 486 |
% {\metrica\=`a}\,, |\-'a|\M@yields {\metrica\-'a}\,, |
| 487 |
% |\='{ae}|\M@yields {\metrica\='{ae}}\,. |
| 488 |
% |
| 489 |
% \subsubsection{The \texttt{metrike} environment} |
| 490 |
% |
| 491 |
% \DescribeEnv{metrike} If a letter carries diacritical marks, the letter |
| 492 |
% and \textbf{all} its marks (including the character for \textit{iota} |
| 493 |
% subscript) must be enclosed in braces to form a single argument for |
| 494 |
% |\=| and |\-|. |
| 495 |
% |
| 496 |
% If either \texttt{ibycus4} or \texttt{Babel} (with the |
| 497 |
% \texttt{polutonikogreek} option) is loaded, it is used automatically; if |
| 498 |
% both are present, \texttt{ibycus4} is selected. |
| 499 |
% If you use another package for Greek fonts, you must issue the |
| 500 |
% |\MetrikeFont|\DescribeMacro{\MetrikeFont}\ command before the first |
| 501 |
% use of the environment. The argument of |\MetrikeFont| is the sequence |
| 502 |
% of commands that selects the Greek fonts. The command also accepts two |
| 503 |
% single-letter symbolic parameters: |i| or |I| to select the |
| 504 |
% \texttt{ibycus4} fonts, |b| or |B| to select the \texttt{Babel} fonts. |
| 505 |
% |
| 506 |
% The effect of the |\MetrikeFont| command, unless the command occurs inside |
| 507 |
% a \TeX{} \textit{group}, applies to the rest of the document from the |
| 508 |
% point of use forwards. |
| 509 |
% \newpage |
| 510 |
% |
| 511 |
% \subsection{The \texttt{\protect\bslash sigla} command} |
| 512 |
% |
| 513 |
% The command |\sigla| \DescribeMacro{\sigla} generates abbreviations for |
| 514 |
% the names of metres (but it may also be used to generate other types of |
| 515 |
% abbreviations). Within the argument of |\sigla| some characters and |
| 516 |
% control sequences have a special meaning: |
| 517 |
% \begin{tabbing} |
| 518 |
% \hskip 3em{\it T}\={\it ype}\ \ \ \ {\it to }\={\it get} |
| 519 |
% \hskip 7em{\it T}\={\it ype}\ \ \ \ {\it to }\={\it get}\\ |
| 520 |
% \>|l_|\>\sigla{l_}\>|_l|\>\sigla{_l}\\ |
| 521 |
% \>|l/|\>\sigla{l/}\>|/l|\>\sigla{/l}\\ |
| 522 |
% \>|l:|\>\sigla{l:}\>|:l|\>\sigla{:l}\\ |
| 523 |
% \>|l\+|\>\sigla{l\+}\>|\+l|\>\sigla{\+l}\\ |
| 524 |
% \>|\d|\>\sigla{\d}\ \ {\small(isolated)} |
| 525 |
% \>|\D|\>\sigla{\D}\ \ {\small(next to a letter)}\\ |
| 526 |
% \>|\s|\>\sigla{\s}\\ |
| 527 |
% \end{tabbing} |
| 528 |
% \SpecialUsageIndex{\d} |
| 529 |
% The |\charcolon| and |\charslash| commands yield `:' and `/'. |
| 530 |
% The |\S| command is available with the meaning it has within the |
| 531 |
% argument of |\metra|. |
| 532 |
% \SpecialUsageIndex{\charcolon} |
| 533 |
% \SpecialUsageIndex{\charslash} |
| 534 |
% \SpecialUsageIndex{\S} |
| 535 |
% |
| 536 |
% The following commands are also defined, |
| 537 |
% with the meaning they have within the argument of |\metra|: |
| 538 |
% |\r|, |\x|, |\c|, |\cc|, |\ccc|, |\C|, |\Cc|, |\Ccc|, |\p|, |\pp|, |
| 539 |
% |\ppp|, |\pppp|, |\ppppp|, |\Pp|, |\Ppp|, |\Pppp|, |\Ppppp|, |\pxp|, |
| 540 |
% |\Pxp|. |
| 541 |
% Definition of these commands may be suppressed by specifying an |
| 542 |
% \meta{optional parameter} for the |\sigla| command, with the value |
| 543 |
% |n| or |N| (e.g. |\sigla[n]|). |
| 544 |
% |
| 545 |
% For complicated abbreviations, some explicit adjustment of spacing may be |
| 546 |
% necessary; this can be achieved by using the characters `|>|' and `|<|'. |
| 547 |
% `|>|' inserts a space of approximately $1/18$th of |1em|; `|<|' inserts a |
| 548 |
% \textit{negative} space of the same length. |
| 549 |
% |
| 550 |
% For example, the following command:\par |
| 551 |
% \vskip 1ex |
| 552 |
% {\parindent 0pt \parskip 0pt |
| 553 |
% |\sigla{gl>\S[.4]{\metra{\bb}}\c \S{\metra{\bb}}<<cr|\par |
| 554 |
% |ia_ /3io k>\D{} \d{} D\S3 E>\S2 ph<\S{3d} tl<:|\par |
| 555 |
% \vskip 2ex |
| 556 |
% yields: \sigla{gl>\S[.4]{\metra{\bb}}\c\S{\metra{\bb}}<<cr\ \ % |
| 557 |
% <<<ia_ /3io% |
| 558 |
% k>\D{} \d{} D\S3 E>\S2 ph<\S{3d} tl<:} |
| 559 |
% } |
| 560 |
% \vskip 1ex |
| 561 |
% By default abbreviations are set in italics. You can change the style |
| 562 |
% with the |\FaciesSiglorum |\DescribeMacro{\FaciesSiglorum} command: |
| 563 |
% the argument is the sequence of \LaTeX{} or \TeX{} commands to be used |
| 564 |
% for setting the text. The effect of the command, unless it occurs inside |
| 565 |
% a \TeX{} \textit{group}, applies to the rest of the document from the |
| 566 |
% point of use forwards. |
| 567 |
% |
| 568 |
% \newpage |
| 569 |
% |
| 570 |
% \section{Other signs} |
| 571 |
% |
| 572 |
% \subsection{Brackets} |
| 573 |
% |
| 574 |
% Each command yields the symbol on the right: |
| 575 |
% \vspace{1.5ex} |
| 576 |
% \tabskip 4em plus 4em minus 2em% |
| 577 |
% \halign to \hsize{% |
| 578 |
% #\hfill\tabskip 1em plus 1em&\hfill#\hfill |
| 579 |
% \tabskip 4em plus 4em minus 2em |
| 580 |
% &#\hfill\tabskip 1em plus 1em |
| 581 |
% &\hfill#\hfill |
| 582 |
% \tabskip 4em plus 4em minus 2em |
| 583 |
% &#\hfill\cr |
| 584 |
% |\angus|&\angus&|\Angus|&\Angus&\textit{(uncus angulatus)}\cr |
| 585 |
% |\angud|&\angud&|\Angud|&\Angud\cr |
| 586 |
% |\quadras|&\quadras&|\Quadras|&\Quadras&\textit{(uncus quadratus)}\cr |
| 587 |
% |\quadrad|&\quadrad&|\Quadrad|&\Quadrad\cr |
| 588 |
% |\alas|&\alas&|\Alas|&\Alas&\textit{(uncus alatus)}\cr |
| 589 |
% |\alad|&\alad&|\alad|&\alad\cr |
| 590 |
% |\semi[|&\semi[&|\semi]|&\semi]\cr |
| 591 |
% |\crux|&\crux&|\Crux|&\Crux\cr |
| 592 |
% } |
| 593 |
% \SpecialUsageIndex{\angus} |
| 594 |
% \SpecialUsageIndex{\Angus} |
| 595 |
% \SpecialUsageIndex{\angud} |
| 596 |
% \SpecialUsageIndex{\Angud} |
| 597 |
% \SpecialUsageIndex{\quadras} |
| 598 |
% \SpecialUsageIndex{\Quadras} |
| 599 |
% \SpecialUsageIndex{\quadrad} |
| 600 |
% \SpecialUsageIndex{\Quadrad} |
| 601 |
% \SpecialUsageIndex{\alas} |
| 602 |
% \SpecialUsageIndex{\Alas} |
| 603 |
% \SpecialUsageIndex{\alad} |
| 604 |
% \SpecialUsageIndex{\Alad} |
| 605 |
% \SpecialUsageIndex{\semi[} |
| 606 |
% \SpecialUsageIndex{\semi]} |
| 607 |
% \SpecialUsageIndex{\crux} |
| 608 |
% \SpecialUsageIndex{\Crux} |
| 609 |
% |
| 610 |
% \subsection{Special symbols} |
| 611 |
% |
| 612 |
% Each command yields the symbol on the right: |
| 613 |
% \vspace{1.5ex} |
| 614 |
% \tabskip 4em plus 4em minus 2em% |
| 615 |
% \halign to \hsize{% |
| 616 |
% #\hfill\tabskip 1em plus 1em&\hfill#\hfill |
| 617 |
% \tabskip 4em plus 4em minus 2em |
| 618 |
% &#\hfill\tabskip 1em plus 1em&\hfill#\hfill |
| 619 |
% \tabskip 4em plus 4em minus 2em \cr |
| 620 |
% |\anaclasis|&\anaclasis&|\Anaclasis|&\Anaclasis\cr |
| 621 |
% |\antisigma|&\antisigma&|\Antisigma|&\Antisigma\cr |
| 622 |
% |\asteriscus|&\asteriscus&|\Asteriscus|&\Asteriscus\cr |
| 623 |
% |\catalexis|&\catalexis&|\Catalexis|&\Catalexis\cr |
| 624 |
% |\diple|&\diple&|\Diple|&\Diple\cr |
| 625 |
% |\diple*|&\diple*&|\Diple*|&\Diple*\cr |
| 626 |
% |\antidiple|&\antidiple&|\Antidiple|&\Antidiple\cr |
| 627 |
% |\antidiple*|&\antidiple*&|\Antidiple*|&\Antidiple*\cr |
| 628 |
% |\obelus|&\obelus&|\Obelus|&\Obelus\cr |
| 629 |
% |\obelus*|&\obelus*&|\Obelus*|&\Obelus*\cr |
| 630 |
% |\respondens|&\respondens&|\Respondens|&\Respondens\cr |
| 631 |
% |\terminus|&\terminus&|\Terminus|&\Terminus\cr |
| 632 |
% |\terminus*|&\terminus*&|\Terminus*|&\Terminus*\cr |
| 633 |
% } |
| 634 |
% \SpecialUsageIndex{\anaclasis} |
| 635 |
% \SpecialUsageIndex{\Anaclasis} |
| 636 |
% \SpecialUsageIndex{\antisigma} |
| 637 |
% \SpecialUsageIndex{\Antisigma} |
| 638 |
% \SpecialUsageIndex{\asteriscus} |
| 639 |
% \SpecialUsageIndex{\Asteriscus} |
| 640 |
% \SpecialUsageIndex{\catalexis} |
| 641 |
% \SpecialUsageIndex{\Catalexis} |
| 642 |
% \SpecialUsageIndex{\diple} |
| 643 |
% \SpecialUsageIndex{\antidiple} |
| 644 |
% \SpecialUsageIndex{\Diple} |
| 645 |
% \SpecialUsageIndex{\Antidiple} |
| 646 |
% \SpecialUsageIndex{\diple*} |
| 647 |
% \SpecialUsageIndex{\antidiple*} |
| 648 |
% \SpecialUsageIndex{\Diple*} |
| 649 |
% \SpecialUsageIndex{\Antidiple*} |
| 650 |
% \SpecialUsageIndex{\obelus} |
| 651 |
% \SpecialUsageIndex{\Obelus} |
| 652 |
% \SpecialUsageIndex{\obelus*} |
| 653 |
% \SpecialUsageIndex{\Obelus*} |
| 654 |
% \SpecialUsageIndex{\respondens} |
| 655 |
% \SpecialUsageIndex{\Respondens} |
| 656 |
% \SpecialUsageIndex{\terminus} |
| 657 |
% \SpecialUsageIndex{\Terminus} |
| 658 |
% \SpecialUsageIndex{\terminus*} |
| 659 |
% \SpecialUsageIndex{\Terminus*} |
| 660 |
% |
| 661 |
% All the commands for special symbols take an \meta{optional argument}, |
| 662 |
% a \meta{factor} which is multiplied by the |ex| value for the font in use; |
| 663 |
% the result is the amount by which the symbol is raised (\meta{factor} $> 0$) |
| 664 |
% or lowered (\meta{factor} $< 0$). |
| 665 |
% |
| 666 |
% Some of the characters (e.g.~|\diple|, |\obelus|, |\antisigma|) are usually |
| 667 |
% placed in front of a line of text, in the left margin. The |\margini| |
| 668 |
% command \DescribeMacro{\margini} puts the text given in the argument in |
| 669 |
% the left margin of the page; |\margini*| \DescribeMacro{\margini*} puts |
| 670 |
% the text in the right margin. The argument is implicitly considered to |
| 671 |
% form a \TeX{} \textit{group}, as if it were enclosed by an additional set |
| 672 |
% of braces. An \meta{optional argument} can specify a \meta{dimen} which |
| 673 |
% is added to the default displacement from the margin of the main text |
| 674 |
% (a positive value moves the argument further away from the center of |
| 675 |
% the page). |
| 676 |
% |
| 677 |
% \subsection{Diacritics}\label{diacr} |
| 678 |
% |
| 679 |
% Each of the following commands places the corresponding mark over the |
| 680 |
% letter given as argument:\par\vspace \medskipamount |
| 681 |
% {\parskip 0pt |
| 682 |
% \DescribeMacro{\macron}% |
| 683 |
% \kern 7em \hbox to 9em{|\macron e| \hfill \macron e}\par |
| 684 |
% \DescribeMacro{\breve}% |
| 685 |
% \kern 7em \hbox to 9em{|\breve e| \hfill \breve e}\par |
| 686 |
% \DescribeMacro{\acutus}% |
| 687 |
% \kern 7em \hbox to 9em{|\acutus e| \hfill \acutus e}\par |
| 688 |
% \DescribeMacro{\gravis}% |
| 689 |
% \kern 7em \hbox to 9em{|\gravis e| \hfill \gravis e}\par |
| 690 |
% \DescribeMacro{\circumflexus}% |
| 691 |
% \kern 7em \hbox to 9em{|\circumflexus e| \hfill \circumflexus e}\par |
| 692 |
% \DescribeMacro{\diaeresis}% |
| 693 |
% \kern 7em \hbox to 9em{|\diaeresis e| \hfill \diaeresis e}\par |
| 694 |
% } |
| 695 |
% The commands take an \meta{optional argument}, a \meta{factor} which |
| 696 |
% is multiplied by the |ex| value for the font in use; the result is the |
| 697 |
% amount by which the mark is raised (\meta{factor} $> 0$) or lowered |
| 698 |
% (\meta{factor} $< 0$). |
| 699 |
% \textit{\large Note}: the \TeX{} mathematical accent normally associated |
| 700 |
% with |\breve| may be generated with the command |\Breve|. |
| 701 |
% |
| 702 |
% The |\cons| \DescribeMacro{\cons} command places a semicircle under the |
| 703 |
% letter that follows, to indicate \textit{consonantization} of a vowel: |
| 704 |
% |\cons{u}|\M@yields \cons{u}\,. |
| 705 |
% |
| 706 |
% The argument of the |\dubia| \DescribeMacro{\dubia} command is a letter, |
| 707 |
% under which the command places a small dot to show that the letter is |
| 708 |
% only partially preserved in a manuscript or epigraphical text. |
| 709 |
% If the letter carries diacritical marks, these must all be included in |
| 710 |
% the argument. |
| 711 |
% |
| 712 |
% The |\dubiae| \DescribeMacro{\dubiae} command has one parameter, a string |
| 713 |
% of letters, and places a small dot under each of the letters. If a letter |
| 714 |
% within the string carries diacritical marks, it must be enclosed, together |
| 715 |
% with all the marks, within braces. |
| 716 |
% |
| 717 |
% The \texttt{*}-forms \DescribeMacro{\dubia*} are meant to be used in |
| 718 |
% conjunction with fonts, like those of |ibycus4|, \DescribeMacro{\dubiae*} |
| 719 |
% that have ligatures for all combinations of a letter and the dot. The |
| 720 |
% use of ligatures allows a more precise positioning of the dot, taking the |
| 721 |
% shape of the letter into account. |
| 722 |
% |
| 723 |
% The |\erasa| command \DescribeMacro{\erasa} \M@yields \erasa. |
| 724 |
% |
| 725 |
% The |\positio| \DescribeMacro{\positio} command yields the symbol \positio\,, |
| 726 |
% which is used between a mute and a liquid to show that the combination |
| 727 |
% \textit{makes position\/}, i.e.~closes and thereby lengthens the preceding |
| 728 |
% syllable. |\Positio| \DescribeMacro{\Positio} generates a slightly |
| 729 |
% larger symbol \Positio\,. |
| 730 |
% |
| 731 |
% The |\punctum| \DescribeMacro{\punctum} command places a small dot under |
| 732 |
% a space, to show that a letter is missing. |
| 733 |
% |\Punctum| \DescribeMacro{\Punctum} yields a dot enclosed within parentheses. |
| 734 |
% Both commands take an \meta{optional argument}, a \meta{number} that is |
| 735 |
% interpreted as a repetition count. |
| 736 |
% \textit{\large Caution}: sometimes the dot is immediately followed, |
| 737 |
% in the text, by a left square bracket; if you write |\punctum[|\ \,\TeX{} |
| 738 |
% will interpret the bracket as the start of the optional |
| 739 |
% argument and give an error message. Use either |\punctum{}[| |
| 740 |
% or |\punctum\lbrack|. |
| 741 |
% |
| 742 |
% \subsection{Ties}\label{tie} |
| 743 |
% |
| 744 |
% The commands described in this section allow you to place \textit{tie} |
| 745 |
% symbols above a sequence of up to three adjacent characters or under it. |
| 746 |
% All combinations are allowed, including some that are not particularly |
| 747 |
% sensible or useful. |
| 748 |
% |
| 749 |
% |\tie| \DescribeMacro{\tie} places $\frown$ above the characters. |
| 750 |
% |
| 751 |
% |\itie| \DescribeMacro{\itie} places $\smile$ below the characters. |
| 752 |
% |
| 753 |
% |\tie*| \DescribeMacro{\tie*} places $\frown$ below the characters. |
| 754 |
% |
| 755 |
% |\itie*| \DescribeMacro{\itie*} places $\smile$ above the characters. |
| 756 |
% |
| 757 |
% The size of the symbol is chosen so that it embraces all the text. In |
| 758 |
% some cases, you may wish to use a smaller or larger size. An |
| 759 |
% \meta{optional argument} can specify a \meta{factor} which |
| 760 |
% is multiplied by the width of the text: the size of the symbol is then |
| 761 |
% chosen as if the text had that width. Keep in mind, however, that only |
| 762 |
% a limited range of symbol sizes is available in the Computer Modern fonts. |
| 763 |
% |
| 764 |
% When any of the \textit{tie} commands is used within the argument |
| 765 |
% of |\metra|, a \meta{factor} of .6 is applied automatically and |
| 766 |
% an explicit \meta{factor}, if specified, applies to the width |
| 767 |
% as modified by the automatic factor. While |\tie{a e}|\M@yields |
| 768 |
% \tie{a e}, |\metra{\tie{\m\s\m}}|\M@yields \metra{\tie{\m\s\m}} |
| 769 |
% |
| 770 |
% Examples:\par |
| 771 |
% \begin{tabbing} |
| 772 |
% \hskip 2.5em\=xtie{abc}\hskip 5em\=abc% |
| 773 |
% \hskip 4em\=xtie{abc}\hskip 5em\=abc\kill |
| 774 |
% \>|\tie{ae}|\>\tie{ae}\>|\itie{ae}|\>\itie{ae}\\ |
| 775 |
% \>|\tie{uae}|\>\tie{uae}\>|\itie{uae}|\>\itie{uae}\\ |
| 776 |
% \>|\tie{a e}|\>\tie{a e}\>|\itie{a e}|\>\itie{a e}\\ |
| 777 |
% \>|a\tie{ }e|\>a\tie{ }e\>|a\itie{ }e|\>a\itie{ }e\\ |
| 778 |
% \>|\tie[.6]{a e}|\>\tie[.6]{a e}\>|\itie[.6]{a e}|\>\itie[.6]{a e}\\ |
| 779 |
% \>|\tie[.8]{a e}|\>\tie[.8]{a e}\>|\itie[.8]{a e}|\>\itie[.8]{a e}\\ |
| 780 |
% \end{tabbing} |
| 781 |
% \begin{verse} |
| 782 |
% |Oceanum\itie{ }interea surgens Aurora reliquit.|\\ |
| 783 |
% |It portis iubar\itie[.6]{e e}xorto delecta iuventus.|\par |
| 784 |
% Oceanum\itie{ }interea surgens Aurora reliquit.\\ |
| 785 |
% It portis iubar\itie[.6]{e e}xorto delecta iuventus.\par |
| 786 |
% \end{verse} |
| 787 |
% |
| 788 |
% \subsection{Interlinear signs} |
| 789 |
% |
| 790 |
% The signs generated by the commands described in this section are those |
| 791 |
% commonly used for marking strophic divisions in Greek lyrical poetry. |
| 792 |
% The symbols are inserted between lines or placed at the end of the text. |
| 793 |
% |
| 794 |
% The commands must be used inside a \LaTeX{} environment (such as |verse|) |
| 795 |
% in which each line is terminated by |\\|, or else within the scope of |
| 796 |
% the \TeX{} |\obeylines| command. The normal form of the commands is |
| 797 |
% used within \LaTeX{} environments, while the \texttt{*}-form |
| 798 |
% must be used within the scope of |\obeylines|. |
| 799 |
% |
| 800 |
% The commands must appear at the end of a line and, if used within a \LaTeX{} |
| 801 |
% environment, must \textit{not} be followed by |\\|. The symbol is inserted |
| 802 |
% after the line on which the command occurs and the distance between this line |
| 803 |
% and the line that follows (which may be empty for symbols that are |
| 804 |
% placed after the last line of the text) is increased by 15\%. |
| 805 |
% |
| 806 |
% The automatic increment of the interline spacing may be modified by an |
| 807 |
% \meta{optional argument}, a \meta{factor} which is multiplied by the |
| 808 |
% current value of |\baselineskip|; the result is added to the default |
| 809 |
% increment. |
| 810 |
% |
| 811 |
% The basic command is |\linea| \DescribeMacro{\linea} which generates |
| 812 |
% a short line \,\imago*{\linea}\, extending to the left of the |
| 813 |
% margin of the surrounding text by half its length. |
| 814 |
% There are two variants of |\linea|, both available in two sizes:\par |
| 815 |
% \noindent\kern 1em\imago*{\bifida}\kern 2em |\lineabifida| or |
| 816 |
% |\bifida| \DescribeMacro{\bifida}\par |
| 817 |
% \SpecialUsageIndex{\lineabifida} |
| 818 |
% \noindent\kern 1em\imago*{\Bifida}\kern 2em |\Lineabifida| or |
| 819 |
% |\Bifida| \DescribeMacro{\Bifida}\par |
| 820 |
% \SpecialUsageIndex{\Lineabifida} |
| 821 |
% \noindent\kern 1em\imago*{\lunata}\kern 2em |\linealunata| or |
| 822 |
% |\lunata| \DescribeMacro{\lunata}\par |
| 823 |
% \SpecialUsageIndex{\linealunata} |
| 824 |
% \noindent\kern 1em\imago*{\Lunata}\kern 2em |\Linealunata| or |
| 825 |
% |\Lunata| \DescribeMacro{\Lunata} |
| 826 |
% \SpecialUsageIndex{\Linealunata} |
| 827 |
% |
| 828 |
% The |\geminata| \DescribeMacro{\geminata} command yields a pair of lines, |
| 829 |
% each identical to the line generated by |\linea|:\ \imago[-.3]{\geminata}\,. |
| 830 |
% |
| 831 |
% |
| 832 |
% You can place some text (for instance, parentheses or a question mark) |
| 833 |
% on either side of the symbols generated by the commands listed above |
| 834 |
% by means of the |\antelineam|\DescribeMacro{\antelineam}\ and |\postlineam| |
| 835 |
% commands. The commands must appear \DescribeMacro{\postlineam} at the |
| 836 |
% beginning of the line which follows the symbol. Each command takes one |
| 837 |
% argument: the text to be placed before or after the symbol. |
| 838 |
% The text is implicitly considered to form a \TeX{} \textit{group}, as if it |
| 839 |
% were enclosed by an additional set of braces. Within the argument, any command |
| 840 |
% selecting the font to be used for the text must \textit{not} appear within |
| 841 |
% a \textit{group}; if, for instance, you wish to use parentheses taken from |
| 842 |
% the smallest font available to \LaTeX{} you should write: |
| 843 |
% |\antelineam{\tiny(}| and |\postlineam{\tiny)}| and \textbf{not} |
| 844 |
% |\antelineam{{\tiny(}}| or |\postlineam{{\tiny)}}|. |
| 845 |
% |
| 846 |
% The |\coronis| \DescribeMacro{\coronis} command generates a stylized |
| 847 |
% representation of the symbol sometimes found in manuscripts. |
| 848 |
% Because of its peculiar shape, the symbol \margini{\imago*{\coronis}} |
| 849 |
% is not placed between lines but to the left of the text. |
| 850 |
% |
| 851 |
% \subsubsection*{Generating the signs within the text} |
| 852 |
% |
| 853 |
% To generate one of the signs described in this section within ordinary |
| 854 |
% text, use the |\imago| \DescribeMacro{\imago} command. The argument is |
| 855 |
% the name of the command yielding the sign: |\imago{\bifida}| |
| 856 |
% \M@yields\imago{\bifida}. |
| 857 |
% The sign is generated at its natural distance from the baseline. |
| 858 |
% The distance may be modified by an \meta{optional argument}; the argument, |
| 859 |
% a \meta{factor}, is multiplied by the current value of |
| 860 |
% |\baselineskip| and the result is added to the default distance. |
| 861 |
% |\imago[-.6]{\bifida}|\M@yields\imago[-.6]{\bifida}. |
| 862 |
% |
| 863 |
% The \texttt{*}-form of the command \DescribeMacro{\imago*} automatically |
| 864 |
% aligns the sign with the surrounding text: |\imago*{\bifida}|% |
| 865 |
% \M@yields \imago*{\bifida}. |
| 866 |
% |
| 867 |
% \subsubsection*{Defining new signs} |
| 868 |
% |
| 869 |
% The |\novalinea| \DescribeMacro{\novalinea} command defines |
| 870 |
% a new command that yields a line placed at the same height as the line |
| 871 |
% generated by |\linea| but having a different length and/or indentation |
| 872 |
% from the text margin. The command has four parameters: |
| 873 |
% \begin{list}{}{\parsep 0pt\itemsep 0pt\labelsep 1.5em \topsep 0pt} |
| 874 |
% \item[\textit{1}] the name of the new command; |
| 875 |
% \item[\textit{2}] the indentation, relative to the left margin of the |
| 876 |
% text, of the line; |
| 877 |
% \item[\textit{3}] the length of the line; |
| 878 |
% \item[\textit{4}] the amount by which the interline spacing should be |
| 879 |
% increased, given as a \meta{factor} that is to be multiplied by the value of |
| 880 |
% |\baselineskip|. |
| 881 |
% \end{list}{}{} |
| 882 |
% For instance, the command |\novalinea{\Linea}{-.5em}{2em}{.2}| defines |
| 883 |
% |\Linea| as a command that yields a line of length \texttt{2em}, indented |
| 884 |
% to the left of the text margin by $1/4$ of its length; the interline |
| 885 |
% spacing is increased by 20\%. |
| 886 |
% |
| 887 |
% The |\novageminata| \DescribeMacro{\novageminata} command, with the |
| 888 |
% same parameters as |\novalinea|, defines a new command that yields |
| 889 |
% a pair of lines similar to those generated by |\geminata|. |
| 890 |
% |
| 891 |
% Definitions made with these two commands are valid within the |
| 892 |
% \TeX{} \textit{group} within which they occur. It is therefore possible |
| 893 |
% to restrict their effect to a section of the document by enclosing the |
| 894 |
% section within braces and placing the definitions after the opening brace. |
| 895 |
% |
| 896 |
% Note that it is possible to change the definition of |\linea| by |
| 897 |
% saying |\novalinea{\linea}|\texttt{\ldots}\ Changing the definition |
| 898 |
% of |\linea| automatically changes the appearance of |\geminata|, |
| 899 |
% |\bifida|, |\Bifida|, |\lunata| and |\Lunata|. |
| 900 |
% |
| 901 |
% If you prefer a typographical style that puts the interlinear signs |
| 902 |
% into the margin, away from the text, you need only change the definition |
| 903 |
% of |\linea| (setting the appropriate value for indentation) in the preamble |
| 904 |
% and all the document will be typeset in this style. |
| 905 |
% |
| 906 |
% \subsection{\textit{Miscellanea}} |
| 907 |
% |
| 908 |
% The |\lineola| \DescribeMacro{\lineola} command generates, at the point |
| 909 |
% where it is used, a horizontal line having the length given in the |
| 910 |
% command argument. The line is placed at the same height, relative to |
| 911 |
% the baseline of the text, as the line generated by |\linea|. You can |
| 912 |
% change the height by specifying an \meta{optional argument}: a \meta{factor} |
| 913 |
% which is multiplied by the value of |\baselineskip|; the result |
| 914 |
% is added to the default displacement from the baseline. |
| 915 |
% |
| 916 |
% The |\Lineola| \DescribeMacro{\Lineola} command generates a horizontal |
| 917 |
% line over the text given in the command argument. The command accepts an |
| 918 |
% \meta{optional argument}, with the same meaning as the corresponding |
| 919 |
% argument of |\lineola|. |\Lineola[-.25]{mrs}| \M@yields \Lineola[-.25]{mrs}. |
| 920 |
% \newpage |
| 921 |
% The |\structa| \DescribeMacro{\structa} command \label{structa} takes two |
| 922 |
% arguments and places the text given in the second argument over the text |
| 923 |
% given in the first argument. Both arguments are implicitly considered |
| 924 |
% to form \TeX{} \textit{groups}, as if each argument were enclosed by |
| 925 |
% an additional set of braces. |
| 926 |
% The command takes an \meta{optional argument}, a \meta{factor} which is |
| 927 |
% multiplied by the |ex| value for the font in use; the result is |
| 928 |
% the amount by which the text in the second argument is raised |
| 929 |
% (\meta{factor} $> 0$) or lowered (\meta{factor} $< 0$). |
| 930 |
% |w\structa{xy}{\tiny ab}z| \M@yields w\structa{xy}{\tiny ab}z. |
| 931 |
% |
| 932 |
% \vspace{5ex} |
| 933 |
% \begingroup |
| 934 |
% \Large |
| 935 |
% Happy |
| 936 |
% \begin{metrica} |
| 937 |
% T\kern -.1667em \lower .5ex \hbox{\-E}\kern-.125em Xing\,!% |
| 938 |
% \end{metrica} |
| 939 |
% \endgroup |
| 940 |
% \newpage |
| 941 |
% \PrintIndex |
| 942 |
% \StopEventually{} |
| 943 |
% \parindent 0pt |
| 944 |
% \newpage |
| 945 |
% \setlength{\parskip}{.3ex} |
| 946 |
% |
| 947 |
% \section{The package code} \label{sec:code} |
| 948 |
% |
| 949 |
% \subsection{Preliminaries} |
| 950 |
% |
| 951 |
% \begin{macrocode} |
| 952 |
\NeedsTeXFormat{LaTeX2e}[1999/12/01] |
| 953 |
\ProvidesPackage{metre}% |
| 954 |
[2001/12/05 v. 1.0 A package for classicists] |
| 955 |
% \end{macrocode} |
| 956 |
% |
| 957 |
% Set the style for |\metra|: |
| 958 |
% \begin{macrocode} |
| 959 |
\DeclareOption{st}{\def\M@opt@style{0}} |
| 960 |
\DeclareOption{en}{\def\M@opt@style{1}} |
| 961 |
\DeclareOption{En}{\def\M@opt@style{2}} |
| 962 |
\ExecuteOptions{st} |
| 963 |
\ProcessOptions |
| 964 |
% \end{macrocode} |
| 965 |
% |
| 966 |
% \begin{macrocode} |
| 967 |
\RequirePackage{relsize} |
| 968 |
% \end{macrocode} |
| 969 |
% |
| 970 |
% Suppress all |relsize| warnings which would needlessly |
| 971 |
% alarm the user. |
| 972 |
% |
| 973 |
% \begin{macrocode} |
| 974 |
\renewcommand{\rs@size@warning}[2]{\relax} |
| 975 |
% \end{macrocode} |
| 976 |
% |
| 977 |
% \subsection{Variables} |
| 978 |
% |
| 979 |
% Set to 1 if |ibycus| is loaded. |
| 980 |
% \begin{macrocode} |
| 981 |
\newcount\M@ibycus |
| 982 |
% \end{macrocode} |
| 983 |
% |
| 984 |
% Set to 1 while we are within the parameter of |\metra|. |
| 985 |
% \begin{macrocode} |
| 986 |
\newcount\M@metra |
| 987 |
% \end{macrocode} |
| 988 |
% |
| 989 |
% The font number (as defined by |relsize|) for the font used in |\metra|. |
| 990 |
% |
| 991 |
% \begin{macrocode} |
| 992 |
\newcount\M@metra@font |
| 993 |
% \end{macrocode} |
| 994 |
% |
| 995 |
% |True| if we must generate a grave accent. |
| 996 |
% |
| 997 |
% \begin{macrocode} |
| 998 |
\newif\ifM@gravis |
| 999 |
% \end{macrocode} |
| 1000 |
% |
| 1001 |
% |True| if we must generate the \textit{inter signa} space. |
| 1002 |
% |
| 1003 |
% \begin{macrocode} |
| 1004 |
\newif\ifM@inter |
| 1005 |
% \end{macrocode} |
| 1006 |
% |
| 1007 |
% |True| if the symbol just generated is some sort of vertical bar. |
| 1008 |
% |
| 1009 |
% \begin{macrocode} |
| 1010 |
\newif\ifM@vert@bar |
| 1011 |
% \end{macrocode} |
| 1012 |
% |
| 1013 |
% |True| if we must generate a stand-alone interlinear sign. |
| 1014 |
% |
| 1015 |
% \begin{macrocode} |
| 1016 |
\newif\ifM@imago |
| 1017 |
% \end{macrocode} |
| 1018 |
% |
| 1019 |
% |True| if we just want to set the |\dimen| registers for |\linea|. |
| 1020 |
% |
| 1021 |
% \begin{macrocode} |
| 1022 |
\newif\ifM@linea@dimen |
| 1023 |
% \end{macrocode} |
| 1024 |
% |
| 1025 |
% |True| if we have the *-form of a command. |
| 1026 |
% |
| 1027 |
% \begin{macrocode} |
| 1028 |
\newif\ifM@starred |
| 1029 |
% \end{macrocode} |
| 1030 |
% |
| 1031 |
% |True| if we must generate a character at a larger size. |
| 1032 |
% |
| 1033 |
% \begin{macrocode} |
| 1034 |
\newif\ifM@big |
| 1035 |
% \end{macrocode} |
| 1036 |
% |
| 1037 |
% Boxes for the basic symbols: |
| 1038 |
% |
| 1039 |
% \begin{macrocode} |
| 1040 |
\newbox\M@box@m% macron |
| 1041 |
\newbox\M@box@b% breve |
| 1042 |
\newbox\M@box@tsmb% triseme (macron + breve) |
| 1043 |
\newbox\M@box@tsbm% triseme (breve + macron) |
| 1044 |
\newbox\M@box@tsmm% tetraseme (macron + macron) |
| 1045 |
\newbox\M@box@ps% pentaseme (macron + macron) |
| 1046 |
\newbox\M@box@a% anceps |
| 1047 |
\newbox\M@box@o% one half of `eolic base' |
| 1048 |
\newbox\M@box@k% catalexis |
| 1049 |
\newbox\M@box@K% catalexis (large) |
| 1050 |
\newbox\M@box@p% dot |
| 1051 |
\newbox\M@box@A% acute accent |
| 1052 |
\newbox\M@box@G% grave accent |
| 1053 |
% \end{macrocode} |
| 1054 |
% |
| 1055 |
% Registers for some important dimensions: |
| 1056 |
% |
| 1057 |
% \begin{macrocode} |
| 1058 |
\newdimen\M@dim@m% width of macron box |
| 1059 |
\newdimen\M@dim@b% width of breve box |
| 1060 |
\newdimen\M@dim@p% width of dot box |
| 1061 |
\newdimen\M@dim@s% size of space |
| 1062 |
% \end{macrocode} |
| 1063 |
% |
| 1064 |
% The amount by which the breve is lowered in the |[en]| style. |
| 1065 |
% |
| 1066 |
% \begin{macrocode} |
| 1067 |
\newdimen\M@dim@bsink |
| 1068 |
% \end{macrocode} |
| 1069 |
% |
| 1070 |
% The amount by which a symbol has actually sunk. |
| 1071 |
% |
| 1072 |
% \begin{macrocode} |
| 1073 |
\newdimen\M@dim@sunk |
| 1074 |
% \end{macrocode} |
| 1075 |
% |
| 1076 |
% |ex| value for the font being used for the metrical symbols. |
| 1077 |
% |
| 1078 |
% \begin{macrocode} |
| 1079 |
\newdimen\M@metra@ex |
| 1080 |
% \end{macrocode} |
| 1081 |
% |
| 1082 |
% |ex| value for the font in use before |\metra|. |
| 1083 |
% |
| 1084 |
% \begin{macrocode} |
| 1085 |
\newdimen\M@text@ex |
| 1086 |
% \end{macrocode} |
| 1087 |
% |
| 1088 |
% Space before and after a \textit{caesura}. |
| 1089 |
% |
| 1090 |
% \begin{macrocode} |
| 1091 |
\newdimen\M@dim@c@ext |
| 1092 |
% \end{macrocode} |
| 1093 |
% |
| 1094 |
% Space inside a double or triple \textit{caesura}. |
| 1095 |
% |
| 1096 |
% \begin{macrocode} |
| 1097 |
\newdimen\M@dim@c@int |
| 1098 |
% \end{macrocode} |
| 1099 |
% |
| 1100 |
% Space before and after a \textit{caesura}. |
| 1101 |
% |
| 1102 |
% \begin{macrocode} |
| 1103 |
\newdimen\M@dim@c@Ext |
| 1104 |
% \end{macrocode} |
| 1105 |
% |
| 1106 |
% Indentation, height and length of |\linea|. |
| 1107 |
% |
| 1108 |
% \begin{macrocode} |
| 1109 |
\newdimen\M@linea@indent |
| 1110 |
\newdimen\M@linea@height |
| 1111 |
\newdimen\M@linea@length |
| 1112 |
% \end{macrocode} |
| 1113 |
% |
| 1114 |
% \subsection{Inizialization} |
| 1115 |
% |
| 1116 |
% \begin{macrocode} |
| 1117 |
\AtBeginDocument{% |
| 1118 |
\@ifpackageloaded{ibycus4}{\M@ibycus\@ne}{\M@ibycus\z@}% |
| 1119 |
\let\M@prevsize=\relax |
| 1120 |
\def\M@before@linea{\relax}% |
| 1121 |
% \end{macrocode} |
| 1122 |
% |
| 1123 |
% The metrical symbols are taken from the font at |\relsize{+2}|: |
| 1124 |
% |
| 1125 |
% \begin{macrocode} |
| 1126 |
\let\M@step@up=\tw@ |
| 1127 |
} |
| 1128 |
% \end{macrocode} |
| 1129 |
% |
| 1130 |
% \subsection{Global commands} |
| 1131 |
% |
| 1132 |
% \begin{macrocode} |
| 1133 |
\newcommand{\InterSigna}[1]{\def\M@interS{#1}} |
| 1134 |
\newcommand{\InterPedes}[1]{\def\M@interP{#1}} |
| 1135 |
\newcommand{\SubSigna}[1]{\def\M@subS{#1}} |
| 1136 |
\newcommand{\Magnitudo}[1]{\def\M@magnitudo{#1}} |
| 1137 |
\newcommand{\Elevatio}[1]{\def\M@elevatio{#1}} |
| 1138 |
\newcommand{\Translatio}[1]{\def\M@translatio{#1}} |
| 1139 |
\newcommand{\Intervallum}[1]{\def\M@intervallum{#1}} |
| 1140 |
\newcommand{\FaciesSiglorum}[1]{\def\M@facies{#1}} |
| 1141 |
% \end{macrocode} |
| 1142 |
% |
| 1143 |
% \begin{macrocode} |
| 1144 |
\newcommand{\MetraStyle}[1]{\M@MetraStyle#1} |
| 1145 |
\def\M@MetraStyle#1#2{% |
| 1146 |
\let\M@opt=\relax |
| 1147 |
\ifx e#1\relax |
| 1148 |
\ifx n#2\relax |
| 1149 |
\let\M@opt=1\relax |
| 1150 |
\fi |
| 1151 |
\fi |
| 1152 |
\ifx E#1\relax |
| 1153 |
\ifx n#2\relax |
| 1154 |
\let\M@opt=2\relax |
| 1155 |
\fi |
| 1156 |
\fi |
| 1157 |
\ifx s#1\relax |
| 1158 |
\ifx t#2\relax |
| 1159 |
\let\M@opt=0\relax |
| 1160 |
\fi |
| 1161 |
\fi |
| 1162 |
\ifx \M@opt\relax |
| 1163 |
\PackageError{metre}% |
| 1164 |
{Illegal option for \protect\MetraStyle}% |
| 1165 |
{Valid options are `en', `En', `st'.}% |
| 1166 |
\else |
| 1167 |
\edef\M@opt@style{\M@opt}% |
| 1168 |
\fi |
| 1169 |
} |
| 1170 |
% \end{macrocode} |
| 1171 |
% |
| 1172 |
% \begin{macrocode} |
| 1173 |
\newcommand{\MetrikeFont}[1]{\def\M@MetrikeFont{#1}} |
| 1174 |
% \end{macrocode} |
| 1175 |
% |
| 1176 |
% Set the default values. |
| 1177 |
% |
| 1178 |
% \begin{macrocode} |
| 1179 |
\InterSigna{.2}% |
| 1180 |
\InterPedes{.67}% |
| 1181 |
\SubSigna{0}% |
| 1182 |
\Magnitudo{0}% |
| 1183 |
\Elevatio{0}% |
| 1184 |
\Translatio{0}% |
| 1185 |
\Intervallum{.08}% |
| 1186 |
\FaciesSiglorum{\it}% |
| 1187 |
% \end{macrocode} |
| 1188 |
% |
| 1189 |
% \subsection{The \texttt{\protect\bslash metra} command} |
| 1190 |
% |
| 1191 |
% \begin{macrocode} |
| 1192 |
\newcommand{\metra}[2][\relax]{% |
| 1193 |
% \end{macrocode} |
| 1194 |
% |
| 1195 |
% Check for a recursive call and set a flag to show |
| 1196 |
% we are within |\metra|. |
| 1197 |
% |
| 1198 |
% \begin{macrocode} |
| 1199 |
\ifnum \M@metra=\@ne |
| 1200 |
\PackageError{metre}{Recursive use of \protect\metra}% |
| 1201 |
{You cannot use \protect\metra within% |
| 1202 |
the argument \MessageBreak |
| 1203 |
of another \protect\metra command}% |
| 1204 |
\fi |
| 1205 |
\M@metra=\@ne |
| 1206 |
% \end{macrocode} |
| 1207 |
% |
| 1208 |
% Save the information about the current font size and make sure we are |
| 1209 |
% in horizontal mode. |
| 1210 |
% |
| 1211 |
% \begin{macrocode} |
| 1212 |
\let\M@text@fontsize=\@currsize |
| 1213 |
\M@text@ex=\fontdimen5\the\font |
| 1214 |
\leavevmode |
| 1215 |
% \end{macrocode} |
| 1216 |
% \newpage |
| 1217 |
% Start a group so that all command definitions stay local. |
| 1218 |
% |
| 1219 |
% \begin{macrocode} |
| 1220 |
\begingroup |
| 1221 |
% \end{macrocode} |
| 1222 |
% Initial setup, including execution of commands in the optional argument. |
| 1223 |
% \begin{macrocode} |
| 1224 |
\M@metra@setup{#1}% |
| 1225 |
% \end{macrocode} |
| 1226 |
% |
| 1227 |
% The text is set as a single |\hbox| so that it can be moved |
| 1228 |
% up and down as necessary. This also has the advantage of |
| 1229 |
% preventing the metrical scheme from being split across lines. |
| 1230 |
% |
| 1231 |
% \begin{macrocode} |
| 1232 |
\dimen0=\if 0\M@opt@style 0\else .5\fi \M@text@ex |
| 1233 |
\advance \dimen0 by \M@subS \M@text@ex |
| 1234 |
\raise \dimen0 \hbox{\hss\M@interfalse #2\hss}% |
| 1235 |
\endgroup |
| 1236 |
\M@metra=\z@ |
| 1237 |
\relax |
| 1238 |
} |
| 1239 |
% \end{macrocode} |
| 1240 |
% |
| 1241 |
% \subsubsection{\texttt{\protect\bslash metra} set up} |
| 1242 |
% |
| 1243 |
% \begin{macrocode} |
| 1244 |
\def\M@metra@setup#1{% |
| 1245 |
% \end{macrocode} |
| 1246 |
% |
| 1247 |
% Execute the commands (if any) in the optional argument. |
| 1248 |
% |
| 1249 |
% \begin{macrocode} |
| 1250 |
\let\is=\InterSigna |
| 1251 |
\let\i=\Intervallum |
| 1252 |
\let\ip=\InterPedes |
| 1253 |
\let\ss=\SubSigna |
| 1254 |
\let\m=\Magnitudo |
| 1255 |
\let\ms=\MetraStyle |
| 1256 |
\def\en{\MetraStyle{en}}% |
| 1257 |
\def\En{\MetraStyle{En}}% |
| 1258 |
\def\st{\MetraStyle{st}}% |
| 1259 |
#1\relax |
| 1260 |
% \end{macrocode} |
| 1261 |
% |
| 1262 |
% Switch to the CMR font that will be used for all symbols. |
| 1263 |
% |
| 1264 |
% \begin{macrocode} |
| 1265 |
\M@cmr |
| 1266 |
% \end{macrocode} |
| 1267 |
% |
| 1268 |
% Select the font size. |
| 1269 |
% |
| 1270 |
% \begin{macrocode} |
| 1271 |
\count255=\M@magnitudo |
| 1272 |
\advance \count255 by \M@step@up |
| 1273 |
\relsize{\count255}% |
| 1274 |
\let\M@metra@fontsize=\@currsize |
| 1275 |
\M@metra@ex=1ex |
| 1276 |
% \end{macrocode} |
| 1277 |
% |
| 1278 |
% Avoid rebuilding the boxes if the font size has not changed from |
| 1279 |
% the previous use of |\metra|. |
| 1280 |
% |
| 1281 |
% \begin{macrocode} |
| 1282 |
\ifx \@currsize \M@prevsize |
| 1283 |
\relax |
| 1284 |
\else |
| 1285 |
\M@makeboxes |
| 1286 |
\global\let\M@prevsize=\@currsize |
| 1287 |
\fi |
| 1288 |
% \end{macrocode} |
| 1289 |
% |
| 1290 |
% Set a few dimensional registers that may be affected by commands |
| 1291 |
% in the optional argument. |
| 1292 |
% |
| 1293 |
% \begin{macrocode} |
| 1294 |
\M@dim@c@ext=\M@interP\M@dim@m |
| 1295 |
\M@dim@c@int=\M@interS\M@dim@m |
| 1296 |
\M@dim@c@ext=1.33\M@dim@c@ext |
| 1297 |
\M@dim@c@Ext=\M@dim@c@int |
| 1298 |
\M@dim@s=\M@interP\M@dim@m |
| 1299 |
% \end{macrocode} |
| 1300 |
% |
| 1301 |
% Now make all the macros available: |
| 1302 |
% |
| 1303 |
% \begin{macrocode} |
| 1304 |
\let\a \M@a |
| 1305 |
\let\b \M@b \let\B \M@B |
| 1306 |
\let\gB \M@gB |
| 1307 |
\let\bb \M@bb \let\BB \M@BB |
| 1308 |
\let\gBB \M@gBB |
| 1309 |
\let\Bb \M@Bb |
| 1310 |
\let\gBb \M@gBb |
| 1311 |
\let\bB \M@bB |
| 1312 |
\let\gbB \M@gbB |
| 1313 |
\let\bm \M@bm \let\Bm \M@Bm |
| 1314 |
\let\gBm \M@gBm |
| 1315 |
\let\bba \M@bba |
| 1316 |
\let\bbb \M@bbb |
| 1317 |
\let\bbm \M@bbm \let\BBm \M@BBm |
| 1318 |
\let\gBBm \M@gBBm |
| 1319 |
\let\Bbm \M@Bbm |
| 1320 |
\let\gBbm \M@gBbm |
| 1321 |
\let\bBm \M@bBm |
| 1322 |
\let\gbBm \M@gbBm |
| 1323 |
\let\bbmx \M@bbmx |
| 1324 |
\let\bbmb \M@bbmb |
| 1325 |
\let\m \M@m \let\M \M@M |
| 1326 |
\let\gM \M@gM |
| 1327 |
\let\ma \M@ma |
| 1328 |
\let\mb \M@mb \let\Mb \M@Mb |
| 1329 |
\let\gMb \M@gMb |
| 1330 |
\let\mbb \M@mbb \let\Mbb \M@Mbb |
| 1331 |
\let\gMbb \M@gMbb |
| 1332 |
\let\mBb \M@mBb |
| 1333 |
\let\gmBb \M@gmBb |
| 1334 |
\let\mbB \M@mbB |
| 1335 |
\let\gmbB \M@gmbB |
| 1336 |
\let\mbbx \M@mbbx |
| 1337 |
\let\c \M@c \let\cc \M@cc \let\ccc \M@ccc |
| 1338 |
\let\C \M@C \let\Cc \M@Cc \let\Ccc \M@Ccc |
| 1339 |
\let\d \M@d |
| 1340 |
\let\k \M@k \let\K \M@K |
| 1341 |
\let\n \M@n \let\ni \M@ni \let\N \M@N |
| 1342 |
\let\o \M@o \let\oo \M@oo |
| 1343 |
\let\p \M@p \let\pp \M@pp \let\Pp \M@Pp |
| 1344 |
\let\pxp \M@pxp \let\Pxp \M@Pxp |
| 1345 |
\let\pm \M@pm \let\ppm \M@ppm \let\pppm \M@pppm |
| 1346 |
\let\vppm \M@vppm \let\vpppm \M@vpppm |
| 1347 |
\let\ppp \M@ppp \let\pppp \M@pppp \let\ppppp \M@ppppp |
| 1348 |
\let\Ppp \M@Ppp \let\Pppp \M@Pppp \let\Ppppp \M@Ppppp |
| 1349 |
\let\q \M@q \let\Q \M@Q |
| 1350 |
\let\r \M@r \let\R \M@R |
| 1351 |
\let\s \M@s |
| 1352 |
\let\S \M@super@metra |
| 1353 |
\let\t \M@t \let\T \M@T |
| 1354 |
\let\tsbm \M@tsbm |
| 1355 |
\let\tsmb \M@tsmb |
| 1356 |
\let\tsmm \M@tsmm |
| 1357 |
\let\ps \M@ps |
| 1358 |
\let\v \M@v |
| 1359 |
\let\x \M@x |
| 1360 |
\let\'\M@acutus \let\`\M@gravis |
| 1361 |
} |
| 1362 |
% \end{macrocode} |
| 1363 |
% |
| 1364 |
% \subsubsection{Manufacturing the basic boxes} |
| 1365 |
% |
| 1366 |
% \textit{``The horror! The horror!''}. Here is the package's heart of darkness. |
| 1367 |
% For each basic metrical symbol we build a box that encloses, as |
| 1368 |
% precisely as possible, the `inked' part of the character box. |
| 1369 |
% A few of the magic numbers that are sprinkled throughout this truly messy |
| 1370 |
% code have been derived from the Metafont source but most have been arrived |
| 1371 |
% at \textit{provando e riprovando}. A cleaner solution would have |
| 1372 |
% been to extract the information from the GF files with a program; |
| 1373 |
% but writing the program would have been hardly less boring and would |
| 1374 |
% have taken up much more time. |
| 1375 |
% |
| 1376 |
% \begin{macrocode} |
| 1377 |
\def\M@makeboxes{% |
| 1378 |
\M@metra@font=% |
| 1379 |
\ifx \@currsize \Large 6 \else |
| 1380 |
\ifx \@currsize \large 5 \else |
| 1381 |
\ifx \@currsize \normalsize 4 \else |
| 1382 |
\ifx \@currsize \small 3 \else |
| 1383 |
\ifx \@currsize \footnotesize 2 \else |
| 1384 |
\ifx \@currsize \scriptsize 1 \else |
| 1385 |
\ifx \@currsize \LARGE 7 \else |
| 1386 |
\ifx \@currsize \huge 8 \else |
| 1387 |
\ifx \@currsize \Huge 9 \else |
| 1388 |
\ifx \@currsize \tiny 0 |
| 1389 |
\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi |
| 1390 |
% \end{macrocode} |
| 1391 |
% |
| 1392 |
% Macron and breve |
| 1393 |
% |
| 1394 |
% \begin{macrocode} |
| 1395 |
\setbox0=\hbox{\char22}% |
| 1396 |
\global\M@dim@m=.73\wd0 |
| 1397 |
\global\M@dim@b=.59\wd0 |
| 1398 |
\ifnum 2>\M@metra@font \global\M@dim@b=.58\wd0 |
| 1399 |
\else |
| 1400 |
\ifnum 4=\M@metra@font \global\M@dim@b=.575\wd0 |
| 1401 |
\else |
| 1402 |
\ifnum 5=\M@metra@font \global\M@dim@b=.575\wd0 |
| 1403 |
\else |
| 1404 |
\ifnum 6=\M@metra@font \global\M@dim@b=.5775\wd0 |
| 1405 |
\else |
| 1406 |
\ifnum 7=\M@metra@font \global\M@dim@b=.595\wd0 |
| 1407 |
\fi |
| 1408 |
\fi |
| 1409 |
\fi |
| 1410 |
\fi |
| 1411 |
\fi |
| 1412 |
\global\M@dim@p=.25\wd0 |
| 1413 |
\global\setbox\M@box@m=\hbox to \M@dim@m{% |
| 1414 |
\hss |
| 1415 |
\dimen0=1.235\M@metra@ex |
| 1416 |
\ifcase \@ptsize |
| 1417 |
\ifnum 1=\M@metra@font \dimen0=1.2\M@metra@ex |
| 1418 |
\else |
| 1419 |
\ifnum 9=\M@metra@font \dimen0=1.25\M@metra@ex |
| 1420 |
\fi |
| 1421 |
\fi |
| 1422 |
\or |
| 1423 |
\ifnum 0=\M@metra@font \dimen0=1.25\M@metra@ex |
| 1424 |
\else |
| 1425 |
\ifnum 9=\M@metra@font \dimen0=1.25\M@metra@ex |
| 1426 |
\fi |
| 1427 |
\fi |
| 1428 |
\or |
| 1429 |
\ifnum 0=\M@metra@font \dimen0=1.25\M@metra@ex |
| 1430 |
\else |
| 1431 |
\ifnum 7<\M@metra@font \dimen0=1.25\M@metra@ex |
| 1432 |
\fi |
| 1433 |
\fi |
| 1434 |
\fi |
| 1435 |
\lower\dimen0\hbox{\char22}% |
| 1436 |
\hss |
| 1437 |
}% |
| 1438 |
\dimen0=.089\M@metra@ex |
| 1439 |
\ifcase \@ptsize |
| 1440 |
\ifnum 4>\M@metra@font |
| 1441 |
\dimen0=.08\M@metra@ex |
| 1442 |
\else |
| 1443 |
\ifnum 6<\M@metra@font |
| 1444 |
\dimen0=.05\M@metra@ex |
| 1445 |
\fi |
| 1446 |
\fi |
| 1447 |
\or |
| 1448 |
\dimen0=.08\M@metra@ex |
| 1449 |
\or |
| 1450 |
\dimen0=.08\M@metra@ex |
| 1451 |
\fi |
| 1452 |
\global\ht\M@box@m=\dimen0 |
| 1453 |
\global\dp\M@box@m=\z@ |
| 1454 |
% \end{macrocode} |
| 1455 |
% |
| 1456 |
% \begin{macrocode} |
| 1457 |
\global\setbox\M@box@b=\hbox to \M@dim@b{% |
| 1458 |
\hss |
| 1459 |
\lower 1.142\M@metra@ex\hbox{\char21}% |
| 1460 |
\hss}% |
| 1461 |
\global\ht\M@box@b=.495\M@metra@ex |
| 1462 |
\global\dp\M@box@b=\z@ |
| 1463 |
\global\M@dim@bsink=.4\ht\M@box@b |
| 1464 |
% \end{macrocode} |
| 1465 |
% |
| 1466 |
% Dot |
| 1467 |
% |
| 1468 |
% \begin{macrocode} |
| 1469 |
\global\setbox\M@box@p=\hbox to \M@dim@p{% |
| 1470 |
\hss |
| 1471 |
\lower 1.3\M@metra@ex\hbox{\char95}% |
| 1472 |
\hss}% |
| 1473 |
\global\ht\M@box@p=.15\M@metra@ex |
| 1474 |
\global\dp\M@box@p=\z@ |
| 1475 |
% \end{macrocode} |
| 1476 |
% |
| 1477 |
% Triseme (equivalent to \metra{\m\b}) |
| 1478 |
% |
| 1479 |
% \begin{macrocode} |
| 1480 |
\global\setbox\M@box@tsmb=\hbox{% |
| 1481 |
\vrule height .4\M@metra@ex width \ht\M@box@m |
| 1482 |
\hbox to 1.667\M@dim@m{% |
| 1483 |
\leaders\hrule height \ht\M@box@m\hfill}}% |
| 1484 |
\dimen0=1.667\M@dim@m |
| 1485 |
\advance \dimen0 by \ht\M@box@m |
| 1486 |
\global\wd\M@box@tsmb=\dimen0 |
| 1487 |
\global\ht\M@box@tsmb=.2\M@metra@ex |
| 1488 |
\global\dp\M@box@tsmb=\z@ |
| 1489 |
% \end{macrocode} |
| 1490 |
% |
| 1491 |
% Triseme (equivalent to \metra{\b\m}) |
| 1492 |
% |
| 1493 |
% \begin{macrocode} |
| 1494 |
\global\setbox\M@box@tsbm=\hbox{% |
| 1495 |
\hbox to 1.667\M@dim@m{% |
| 1496 |
\leaders\hrule height \ht\M@box@m\hfill}% |
| 1497 |
\vrule height .4\M@metra@ex width \ht\M@box@m}% |
| 1498 |
\dimen0=1.667\M@dim@m |
| 1499 |
\advance \dimen0 by \ht\M@box@m |
| 1500 |
\global\wd\M@box@tsbm=\dimen0 |
| 1501 |
\global\ht\M@box@tsbm=.2\M@metra@ex |
| 1502 |
\global\dp\M@box@tsbm=\z@ |
| 1503 |
% \end{macrocode} |
| 1504 |
% |
| 1505 |
% Tetraseme |
| 1506 |
% |
| 1507 |
% \begin{macrocode} |
| 1508 |
\global\setbox\M@box@tsmm=\hbox{% |
| 1509 |
\vrule height .4\M@metra@ex width \ht\M@box@m% |
| 1510 |
\hbox to 1.667\M@dim@m{% |
| 1511 |
\leaders\hrule height \ht\M@box@m\hfill}% |
| 1512 |
\vrule height .4\M@metra@ex width \ht\M@box@m% |
| 1513 |
\kern \ht\M@box@m}% |
| 1514 |
\dimen0=1.667\M@dim@m |
| 1515 |
\advance \dimen0 by 2\ht\M@box@m |
| 1516 |
\global\wd\M@box@tsmm=\dimen0 |
| 1517 |
\global\ht\M@box@tsmm=.2\M@metra@ex |
| 1518 |
\global\dp\M@box@tsmm=\z@ |
| 1519 |
% \end{macrocode} |
| 1520 |
% |
| 1521 |
% Pentaseme |
| 1522 |
% |
| 1523 |
% \begin{macrocode} |
| 1524 |
\global\setbox\M@box@ps=\hbox{% |
| 1525 |
\vrule height .4\M@metra@ex width \ht\M@box@m% |
| 1526 |
\hbox to .82\M@dim@m{% |
| 1527 |
\leaders\hrule height \ht\M@box@m\hfill}% |
| 1528 |
\vrule height .4\M@metra@ex width \ht\M@box@m% |
| 1529 |
\hbox to .825\M@dim@m{% |
| 1530 |
\leaders\hrule height \ht\M@box@m\hfill}% |
| 1531 |
\vrule height .4\M@metra@ex width \ht\M@box@m% |
| 1532 |
\kern \ht\M@box@m}% |
| 1533 |
\dimen0=1.667\M@dim@m |
| 1534 |
\advance \dimen0 by 3\ht\M@box@m |
| 1535 |
\global\wd\M@box@ps=\dimen0 |
| 1536 |
\global\ht\M@box@ps=.2\M@metra@ex |
| 1537 |
\global\dp\M@box@ps=\z@ |
| 1538 |
% \end{macrocode} |
| 1539 |
% |
| 1540 |
% Acute accent |
| 1541 |
% |
| 1542 |
% \begin{macrocode} |
| 1543 |
\global\setbox\M@box@A=\hbox{% |
| 1544 |
\hss |
| 1545 |
\lower 1.1\M@metra@ex\hbox{\char19}% |
| 1546 |
\hss}% |
| 1547 |
\global\ht\M@box@A=.175\M@metra@ex |
| 1548 |
\global\dp\M@box@A=\z@ |
| 1549 |
% \end{macrocode} |
| 1550 |
% |
| 1551 |
% Grave accent |
| 1552 |
% |
| 1553 |
% \begin{macrocode} |
| 1554 |
\global\setbox\M@box@G=\hbox{% |
| 1555 |
\hss |
| 1556 |
\lower 1.1\M@metra@ex\hbox{\char18}% |
| 1557 |
\hss}% |
| 1558 |
\global\ht\M@box@G=.2\M@metra@ex |
| 1559 |
\global\dp\M@box@G=\z@ |
| 1560 |
% \end{macrocode} |
| 1561 |
% |
| 1562 |
% The symbols that follow are all taken from the math font. |
| 1563 |
% |
| 1564 |
% \begin{macrocode} |
| 1565 |
\begingroup |
| 1566 |
% \end{macrocode} |
| 1567 |
% |
| 1568 |
% Catalexis (large) |
| 1569 |
% |
| 1570 |
% \begin{macrocode} |
| 1571 |
\begingroup$\textstyle |
| 1572 |
\global\setbox\M@box@K=\hbox{% |
| 1573 |
\lower 1.25ex \hbox{\hss\symbol{"5E}\hss}}% |
| 1574 |
$\endgroup |
| 1575 |
% \end{macrocode} |
| 1576 |
% |
| 1577 |
% \begin{macrocode} |
| 1578 |
\relsize{-3}% |
| 1579 |
% \end{macrocode} |
| 1580 |
% |
| 1581 |
% Catalexis (small) |
| 1582 |
% |
| 1583 |
% \begin{macrocode} |
| 1584 |
\begingroup$\scriptscriptstyle |
| 1585 |
\global\setbox\M@box@k=\hbox{% |
| 1586 |
\lower 1.25ex \hbox{\hss\symbol{"5E}\hss}}% |
| 1587 |
$\endgroup |
| 1588 |
% \end{macrocode} |
| 1589 |
% |
| 1590 |
% \begin{macrocode} |
| 1591 |
\dimen0=\f@baselineskip |
| 1592 |
\fontencoding{OMS}\fontfamily{cmsy}\fontseries{m}% |
| 1593 |
\fontshape{n}% |
| 1594 |
\fontsize{\f@size}{\dimen0}% |
| 1595 |
\selectfont |
| 1596 |
% \end{macrocode} |
| 1597 |
% \newpage |
| 1598 |
% Anceps |
| 1599 |
% |
| 1600 |
% \begin{macrocode} |
| 1601 |
\begingroup |
| 1602 |
\relsize{-2}% |
| 1603 |
\global\setbox0=\hbox{\symbol{"02}}% |
| 1604 |
\global\setbox\M@box@a=% |
| 1605 |
\hbox to .675\wd0{\hss\symbol{"02}\hss}% |
| 1606 |
\endgroup |
| 1607 |
\global\ht\M@box@a=.82\ht0 |
| 1608 |
\global\dp\M@box@a=\z@ |
| 1609 |
% \end{macrocode} |
| 1610 |
% |
| 1611 |
% Circle |
| 1612 |
% |
| 1613 |
% \begin{macrocode} |
| 1614 |
\dimen0=\f@baselineskip |
| 1615 |
\begingroup |
| 1616 |
\relsize{+1}% |
| 1617 |
\fontsize{\f@size}{\dimen0}% |
| 1618 |
\selectfont |
| 1619 |
\setbox0=\hbox{\symbol{"0E}}% |
| 1620 |
\global\setbox\M@box@o=\hbox to .733\wd0{\hss% |
| 1621 |
\lower .08\M@metra@ex\hbox{\symbol{"0E}}\hss}% |
| 1622 |
\endgroup |
| 1623 |
\global\ht\M@box@o=.8\ht0 |
| 1624 |
\global\dp\M@box@o=\z@ |
| 1625 |
\endgroup |
| 1626 |
} |
| 1627 |
% \end{macrocode} |
| 1628 |
% |
| 1629 |
% \subsubsection{Generating the symbols} |
| 1630 |
% |
| 1631 |
% All the dirty work done in |\M@makeboxes| pays off now. Putting |
| 1632 |
% the symbols together is child's play, like stacking |
| 1633 |
% LEGO{\kern .1em \raise 1ex \hbox{\tiny \textregistered}} |
| 1634 |
% pieces. |
| 1635 |
% |
| 1636 |
% The general scheme is that, for each user command |\|\textit{x}, |
| 1637 |
% there is a macro |\M@@|\textit{x} that sets the symbol and a macro |
| 1638 |
% |\M@|\textit{x} which calls |\M@@|\textit{x} and takes care of |
| 1639 |
% \textit{inter signa} spacing. |
| 1640 |
% |
| 1641 |
% \begin{macrocode} |
| 1642 |
\def\M@s{\kern \M@dim@s \nobreak} |
| 1643 |
% \end{macrocode} |
| 1644 |
% |
| 1645 |
% \begin{macrocode} |
| 1646 |
\def\M@@m{\copy\M@box@m} |
| 1647 |
\def\M@m{\M@head \M@@m \M@tail} |
| 1648 |
\def\M@M{\M@head \M@acutus \M@@m \M@tail} |
| 1649 |
\def\M@gM{\M@head \M@gravis \M@@m \M@tail} |
| 1650 |
% \end{macrocode} |
| 1651 |
% |
| 1652 |
% \begin{macrocode} |
| 1653 |
\def\M@@lm{\M@@m \kern -\wd\M@box@m \kern \wd\M@box@b \M@@m} |
| 1654 |
\def\M@lm{\M@head \M@@lm \M@tail} |
| 1655 |
% \end{macrocode} |
| 1656 |
% |
| 1657 |
% \begin{macrocode} |
| 1658 |
\def\M@@b{\hbox{\M@en@check{\M@dim@bsink}\copy \M@box@b}} |
| 1659 |
\def\M@b{\M@head \M@@b \M@tail} |
| 1660 |
\def\M@B{\M@head \M@acutus \M@@b \M@tail} |
| 1661 |
\def\M@gB{\M@head \M@gravis \M@@b \M@tail} |
| 1662 |
% \end{macrocode} |
| 1663 |
% |
| 1664 |
% \begin{macrocode} |
| 1665 |
\def\M@a{% |
| 1666 |
\M@head \M@en@check{.4\ht\M@box@a}\copy\M@box@a |
| 1667 |
\M@dirty@trick\M@box@a \M@tail} |
| 1668 |
\def\M@@ma{% |
| 1669 |
\M@en@check{.4\ht\M@box@a}\M@stack{\M@box@m}{\M@box@a}} |
| 1670 |
\def\M@ma{\M@head \M@@ma \M@tail} |
| 1671 |
\def\M@Ma{\M@head \M@acutus \M@@ma \M@tail} |
| 1672 |
\def\M@gMa{\M@head \M@gravis \M@@ma \M@tail} |
| 1673 |
% \end{macrocode} |
| 1674 |
% |
| 1675 |
% \begin{macrocode} |
| 1676 |
\def\M@o{% |
| 1677 |
\M@head \M@en@check{.4\ht\M@box@o}\copy \M@box@o \M@tail} |
| 1678 |
\def\M@oo{\M@o \M@o} |
| 1679 |
% \end{macrocode} |
| 1680 |
% |
| 1681 |
% \begin{macrocode} |
| 1682 |
\def\M@@bb{\M@@b\M@@b} |
| 1683 |
\def\M@bb{\M@head \M@@bb \M@tail} |
| 1684 |
\def\M@Bb{\M@head \M@A{.5}\M@@b \M@@b \M@tail} |
| 1685 |
\def\M@gBb{\M@gravistrue \M@Bb \M@gravisfalse} |
| 1686 |
\def\M@bB{\M@head \M@@b \M@A{.5}\M@@b \M@tail} |
| 1687 |
\def\M@gbB{\M@gravistrue \M@bB \M@gravisfalse} |
| 1688 |
\def\M@BB{\M@head \M@acutus \M@@bb \M@tail} |
| 1689 |
\def\M@gBB{\M@head \M@gravis \M@bb \M@tail} |
| 1690 |
% \end{macrocode} |
| 1691 |
% |
| 1692 |
% \begin{macrocode} |
| 1693 |
\def\M@@bm{% |
| 1694 |
\setbox0=\M@stack{\M@box@b}{\M@box@m}% |
| 1695 |
\dimen0=\M@dim@bsink |
| 1696 |
\advance \dimen0 by \M@intervallum\M@metra@ex |
| 1697 |
\advance \dimen0 by \ht\M@box@m |
| 1698 |
\M@en@check{\dimen0}\box0\relax |
| 1699 |
} |
| 1700 |
\def\M@bm{\M@head \M@@bm \M@tail} |
| 1701 |
\def\M@Bm{\M@head \M@acutus \M@@bm \M@tail} |
| 1702 |
\def\M@gBm{\M@head \M@gravis \M@bm \M@tail} |
| 1703 |
% \end{macrocode} |
| 1704 |
% |
| 1705 |
% \begin{macrocode} |
| 1706 |
\def\M@@mb{% |
| 1707 |
\setbox0=\M@stack{\M@box@m}{\M@box@b}% |
| 1708 |
\M@en@check{\M@dim@bsink}\box0\relax |
| 1709 |
} |
| 1710 |
\def\M@mb{\M@head \M@@mb \M@tail} |
| 1711 |
\def\M@Mb{\M@head \M@acutus \M@@mb \M@tail} |
| 1712 |
\def\M@gMb{\M@head \M@gravis \M@mb \M@tail} |
| 1713 |
% \end{macrocode} |
| 1714 |
% |
| 1715 |
% \begin{macrocode} |
| 1716 |
\def\M@@mbb{\M@@mb \kern -\wd\M@box@m \kern \wd\M@box@b \M@@mb} |
| 1717 |
\def\M@mbb{\M@head \M@@mbb \M@tail} |
| 1718 |
\def\M@Mbb{\M@head \M@acutus \M@@mbb \M@tail} |
| 1719 |
\def\M@mBb{\M@head \M@acutus[.25]\M@@mbb \M@tail} |
| 1720 |
\def\M@mbB{\M@head \M@acutus[.75]\M@@mbb \M@tail} |
| 1721 |
\def\M@gMbb{\M@head \M@gravis \M@@mbb \M@tail} |
| 1722 |
\def\M@gmBb{\M@head \M@gravis[.25]\M@@mbb \M@tail} |
| 1723 |
\def\M@gmbB{\M@head \M@gravis[.75]\M@@mbb \M@tail} |
| 1724 |
% \end{macrocode} |
| 1725 |
% |
| 1726 |
% \begin{macrocode} |
| 1727 |
\def\M@@bbm{\M@@bm \kern -\wd\M@box@m \kern \wd\M@box@b \M@@bm} |
| 1728 |
\def\M@bbm{\M@head \M@@bbm \M@tail} |
| 1729 |
\def\M@BBm{\M@head \M@acutus \M@@bbm \M@tail} |
| 1730 |
\def\M@Bbm{\M@head \M@acutus[.25]\M@@bbm \M@tail} |
| 1731 |
\def\M@bBm{\M@head \M@acutus[.75]\M@@bbm \M@tail} |
| 1732 |
\def\M@gBBm{\M@head \M@gravis \M@@bbm \M@tail} |
| 1733 |
\def\M@gBbm{\M@head \M@gravis[.25]\M@@bbm \M@tail} |
| 1734 |
\def\M@gbBm{\M@head \M@gravis[.75]\M@@bbm \M@tail} |
| 1735 |
% \end{macrocode} |
| 1736 |
% |
| 1737 |
% \begin{macrocode} |
| 1738 |
\def\M@@bba{% |
| 1739 |
\edef\M@opt@save{\M@opt@style}% |
| 1740 |
\def\M@opt@style{0}% |
| 1741 |
\setbox0=\hbox{\M@@bb}% |
| 1742 |
\edef\M@opt@style{\M@opt@save}% |
| 1743 |
\setbox0=\hbox to \wd0{\hss\M@stack{0}{\M@box@a}\hss}% |
| 1744 |
\M@en@check{.5\ht\M@box@a}\box0\relax |
| 1745 |
} |
| 1746 |
\def\M@bba{\M@head \M@@bba \M@tail} |
| 1747 |
% \end{macrocode} |
| 1748 |
% |
| 1749 |
% \begin{macrocode} |
| 1750 |
\def\M@@bbb{% |
| 1751 |
\edef\M@opt@save{\M@opt@style}% |
| 1752 |
\def\M@opt@style{0}% |
| 1753 |
\setbox0=\hbox{\M@@bb}% |
| 1754 |
\edef\M@opt@style{\M@opt@save}% |
| 1755 |
\setbox0=\hbox to \wd0{\hss\M@stack{0}{\M@box@b}\hss}% |
| 1756 |
\M@en@check{\M@dim@bsink}\box0\relax |
| 1757 |
} |
| 1758 |
\def\M@bbb{\M@head \M@@bbb \M@tail} |
| 1759 |
% \end{macrocode} |
| 1760 |
% |
| 1761 |
% This strange symbol needs some extra work. |
| 1762 |
% |
| 1763 |
% \begin{macrocode} |
| 1764 |
\def\M@bbmb{% |
| 1765 |
\M@head |
| 1766 |
\dimen0=\M@intervallum\M@metra@ex |
| 1767 |
\if 2\M@opt@style % the [En] option |
| 1768 |
\edef\M@opt@save{\M@opt@style}% |
| 1769 |
\def\M@opt@style{0}% |
| 1770 |
\setbox0=\hbox{\M@@lm}% |
| 1771 |
\copy0 |
| 1772 |
\kern -\wd0 |
| 1773 |
\dimen1=\dimen0 |
| 1774 |
\advance \dimen1 by \ht\M@box@b |
| 1775 |
\lower \dimen1 \hbox to \wd0{\hss\M@@b\hss}% |
| 1776 |
\global\M@dim@sunk=\dimen1 |
| 1777 |
\kern -\wd0 |
| 1778 |
\dimen1=\dimen0 |
| 1779 |
\advance \dimen1 by \ht\M@box@m |
| 1780 |
\raise \dimen1 \hbox to \wd0{\hss\M@@bb\hss}% |
| 1781 |
\edef\M@opt@style{\M@opt@save}% |
| 1782 |
\else |
| 1783 |
\edef\M@opt@save{\M@opt@style}% |
| 1784 |
\def\M@opt@style{0}% |
| 1785 |
\setbox0=\hbox{\M@@bbm}% |
| 1786 |
\edef\M@opt@style{\M@opt@save}% |
| 1787 |
\global\M@dim@sunk=\z@ |
| 1788 |
\hbox to \wd0{\hss\M@@b\hss}% |
| 1789 |
\kern -\wd0 |
| 1790 |
\advance \dimen0 by \ht\M@box@b |
| 1791 |
\advance \dimen0 by -\M@dim@sunk |
| 1792 |
\raise \dimen0 \box0 |
| 1793 |
\fi |
| 1794 |
\M@tail |
| 1795 |
} |
| 1796 |
% \end{macrocode} |
| 1797 |
% |
| 1798 |
% \begin{macrocode} |
| 1799 |
\def\M@p{% |
| 1800 |
\M@head |
| 1801 |
\if 0\M@opt@style |
| 1802 |
\relax |
| 1803 |
\else |
| 1804 |
\lower .5\ht\M@box@p |
| 1805 |
\fi |
| 1806 |
\copy\M@box@p |
| 1807 |
\M@tail |
| 1808 |
} |
| 1809 |
% \end{macrocode} |
| 1810 |
% |
| 1811 |
% \begin{macrocode} |
| 1812 |
\def\M@@pm{% |
| 1813 |
\setbox0=\hbox{\hss\copy\M@box@p\hss}% |
| 1814 |
\M@stack{0}{\M@box@m}% |
| 1815 |
} |
| 1816 |
\def\M@pm{\M@head \M@@pm \M@tail} |
| 1817 |
% \end{macrocode} |
| 1818 |
% |
| 1819 |
% \begin{macrocode} |
| 1820 |
\def\M@@ppm{% |
| 1821 |
\setbox0=\hbox{\copy\M@box@p\kern .33\wd\M@box@p\copy\M@box@p}% |
| 1822 |
\M@stack{0}{\M@box@m}% |
| 1823 |
} |
| 1824 |
\def\M@ppm{\M@head \M@@ppm \M@tail} |
| 1825 |
% \end{macrocode} |
| 1826 |
% |
| 1827 |
% \begin{macrocode} |
| 1828 |
\def\M@pppm{% |
| 1829 |
\M@head |
| 1830 |
\setbox0=\hbox{\M@@ppm}% |
| 1831 |
\ht0=1.2\ht0 |
| 1832 |
\M@stack{\M@box@p}{0}% |
| 1833 |
\M@tail |
| 1834 |
} |
| 1835 |
% \end{macrocode} |
| 1836 |
% |
| 1837 |
% \begin{macrocode} |
| 1838 |
\def\M@@pp{% |
| 1839 |
\setbox0=\vbox{\copy\M@box@p |
| 1840 |
\nointerlineskip\kern 2\M@dim@bsink |
| 1841 |
\copy\M@box@p |
| 1842 |
}% |
| 1843 |
\M@en@caesura{.25\M@dim@bsink}% |
| 1844 |
} |
| 1845 |
\def\M@pp{\kern \M@dim@c@ext \M@@pp \kern \M@dim@c@ext |
| 1846 |
\M@interfalse} |
| 1847 |
\def\M@Pp{\kern \M@dim@c@Ext \M@@pp \kern \M@dim@c@Ext |
| 1848 |
\M@interfalse} |
| 1849 |
% \end{macrocode} |
| 1850 |
% |
| 1851 |
% \begin{macrocode} |
| 1852 |
\def\M@@pxp{% |
| 1853 |
\setbox0=\vbox{\vskip 1.125\M@dim@bsink |
| 1854 |
\nointerlineskip \vskip .5\ht\M@box@p |
| 1855 |
\copy\M@box@p |
| 1856 |
\nointerlineskip \vskip 2.25\M@dim@bsink |
| 1857 |
\copy\M@box@p |
| 1858 |
\nointerlineskip \vskip 1.125\M@dim@bsink |
| 1859 |
\nointerlineskip \vskip .5\ht\M@box@p |
| 1860 |
}% |
| 1861 |
\M@en@caesura{1\M@dim@bsink}% |
| 1862 |
} |
| 1863 |
\def\M@pxp{\kern \M@dim@c@ext \M@@pxp \kern \M@dim@c@ext |
| 1864 |
\M@interfalse} |
| 1865 |
\def\M@Pxp{\kern \M@dim@c@Ext \M@@pxp \kern \M@dim@c@Ext |
| 1866 |
\M@interfalse} |
| 1867 |
% \end{macrocode} |
| 1868 |
% |
| 1869 |
% \begin{macrocode} |
| 1870 |
\def\M@@ppp{% |
| 1871 |
\setbox0=\vbox{\copy\M@box@p |
| 1872 |
\nointerlineskip\vskip 2.25\M@dim@bsink |
| 1873 |
\copy\M@box@p |
| 1874 |
\nointerlineskip\vskip 2.25\M@dim@bsink |
| 1875 |
\copy\M@box@p |
| 1876 |
}% |
| 1877 |
\M@en@caesura{1\M@dim@bsink}% |
| 1878 |
} |
| 1879 |
\def\M@ppp{\kern \M@dim@c@ext \M@@ppp \kern \M@dim@c@ext |
| 1880 |
\M@interfalse} |
| 1881 |
\def\M@Ppp{\kern \M@dim@c@Ext \M@@ppp \kern \M@dim@c@Ext |
| 1882 |
\M@interfalse} |
| 1883 |
% \end{macrocode} |
| 1884 |
% |
| 1885 |
% \begin{macrocode} |
| 1886 |
\def\M@@pppp{% |
| 1887 |
\setbox0=\vbox{\copy\M@box@p |
| 1888 |
\nointerlineskip\vskip 1.26\M@dim@bsink |
| 1889 |
\copy\M@box@p |
| 1890 |
\nointerlineskip\vskip 1.26\M@dim@bsink |
| 1891 |
\copy\M@box@p |
| 1892 |
\nointerlineskip\vskip 1.26\M@dim@bsink |
| 1893 |
\copy\M@box@p |
| 1894 |
}% |
| 1895 |
\M@en@caesura{1\M@dim@bsink}% |
| 1896 |
} |
| 1897 |
\def\M@pppp{\kern \M@dim@c@ext \M@@pppp \kern \M@dim@c@ext |
| 1898 |
\M@interfalse} |
| 1899 |
\def\M@Pppp{\kern \M@dim@c@Ext \M@@pppp \kern \M@dim@c@Ext |
| 1900 |
\M@interfalse} |
| 1901 |
% \end{macrocode} |
| 1902 |
% |
| 1903 |
% \begin{macrocode} |
| 1904 |
\def\M@@ppppp{% |
| 1905 |
\setbox0=\vbox{\copy\M@box@p |
| 1906 |
\nointerlineskip\vskip .775\M@dim@bsink |
| 1907 |
\copy\M@box@p |
| 1908 |
\nointerlineskip\vskip .775\M@dim@bsink |
| 1909 |
\copy\M@box@p |
| 1910 |
\nointerlineskip\vskip .775\M@dim@bsink |
| 1911 |
\copy\M@box@p |
| 1912 |
\nointerlineskip\vskip .775\M@dim@bsink |
| 1913 |
\copy\M@box@p |
| 1914 |
}% |
| 1915 |
\M@en@caesura{\M@dim@bsink}% |
| 1916 |
} |
| 1917 |
\def\M@ppppp{\kern \M@dim@c@ext \M@@ppppp \kern \M@dim@c@ext |
| 1918 |
\M@interfalse} |
| 1919 |
\def\M@Ppppp{\kern \M@dim@c@Ext \M@@ppppp \kern \M@dim@c@Ext |
| 1920 |
\M@interfalse} |
| 1921 |
% \end{macrocode} |
| 1922 |
% |
| 1923 |
% \begin{macrocode} |
| 1924 |
\def\M@@vppm{% |
| 1925 |
\setbox0=\hbox{\M@@pm}% |
| 1926 |
\ht0=1.3\ht0 |
| 1927 |
\M@stack{\M@box@p}{0}% |
| 1928 |
} |
| 1929 |
\def\M@vppm{\M@head \M@@vppm \M@tail} |
| 1930 |
% \end{macrocode} |
| 1931 |
% |
| 1932 |
% \begin{macrocode} |
| 1933 |
\def\M@@vpppm{% |
| 1934 |
\setbox0=\hbox{\M@@vppm}% |
| 1935 |
\ht0=1.15\ht0 |
| 1936 |
\M@stack{\M@box@p}{0}% |
| 1937 |
} |
| 1938 |
\def\M@vpppm{\M@head \M@@vpppm \M@tail} |
| 1939 |
% \end{macrocode} |
| 1940 |
% |
| 1941 |
% \begin{macrocode} |
| 1942 |
\def\M@caesura{% |
| 1943 |
\setbox0=\hbox{% |
| 1944 |
\vrule width .03em depth .21\M@metra@ex |
| 1945 |
height 1.25\M@metra@ex |
| 1946 |
}% |
| 1947 |
\M@en@caesura{\z@}% |
| 1948 |
} |
| 1949 |
% \end{macrocode} |
| 1950 |
% |
| 1951 |
% \begin{macrocode} |
| 1952 |
\def\M@C{\kern \M@dim@c@Ext \M@caesura \kern \M@dim@c@Ext |
| 1953 |
\M@interfalse} |
| 1954 |
\def\M@c{\kern \M@dim@c@ext \M@caesura \kern \M@dim@c@ext |
| 1955 |
\M@interfalse} |
| 1956 |
% \end{macrocode} |
| 1957 |
% |
| 1958 |
% \begin{macrocode} |
| 1959 |
\def\M@cc{\kern \M@dim@c@ext \M@caesura \kern \M@dim@c@int |
| 1960 |
\M@caesura \kern \M@dim@c@ext |
| 1961 |
\M@interfalse} |
| 1962 |
\def\M@Cc{\kern \M@dim@c@Ext \M@caesura \kern \M@dim@c@int |
| 1963 |
\M@caesura \kern \M@dim@c@Ext |
| 1964 |
\M@interfalse} |
| 1965 |
% \end{macrocode} |
| 1966 |
% |
| 1967 |
% \begin{macrocode} |
| 1968 |
\def\M@ccc{\kern \M@dim@c@ext \M@caesura \kern \M@dim@c@int |
| 1969 |
\M@caesura \kern \M@dim@c@int |
| 1970 |
\M@caesura \kern \M@dim@c@ext |
| 1971 |
\M@interfalse} |
| 1972 |
\def\M@Ccc{\kern \M@dim@c@Ext \M@caesura \kern \M@dim@c@int |
| 1973 |
\M@caesura \kern \M@dim@c@int |
| 1974 |
\M@caesura \kern \M@dim@c@Ext |
| 1975 |
\M@interfalse} |
| 1976 |
% \end{macrocode} |
| 1977 |
% |
| 1978 |
% \begin{macrocode} |
| 1979 |
\def\M@v{% |
| 1980 |
\begingroup |
| 1981 |
\M@text@fontsize |
| 1982 |
\setbox0=\hbox{,},\kern -\wd0 \kern \M@dim@s |
| 1983 |
\endgroup |
| 1984 |
} |
| 1985 |
% \end{macrocode} |
| 1986 |
% |
| 1987 |
% \begin{macrocode} |
| 1988 |
\def\M@r{\M@bigfalse\M@@r} |
| 1989 |
\def\M@R{\M@bigtrue\M@@r} |
| 1990 |
\newcommand{\M@@r}[1][0]{\leavevmode |
| 1991 |
\M@head |
| 1992 |
\setbox0=\hbox{% |
| 1993 |
$\ifM@big \scriptstyle |
| 1994 |
\else \scriptscriptstyle \fi \sim$\unskip}% |
| 1995 |
\dimen0=\ifM@big -.05\else .1\fi\M@metra@ex |
| 1996 |
\advance \dimen0 by #1\M@metra@ex |
| 1997 |
\if 0\M@opt@style |
| 1998 |
\relax |
| 1999 |
\else |
| 2000 |
\advance \dimen0 by -\M@dim@bsink |
| 2001 |
\fi |
| 2002 |
\raisebox {\dimen0}[\z@][\z@]{\copy0}% |
| 2003 |
\M@dirty@trick 0\relax |
| 2004 |
\M@tail |
| 2005 |
} |
| 2006 |
% \end{macrocode} |
| 2007 |
% |
| 2008 |
% \begin{macrocode} |
| 2009 |
\def\M@t{\M@bigfalse\M@@t} |
| 2010 |
\def\M@T{\M@bigtrue\M@@t} |
| 2011 |
\newcommand{\M@@t}[1][0]{\leavevmode |
| 2012 |
\M@head |
| 2013 |
\setbox0=\hbox{% |
| 2014 |
$\ifM@big \scriptstyle \else |
| 2015 |
\scriptscriptstyle \fi \otimes$\unskip}% |
| 2016 |
\dimen0=\ifM@big -.05 \else .1 \fi \M@metra@ex |
| 2017 |
\advance \dimen0 by #1\M@metra@ex |
| 2018 |
\if 0\M@opt@style |
| 2019 |
\relax |
| 2020 |
\else |
| 2021 |
\advance \dimen0 by -\M@dim@bsink |
| 2022 |
\fi |
| 2023 |
\raisebox {\dimen0}[\z@][\z@]{\copy0}% |
| 2024 |
\M@dirty@trick 0\relax |
| 2025 |
\M@tail |
| 2026 |
} |
| 2027 |
% \end{macrocode} |
| 2028 |
% |
| 2029 |
% \begin{macrocode} |
| 2030 |
\def\M@x{% |
| 2031 |
\M@head |
| 2032 |
\setbox0=\vbox{\copy\M@box@p |
| 2033 |
\nointerlineskip\kern 2\M@dim@bsink |
| 2034 |
\copy\M@box@p |
| 2035 |
}% |
| 2036 |
\setbox0=\hbox{\copy0\kern \wd\M@box@p \copy0}% |
| 2037 |
\M@en@check{.5\ht0}% |
| 2038 |
\copy0 |
| 2039 |
\M@tail |
| 2040 |
} |
| 2041 |
% \end{macrocode} |
| 2042 |
% |
| 2043 |
% \begin{macrocode} |
| 2044 |
\def\M@tsmb{\M@head \copy\M@box@tsmb \M@tail} |
| 2045 |
\def\M@tsbm{\M@head \copy\M@box@tsbm \M@tail} |
| 2046 |
\def\M@tsmm{\M@head \copy\M@box@tsmm \M@tail} |
| 2047 |
\def\M@ps{\M@head \copy\M@box@ps \M@tail} |
| 2048 |
% \end{macrocode} |
| 2049 |
% |
| 2050 |
% \subsubsection{Service macros} |
| 2051 |
% |
| 2052 |
% Switch to CMR OT1. |
| 2053 |
% |
| 2054 |
% \begin{macrocode} |
| 2055 |
\def\M@cmr{\fontencoding{OT1}\fontfamily{cmr}\fontseries{m}% |
| 2056 |
\fontshape{n}\selectfont |
| 2057 |
} |
| 2058 |
% \end{macrocode} |
| 2059 |
% |
| 2060 |
% Generate \textit{inter signa} spacing. |
| 2061 |
% |
| 2062 |
% \begin{macrocode} |
| 2063 |
\def\M@head{\leavevmode |
| 2064 |
\ifM@inter |
| 2065 |
\expandafter\hskip\M@interS\M@dim@m\relax |
| 2066 |
\fi |
| 2067 |
\M@interfalse |
| 2068 |
\M@vert@barfalse |
| 2069 |
} |
| 2070 |
\def\M@tail{\M@intertrue} |
| 2071 |
% \end{macrocode} |
| 2072 |
% |
| 2073 |
% Stack one box on top of another, keeping them centered |
| 2074 |
% around the vertical axis. |
| 2075 |
% |
| 2076 |
% \begin{macrocode} |
| 2077 |
\def\M@stack#1#2{% |
| 2078 |
\hbox{% |
| 2079 |
\dimen0=\wd#1\relax |
| 2080 |
\ifdim \dimen0<\wd#2\relax |
| 2081 |
\dimen0=\wd#2\relax |
| 2082 |
\fi |
| 2083 |
\dimen1=\ht#2\relax |
| 2084 |
\advance \dimen1 by \M@intervallum\M@metra@ex |
| 2085 |
\hbox to \dimen0{\hss\copy#2\hss}% |
| 2086 |
\kern -\dimen0 |
| 2087 |
\raise \dimen1 \hbox to \dimen0{\hss\copy#1\hss}% |
| 2088 |
}% |
| 2089 |
} |
| 2090 |
% \end{macrocode} |
| 2091 |
% |
| 2092 |
% This macro (used by |\tie| and |\n|) stacks |\box1| over |
| 2093 |
% (|\dimen2|\textgreater0) or under (|\dimen2|\textless0) |\box0|. |
| 2094 |
% |\dimen2| holds the amount by which to raise/lower; |\dimen3| the |
| 2095 |
% (possible) correction for \textit{inter signa} space. |
| 2096 |
% |
| 2097 |
% |\box0| is actually set only if the parameter is 0. |
| 2098 |
% |
| 2099 |
% \begin{macrocode} |
| 2100 |
\def\M@Stack#1{% |
| 2101 |
\ifnum #1=\z@ |
| 2102 |
\copy0 |
| 2103 |
\fi |
| 2104 |
\dimen0=\wd0 |
| 2105 |
\advance \dimen0 by -\dimen3 |
| 2106 |
\advance \dimen0 by \wd1 |
| 2107 |
\kern -.5\dimen0 |
| 2108 |
\raisebox {\dimen2}[\z@][\z@]{\copy1}% |
| 2109 |
\dimen0=\wd0 |
| 2110 |
\advance \dimen0 by -\wd1 |
| 2111 |
\advance \dimen0 by -\dimen3 |
| 2112 |
\dimen0=.5\dimen0 |
| 2113 |
\kern \dimen0\relax |
| 2114 |
} |
| 2115 |
% \end{macrocode} |
| 2116 |
% |
| 2117 |
% If using the English style, lower the box and remember the amount |
| 2118 |
% by which it has been lowered. |
| 2119 |
% |
| 2120 |
% \begin{macrocode} |
| 2121 |
\def\M@en@check#1{% |
| 2122 |
\if 0\M@opt@style |
| 2123 |
\relax |
| 2124 |
\else |
| 2125 |
\global\M@dim@sunk=#1\relax |
| 2126 |
\lower #1\relax |
| 2127 |
\fi |
| 2128 |
} |
| 2129 |
% \end{macrocode} |
| 2130 |
% |
| 2131 |
% If using the English style, lower the \textit{caesura} symbols so |
| 2132 |
% that they come out in the same position as in the standard style. |
| 2133 |
% |
| 2134 |
% \begin{macrocode} |
| 2135 |
\def\M@en@caesura#1{% |
| 2136 |
\dimen0=\if 0\M@opt@style 0\else .5\fi\M@text@ex |
| 2137 |
\advance \dimen0 by \M@subS\M@text@ex |
| 2138 |
\advance \dimen0 by #1\relax |
| 2139 |
\lower \dimen0 \copy0 |
| 2140 |
\M@vert@bartrue |
| 2141 |
} |
| 2142 |
% \end{macrocode} |
| 2143 |
% |
| 2144 |
% \subsubsection{Placing marks on symbols} |
| 2145 |
% |
| 2146 |
% Put an accent over a symbol. |
| 2147 |
% |
| 2148 |
% \begin{macrocode} |
| 2149 |
\newcommand{\M@acutus}[2][.5]{% |
| 2150 |
\M@head \M@A{#1}{#2}\M@tail} |
| 2151 |
\newcommand{\M@gravis}[2][.5]{% |
| 2152 |
\M@gravistrue \M@A{#1}{#2}\M@gravisfalse} |
| 2153 |
% \end{macrocode} |
| 2154 |
% |
| 2155 |
% \begin{macrocode} |
| 2156 |
\def\M@A#1#2{% |
| 2157 |
\setbox1=\hbox{#2}% |
| 2158 |
\dimen1=\ht1 |
| 2159 |
\dimen2=\ht\M@box@b |
| 2160 |
\if 0\M@opt@style |
| 2161 |
\relax |
| 2162 |
\else |
| 2163 |
\advance \dimen2 by -\M@dim@sunk |
| 2164 |
\fi |
| 2165 |
\ifdim \dimen1<\dimen2 |
| 2166 |
\dimen1=\dimen2 |
| 2167 |
\fi |
| 2168 |
\copy1\relax |
| 2169 |
\dimen0=#1\wd1 |
| 2170 |
\advance \dimen0 by -1.5\wd1 |
| 2171 |
\kern \dimen0 |
| 2172 |
\raise \dimen1 |
| 2173 |
\hbox to \wd1{% |
| 2174 |
\hss |
| 2175 |
\ifM@gravis |
| 2176 |
\ifdim \wd1>\M@dim@m |
| 2177 |
\kern -.1\wd\M@box@G |
| 2178 |
\fi |
| 2179 |
\copy\M@box@G |
| 2180 |
\else |
| 2181 |
\ifdim \wd1>\M@dim@m |
| 2182 |
\kern .1\wd\M@box@A |
| 2183 |
\fi |
| 2184 |
\copy\M@box@A |
| 2185 |
\fi |
| 2186 |
\hss |
| 2187 |
}% |
| 2188 |
\dimen0=#1\wd1 |
| 2189 |
\advance \dimen0 by -.5\wd1 |
| 2190 |
\kern -\dimen0\relax |
| 2191 |
} |
| 2192 |
% \end{macrocode} |
| 2193 |
% |
| 2194 |
% Put the mark for \textit{catalexis} under a symbol. |
| 2195 |
% |
| 2196 |
% \begin{macrocode} |
| 2197 |
\def\M@k#1{\M@head \M@@Kk{#1}{\M@box@k}\relax \M@tail} |
| 2198 |
\def\M@K#1{\M@head \M@@Kk{#1}{\M@box@K}\relax \M@tail} |
| 2199 |
% \end{macrocode} |
| 2200 |
% |
| 2201 |
% \begin{macrocode} |
| 2202 |
\def\M@@Kk#1#2{% |
| 2203 |
\global\M@dim@sunk=\z@ |
| 2204 |
\setbox1=\hbox{#1}% |
| 2205 |
\dimen1=.667\ht\M@box@b |
| 2206 |
\ifx #2\M@box@K |
| 2207 |
\dimen1=1.33\dimen1 |
| 2208 |
\fi |
| 2209 |
\advance \dimen1 by \M@dim@sunk |
| 2210 |
#1\relax |
| 2211 |
\kern -\wd1 |
| 2212 |
\raisebox {-\dimen1}[\z@][\z@]% |
| 2213 |
{\hbox to \wd1{\hss\copy#2\hss}}% |
| 2214 |
} |
| 2215 |
% \end{macrocode} |
| 2216 |
% |
| 2217 |
% Put some kind of quotation marks around the argument . |
| 2218 |
% |
| 2219 |
% \begin{macrocode} |
| 2220 |
\def\M@q#1#2{\M@head \M@@q{#1}{0}{#2}\relax \M@tail} |
| 2221 |
\def\M@Q#1#2{\M@head \M@@q{#1}{1}{#2}\relax \M@tail} |
| 2222 |
% \end{macrocode} |
| 2223 |
% |
| 2224 |
% \begin{macrocode} |
| 2225 |
\def\M@@q#1#2#3{% |
| 2226 |
\dimen0=\z@ |
| 2227 |
\if 0\M@opt@style |
| 2228 |
\relax |
| 2229 |
\else |
| 2230 |
\advance \dimen0 by -\M@dim@bsink |
| 2231 |
\fi |
| 2232 |
\dimen1=\z@ |
| 2233 |
\def\M@q@size{4}% |
| 2234 |
\def\M@Q@size{2}% |
| 2235 |
\ifx !#1\relax |
| 2236 |
\def\M@q@ante{\M@cmr\texttt{\char"0D}}% |
| 2237 |
\def\M@q@post{\M@cmr\texttt{\char"0D}}% |
| 2238 |
\dimen1=-.075em |
| 2239 |
\else \ifx '#1\relax |
| 2240 |
\def\M@q@ante{\M@cmr\char"60}% |
| 2241 |
\def\M@q@post{\M@cmr\char"27}% |
| 2242 |
\else \ifx (#1\relax |
| 2243 |
\def\M@q@ante{% |
| 2244 |
\fontencoding{OML}\fontfamily{cmm}\fontseries{m}% |
| 2245 |
\fontshape{it}\selectfont\symbol{"2C}}% |
| 2246 |
\def\M@q@post{% |
| 2247 |
\fontencoding{OML}\fontfamily{cmm}\fontseries{m}% |
| 2248 |
\fontshape{it}\selectfont\symbol{"2D}}% |
| 2249 |
\def\M@q@size{6}% |
| 2250 |
\def\M@Q@size{5}% |
| 2251 |
\advance \dimen0 by .33ex |
| 2252 |
\dimen1=.05em |
| 2253 |
\else \ifx "#1\relax |
| 2254 |
\def\M@q@ante{\M@cmr\char"5C}% |
| 2255 |
\def\M@q@post{\M@cmr\char"22}% |
| 2256 |
\dimen1=.05em |
| 2257 |
\else \ifx <#1\relax |
| 2258 |
\def\M@q@ante{% |
| 2259 |
\fontencoding{U}\fontfamily{lasy}% |
| 2260 |
\fontseries{b}\fontshape{n}% |
| 2261 |
\selectfont\symbol{"28}% |
| 2262 |
\kern -.2em\symbol{"28}\kern .1em\relax}% |
| 2263 |
\def\M@q@post{% |
| 2264 |
\fontencoding{U}\fontfamily{lasy}% |
| 2265 |
\fontseries{b}\fontshape{n}% |
| 2266 |
\selectfont\kern .1em\symbol{"29}% |
| 2267 |
\kern -.2em\symbol{"29}}% |
| 2268 |
\def\M@q@size{5}% |
| 2269 |
\def\M@Q@size{3}% |
| 2270 |
\dimen1=-.05em |
| 2271 |
\advance \dimen0 by .33ex |
| 2272 |
\else |
| 2273 |
\PackageError{metre}% |
| 2274 |
{Invalid character after % |
| 2275 |
\protect\q \space or \protect\Q}% |
| 2276 |
{Valid characters are: \protect( % |
| 2277 |
\protect' \protect" % |
| 2278 |
\protect! \protect<}% |
| 2279 |
\fi\fi\fi\fi\fi |
| 2280 |
\raise \dimen0 \hbox{% |
| 2281 |
\begingroup |
| 2282 |
\relsize{-\if 1#2\M@Q@size\else \M@q@size\fi}% |
| 2283 |
\setbox0=\hbox{\M@q@ante}% |
| 2284 |
\copy0 |
| 2285 |
\endgroup |
| 2286 |
}% |
| 2287 |
\M@dirty@trick 0\relax |
| 2288 |
\leavevmode \kern \dimen1 |
| 2289 |
{\M@interfalse#3}% |
| 2290 |
\leavevmode \kern \dimen1 |
| 2291 |
\raise \dimen0 \hbox{% |
| 2292 |
\begingroup |
| 2293 |
\relsize{-\if 1#2\M@Q@size\else \M@q@size\fi}% |
| 2294 |
\setbox0=\hbox{\M@q@post}% |
| 2295 |
\copy0 |
| 2296 |
\endgroup |
| 2297 |
}% |
| 2298 |
\M@dirty@trick 0\relax |
| 2299 |
} |
| 2300 |
% \end{macrocode} |
| 2301 |
% |
| 2302 |
% Put a \textit{caesura} in the middle of a symbol. |
| 2303 |
% |
| 2304 |
% \begin{macrocode} |
| 2305 |
\def\M@d#1{\M@head \M@@d#1\relax \M@tail} |
| 2306 |
\def\M@@d#1{% |
| 2307 |
\setbox1=\hbox{#1}% |
| 2308 |
#1\relax \kern -\wd1 |
| 2309 |
\hbox to \wd1{\hfill \M@caesura \hfill}% |
| 2310 |
} |
| 2311 |
% \end{macrocode} |
| 2312 |
% |
| 2313 |
% Raise text to superscript. |
| 2314 |
% |
| 2315 |
% \begin{macrocode} |
| 2316 |
\newcommand{\M@super@metra}[2][0]{% |
| 2317 |
\begingroup |
| 2318 |
\tiny |
| 2319 |
\setbox0=\hbox{#2}% |
| 2320 |
\dimen0=1.25\M@metra@ex |
| 2321 |
\advance \dimen0 by |
| 2322 |
\if 0\M@opt@style |
| 2323 |
\z@ |
| 2324 |
\else |
| 2325 |
\ifM@vert@bar -.5\M@text@ex \else -\M@dim@bsink \fi |
| 2326 |
\fi |
| 2327 |
\advance \dimen0 by \M@subS\M@text@ex |
| 2328 |
\advance \dimen0 by -\ht0 |
| 2329 |
\advance \dimen0 by #1\M@metra@ex |
| 2330 |
\raise \dimen0 \hbox{\kern .05\wd0#2}% |
| 2331 |
\endgroup |
| 2332 |
\M@vert@barfalse |
| 2333 |
} |
| 2334 |
% \end{macrocode} |
| 2335 |
% |
| 2336 |
% \subsubsection{A very dirty trick} |
| 2337 |
% |
| 2338 |
% This seemingly absurd piece of code solves a very annoying and |
| 2339 |
% mysterious problem that occurs after symbols taken from the math font. |
| 2340 |
% The problem can be seen by turning the macro into a no-op and |
| 2341 |
% compiling this text:\par |
| 2342 |
% \quad\quad |\metra{\a\bbm}\par\metra{\a\bbm}|\par |
| 2343 |
% Depending on the DVI driver and the font in use, you may see nothing amiss; |
| 2344 |
% but, more likely, you will find that in one of the metrical schemes |
| 2345 |
% (usually the second) a very thin space has crept under the first |
| 2346 |
% \textit{macron}. The problem seems to arise from the change of |
| 2347 |
% |\baselineskip| due to the font switch and, from some experiments |
| 2348 |
% I have done, I got the impression that it occurs within the DVI |
| 2349 |
% driver itself (I could see nothing in the DVI file that would account for |
| 2350 |
% the thin space). In any case, this cannot be considered a bug, |
| 2351 |
% as Knuth obviously had no reason to envisage the unorthodox use to which |
| 2352 |
% math symbols are put in |metre|. |
| 2353 |
% |
| 2354 |
% After spending an inordinate amount of time hunting for a solution, |
| 2355 |
% I finally hit upon the idea behind this dirty trick. |
| 2356 |
% The question mark, being raised by 1 metre (actually 1 metre plus |
| 2357 |
% a whisker), buffers the shock of the font switch and then vanishes |
| 2358 |
% harmlessly into empty space. |
| 2359 |
% |
| 2360 |
% The macro parameter is the identifier of the box containing the math symbol. |
| 2361 |
% \begin{macrocode} |
| 2362 |
\def\M@dirty@trick#1{% |
| 2363 |
\kern -\wd#1\relax |
| 2364 |
\raisebox {100cm}[\z@][\z@]{\hbox to \wd#1{\hss?\hss}}% |
| 2365 |
} |
| 2366 |
% \end{macrocode} |
| 2367 |
% |
| 2368 |
% \subsubsection{Placing annotations on symbols} |
| 2369 |
% |
| 2370 |
% \begin{macrocode} |
| 2371 |
\newcommand{\M@n}[3][1]{\M@@n{\hss#2\hss}{#3}{0}{#1}{0}} |
| 2372 |
\newcommand{\M@ni}[3][1]{\M@@n{\hss#2\hss}{#3}{1}{#1}{0}} |
| 2373 |
% \end{macrocode} |
| 2374 |
% |
| 2375 |
% \begin{macrocode} |
| 2376 |
\def\M@@n#1#2#3#4#5{% |
| 2377 |
% \end{macrocode} |
| 2378 |
% All the work is done by |\M@@n|: |
| 2379 |
% |
| 2380 |
% |#1| is the text to be set above or below |#2| depending on the value |
| 2381 |
% of |#3| (0~= above, 1 = below) at a distance that may be modified |
| 2382 |
% by |#4|. |
| 2383 |
% |
| 2384 |
% The box containing |#2| is generated only if |#5| = 0 |
| 2385 |
% |
| 2386 |
% \begin{macrocode} |
| 2387 |
\M@head |
| 2388 |
\global\M@dim@sunk=\z@ |
| 2389 |
\ifM@inter |
| 2390 |
\dimen3=\M@interS\M@dim@m |
| 2391 |
\else |
| 2392 |
\dimen3=\z@ |
| 2393 |
\fi |
| 2394 |
\setbox0=\hbox{#2}% |
| 2395 |
\begingroup |
| 2396 |
\tiny \global\setbox1=\hbox{#1}% |
| 2397 |
\endgroup |
| 2398 |
\dimen2=\M@intervallum\M@metra@ex |
| 2399 |
\dimen2=1.5\dimen2 |
| 2400 |
\ifnum #3=\z@ |
| 2401 |
\advance \dimen2 by \dp1 |
| 2402 |
\advance \dimen2 by \ht0 |
| 2403 |
\else |
| 2404 |
\dimen2=-\dimen2 |
| 2405 |
\advance \dimen2 by -\ht1 |
| 2406 |
\advance \dimen2 by -\M@dim@sunk |
| 2407 |
\fi |
| 2408 |
\dimen2=#4\dimen2 |
| 2409 |
\M@Stack#5\relax |
| 2410 |
\M@tail |
| 2411 |
} |
| 2412 |
% \end{macrocode} |
| 2413 |
% |
| 2414 |
% \begin{macrocode} |
| 2415 |
\newcommand{\M@N}[4][1]{% |
| 2416 |
\M@@n{% |
| 2417 |
\ifx #3\mbbx |
| 2418 |
\hfil #2\relax \hfil \kern \M@dim@b |
| 2419 |
\else |
| 2420 |
\ifx #3\bbmx |
| 2421 |
\kern \M@dim@b \hfil #2\relax \hfil |
| 2422 |
\else |
| 2423 |
\hfil #2\relax \hfil |
| 2424 |
\fi |
| 2425 |
\fi |
| 2426 |
}{#3}{0}{#1}{0}% |
| 2427 |
\M@interfalse |
| 2428 |
\M@@n{% |
| 2429 |
\ifx #3\mbbx |
| 2430 |
\kern \M@dim@b \hfil #4\relax \hfil |
| 2431 |
\else |
| 2432 |
\ifx #3\bbmx |
| 2433 |
\hfil #4\relax \hfil \kern \M@dim@b |
| 2434 |
\else |
| 2435 |
\hfil #4\relax \hfil |
| 2436 |
\fi |
| 2437 |
\fi |
| 2438 |
}{#3}{1}{#1}{1}% |
| 2439 |
} |
| 2440 |
% \end{macrocode} |
| 2441 |
% |
| 2442 |
% These two odd symbols are defined here because |
| 2443 |
% they do not make much sense except as arguments of |\N|. |
| 2444 |
% |
| 2445 |
% \begin{macrocode} |
| 2446 |
\def\M@mbbx{% |
| 2447 |
\M@head |
| 2448 |
\setbox0=\hbox{\M@@mbb}% |
| 2449 |
\if 0\M@opt@style |
| 2450 |
\dimen0=\M@intervallum\M@metra@ex |
| 2451 |
\setbox1=\hbox{\m}% |
| 2452 |
\advance \dimen0 by \ht1 |
| 2453 |
\raise \dimen0 |
| 2454 |
\fi |
| 2455 |
\copy0 \kern -\M@dim@m |
| 2456 |
\M@interfalse \M@@bbm |
| 2457 |
\M@tail |
| 2458 |
} |
| 2459 |
% \end{macrocode} |
| 2460 |
% |
| 2461 |
% \begin{macrocode} |
| 2462 |
\def\M@bbmx{% |
| 2463 |
\M@head |
| 2464 |
\setbox0=\hbox{\M@@bbm}% |
| 2465 |
\copy0 |
| 2466 |
\dimen2=\M@dim@sunk |
| 2467 |
\kern -\M@dim@m \M@interfalse |
| 2468 |
\if 0\M@opt@style |
| 2469 |
\dimen0=\M@intervallum\M@metra@ex |
| 2470 |
\setbox1=\hbox{\m}% |
| 2471 |
\advance \dimen0 by \ht1 |
| 2472 |
\raise \dimen0 |
| 2473 |
\fi |
| 2474 |
\hbox{\M@@mbb}% |
| 2475 |
\global\M@dim@sunk=\dimen2 |
| 2476 |
\M@tail |
| 2477 |
} |
| 2478 |
% \end{macrocode} |
| 2479 |
% |
| 2480 |
% \begin{macrocode} |
| 2481 |
\newcommand{\numeri}[1]{\M@numeri#1\end} |
| 2482 |
\def\M@numeri#1:#2\end{\bgroup\tiny{\it #1}:% |
| 2483 |
\kern .2em#2\egroup} |
| 2484 |
% \end{macrocode} |
| 2485 |
% |
| 2486 |
% \subsection{The \texttt{metrica} environment} |
| 2487 |
% |
| 2488 |
% Define abbreviations for common commands |
| 2489 |
% |
| 2490 |
% \begin{macrocode} |
| 2491 |
\def\M@abbrev{% |
| 2492 |
\def\c{\metra{\c}}% |
| 2493 |
\def\C{\metra{\C}}% |
| 2494 |
\def\cc{\metra{\cc}}% |
| 2495 |
\def\Cc{\metra{\Cc}}% |
| 2496 |
\def\ccc{\metra{\ccc}}% |
| 2497 |
\def\Ccc{\metra{\Ccc}}% |
| 2498 |
\def\p{\metra{\p}}% |
| 2499 |
\def\pp{\metra{\pp}}% |
| 2500 |
\def\Pp{\metra{\Pp}}% |
| 2501 |
\def\ppp{\metra{\ppp}}% |
| 2502 |
\def\Ppp{\metra{\Ppp}}% |
| 2503 |
\def\pppp{\metra{\pppp}}% |
| 2504 |
\def\Pppp{\metra{\Pppp}}% |
| 2505 |
\def\ppppp{\metra{\ppppp}}% |
| 2506 |
\def\Ppppp{\metra{\Ppppp}}% |
| 2507 |
\def\pxp{\metra{\pxp}}% |
| 2508 |
\def\Pxp{\metra{\Pxp}}% |
| 2509 |
\def\pos{\positio}% |
| 2510 |
\def\Pos{\Positio}% |
| 2511 |
\def\!{\dubia}% |
| 2512 |
\let\e=\Elevatio |
| 2513 |
\let\t=\Translatio |
| 2514 |
} |
| 2515 |
% \end{macrocode} |
| 2516 |
% |
| 2517 |
% \begin{macrocode} |
| 2518 |
\newenvironment{metrica}[1][\relax]{\leavevmode |
| 2519 |
\ifx n#1\relax |
| 2520 |
\else |
| 2521 |
\ifx N#1\relax |
| 2522 |
\else |
| 2523 |
\ifx \relax#1\relax |
| 2524 |
\M@abbrev |
| 2525 |
\else |
| 2526 |
\PackageError{metre}{% |
| 2527 |
Invalid optional parameter for % |
| 2528 |
the metrica environment}% |
| 2529 |
{The optional parameter must be either `n' or `N'}% |
| 2530 |
\fi |
| 2531 |
\fi |
| 2532 |
\fi |
| 2533 |
% \end{macrocode} |
| 2534 |
% |
| 2535 |
% Define the commands for prosodical marks. |
| 2536 |
% |
| 2537 |
% \begin{macrocode} |
| 2538 |
\def\={\M@tempus{2}}% |
| 2539 |
\def\-{\M@tempus{1}}% |
| 2540 |
\let\u=\-% |
| 2541 |
\ignorespaces |
| 2542 |
}{}% |
| 2543 |
% \end{macrocode} |
| 2544 |
% |
| 2545 |
% Place a macron (|#1| = 2) or a breve (|#1| = 1) over |#2|. |
| 2546 |
% |
| 2547 |
% \begin{macrocode} |
| 2548 |
\def\M@tempus#1#2{\leavevmode |
| 2549 |
\def\M@accent{\relax}% |
| 2550 |
\if '#2\relax |
| 2551 |
\def\M@accent{19}% |
| 2552 |
\else |
| 2553 |
\if `#2\relax |
| 2554 |
\def\M@accent{18}% |
| 2555 |
\fi |
| 2556 |
\fi |
| 2557 |
\let\next=\relax |
| 2558 |
\if \M@accent\relax |
| 2559 |
\def\M@char{#2}% |
| 2560 |
\let\next=\M@@tempus% no accent |
| 2561 |
\else |
| 2562 |
\let\next=\M@@@tempus% accent |
| 2563 |
\fi |
| 2564 |
\next{#1}% |
| 2565 |
} |
| 2566 |
\def\M@@@tempus#1#2{% |
| 2567 |
\def\M@char{#2}% |
| 2568 |
\M@@tempus#1\relax |
| 2569 |
} |
| 2570 |
\def\M@ij#1#2\end{% |
| 2571 |
\ifx i#1\relax |
| 2572 |
\def\M@char{\i}% |
| 2573 |
\else |
| 2574 |
\ifx j#1\relax |
| 2575 |
\def\M@char{\j}% |
| 2576 |
\else |
| 2577 |
\def\M@char{#1}% |
| 2578 |
\fi |
| 2579 |
\fi |
| 2580 |
\ifx i#2\relax |
| 2581 |
\edef\M@char{\M@char\i}% |
| 2582 |
\else |
| 2583 |
\ifx j#2\relax |
| 2584 |
\edef\M@char{\M@char\j}% |
| 2585 |
\else |
| 2586 |
\edef\M@char{\M@char#2}% |
| 2587 |
\fi |
| 2588 |
\fi |
| 2589 |
} |
| 2590 |
% \end{macrocode} |
| 2591 |
% |
| 2592 |
% \begin{macrocode} |
| 2593 |
\def\M@@tempus#1{% |
| 2594 |
\dimen0=1ex |
| 2595 |
\dimen0=\M@elevatio\dimen0 |
| 2596 |
\ifdim \dimen0=\z@ |
| 2597 |
\expandafter\M@ij\M@char\end |
| 2598 |
\fi |
| 2599 |
\dimen3=1em |
| 2600 |
\dimen3=\M@translatio\dimen3 |
| 2601 |
\setbox0=\hbox{\M@char}% |
| 2602 |
\dimen1=\wd0 |
| 2603 |
\dimen2=\dimen0 |
| 2604 |
\ifdim \dimen0=\z@ |
| 2605 |
\ifdim \wd0=\z@ |
| 2606 |
\dimen2=1ex |
| 2607 |
\else |
| 2608 |
\dimen2=\ht0 |
| 2609 |
\fi |
| 2610 |
\fi |
| 2611 |
\setbox0=\hbox{% |
| 2612 |
\M@char |
| 2613 |
\kern -\dimen1 |
| 2614 |
\kern \dimen3 |
| 2615 |
\raise \dimen2 \hbox to \dimen1{% |
| 2616 |
\begingroup |
| 2617 |
\M@cmr |
| 2618 |
\hss |
| 2619 |
\raisebox {-1ex}[\z@][\z@]{\hbox{\char2#1}}% |
| 2620 |
\hss |
| 2621 |
\endgroup |
| 2622 |
}% |
| 2623 |
\kern -\dimen3 |
| 2624 |
}% |
| 2625 |
% \end{macrocode} |
| 2626 |
% |
| 2627 |
% Adjust the height to account for the accent. |
| 2628 |
% |
| 2629 |
% \begin{macrocode} |
| 2630 |
\ht0=1.3\ht0 |
| 2631 |
% \end{macrocode} |
| 2632 |
% |
| 2633 |
% Check for an accent. |
| 2634 |
% |
| 2635 |
% \begin{macrocode} |
| 2636 |
\if \M@accent\relax |
| 2637 |
% \end{macrocode} |
| 2638 |
% |
| 2639 |
% If no accent, just set the box. |
| 2640 |
% |
| 2641 |
% \begin{macrocode} |
| 2642 |
\copy0 |
| 2643 |
\else |
| 2644 |
% \end{macrocode} |
| 2645 |
% |
| 2646 |
% otherwise put the accent on top of the macron or breve. |
| 2647 |
% |
| 2648 |
% \begin{macrocode} |
| 2649 |
\ifdim \dimen0=\z@ |
| 2650 |
\dimen0=1.05\ht0 |
| 2651 |
\else |
| 2652 |
\ifdim \dimen0<\z@ |
| 2653 |
\dimen0=.8\dimen0 |
| 2654 |
\else |
| 2655 |
\dimen0=1.2\dimen0 |
| 2656 |
\fi |
| 2657 |
\fi |
| 2658 |
\copy0 |
| 2659 |
\kern -\wd0 |
| 2660 |
\kern \dimen3 |
| 2661 |
\raise \dimen0 \hbox to \wd0{% |
| 2662 |
\begingroup |
| 2663 |
\M@cmr |
| 2664 |
\hss |
| 2665 |
\lower 1ex \hbox{\expandafter\char\M@accent}% |
| 2666 |
\hss |
| 2667 |
\endgroup |
| 2668 |
}% |
| 2669 |
\kern -\dimen3 |
| 2670 |
\fi |
| 2671 |
} |
| 2672 |
% \end{macrocode} |
| 2673 |
% |
| 2674 |
% \subsection{The \texttt{metrike} environment} |
| 2675 |
% |
| 2676 |
% This is much the same as the |metrica| environment. |
| 2677 |
% Accents and other diacritical marks are taken care of by |ibycus4| or |
| 2678 |
% |Babel|. |
| 2679 |
% |
| 2680 |
% \begin{macrocode} |
| 2681 |
\newenvironment{metrike}[1][\relax]{\leavevmode |
| 2682 |
\ifx n#1\relax |
| 2683 |
\else |
| 2684 |
\ifx N#1\relax |
| 2685 |
\else |
| 2686 |
\ifx \relax#1\relax |
| 2687 |
\M@abbrev |
| 2688 |
\else |
| 2689 |
\PackageError{metre}{% |
| 2690 |
Invalid optional parameter for % |
| 2691 |
the metrike environment}% |
| 2692 |
{The optional parameter must be either `n' or `N'}% |
| 2693 |
\fi |
| 2694 |
\fi |
| 2695 |
\fi |
| 2696 |
\def\={\M@gtempus{2}}% |
| 2697 |
\def\-{\M@gtempus{1}}% |
| 2698 |
\let\u=\-% |
| 2699 |
\ifx \M@MetrikeFont \@undefined |
| 2700 |
\ifnum \M@ibycus=\@ne |
| 2701 |
\def\M@@MF{\fontencoding{OT1}\greek}% |
| 2702 |
\else |
| 2703 |
\ifx \l@greek \@undefined |
| 2704 |
\PackageError{metre}{No font available for Greek text}% |
| 2705 |
{You must use the \protect\MetrikeFont command}% |
| 2706 |
\else |
| 2707 |
\def\M@@MF{\selectlanguage{polutonikogreek}}% |
| 2708 |
\fi |
| 2709 |
\fi |
| 2710 |
\else |
| 2711 |
\if i\M@MetrikeFont |
| 2712 |
\def\M@@MF{\fontencoding{OT1}\greek}% |
| 2713 |
\else |
| 2714 |
\if I\M@MetrikeFont |
| 2715 |
\def\M@@MF{\fontencoding{OT1}\greek}% |
| 2716 |
\else |
| 2717 |
\if b\M@MetrikeFont |
| 2718 |
\def\M@@MF{\selectlanguage{polutonikogreek}}% |
| 2719 |
\else |
| 2720 |
\if B\M@MetrikeFont |
| 2721 |
\def\M@@MF{\selectlanguage{polutonikogreek}}% |
| 2722 |
\else |
| 2723 |
\def\M@@MF{\M@MetrikeFont}% |
| 2724 |
\fi |
| 2725 |
\fi |
| 2726 |
\fi |
| 2727 |
\fi |
| 2728 |
\fi |
| 2729 |
\M@@MF |
| 2730 |
\ignorespaces |
| 2731 |
}{}% |
| 2732 |
% \end{macrocode} |
| 2733 |
% |
| 2734 |
% Place a macron (|#1| = 2) or a breve (|#1| = 1) over |#2|. |
| 2735 |
% |
| 2736 |
% \begin{macrocode} |
| 2737 |
\def\M@gtempus#1#2{\leavevmode |
| 2738 |
\setbox0=\hbox{#2}% |
| 2739 |
\dimen0=1ex |
| 2740 |
\dimen0=\M@elevatio\dimen0 |
| 2741 |
\ifdim \dimen0=\z@ |
| 2742 |
\dimen0=\ht0 |
| 2743 |
\fi |
| 2744 |
\dimen3=1em |
| 2745 |
\dimen3=\M@translatio\dimen3 |
| 2746 |
\copy0 |
| 2747 |
\kern -\wd0 |
| 2748 |
\dimen1=\wd0 |
| 2749 |
\setbox1=\hbox{\M@bare #2\end}% |
| 2750 |
\advance \dimen1 by -\wd1 |
| 2751 |
\kern \dimen1 |
| 2752 |
\kern \dimen3 |
| 2753 |
\raise \dimen0 \hbox to \wd1{% |
| 2754 |
\begingroup |
| 2755 |
\hss |
| 2756 |
\M@cmr |
| 2757 |
\raisebox {-1ex}[\z@][\z@]{\hbox{\char2#1}}% |
| 2758 |
\hss |
| 2759 |
\endgroup |
| 2760 |
}% |
| 2761 |
\kern -\dimen3\relax |
| 2762 |
} |
| 2763 |
% \end{macrocode} |
| 2764 |
% \newpage |
| 2765 |
% Compute the width of the bare letter, without diacritics. |
| 2766 |
% \begin{macrocode} |
| 2767 |
\def\M@bare#1{% |
| 2768 |
\let\next=\M@bare |
| 2769 |
\ifnum \M@ibycus=\@ne |
| 2770 |
\ifx #1\end |
| 2771 |
\let\next=\relax |
| 2772 |
\else \ifx '#1\relax |
| 2773 |
\else \ifx `#1\relax |
| 2774 |
\else \ifx (#1\relax |
| 2775 |
\else \ifx )#1\relax |
| 2776 |
\else \ifx =#1\relax |
| 2777 |
\else \ifx |#1\relax |
| 2778 |
\else |
| 2779 |
#1\relax |
| 2780 |
\fi\fi\fi\fi\fi\fi\fi |
| 2781 |
\else |
| 2782 |
\ifx #1\end |
| 2783 |
\let\next=\relax |
| 2784 |
\else \ifx '#1\relax |
| 2785 |
\else \ifx `#1\relax |
| 2786 |
\else \ifx <#1\relax |
| 2787 |
\else \ifx >#1\relax |
| 2788 |
\else \ifx ~#1\relax |
| 2789 |
\else \ifx |#1\relax |
| 2790 |
\else |
| 2791 |
#1\relax |
| 2792 |
\fi\fi\fi\fi\fi\fi\fi |
| 2793 |
\fi |
| 2794 |
\next |
| 2795 |
} |
| 2796 |
% \end{macrocode} |
| 2797 |
% |
| 2798 |
% \subsection{The \texttt{\protect\bslash sigla} command} |
| 2799 |
% |
| 2800 |
% The |\sigla| command uses a few active characters. |
| 2801 |
% \begin{macrocode} |
| 2802 |
\begingroup |
| 2803 |
\catcode`\:=\active |
| 2804 |
\catcode`\/=\active |
| 2805 |
\catcode`\_=\active |
| 2806 |
\catcode`<=\active |
| 2807 |
\catcode`>=\active |
| 2808 |
\gdef\sigla{% |
| 2809 |
\begingroup% \endgroup in \M@sigla |
| 2810 |
\dimen1=.056em |
| 2811 |
\catcode`\:=\active |
| 2812 |
\catcode`\/=\active |
| 2813 |
\catcode`\_=\active |
| 2814 |
\catcode`<=\active |
| 2815 |
\catcode`>=\active |
| 2816 |
\def/{\raisebox{.667ex}{\anaclasis}\kern -.1em\relax}% |
| 2817 |
\def_{% |
| 2818 |
\raisebox{-.5ex}[\z@][\z@]{$\scriptscriptstyle\wedge$}% |
| 2819 |
}% |
| 2820 |
\def:{% |
| 2821 |
\raisebox{-.02ex}{% |
| 2822 |
\begingroup |
| 2823 |
\M@cmr |
| 2824 |
\kern .1em \char95 \kern -.1em \char95 |
| 2825 |
\endgroup |
| 2826 |
}% |
| 2827 |
}% |
| 2828 |
\def\D{$\delta$\kern -\dimen1\relax}% |
| 2829 |
\def\d{$\delta$}% |
| 2830 |
\def\s{$\int$}% |
| 2831 |
\def\+{% |
| 2832 |
\kern .056em |
| 2833 |
\raisebox{.667ex}[\z@][\z@]{$\scriptscriptstyle+$}% |
| 2834 |
}% |
| 2835 |
\def<{\kern -\dimen1\relax}% |
| 2836 |
\def>{\kern \dimen1\relax}% |
| 2837 |
% \end{macrocode} |
| 2838 |
% |
| 2839 |
% |\S| has a slightly different definition from that of |\metra|. |
| 2840 |
% \begin{macrocode} |
| 2841 |
\def\S{\M@super@sigla}% |
| 2842 |
\def\charcolon{\char"3A}% |
| 2843 |
\def\charslash{\char"2F}% |
| 2844 |
% \end{macrocode} |
| 2845 |
% |
| 2846 |
% We chain to another macro so that the active characters within the |
| 2847 |
% argument will be interpreted according to the definitions just given. |
| 2848 |
% \begin{macrocode} |
| 2849 |
\M@sigla |
| 2850 |
} |
| 2851 |
\endgroup |
| 2852 |
% \end{macrocode} |
| 2853 |
% |
| 2854 |
% \begin{macrocode} |
| 2855 |
\newcommand{\M@sigla}[2][\relax]{% |
| 2856 |
\ifx n#1\relax |
| 2857 |
\else |
| 2858 |
\ifx N#1\relax |
| 2859 |
\else |
| 2860 |
\ifx \relax#1\relax |
| 2861 |
\def\c{\metra{\c}}% |
| 2862 |
\def\C{\metra{\C}}% |
| 2863 |
\def\cc{\metra{\cc}}% |
| 2864 |
\def\Cc{\metra{\Cc}}% |
| 2865 |
\def\ccc{\metra{\ccc}}% |
| 2866 |
\def\Ccc{\metra{\Ccc}}% |
| 2867 |
\def\p{\metra{\p}}% |
| 2868 |
\def\pp{\metra{\pp}}% |
| 2869 |
\def\Pp{\metra{\Pp}}% |
| 2870 |
\def\ppp{\metra{\ppp}}% |
| 2871 |
\def\Ppp{\metra{\Ppp}}% |
| 2872 |
\def\pppp{\metra{\pppp}}% |
| 2873 |
\def\Pppp{\metra{\Pppp}}% |
| 2874 |
\def\ppppp{\metra{\ppppp}}% |
| 2875 |
\def\Ppppp{\metra{\Ppppp}}% |
| 2876 |
\def\pxp{\metra{\pxp}}% |
| 2877 |
\def\Pxp{\metra{\Pxp}}% |
| 2878 |
\def\x{\metra{\x}\kern 3\dimen1\relax}% |
| 2879 |
\let\r=\respondens |
| 2880 |
\M@dim@c@ext=.36em |
| 2881 |
\M@dim@c@int=.12em |
| 2882 |
\M@dim@c@Ext=.5\M@dim@c@int |
| 2883 |
\else |
| 2884 |
\PackageError{metre}{% |
| 2885 |
Invalid optional parameter for \protect\sigla}% |
| 2886 |
{The optional parameter must be either `n' or `N'}% |
| 2887 |
\fi |
| 2888 |
\fi |
| 2889 |
\fi |
| 2890 |
\bgroup \leavevmode \M@facies #2\/\egroup \endgroup} |
| 2891 |
% \end{macrocode} |
| 2892 |
% |
| 2893 |
% \begin{macrocode} |
| 2894 |
\newcommand{\M@super@sigla}[2][0]{% |
| 2895 |
\begingroup |
| 2896 |
\dimen0 =.75ex |
| 2897 |
\advance \dimen0 by #1ex |
| 2898 |
\dimen1 = 1em |
| 2899 |
\relsize{-4}% |
| 2900 |
\expandafter\M@super@sigla@check@it\f@shape\end |
| 2901 |
\raise \dimen0 \hbox{#2}% |
| 2902 |
\endgroup |
| 2903 |
} |
| 2904 |
% \end{macrocode} |
| 2905 |
% |
| 2906 |
% Check whether the parameter is to be set in italics. |
| 2907 |
% |
| 2908 |
% \begin{macrocode} |
| 2909 |
\def\M@super@sigla@check@it#1#2\end{% |
| 2910 |
\kern .05\dimen1 |
| 2911 |
\if i#1\relax |
| 2912 |
\if t#2\relax |
| 2913 |
\kern .05\dimen1\relax |
| 2914 |
\fi |
| 2915 |
\fi |
| 2916 |
} |
| 2917 |
% \end{macrocode} |
| 2918 |
% |
| 2919 |
% \subsection{Other signs} |
| 2920 |
% |
| 2921 |
% \subsubsection{Brackets} |
| 2922 |
% |
| 2923 |
% \begin{macrocode} |
| 2924 |
\newcommand{\quadras}{\leavevmode \raise .16ex |
| 2925 |
\hbox{$\scriptstyle\lbrack\mskip-\thinmuskip\lbrack$}} |
| 2926 |
\newcommand{\Quadras}{\leavevmode |
| 2927 |
$\textstyle\lbrack\mskip-\thinmuskip\lbrack$} |
| 2928 |
\newcommand{\quadrad}{\leavevmode \raise .16ex |
| 2929 |
\hbox{$\scriptstyle\rbrack\mskip-\thinmuskip\rbrack$}} |
| 2930 |
\newcommand{\Quadrad}{\leavevmode |
| 2931 |
$\textstyle\rbrack\mskip-\thinmuskip\rbrack$} |
| 2932 |
\newcommand{\angus}{\leavevmode |
| 2933 |
\raise .16ex\hbox{$\scriptstyle\langle$}} |
| 2934 |
\newcommand{\Angus}{\leavevmode $\textstyle\langle$} |
| 2935 |
\newcommand{\angud}{\leavevmode |
| 2936 |
\raise .16ex\hbox{$\scriptstyle\rangle$}} |
| 2937 |
\newcommand{\Angud}{\leavevmode $\textstyle\rangle$} |
| 2938 |
\newcommand{\crux}{\leavevmode |
| 2939 |
\bgroup\M@cmr\textdagger\egroup} |
| 2940 |
\newcommand{\Crux}{\leavevmode |
| 2941 |
\bgroup\M@cmr\relsize{1}\textdagger\egroup} |
| 2942 |
\newcommand{\alas}{\leavevmode \bgroup\M@cmr\{\egroup} |
| 2943 |
\newcommand{\Alas}{\leavevmode |
| 2944 |
\bgroup\M@cmr\relsize{1}\{\egroup} |
| 2945 |
\newcommand{\alad}{\leavevmode \bgroup\M@cmr\}\egroup} |
| 2946 |
\newcommand{\Alad}{\leavevmode |
| 2947 |
\bgroup\M@cmr\relsize{1}\}\egroup} |
| 2948 |
% \end{macrocode} |
| 2949 |
% |
| 2950 |
% \begin{macrocode} |
| 2951 |
\newcommand{\semi}[1]{% |
| 2952 |
\ifx [#1\relax \M@semi@lb |
| 2953 |
\else |
| 2954 |
\ifx ]#1\relax \M@semi@rb |
| 2955 |
\else |
| 2956 |
\PackageError{metre}{Invalid argument for \protect\semi}% |
| 2957 |
{\protect\semi must be followed by \lbrack or \rbrack}% |
| 2958 |
\fi |
| 2959 |
\fi |
| 2960 |
} |
| 2961 |
% \end{macrocode} |
| 2962 |
% |
| 2963 |
% \begin{macrocode} |
| 2964 |
\def\M@semi@lb{\leavevmode |
| 2965 |
\setbox0=\hbox{o}% |
| 2966 |
\setbox0=\hbox to .67\wd0{% |
| 2967 |
\hss |
| 2968 |
\vrule height .5ex width .5pt depth .5ex |
| 2969 |
\lower .5ex \hbox to .6ex{% |
| 2970 |
\leaders\hrule height .4pt\hfill}% |
| 2971 |
}% |
| 2972 |
\box0\relax |
| 2973 |
} |
| 2974 |
% \end{macrocode} |
| 2975 |
% |
| 2976 |
% \begin{macrocode} |
| 2977 |
\def\M@semi@rb{\leavevmode |
| 2978 |
\setbox0=\hbox{o}% |
| 2979 |
\setbox0=\hbox to .67\wd0{% |
| 2980 |
\lower .5ex \hbox to .6ex{% |
| 2981 |
\leaders\hrule height .4pt\hfill}% |
| 2982 |
\vrule height .5ex width .5pt depth .5ex |
| 2983 |
\hss |
| 2984 |
}% |
| 2985 |
\box0\relax |
| 2986 |
} |
| 2987 |
% \end{macrocode} |
| 2988 |
% |
| 2989 |
% \subsubsection{Special symbols} |
| 2990 |
% |
| 2991 |
% \paragraph{anaclasis} |
| 2992 |
% |
| 2993 |
% \begin{macrocode} |
| 2994 |
\newcommand{\anaclasis}[1][0]{\M@anaclasis0{#1}} |
| 2995 |
\newcommand{\Anaclasis}[1][0]{\M@anaclasis1{#1}} |
| 2996 |
% \end{macrocode} |
| 2997 |
% |
| 2998 |
% \begin{macrocode} |
| 2999 |
\def\M@anaclasis#1#2{\leavevmode |
| 3000 |
\setbox0=\hbox{$\ifnum #1=\z@ |
| 3001 |
\scriptscriptstyle |
| 3002 |
\else |
| 3003 |
\scriptstyle |
| 3004 |
\fi |
| 3005 |
\div$}% |
| 3006 |
\dimen0=\ifnum #1=\z@ .215\else .105\fi ex |
| 3007 |
\advance \dimen0 by #2ex |
| 3008 |
\raisebox {\dimen0}[\z@][\z@]{\box0}% |
| 3009 |
} |
| 3010 |
% \end{macrocode} |
| 3011 |
% |
| 3012 |
% \paragraph{antisigma} |
| 3013 |
% |
| 3014 |
% \begin{macrocode} |
| 3015 |
\newcommand{\antisigma}[1][0]{\M@antisigma0{#1}} |
| 3016 |
\newcommand{\Antisigma}[1][0]{\M@antisigma1{#1}} |
| 3017 |
% \end{macrocode} |
| 3018 |
% |
| 3019 |
% \begin{macrocode} |
| 3020 |
\def\M@antisigma#1#2{\leavevmode |
| 3021 |
\setbox0=\hbox{$\ifnum #1=\z@ |
| 3022 |
\scriptscriptstyle |
| 3023 |
\else |
| 3024 |
\scriptstyle |
| 3025 |
\fi |
| 3026 |
\supset$}% |
| 3027 |
\dimen0=\ifnum #1=\z@ .19\else .105\fi ex |
| 3028 |
\advance \dimen0 by #2ex |
| 3029 |
\raisebox {\dimen0}[\z@][\z@]{\box0}% |
| 3030 |
} |
| 3031 |
% \end{macrocode} |
| 3032 |
% |
| 3033 |
% \paragraph{asteriscus} |
| 3034 |
% |
| 3035 |
% \begin{macrocode} |
| 3036 |
\newcommand{\asteriscus}[1][0]{\M@aster0{#1}} |
| 3037 |
\let\asteriskos=\asteriscus |
| 3038 |
\newcommand{\Asteriscus}[1][0]{\M@aster1{#1}} |
| 3039 |
\let\Asteriskos=\Asteriscus |
| 3040 |
% \end{macrocode} |
| 3041 |
% |
| 3042 |
% \begin{macrocode} |
| 3043 |
\def\M@aster#1#2{\leavevmode |
| 3044 |
\dimen1=1ex |
| 3045 |
\begingroup |
| 3046 |
\relsize {\ifnum #1=\z@ 1\else 2\fi}% |
| 3047 |
\setbox0=\hbox{$\times$}% |
| 3048 |
\setbox1=\hbox{$\cdot$}% |
| 3049 |
\ht0=.82\ht0 |
| 3050 |
\setbox2=\hbox to .675\wd0{% |
| 3051 |
\hss |
| 3052 |
\copy0 |
| 3053 |
\kern -\wd0 |
| 3054 |
\rlap{\kern .1\wd0 \raise 0\ht0 \copy1}% |
| 3055 |
\rlap{\kern .32\wd0 \raise .35\ht0 \copy1}% |
| 3056 |
\rlap{\kern \ifnum #1=\z@ .55 \else .525\fi \wd0 |
| 3057 |
\raise 0\ht0 \copy1}% |
| 3058 |
\rlap{\kern .32\wd0 \raise -.35\ht0 \copy1}% |
| 3059 |
\kern \wd0 |
| 3060 |
\hss |
| 3061 |
}% |
| 3062 |
\dimen0=-\ifnum #1=\z@ .1\else .2\fi\dimen1 |
| 3063 |
\advance \dimen0 by #2\dimen1 |
| 3064 |
\raisebox {\dimen0}[\z@][\z@]{\box2}% |
| 3065 |
\endgroup |
| 3066 |
} |
| 3067 |
% \end{macrocode} |
| 3068 |
% |
| 3069 |
% \paragraph{catalexis} |
| 3070 |
% |
| 3071 |
% \begin{macrocode} |
| 3072 |
\newcommand{\catalexis}[1][0]{\M@catalexis 0{#1}} |
| 3073 |
\newcommand{\Catalexis}[1][0]{\M@catalexis 1{#1}} |
| 3074 |
% \end{macrocode} |
| 3075 |
% |
| 3076 |
% \begin{macrocode} |
| 3077 |
\def\M@catalexis#1#2{\leavevmode |
| 3078 |
\setbox0=\hbox{$\ifnum #1=\z@ |
| 3079 |
\scriptscriptstyle |
| 3080 |
\else |
| 3081 |
\scriptstyle |
| 3082 |
\fi |
| 3083 |
\wedge$}% |
| 3084 |
\kern -.05\wd0 |
| 3085 |
\dimen0=-\ifnum #1=\z@ .22\else .45\fi ex |
| 3086 |
\advance \dimen0 by #2ex |
| 3087 |
\raisebox {\dimen0}[\z@][\z@]{\box0}% |
| 3088 |
\kern .05\wd0\relax |
| 3089 |
} |
| 3090 |
% \end{macrocode} |
| 3091 |
% \paragraph{diple} |
| 3092 |
% |
| 3093 |
% \begin{macrocode} |
| 3094 |
\newcommand{\diple}{% |
| 3095 |
\@ifstar{\M@starredtrue\M@bigfalse\M@diple}% |
| 3096 |
{\M@starredfalse\M@bigfalse\M@diple}} |
| 3097 |
\newcommand{\Diple}{% |
| 3098 |
\@ifstar{\M@starredtrue\M@bigtrue\M@diple}% |
| 3099 |
{\M@starredfalse\M@bigtrue\M@diple}} |
| 3100 |
% \end{macrocode} |
| 3101 |
% |
| 3102 |
% \begin{macrocode} |
| 3103 |
\newcommand{\M@diple}[1][0]{\leavevmode |
| 3104 |
\setbox0=\hbox{% |
| 3105 |
$\ifM@big \textstyle \else \scriptstyle \fi>$}% |
| 3106 |
\dimen0=\ifM@big -.05 \else .1 \fi ex |
| 3107 |
\dimen1=#1ex |
| 3108 |
\advance \dimen1 by \dimen0 |
| 3109 |
\raisebox {\dimen1}[\z@][\z@]{\copy0}% |
| 3110 |
\ifM@starred |
| 3111 |
\ifM@big |
| 3112 |
\kern -.25\wd0 \dimen0=.55\ht0 |
| 3113 |
\else |
| 3114 |
\kern -.2\wd0 \dimen0=.45\ht0 |
| 3115 |
\fi |
| 3116 |
\advance \dimen0 by \dimen1 |
| 3117 |
\raisebox {\dimen0}[\z@][\z@]% |
| 3118 |
{\hbox to 0pt{\hss $\scriptstyle\cdot$}}% |
| 3119 |
\dimen0=\ifM@big -.275 \else -.475 \fi \ht0 |
| 3120 |
\advance \dimen0 by \dimen1 |
| 3121 |
\raisebox {\dimen0}[\z@][\z@]% |
| 3122 |
{\hbox to 0pt{\hss $\scriptstyle\cdot$}}% |
| 3123 |
\kern \ifM@big .25 \else .2 \fi \wd0 |
| 3124 |
\fi |
| 3125 |
} |
| 3126 |
% \end{macrocode} |
| 3127 |
% |
| 3128 |
% \paragraph{antidiple} |
| 3129 |
% |
| 3130 |
% \begin{macrocode} |
| 3131 |
\newcommand{\antidiple}{% |
| 3132 |
\@ifstar{\M@starredtrue\M@bigfalse\M@antidiple}% |
| 3133 |
{\M@starredfalse\M@bigfalse\M@antidiple}} |
| 3134 |
\newcommand{\Antidiple}{% |
| 3135 |
\@ifstar{\M@starredtrue\M@bigtrue\M@antidiple}% |
| 3136 |
{\M@starredfalse\M@bigtrue\M@antidiple}} |
| 3137 |
% \end{macrocode} |
| 3138 |
% |
| 3139 |
% \begin{macrocode} |
| 3140 |
\newcommand{\M@antidiple}[1][0]{\leavevmode |
| 3141 |
\setbox0=\hbox{% |
| 3142 |
$\ifM@big \textstyle \else \scriptstyle \fi<$}% |
| 3143 |
\dimen0=\ifM@big -.05 \else .1 \fi ex |
| 3144 |
\dimen1=#1ex |
| 3145 |
\advance \dimen1 by \dimen0 |
| 3146 |
\raisebox {\dimen1}[\z@][\z@]{\copy0}% |
| 3147 |
\ifM@starred |
| 3148 |
\ifM@big |
| 3149 |
\kern -.5\wd0 |
| 3150 |
\dimen0=.55\ht0 |
| 3151 |
\else |
| 3152 |
\kern -.45\wd0 |
| 3153 |
\dimen0=.45\ht0 |
| 3154 |
\fi |
| 3155 |
\advance \dimen0 by \dimen1 |
| 3156 |
\raisebox {\dimen0}[\z@][\z@]% |
| 3157 |
{\hbox to 0pt{\hss $\scriptstyle\cdot$}}% |
| 3158 |
\dimen0=\ifM@big -.325 \else -.5 \fi \ht0 |
| 3159 |
\advance \dimen0 by \dimen1 |
| 3160 |
\raisebox {\dimen0}[\z@][\z@]% |
| 3161 |
{\hbox to 0pt{\hss $\scriptstyle\cdot$}}% |
| 3162 |
\kern \ifM@big .5 \else .45 \fi \wd0 |
| 3163 |
\fi |
| 3164 |
} |
| 3165 |
% \end{macrocode} |
| 3166 |
% |
| 3167 |
% \paragraph{obelus} |
| 3168 |
% |
| 3169 |
% \begin{macrocode} |
| 3170 |
\newcommand{\obelus}{% |
| 3171 |
\@ifstar{\M@starredtrue\M@bigfalse\M@obelus}% |
| 3172 |
{\M@starredfalse\M@bigfalse\M@obelus}} |
| 3173 |
\let\obelos=\obelus |
| 3174 |
\newcommand{\Obelus}{% |
| 3175 |
\@ifstar{\M@starredtrue\M@bigtrue\M@obelus}% |
| 3176 |
{\M@starredfalse\M@bigtrue\M@obelus}} |
| 3177 |
\let\Obelos=\Obelus |
| 3178 |
% \end{macrocode} |
| 3179 |
% |
| 3180 |
% \begin{macrocode} |
| 3181 |
\newcommand{\M@obelus}[1][0]{\leavevmode |
| 3182 |
\setbox0=\hbox to |
| 3183 |
\ifM@big |
| 3184 |
\ifM@starred 1 \else 1.5 \fi |
| 3185 |
\else |
| 3186 |
\ifM@starred .89 \else 1.33 \fi |
| 3187 |
\fi em |
| 3188 |
{\leaders \hrule height .33pt\hfill}% |
| 3189 |
\setbox1=\hbox{$\cdot$}% |
| 3190 |
\ifM@starred |
| 3191 |
\setbox0=\hbox{% |
| 3192 |
\copy0 |
| 3193 |
\dimen0=\wd0 |
| 3194 |
\advance \dimen0 by \wd1 |
| 3195 |
\divide \dimen0 by 2 |
| 3196 |
\kern -\dimen0 |
| 3197 |
\rlap{\lower .1ex \copy1}% |
| 3198 |
\rlap{\lower 1ex \copy1}% |
| 3199 |
\kern \dimen0 |
| 3200 |
}% |
| 3201 |
\fi |
| 3202 |
\dimen0=.48ex |
| 3203 |
\advance \dimen0 by #1ex |
| 3204 |
\raisebox {\dimen0}[\z@][\z@]{\box0}% |
| 3205 |
} |
| 3206 |
% \end{macrocode} |
| 3207 |
% |
| 3208 |
% \paragraph{respondens} |
| 3209 |
% |
| 3210 |
% \begin{macrocode} |
| 3211 |
\newcommand{\respondens}{\M@bigfalse\M@respondens} |
| 3212 |
\newcommand{\Respondens}{\M@bigtrue\M@respondens} |
| 3213 |
% \end{macrocode} |
| 3214 |
% |
| 3215 |
% \begin{macrocode} |
| 3216 |
\newcommand{\M@respondens}[1][0]{\leavevmode |
| 3217 |
\setbox0=\hbox{% |
| 3218 |
$\ifM@big \textstyle \else \scriptstyle \fi \sim$}% |
| 3219 |
\dimen0=\ifM@big -.05 \else .1 \fi ex |
| 3220 |
\advance \dimen0 by #1ex |
| 3221 |
\kern .067em |
| 3222 |
\raisebox {\dimen0}[\z@][\z@]{\box0}% |
| 3223 |
} |
| 3224 |
% \end{macrocode} |
| 3225 |
% |
| 3226 |
% \paragraph{terminus} |
| 3227 |
% |
| 3228 |
% \begin{macrocode} |
| 3229 |
\newcommand{\terminus}{% |
| 3230 |
\@ifstar{\M@starredtrue\M@bigfalse\M@terminus}% |
| 3231 |
{\M@starredfalse\M@bigfalse\M@terminus}} |
| 3232 |
\newcommand{\Terminus}{% |
| 3233 |
\@ifstar{\M@starredtrue\M@bigtrue\M@terminus}% |
| 3234 |
{\M@starredfalse\M@bigtrue\M@terminus}} |
| 3235 |
% \end{macrocode} |
| 3236 |
% |
| 3237 |
% \begin{macrocode} |
| 3238 |
\newcommand{\M@terminus}[1][0]{\leavevmode |
| 3239 |
\setbox0=\hbox{% |
| 3240 |
$\ifM@big \textstyle \else \scriptstyle \fi |
| 3241 |
\ifM@starred \oplus \else \otimes \fi$}% |
| 3242 |
\dimen0=\ifM@big -.1 \else .1 \fi ex |
| 3243 |
\advance \dimen0 by #1ex |
| 3244 |
\raisebox {\dimen0}[\z@][\z@]{\box0}% |
| 3245 |
} |
| 3246 |
% \end{macrocode} |
| 3247 |
% |
| 3248 |
% \paragraph{margini} |
| 3249 |
% |
| 3250 |
% \begin{macrocode} |
| 3251 |
\newcommand{\margini}{% |
| 3252 |
\@ifstar{\M@margini@star}{\M@margini@nostar}} |
| 3253 |
\newcommand{\M@margini@star}[2][0pt]{\M@margini{1}{#1}{#2}} |
| 3254 |
\newcommand{\M@margini@nostar}[2][0pt]{\M@margini{0}{#1}{#2}} |
| 3255 |
% \end{macrocode} |
| 3256 |
% |
| 3257 |
% \begin{macrocode} |
| 3258 |
\def\M@margini#1#2#3{\leavevmode |
| 3259 |
\setbox1=\hbox{#3}% |
| 3260 |
\strut |
| 3261 |
\vadjust{% |
| 3262 |
\kern -\dp\strutbox |
| 3263 |
\ifnum #1=\@ne |
| 3264 |
\hfill |
| 3265 |
\fi |
| 3266 |
\dimen0=1em |
| 3267 |
\advance \dimen0 by #2\relax |
| 3268 |
\vtop to \dp\strutbox{% |
| 3269 |
\baselineskip\dp\strutbox |
| 3270 |
\vss |
| 3271 |
\ifnum #1=\@ne |
| 3272 |
\rlap{\kern \dimen0\copy1}% |
| 3273 |
\else |
| 3274 |
\llap{\copy1\kern \dimen0}% |
| 3275 |
\fi |
| 3276 |
\null |
| 3277 |
}% |
| 3278 |
}% |
| 3279 |
\ignorespaces |
| 3280 |
} |
| 3281 |
% \end{macrocode} |
| 3282 |
% |
| 3283 |
% \newpage |
| 3284 |
% |
| 3285 |
% \subsubsection{Diacritics} |
| 3286 |
% |
| 3287 |
% \paragraph{accents} |
| 3288 |
% |
| 3289 |
% \begin{macrocode} |
| 3290 |
\newcommand{\acutus}[2][0]{\M@movable@accent{#1}{#2}{19}} |
| 3291 |
\newcommand{\gravis}[2][0]{\M@movable@accent{#1}{#2}{18}} |
| 3292 |
\newcommand{\macron}[2][0]{\M@movable@accent{#1}{#2}{22}} |
| 3293 |
\edef\Breve{\breve} |
| 3294 |
\renewcommand{\breve}[2][0]{\M@movable@accent{#1}{#2}{21}} |
| 3295 |
\newcommand{\circumflexus}[2][0]{\M@movable@accent{#1}{#2}{126}} |
| 3296 |
\newcommand{\diaeresis}[2][0]{\M@movable@accent{#1}{#2}{127}} |
| 3297 |
% \end{macrocode} |
| 3298 |
% |
| 3299 |
% \begin{macrocode} |
| 3300 |
\def\M@movable@accent#1#2#3{\leavevmode |
| 3301 |
\begingroup |
| 3302 |
\setbox0=\hbox{#2}% |
| 3303 |
\copy0 |
| 3304 |
\kern -\wd0 |
| 3305 |
\dimen0 = \ht0 |
| 3306 |
\ifdim \dimen0=\z@ |
| 3307 |
\dimen0=1ex |
| 3308 |
\fi |
| 3309 |
\advance \dimen0 by -1ex |
| 3310 |
\advance \dimen0 by #1ex |
| 3311 |
\raise \dimen0 |
| 3312 |
\hbox to \wd0{% |
| 3313 |
\hss \begingroup \M@cmr \char#3 \endgroup \hss}% |
| 3314 |
\endgroup |
| 3315 |
} |
| 3316 |
% \end{macrocode} |
| 3317 |
% |
| 3318 |
% \paragraph{cons} |
| 3319 |
% |
| 3320 |
% \begin{macrocode} |
| 3321 |
\newcommand{\cons}[1]{% |
| 3322 |
\setbox0=\hbox{#1}% |
| 3323 |
\copy0 |
| 3324 |
\kern -\wd0 |
| 3325 |
% \end{macrocode} |
| 3326 |
% |
| 3327 |
% The quarter-circles are taken from the \LaTeX{} \texttt{circle} font. |
| 3328 |
% |
| 3329 |
% \begin{macrocode} |
| 3330 |
\setbox1=\hbox{\hss\begingroup\tencirc\char3\char0\endgroup}% |
| 3331 |
\setbox1=\hbox to \wd0{\hss\kern .5\wd1\box1\hss}% |
| 3332 |
\dimen0=-.5\ht1 |
| 3333 |
\ifdim \z@<\dp0 |
| 3334 |
\advance \dimen0 by -.5\dp0 |
| 3335 |
\fi |
| 3336 |
\raise \dimen0 \box1\relax |
| 3337 |
} |
| 3338 |
% \end{macrocode} |
| 3339 |
% |
| 3340 |
% \paragraph{dubia} |
| 3341 |
% |
| 3342 |
% \begin{macrocode} |
| 3343 |
\newcommand{\dubia}{\@ifstar{\M@dubia@star}{\M@dubia}} |
| 3344 |
% \end{macrocode} |
| 3345 |
% |
| 3346 |
% \begin{macrocode} |
| 3347 |
\def\M@dubia@star#1{\M@dubia@ibycus{#1}} |
| 3348 |
\def\M@dubia#1{\leavevmode |
| 3349 |
\setbox0=\hbox{[}% |
| 3350 |
\dimen0=\dp0 |
| 3351 |
\setbox0=\hbox{#1}% |
| 3352 |
\ifdim \dp0=\z@ |
| 3353 |
\dimen2=-.5ex |
| 3354 |
\else |
| 3355 |
\dimen2=-1.75\dimen0 |
| 3356 |
\fi |
| 3357 |
\setbox1=\hbox{\bgroup \M@cmr .\egroup}% |
| 3358 |
\dimen3=\z@ |
| 3359 |
\M@Stack 0\relax |
| 3360 |
} |
| 3361 |
\def\M@dubia@ibycus#1{\leavevmode |
| 3362 |
\ifnum \M@ibycus=\@ne |
| 3363 |
#1!% |
| 3364 |
\else |
| 3365 |
\PackageError{metre}{\protect\dubia* requires ibycus4}{}% |
| 3366 |
\fi |
| 3367 |
} |
| 3368 |
% \end{macrocode} |
| 3369 |
% |
| 3370 |
% \paragraph{dubiae} |
| 3371 |
% |
| 3372 |
% \begin{macrocode} |
| 3373 |
\newcommand{\dubiae}{\@ifstar{\M@dubiae@star}{\M@dubiae@nostar}} |
| 3374 |
% \end{macrocode} |
| 3375 |
% |
| 3376 |
% \begin{macrocode} |
| 3377 |
\def\M@dubiae@star#1{\expandafter\M@dubiae@ibycus#1\end} |
| 3378 |
\def\M@dubiae@nostar#1{\M@dubiae#1\end} |
| 3379 |
% \end{macrocode} |
| 3380 |
% |
| 3381 |
% \begin{macrocode} |
| 3382 |
\def\M@dubiae#1{\leavevmode |
| 3383 |
\let\next=\M@dubiae |
| 3384 |
\ifx #1\end |
| 3385 |
\let\next=\relax |
| 3386 |
\else |
| 3387 |
\ifx #1\positio |
| 3388 |
#1\relax \else |
| 3389 |
\ifx #1\Positio |
| 3390 |
#1\relax \else |
| 3391 |
\ifx #1\pos |
| 3392 |
#1\relax \else |
| 3393 |
\ifx #1\Pos |
| 3394 |
#1\relax |
| 3395 |
\else |
| 3396 |
\setbox0=\hbox{[}% |
| 3397 |
\dimen0=\dp0 |
| 3398 |
\setbox0=\hbox{#1}% |
| 3399 |
\ifdim \dp0=\z@ |
| 3400 |
\dimen2=-.5ex |
| 3401 |
\else |
| 3402 |
\dimen2=-1.75\dimen0 |
| 3403 |
\fi |
| 3404 |
\setbox1=\hbox{\bgroup \M@cmr .\egroup}% |
| 3405 |
\dimen3=\z@ |
| 3406 |
\M@Stack 0\relax |
| 3407 |
\fi\fi\fi\fi |
| 3408 |
\fi |
| 3409 |
\next |
| 3410 |
} |
| 3411 |
% \end{macrocode} |
| 3412 |
% |
| 3413 |
% \begin{macrocode} |
| 3414 |
\def\M@dubiae@ibycus#1{\leavevmode |
| 3415 |
\ifx #1\end |
| 3416 |
\let\next=\relax |
| 3417 |
\else |
| 3418 |
\ifnum \M@ibycus=\z@ |
| 3419 |
\PackageError{metre}{\protect\dubiae* requires ibycus4}{}% |
| 3420 |
\fi |
| 3421 |
\ifx #1\positio #1\relax \else |
| 3422 |
\ifx #1\Positio #1\relax \else |
| 3423 |
\ifx #1\pos #1\relax \else |
| 3424 |
\ifx #1\Pos #1\relax \else |
| 3425 |
#1!\relax |
| 3426 |
\fi\fi\fi\fi |
| 3427 |
\let\next=\M@dubiae@ibycus |
| 3428 |
\fi |
| 3429 |
\next |
| 3430 |
} |
| 3431 |
% \end{macrocode} |
| 3432 |
% |
| 3433 |
% \paragraph{erasa} |
| 3434 |
% |
| 3435 |
% \begin{macrocode} |
| 3436 |
\newcommand{\erasa}[1][1]{\leavevmode |
| 3437 |
\@tempcnta=#1\relax |
| 3438 |
\@whilenum \@tempcnta>\z@ \do |
| 3439 |
{\M@erasa \advance \@tempcnta by \m@ne}% |
| 3440 |
} |
| 3441 |
\def\M@erasa{% |
| 3442 |
\setbox0=\hbox{\vrule width .025em depth .4ex height 1.5ex}% |
| 3443 |
\kern .125em |
| 3444 |
\copy0 \kern .125em |
| 3445 |
\copy0 \kern .125em |
| 3446 |
\copy0 \kern .115em\relax |
| 3447 |
} |
| 3448 |
% \end{macrocode} |
| 3449 |
% |
| 3450 |
% \paragraph{positio} |
| 3451 |
% |
| 3452 |
% \begin{macrocode} |
| 3453 |
\newcommand{\positio}{\leavevmode |
| 3454 |
\raise .85ex \hbox{\vrule width .02em depth \z@ height .75ex}% |
| 3455 |
} |
| 3456 |
% \end{macrocode} |
| 3457 |
% |
| 3458 |
% \begin{macrocode} |
| 3459 |
\newcommand{\Positio}{\leavevmode |
| 3460 |
\raise .75ex \hbox{\vrule width .02em depth \z@ height .94ex}% |
| 3461 |
} |
| 3462 |
% \end{macrocode} |
| 3463 |
% |
| 3464 |
% \paragraph{punctum} |
| 3465 |
% |
| 3466 |
% \begin{macrocode} |
| 3467 |
\newcommand{\punctum}{\@ifnextchar[{\M@punctum}{\M@punctum[1]}} |
| 3468 |
% \end{macrocode} |
| 3469 |
% |
| 3470 |
% \begin{macrocode} |
| 3471 |
\def\M@punctum[#1]{\leavevmode |
| 3472 |
\@tempcnta=#1\relax |
| 3473 |
\@whilenum \@tempcnta>\z@ \do |
| 3474 |
{\M@@punctum \advance \@tempcnta by \m@ne}% |
| 3475 |
} |
| 3476 |
% \end{macrocode} |
| 3477 |
% |
| 3478 |
% \begin{macrocode} |
| 3479 |
\def\M@@punctum{% |
| 3480 |
\setbox0=\hbox{[}% |
| 3481 |
\setbox1=\hbox to .5em{\hss \bgroup \M@cmr .\egroup \hss}% |
| 3482 |
\lower .9\dp0 \box1\relax |
| 3483 |
} |
| 3484 |
% \end{macrocode} |
| 3485 |
% |
| 3486 |
% \paragraph{Punctum} |
| 3487 |
% |
| 3488 |
% \begin{macrocode} |
| 3489 |
\newcommand{\Punctum}{\@ifnextchar[{\M@Punctum}{\M@Punctum[1]}} |
| 3490 |
% \end{macrocode} |
| 3491 |
% |
| 3492 |
% \begin{macrocode} |
| 3493 |
\def\M@Punctum[#1]{\leavevmode |
| 3494 |
\@tempcnta=#1\relax |
| 3495 |
\@whilenum \@tempcnta>\z@ \do |
| 3496 |
{\M@@Punctum \advance \@tempcnta by \m@ne}% |
| 3497 |
} |
| 3498 |
% \end{macrocode} |
| 3499 |
% |
| 3500 |
% \begin{macrocode} |
| 3501 |
\def\M@@Punctum{% |
| 3502 |
\setbox0=\hbox{[}% |
| 3503 |
\setbox1=\hbox{% |
| 3504 |
\begingroup \M@cmr |
| 3505 |
{\relsize{-4}\hbox{(}\kern -.15em}% |
| 3506 |
.% |
| 3507 |
{\relsize{-4}\kern -.15em\hbox{)}}% |
| 3508 |
\endgroup |
| 3509 |
}% |
| 3510 |
\lower .9\dp0 \copy1\relax |
| 3511 |
} |
| 3512 |
% \end{macrocode} |
| 3513 |
% |
| 3514 |
% \subsubsection{Ties} |
| 3515 |
% |
| 3516 |
% \begin{macrocode} |
| 3517 |
\newcommand{\tie}{\@ifstar\M@tie@star\M@tie@nostar} |
| 3518 |
\newcommand{\itie}{\@ifstar\M@itie@star\M@itie@nostar} |
| 3519 |
\newcommand{\M@tie@star}[2][1]{\M@tie{#2}{0}{1}{#1}} |
| 3520 |
\newcommand{\M@tie@nostar}[2][1]{\M@tie{#2}{0}{0}{#1}} |
| 3521 |
\newcommand{\M@itie@star}[2][1]{\M@tie{#2}{1}{0}{#1}} |
| 3522 |
\newcommand{\M@itie@nostar}[2][1]{\M@tie{#2}{1}{1}{#1}} |
| 3523 |
% \end{macrocode} |
| 3524 |
% |
| 3525 |
% \begin{macrocode} |
| 3526 |
\def\M@tie#1#2#3#4{% |
| 3527 |
% \end{macrocode} |
| 3528 |
% |
| 3529 |
% |#1| the text above/below which the tie should go\\ |
| 3530 |
% |#2| 0 = |tie| ($\frown$), 1 = |itie| ($\smile$)\\ |
| 3531 |
% |#3| 0 = above, 1 = below\\ |
| 3532 |
% |#4| scale factor for the text width |
| 3533 |
% \begin{macrocode} |
| 3534 |
\leavevmode |
| 3535 |
\setbox0=\hbox{#1}% |
| 3536 |
\ifnum \M@metra=\@ne |
| 3537 |
\global\M@dim@sunk=\z@ |
| 3538 |
\fi |
| 3539 |
\dimen3=\z@ |
| 3540 |
\ifM@inter |
| 3541 |
\dimen3=\M@interS\M@dim@m% |
| 3542 |
\fi |
| 3543 |
\ifdim \ht0=\z@ % tie over space |
| 3544 |
\ifdim \z@=\dp0 |
| 3545 |
\ht0=1ex |
| 3546 |
\fi |
| 3547 |
\fi |
| 3548 |
\dimen0=#4\wd0 |
| 3549 |
\ifnum \M@metra=\@ne |
| 3550 |
\dimen0=.6\dimen0 |
| 3551 |
\fi |
| 3552 |
\begingroup |
| 3553 |
% \end{macrocode} |
| 3554 |
% |
| 3555 |
% We step through the available font sizes until we find a symbol |
| 3556 |
% long enough to fit the text. |
| 3557 |
% |
| 3558 |
% \begin{macrocode} |
| 3559 |
\relsize{-10}% |
| 3560 |
\wd1=\z@ |
| 3561 |
\@whiledim \wd1<.95\dimen0 \do{% |
| 3562 |
\ifx \@currsize \Huge |
| 3563 |
\dimen0=\z@ |
| 3564 |
\else |
| 3565 |
$% |
| 3566 |
\dimen1=\f@baselineskip |
| 3567 |
\fontencoding{OML}\fontfamily{cmm}\fontseries{m}% |
| 3568 |
\fontshape{it}\fontsize{\ssf@size}{\dimen1}\selectfont |
| 3569 |
\global\setbox1=\hbox{% |
| 3570 |
\hss\symbol{"5\ifnum 0=#2F\else E\fi}\hss}% |
| 3571 |
\ifdim \wd1<\dimen0 |
| 3572 |
\fontsize{\sf@size}{\dimen1}\selectfont |
| 3573 |
\global\setbox1=\hbox{% |
| 3574 |
\hss\symbol{"5\ifnum 0=#2F\else E\fi}\hss}% |
| 3575 |
\ifdim \wd1<\dimen0 |
| 3576 |
\fontsize{\tf@size}{\dimen1}\selectfont |
| 3577 |
\global\setbox1=\hbox{% |
| 3578 |
\hss\symbol{"5\ifnum 0=#2F\else E\fi}\hss}% |
| 3579 |
\fi |
| 3580 |
\fi |
| 3581 |
$% |
| 3582 |
\fi |
| 3583 |
\ifdim \wd1<\dimen0 |
| 3584 |
\relsize{+1}% |
| 3585 |
\fi |
| 3586 |
\global\dimen4=\fontdimen5\the\font |
| 3587 |
}% |
| 3588 |
\endgroup |
| 3589 |
\ifnum #3=\z@ |
| 3590 |
\dimen2=1.067\ht0 |
| 3591 |
\divide \dimen4 by 2 |
| 3592 |
\advance \dimen4 by -\ht1 |
| 3593 |
\advance \dimen2 by .6\dimen4 |
| 3594 |
\else |
| 3595 |
\dimen2=-1.05\ht1 |
| 3596 |
\advance \dimen2 by -.75pt |
| 3597 |
\fi |
| 3598 |
\ifnum #3=\@ne |
| 3599 |
\ifdim \z@<\dp0 |
| 3600 |
\advance \dimen2 by -1\dp0 |
| 3601 |
\fi |
| 3602 |
\fi |
| 3603 |
\ifnum \M@metra=\@ne |
| 3604 |
\advance \dimen2 by -\M@dim@sunk |
| 3605 |
\fi |
| 3606 |
\M@Stack 0\relax |
| 3607 |
} |
| 3608 |
% \end{macrocode} |
| 3609 |
% |
| 3610 |
% \newpage |
| 3611 |
% |
| 3612 |
% \subsubsection{Interlinear signs} |
| 3613 |
% |
| 3614 |
% \paragraph{linea} |
| 3615 |
% |
| 3616 |
% \begin{macrocode} |
| 3617 |
\newcommand{\M@linea@star}[1][0]{\M@linea{1}{#1\baselineskip}} |
| 3618 |
\newcommand{\M@linea@nostar}[1][0]{\M@linea{0}{#1\baselineskip}} |
| 3619 |
% \end{macrocode} |
| 3620 |
% The actual |\linea| command is defined by means of |\novalinea| |
| 3621 |
% at the end of this section. |
| 3622 |
% \begin{macrocode} |
| 3623 |
\def\M@linea#1#2{% |
| 3624 |
% \end{macrocode} |
| 3625 |
% |#1| is 1 for the \texttt{*}-form, 0 for the normal form;\\ |
| 3626 |
% |#2| is the additional |\baselineskip| increment.\\ |
| 3627 |
% |\dimen1| is the displacement from the text margin;\\ |
| 3628 |
% |\dimen2| is the length of the line;\\ |
| 3629 |
% |\dimen3| is the |\baselineskip| increment |
| 3630 |
% \begin{macrocode} |
| 3631 |
\leavevmode |
| 3632 |
\let\next=\relax |
| 3633 |
\ifnum #1=\@ne |
| 3634 |
\let\next=\@gobble |
| 3635 |
\fi |
| 3636 |
\global\M@linea@length=\dimen2 |
| 3637 |
\dimen0=.75\baselineskip |
| 3638 |
\ifM@imago |
| 3639 |
\advance \dimen0 by #2\relax |
| 3640 |
\global\M@linea@indent=\z@ |
| 3641 |
\else |
| 3642 |
\advance \dimen3 by #2\relax |
| 3643 |
\vadjust{\kern \dimen3}% |
| 3644 |
\ifnum #1=\@ne |
| 3645 |
\par |
| 3646 |
\else |
| 3647 |
\\% |
| 3648 |
\fi |
| 3649 |
\leavevmode |
| 3650 |
\kern \dimen1 |
| 3651 |
\global\M@linea@indent=\dimen1 |
| 3652 |
\fi |
| 3653 |
\raisebox {\dimen0}[\z@][\z@]% |
| 3654 |
{\hbox to \dimen2{\leaders\hrule\hfill}}% |
| 3655 |
\global\M@linea@height=\dimen0 |
| 3656 |
\ifM@imago |
| 3657 |
\else |
| 3658 |
\dimen0=\dimen2 |
| 3659 |
\advance \dimen0 by \dimen1 |
| 3660 |
\kern -\dimen0 |
| 3661 |
\fi |
| 3662 |
\if \M@before@linea\relax |
| 3663 |
\else |
| 3664 |
\expandafter\M@@before@linea\M@before@linea |
| 3665 |
\fi |
| 3666 |
\next |
| 3667 |
} |
| 3668 |
% \end{macrocode} |
| 3669 |
% |
| 3670 |
% \paragraph{geminata} |
| 3671 |
% |
| 3672 |
% \begin{macrocode} |
| 3673 |
\newcommand{\geminata}{% |
| 3674 |
\@ifstar{\M@geminata@star}{\M@geminata@nostar}} |
| 3675 |
\newcommand{\M@geminata@star}[1][0]% |
| 3676 |
{\M@geminata{1}{#1\baselineskip}} |
| 3677 |
\newcommand{\M@geminata@nostar}[1][0]% |
| 3678 |
{\M@geminata{0}{#1\baselineskip}} |
| 3679 |
% \end{macrocode} |
| 3680 |
% |
| 3681 |
% \begin{macrocode} |
| 3682 |
\def\M@geminata#1#2{% |
| 3683 |
% \end{macrocode} |
| 3684 |
% |#1|: 1 for the \texttt{*}-form, 2 for the normal form;\\ |
| 3685 |
% |#2|: the additional displacement from the preceding line\\ |
| 3686 |
% |\dimen1| is the displacement from the text margin;\\ |
| 3687 |
% |\dimen2| is the length;\\ |
| 3688 |
% |\dimen3| is the |\baselineskip| increment |
| 3689 |
% \begin{macrocode} |
| 3690 |
\leavevmode |
| 3691 |
\M@linea@dimentrue \linea \M@linea@dimenfalse |
| 3692 |
\let\next=\relax |
| 3693 |
\ifnum #1=\@ne \let\next=\@gobble \fi |
| 3694 |
\dimen0=.75\baselineskip |
| 3695 |
\ifM@imago |
| 3696 |
\advance \dimen0 by #2\relax |
| 3697 |
\else |
| 3698 |
\advance \dimen3 by #2\relax |
| 3699 |
\vadjust{\kern \dimen3}% |
| 3700 |
\ifnum #1=\@ne \par \else \\\fi |
| 3701 |
\leavevmode |
| 3702 |
\kern \dimen1 |
| 3703 |
\fi |
| 3704 |
\raisebox {\dimen0}[\z@][\z@]% |
| 3705 |
{\hbox to \dimen2{\leaders\hrule\hfill}}% |
| 3706 |
\kern -\dimen2 |
| 3707 |
\advance \dimen0 by -.075\baselineskip |
| 3708 |
\global\M@linea@height=\dimen0 |
| 3709 |
\advance \dimen0 by -.075\baselineskip |
| 3710 |
\raisebox {\dimen0}[\z@][\z@]% |
| 3711 |
{\hbox to \dimen2{\leaders\hrule\hfill}}% |
| 3712 |
\ifM@imago |
| 3713 |
\else |
| 3714 |
\dimen0=\dimen2 |
| 3715 |
\advance \dimen0 by \dimen1 |
| 3716 |
\kern -\dimen0 |
| 3717 |
\fi |
| 3718 |
\next |
| 3719 |
} |
| 3720 |
% \end{macrocode} |
| 3721 |
% |
| 3722 |
% \paragraph{bifida} |
| 3723 |
% |
| 3724 |
% \begin{macrocode} |
| 3725 |
\newcommand{\bifida}{\def\M@before@linea{0}\linea} |
| 3726 |
\let\lineabifida=\bifida |
| 3727 |
\newcommand{\Bifida}{\def\M@before@linea{1}\linea} |
| 3728 |
\let\Lineabifida=\Bifida |
| 3729 |
\newcommand{\lunata}{\def\M@before@linea{2}\linea} |
| 3730 |
\let\linealunata=\lunata |
| 3731 |
\newcommand{\Lunata}{\def\M@before@linea{3}\linea} |
| 3732 |
\let\Linealunata=\Lunata |
| 3733 |
% \end{macrocode} |
| 3734 |
% Place |>| or |(| in front of |\linea| |
| 3735 |
% \begin{macrocode} |
| 3736 |
\def\M@@before@linea#1{% |
| 3737 |
\leavevmode |
| 3738 |
\begingroup |
| 3739 |
\M@cmr |
| 3740 |
\ifM@imago |
| 3741 |
\dimen0=-\M@linea@length |
| 3742 |
\else |
| 3743 |
\dimen0=\M@linea@indent |
| 3744 |
\fi |
| 3745 |
\dimen1=\M@linea@height |
| 3746 |
\ifcase #1\relax |
| 3747 |
\setbox0=\hbox{$\scriptscriptstyle>$}% |
| 3748 |
\ifcase \@ptsize |
| 3749 |
\advance \dimen1 by -.327\ht0 |
| 3750 |
\dimen2=-.785\wd0 |
| 3751 |
\or |
| 3752 |
\advance \dimen1 by -.357\ht0 |
| 3753 |
\dimen2=-.78\wd0 |
| 3754 |
\or |
| 3755 |
\advance \dimen1 by -.33\ht0 |
| 3756 |
\dimen2=-.78\wd0 |
| 3757 |
\fi |
| 3758 |
\or |
| 3759 |
\setbox0=\hbox{$\scriptstyle>$}% |
| 3760 |
\ifcase \@ptsize |
| 3761 |
\advance \dimen1 by -.357\ht0 |
| 3762 |
\dimen2=-.81\wd0 |
| 3763 |
\or |
| 3764 |
\advance \dimen1 by -.405\ht0 |
| 3765 |
\dimen2=-.78\wd0 |
| 3766 |
\or |
| 3767 |
\advance \dimen1 by -.395\ht0 |
| 3768 |
\dimen2=-.78\wd0 |
| 3769 |
\fi |
| 3770 |
\or |
| 3771 |
\setbox0=\hbox{)}% |
| 3772 |
\dimen2=-.725\wd0 |
| 3773 |
\advance \dimen1 by -.28\ht0 |
| 3774 |
\or |
| 3775 |
\setbox0=\hbox{\bgroup \relsize{+1})\egroup}% |
| 3776 |
\dimen2=-.6\wd0 |
| 3777 |
\advance \dimen1 by -.28\ht0 |
| 3778 |
\fi |
| 3779 |
\kern \dimen0 \kern \dimen2 |
| 3780 |
\ifM@imago |
| 3781 |
\else |
| 3782 |
\global\advance\M@linea@indent by \dimen2 |
| 3783 |
\fi |
| 3784 |
\global\advance \M@linea@length by -\dimen2 |
| 3785 |
\raisebox {\dimen1}[\z@][\z@]{\copy0}% |
| 3786 |
\advance \dimen2 by \wd0 |
| 3787 |
\kern -\dimen0 |
| 3788 |
\kern -\dimen2 |
| 3789 |
\endgroup |
| 3790 |
\def\M@before@linea{\relax}% |
| 3791 |
} |
| 3792 |
% \end{macrocode} |
| 3793 |
% |
| 3794 |
% \paragraph{antelineam and postlineam} |
| 3795 |
% |
| 3796 |
% \begin{macrocode} |
| 3797 |
\newcommand{\antelineam}{\M@adlineam{0}} |
| 3798 |
\newcommand{\postlineam}{\M@adlineam{1}} |
| 3799 |
% \end{macrocode} |
| 3800 |
% |
| 3801 |
% \begin{macrocode} |
| 3802 |
\def\M@adlineam#1#2{\leavevmode |
| 3803 |
\setbox0=\hbox{\hss |
| 3804 |
\bgroup #2\relax \global\dimen0=-.5ex \egroup \hss}% |
| 3805 |
\kern \M@linea@indent |
| 3806 |
\ifnum #1=\z@ |
| 3807 |
\kern -\wd0 |
| 3808 |
\else |
| 3809 |
\kern \M@linea@length |
| 3810 |
\fi |
| 3811 |
\advance \dimen0 by \M@linea@height |
| 3812 |
\raisebox {\dimen0}[\z@][\z@]{\copy0}% |
| 3813 |
\kern -\M@linea@indent |
| 3814 |
\ifnum #1=\z@ |
| 3815 |
\else |
| 3816 |
\kern -\wd0 |
| 3817 |
\kern -\M@linea@length |
| 3818 |
\fi |
| 3819 |
} |
| 3820 |
% \end{macrocode} |
| 3821 |
% |
| 3822 |
% \paragraph{coronis} |
| 3823 |
% |
| 3824 |
% \begin{macrocode} |
| 3825 |
\newcommand{\coronis}{% |
| 3826 |
\@ifstar{\M@coronis@star}{\M@coronis@nostar}} |
| 3827 |
\let\koronis=\coronis |
| 3828 |
\newcommand{\M@coronis@star}[1][0]% |
| 3829 |
{\M@coronis{1}{#1\baselineskip}} |
| 3830 |
\newcommand{\M@coronis@nostar}[1][0]% |
| 3831 |
{\M@coronis{0}{#1\baselineskip}} |
| 3832 |
% \end{macrocode} |
| 3833 |
% |
| 3834 |
% \begin{macrocode} |
| 3835 |
\def\M@coronis#1#2{\leavevmode |
| 3836 |
\let\next=\relax |
| 3837 |
\begingroup |
| 3838 |
\normalsize |
| 3839 |
\global\dimen2=\baselineskip |
| 3840 |
\endgroup |
| 3841 |
\ifcase \@ptsize |
| 3842 |
\dimen0=.67em |
| 3843 |
\or |
| 3844 |
\dimen0=.7em |
| 3845 |
\or |
| 3846 |
\dimen0=.65em |
| 3847 |
\fi |
| 3848 |
\ifM@imago |
| 3849 |
\dimen3=\z@ |
| 3850 |
\advance \dimen3 by #2\relax |
| 3851 |
\else |
| 3852 |
\ifnum #1=\@ne \let\next=\@gobble \fi |
| 3853 |
\vadjust{\kern #2}% |
| 3854 |
\ifnum #1=\@ne \par \else \\\fi |
| 3855 |
\leavevmode |
| 3856 |
\kern -1.6\dimen0 |
| 3857 |
\fi |
| 3858 |
\dimen1=.75\dimen2 |
| 3859 |
\ifM@imago \advance \dimen1 by \dimen3 \fi |
| 3860 |
% \end{macrocode} |
| 3861 |
% The central line |
| 3862 |
% \begin{macrocode} |
| 3863 |
\raisebox {\dimen1}[\z@][\z@]% |
| 3864 |
{\hbox to \dimen0{\leaders \hrule \hfill}}% |
| 3865 |
\global\M@linea@length=\dimen0 |
| 3866 |
\global\M@linea@height=\dimen1 |
| 3867 |
\kern -\dimen0 |
| 3868 |
% \end{macrocode} |
| 3869 |
% The lines above |
| 3870 |
% \begin{macrocode} |
| 3871 |
\dimen1=\dimen2 |
| 3872 |
\ifM@imago \advance \dimen1 by \dimen3 \fi |
| 3873 |
\raisebox {\dimen1}[0pt][0pt]% |
| 3874 |
{\hbox to \dimen0{% |
| 3875 |
\hss \hbox to .6\dimen0{\leaders \hrule \hfill}\hss}}% |
| 3876 |
\kern -\dimen0 |
| 3877 |
\dimen1=1.1\dimen2 |
| 3878 |
\ifM@imago \advance \dimen1 by \dimen3 \fi |
| 3879 |
\raisebox {\dimen1}[0pt][0pt]% |
| 3880 |
{\hbox to \dimen0{% |
| 3881 |
\hss \hbox to .4\dimen0{\leaders \hrule \hfill}\hss}}% |
| 3882 |
\kern -\dimen0 |
| 3883 |
\dimen1=1.2\dimen2 |
| 3884 |
\ifM@imago \advance \dimen1 by \dimen3 \fi |
| 3885 |
\raisebox {\dimen1}[\z@][\z@]% |
| 3886 |
{\hbox to \dimen0{% |
| 3887 |
\hss\hbox to .25\dimen0{\leaders \hrule \hfill}\hss}}% |
| 3888 |
\kern -\dimen0 |
| 3889 |
% \end{macrocode} |
| 3890 |
% The lines below |
| 3891 |
% \begin{macrocode} |
| 3892 |
\dimen1=\if \@ptsize 2 .375\else .35\fi\dimen2 |
| 3893 |
\ifM@imago \advance \dimen1 by \dimen3 \fi |
| 3894 |
\raisebox {\dimen1}[\z@][\z@]% |
| 3895 |
{\hbox to \dimen0{% |
| 3896 |
\hss \hbox to .6\dimen0{\leaders \hrule \hfill}\hss}}% |
| 3897 |
\kern -\dimen0 |
| 3898 |
\dimen1=\if \@ptsize 2 .275\else .25\fi\dimen2 |
| 3899 |
\ifM@imago \advance \dimen1 by \dimen3 \fi |
| 3900 |
\raisebox {\dimen1}[0pt][0pt]% |
| 3901 |
{\hbox to \dimen0{% |
| 3902 |
\hss \hbox to .4\dimen0{\leaders \hrule \hfill}\hss}}% |
| 3903 |
\kern -\dimen0 |
| 3904 |
\dimen1=\if \@ptsize 2 .175\else .15\fi\dimen2 |
| 3905 |
\ifM@imago \advance \dimen1 by \dimen3 \fi |
| 3906 |
\raisebox {\dimen1}[\z@][\z@]% |
| 3907 |
{\hbox to \dimen0{% |
| 3908 |
\hss \hbox to .25\dimen0{\leaders \hrule \hfill}\hss}}% |
| 3909 |
\kern -\dimen0 |
| 3910 |
% \end{macrocode} |
| 3911 |
% The bottom squiggle |
| 3912 |
% \begin{macrocode} |
| 3913 |
\setbox0=\hbox{\begingroup |
| 3914 |
\fontencoding{OT1}\fontfamily{cmr}\fontseries{m}% |
| 3915 |
\fontshape{it}\selectfont ,\endgroup}% |
| 3916 |
\dimen1=\if \@ptsize 2 0\else -.03\fi\dimen2 |
| 3917 |
\ifM@imago \advance \dimen1 by \dimen3 \fi |
| 3918 |
\raisebox {\dimen1}[\z@][\z@]% |
| 3919 |
{\hbox to \dimen0{\hss \kern -.1\wd0\box0\hss}}% |
| 3920 |
\kern -\dimen0 |
| 3921 |
% \end{macrocode} |
| 3922 |
% The top squiggle |
| 3923 |
% \begin{macrocode} |
| 3924 |
\setbox0=\hbox{\begingroup |
| 3925 |
\fontencoding{OT1}\fontfamily{cmr}\fontseries{m}% |
| 3926 |
\fontshape{it}\selectfont \char'140 \endgroup}% |
| 3927 |
\dimen1=.97\dimen2 |
| 3928 |
\ifM@imago \advance \dimen1 by \dimen3 \fi |
| 3929 |
\raisebox {\dimen1}[\z@][\z@]% |
| 3930 |
{\hbox to \dimen0{\hss \kern -.5\wd0\box0\hss}}% |
| 3931 |
\kern -\dimen0 |
| 3932 |
% \end{macrocode} |
| 3933 |
% The small circle |
| 3934 |
% \begin{macrocode} |
| 3935 |
\setbox0=\hbox{\begingroup \tencirc \char"61 \endgroup}% |
| 3936 |
\setbox0=\hbox{\begingroup |
| 3937 |
\kern 1.1\wd0 \tencirc \char"61 \endgroup}% |
| 3938 |
\dimen1=\if \@ptsize 2 .85\else .86\fi\dimen2 |
| 3939 |
\ifM@imago \advance \dimen1 by \dimen3 \fi |
| 3940 |
\raisebox {\dimen1}[0pt][0pt]% |
| 3941 |
{\hbox to \dimen0{\hss \box0 \hss}}% |
| 3942 |
\kern -\dimen0 |
| 3943 |
% \end{macrocode} |
| 3944 |
% The big circle |
| 3945 |
% \begin{macrocode} |
| 3946 |
\setbox0=\hbox{% |
| 3947 |
\hss \begingroup \tencirc \char"63 \endgroup \hss}% |
| 3948 |
\setbox0=\hbox{\hss \begingroup |
| 3949 |
\kern 1.05\wd0 \tencirc \char"63 \endgroup \hss}% |
| 3950 |
\dimen1=\if \@ptsize 2 .61\else .59\fi\dimen2 |
| 3951 |
\ifM@imago \advance \dimen1 by \dimen3 \fi |
| 3952 |
\raisebox {\dimen1}[\z@][\z@]% |
| 3953 |
{\hbox to \dimen0{\hss \box0 \hss}}% |
| 3954 |
\ifM@imago |
| 3955 |
\else |
| 3956 |
\kern .6\dimen0 |
| 3957 |
\fi |
| 3958 |
\next |
| 3959 |
} |
| 3960 |
% \end{macrocode} |
| 3961 |
% \paragraph{Generating the signs within the text} |
| 3962 |
% |
| 3963 |
% \begin{macrocode} |
| 3964 |
\newcommand{\imago}{\@ifstar{\M@imago@star}{\M@imago@nostar}} |
| 3965 |
\newcommand{\M@imago@star}[2][0]{\M@imago{1}{#1}{#2}} |
| 3966 |
\newcommand{\M@imago@nostar}[2][0]{\M@imago{0}{#1}{#2}} |
| 3967 |
% \end{macrocode} |
| 3968 |
% |
| 3969 |
% \begin{macrocode} |
| 3970 |
\def\M@imago#1#2#3{\leavevmode |
| 3971 |
\setbox0=\hbox{\begingroup \M@imagotrue {#3[#2]}\endgroup}% |
| 3972 |
\setbox1=\hbox to \M@linea@length{% |
| 3973 |
\hss |
| 3974 |
\ifnum #1=\@ne |
| 3975 |
\dimen0=\M@linea@height |
| 3976 |
\advance \dimen0 by -.4ex |
| 3977 |
\raisebox {-\dimen0}[\z@][\z@]{\box0}% |
| 3978 |
\else |
| 3979 |
\box0 |
| 3980 |
\fi |
| 3981 |
}% |
| 3982 |
\box1\relax |
| 3983 |
} |
| 3984 |
% \end{macrocode} |
| 3985 |
% \paragraph{Defining new signs} |
| 3986 |
% |
| 3987 |
% \begin{macrocode} |
| 3988 |
\newcommand{\novalinea}[4]{% |
| 3989 |
\def#1{\leavevmode |
| 3990 |
\dimen1=#2\relax \dimen2=#3\relax |
| 3991 |
\dimen3=#4\baselineskip |
| 3992 |
\ifM@linea@dimen |
| 3993 |
\let\next=\relax |
| 3994 |
\else |
| 3995 |
\let\next=\M@do@linea |
| 3996 |
\fi |
| 3997 |
\next}% |
| 3998 |
} |
| 3999 |
% \end{macrocode} |
| 4000 |
% |
| 4001 |
% \begin{macrocode} |
| 4002 |
\def\M@do@linea{\@ifstar{\M@linea@star}{\M@linea@nostar}} |
| 4003 |
% \end{macrocode} |
| 4004 |
% |
| 4005 |
% \begin{macrocode} |
| 4006 |
\newcommand{\novageminata}[4]{% |
| 4007 |
\def#1{\leavevmode |
| 4008 |
\dimen1=#2\relax \dimen2=#3\relax |
| 4009 |
\dimen3=#4\baselineskip |
| 4010 |
\@ifstar{\M@geminata@star}{\M@geminata@nostar}}% |
| 4011 |
} |
| 4012 |
% \end{macrocode} |
| 4013 |
% |
| 4014 |
% \begin{macrocode} |
| 4015 |
\novalinea{\linea}{-.75em}{1.5em}{.15} |
| 4016 |
% \end{macrocode} |
| 4017 |
% \subsubsection{\textit{Miscellanea}} |
| 4018 |
% |
| 4019 |
% \paragraph{lineola} |
| 4020 |
% |
| 4021 |
% \begin{macrocode} |
| 4022 |
\newcommand{\lineola}[2][0]{\leavevmode |
| 4023 |
\dimen0=.75\baselineskip |
| 4024 |
\advance \dimen0 by #1\baselineskip |
| 4025 |
\raisebox {\dimen0}[\z@][\z@]% |
| 4026 |
{\hbox to #2{\leaders \hrule \hfill}}% |
| 4027 |
\kern -#2\relax |
| 4028 |
} |
| 4029 |
% \end{macrocode} |
| 4030 |
% |
| 4031 |
% \paragraph{Lineola} |
| 4032 |
% |
| 4033 |
% \begin{macrocode} |
| 4034 |
\newcommand{\Lineola}[2][0]{\leavevmode |
| 4035 |
\setbox0=\hbox{#2}% |
| 4036 |
\copy0 \kern -\wd0 |
| 4037 |
\lineola[#1]{\wd0}% |
| 4038 |
\kern \wd0\relax |
| 4039 |
} |
| 4040 |
% \end{macrocode} |
| 4041 |
% |
| 4042 |
% \paragraph{structa} |
| 4043 |
% |
| 4044 |
% \begin{macrocode} |
| 4045 |
\newcommand{\structa}[3][0]{\leavevmode |
| 4046 |
\setbox0=\hbox{\begingroup #2\endgroup}% |
| 4047 |
\ifdim \ht0=\z@ |
| 4048 |
\ifdim \dp0=\z@ |
| 4049 |
\ht0=1ex |
| 4050 |
\fi |
| 4051 |
\fi |
| 4052 |
\setbox1=\hbox to \wd0{\hss\begingroup #3\endgroup\hss}% |
| 4053 |
\dimen2 = \ht0 |
| 4054 |
\advance \dimen2 by .15ex |
| 4055 |
\advance \dimen2 by #1ex |
| 4056 |
\dimen3 = \z@ |
| 4057 |
\M@Stack 0\relax |
| 4058 |
} |
| 4059 |
% \end{macrocode} |
| 4060 |
% \vspace{1ex} |
| 4061 |
% \quad |
| 4062 |
% \begin{metrica} |
| 4063 |
% \Large\t{.11}\textit{f\kern .05em\=in\-is}% |
| 4064 |
% \end{metrica} |
| 4065 |
% |
| 4066 |
%% \Finale |
| 4067 |
% |
| 4068 |
\endinput |