If you just need a few words, then a simple approach can solve your problem:
\documentclass{article}
\usepackage[LGR,T1]{fontenc}
\newcommand{\textgreek}[1]{\begingroup\fontencoding{LGR}\selectfont#1\endgroup}
\begin{document}
physics (from ancient greek \textgreek{f'usis})
\end{document}
For longer passages, perhaps loading the polutoniko
option with babel
may be recommended. Check in the documentation of babel
for the translitteration scheme used.
You may also choose different fonts for Greek (the GFS fonts support many of them).
Update
With recent and uptodate TeX distributions, one can also input directly the Greek characters:
% -*- coding: utf-8 -*-
\documentclass{article}
\usepackage[LGR,T1]{fontenc}
\usepackage[utf8]{inputenc} % utf8 is required
\newcommand{\textgreek}[1]{\begingroup\fontencoding{LGR}\selectfont#1\endgroup}
\begin{document}
physics (from ancient greek \textgreek{φύσις})
\end{document}
You have to define a Greek font. There are some choices: the default Beccari fonts, which however are modelled from the CM fonts, or the Greek Font Society ones.
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[LGRx,T1]{fontenc}
\usepackage{kpfonts}
\usepackage[greek,english]{babel}
\newcommand{\test}[2]{{\fontencoding{LGR}\fontfamily{#1}\selectfont#2
-- αβγδε ζηθικλ μνοπρ σςτυφ χψω ΑΒΓΔΕ ΖΗΘΙΚ ΛΜΝΞΟΠ ΡΣΤΥ ΦΧΨΩ} ABEHKMNOPTXYZ}
\begin{document}
Test, \test{cmr}{χημεία}, test.
Test, \test{artemisia}{χημεία}, test.
Test, \test{gfsbaskerville}{χημεία}, test.
Test, \test{bodoni}{χημεία}, test.
Test, \test{complutum}{χημεία}, test.
Test, \test{udidot}{χημεία}, test.
Test, \test{neohellenic}{χημεία}, test.
Test, \test{porson}{χημεία}, test.
Test, \test{solomos}{χημεία}, test.
\end{document}
I've added to the test also the complete alphabet and some uppercase letters in with kpfonts
.
I'd exclude Bodoni, Complutum, NeoHellenic. Possibly recommendable are Artemisia or Didot.
If you choose Artemisia, you can patch the \greektext
macro with
\usepackage{xpatch}
\xpatchcmd{\greektext}{\selectfont}{\fontfamily{artemisia}\selectfont}{}{}
and use \textgreek
or \greektext
normally. Change artemisia
into udidot
if you want the Didot font.
Note I've used utf8
instead of utf8x
; in case you really want the latter, say
\usepackage[utf8x]{inputenc}
\usepackage[LGR,T1]{fontenc}
Best Answer
\varphi
,\varepsilon
and so on.If you want to use one variant throughout and save yourself a few keystrokes, put
\let\phi\varphi
in your preamble.The
kpfonts
package contains slanted and upright greek letters for mathmode.psgreek
provides some alternate Greek fonts.