1

This question already has an answer here:

I need to write in my document some greek letter (outside any formulas). What do you suggest me? Thanks a lot

marked as duplicate by Troy, Stefan Pinnow, user31729, Schweinebacke, TeXnician Dec 9 '17 at 12:15

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

4

If it happens several times in your document it might be worthwile to use greek babel and the commands \textlatin and \textgreek as to switch.

Text can be input both by replacement characters as well as in unicode.

For more info consult the babel-greek documentation.

\documentclass{article}

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}

\usepackage[greek,english]{babel}

\begin{document}

\section{Latin Text:}

ABCDEFGHIJKLMNOPQRSTUVWXYZ

abcdefghijklmnopqrstuvwxyz


\greektext
\section{Έλληνες κείμενο -- 'Ellhnec ke'imeno}

ABCDEFGHIJKLMNOPQRSTUVWXYZ

abcdefghijklmnopqrstuvwxyz

\latintext
Latin Text again

\end{document}
  • there is this error Package inputenc Error: Unicode char \u8:Î not set up for use with LaTeX ...½ÎµÏ κείμενο -- 'Ellhnec ke'imeno} – ryuk Nov 22 '15 at 12:10
  • 1
    @ryuk This means the greek unicode characters I used in the second \section are getting broken when you copied and pasted the MWE into your editor. Make sure they appear as "real" greek in your editor and make sure you are saving the file as UTF8. – David Woitkowski Nov 22 '15 at 12:14
2

The simplest remains compiling with XeLaTeX, using an open type font with Greek letters and typesetting directly Greek letters:

\documentclass[12pt,a4paper]{article}
\usepackage{fontspec}
\setmainfont{Linux Libertine O}

\begin{document}

 Pythagoras and Euclid

 Πυθαγόρας και Ευκλείδης.

\end{document} 

enter image description here

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