Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I would like to include the following line from Wikipedia in a presentation:

στεγανός steganós ‚bedeckt‘ und γράφειν gráphein ‚schreiben‘

But I am unable to convince pdflatex to include the greek letters. I have already tried to use (from: Greek in LaTeX)

\usepackage[german,greek]{babel}
\usepackage[utf8]{inputenc}
...
\latintext
...
\textgreek{στεγανός} steganós ‚bedeckt‘

which printed the Latin text just fine, but the Greek text was not set at all. I would like to avoid using

$\sigma\tau\epsilon...$

if possible. I should also mention that I would like to achieve this with TeX Live-only packages.

share|improve this question
2  
\textgreek{steganos} steganós ‚bedeckt‘ works. –  Matsaya Oct 25 '11 at 10:52
1  
Of course you could always use xelatex. –  pmav99 Oct 25 '11 at 10:59
2  
Note that german is alte Rechtschreibung (old orthographic rules). For the current neue Rechtschreibung (new orthographic rules) use ngerman. –  doncherry Oct 25 '11 at 20:10

2 Answers 2

up vote 3 down vote accepted

Use

\usepackage{ucs}
\usepackage[utf8x]{inputenc}
\usepackage[greek,german]{babel}

If German is your main language, it should be specified last, avoiding the need to say \latintext. The main font family should have support for the Greek alphabet; without a minimal example it's hard to tell if it's the case.

share|improve this answer
    
Thank you, it works. –  bjoernz Oct 25 '11 at 10:57
    
I wouldn't use ucs/utf8x. My advice would be to get an actual lgrenc.dfu which can be used with the standard \usepackage[utf8]{inputenc}, see also this discussion: tex.stackexchange.com/questions/18572/… –  Ulrike Fischer Oct 25 '11 at 13:05
    
@UlrikeFischer I know about utf8x not being the most up-to-date way of dealing with UTF-8 encoded documents; unfortunately no lgrenc.dfu is still in TeX Live and requires manual intervention for installing it. For simple documents utf8x and ucs work well. I'd endorse requests for getting lgrenc.dfu into TeX Live and other distributions. –  egreg Oct 25 '11 at 13:12

As Matsaya pointed out: \textgreek{stegan'os} works as well. This command takes an argument in Latin letters and converts them to their Greek "counterparts" according to this overview. You don't have to enter actual Greek letters, which usually is more convenient. In your case, you already had the Greek letters from Wikipedia.

So for your example, I'd recommend the following setup:

\documentclass{beamer}

\usepackage[greek,ngerman]{babel}
\usepackage[utf8]{inputenc}

\usepackage{lmodern}
\usepackage[T1]{fontenc}

\begin{document}

\textgreek{stegan'os} steganós bedeckt

\end{document}

ngerman is assuming you're using the new othography. lmodern and fontenc provide you with a high-quality font (Latin Modern) that looks about the same as the standard LaTeX font, Computer Modern, see Latin Modern vs cm-super?.

share|improve this answer

Your Answer

 
discard

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.