TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

As fan of teubner.sty and gfsporson I've typed a long document with teubner-Glyph-macros >\~W f\ia le Fa\ic dre ktl.` By chance I found that, without changing anything, I can use the Greek letters themselves as input, which happens to be read somewhat easier.

Now, does anyone guess any shortcomings, pitfalls ... with the Greek input? I don't want to make anythings worse and I'm still hopeful that I will use LuaLaTeX one day. To give a MWE with the most important packages:

\usepackage{savesym, cmap}
\makeatletter\let\|=\relax\addto\greek@shorthands{\declare@shorthand{greek}\/}{\textormath{\penalty\@M\discretionary{-}{}{\kern.08em}\allowhyphens}{}}  % supposed to imitate "| for German language
  \declare@shorthand{greek}{\|}{\textormath{\penalty\@M\discretionary{}{}{\kern.08em}\nolinebreak}{}}  % to imitate "| but without allowing for line breaks
\begin{otherlanguage}{greek}Περὶ μὲν οὖν ἀ\|θανασίας αὐτῆς ἱκανῶς· περὶ δὲ τῆς ἰδέας αὐτῆς ὧδε λεκτέον· οἷον μέν ἐστι, πάντῃ πάντως θείας εἶναι καὶ μακρᾶς δι\/ηγήσεως, ᾧ δὲ ἔοικεν, ἀνθρωπίνης τε καὶ ἐλάττονος·\end{otherlanguage}
share|improve this question
I think part of your MWE got cut off: you need a \begin{document} and an \end{document}, with a little something in between. – Thérèse Aug 20 '14 at 19:33
@Thérèse I hope it works now -- I hate long lines, but else it will cut off two thirds of the doc. – Alexander Wittmann Aug 20 '14 at 19:42
up vote 10 down vote accepted

There is no difference. The character Σ is translated into


which is a single macro whose name is five character long, because Σ is two byte in UTF-8. This macro, in turn, is translated into


and, in a typesetting context, it becomes


The definition of this macro is

\LGR-cmd \textSigma \LGR\textSigma

which is three tokens, because the last one is a single control sequence; if the current encoding is LGR, which it is after \greektext has been given, just \LGR\textSigma survives, which, finally, becomes


and, in the LGR encoding, the slot "53 (decimal 83) contains an uppercase sigma.

Similarly, becomes

\IeC{\ensuregreek{\@tabacckludge ~>\textOmega}}

and, in the same way as before, this is the same as typing


which, with the ligature mechanism of LGR encoded fonts, prints “Ὦ”.

Thus typing

\textsc{SWKRATHS}\quad\>\~W f\ia le Fa\ic dre, po\ic{} d\hg{} ka\ig{} p\oa\/jen? ktl.


\textsc{ΣΩΚΡΑΤΗΣ}\quad  Ὦ φίλε Φαῖδρε, ποῖ δὴ καὶ πόθεν; κτλ.

is perfectly equivalent (after \greektext, of course, or something that implicitly executes this macro). The latter method is just a bit slower, because some macro expansion is involved; probably a few hundredths of a second for a long document.

Note, though, that ; will print a Greek semicolon (raised dot) and not a Greek question mark (Latin semicolon).

You need to type ; (U+037E) for a Greek question mark.

enter image description here

share|improve this answer
Very good! I used the glyph macros because in the teubner.doc it says that it makes a difference whether you write \'a or \aa. It does, if your faith is strong enough. That's why I defined (and overused) \/ and \|. – Alexander Wittmann Aug 20 '14 at 19:59
Thank you for pointing out how differently LaTeX understands ; and ;. The good thing is, I can still use the latin characters, so I write \textsc{ΣΩΚΡΑΤΗΣ}\quad Ὦ φίλε Φαῖδρε, ποῖ δὴ καὶ πό\|θεν? κτλ. – Alexander Wittmann Aug 20 '14 at 23:36

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.