You are not logged in.
Didn't exactly know where to put this, but I try to find a way to get upright greek letters in LaTeX, in the standard mode all the greek letters are in italics. I found a page where a solution is presented, but it somehow doesn't work and I'm not sure what to do now, so maybe someone here can help me with this or advise something different.
This is the page:
http://www.math.vanderbilt.edu/~schecte … onItalized
And this is the error I get:
Font family `OT1+cmg' unknown. ...lareFontShape{OT1}{cmg}{m}{n}{ cmg10}{}
Font shape `OT1/cmg/m/n' undefined(Font) using `OT1/cmr/m/n' instead on input line 24. Font shape `OT1/cmg/m/n' undefined(Font) using `OT1/cmr/m/n' instead
I understand that there is some package missing, but which one?
Last edited by JonathanArcher (2008-11-16 14:42:32)
Offline
I suppose it's greek fonts
Offline
I installed both the texlive-fontsextra and texlive-langgreek packages and one of the errors is gone now, but it still doesn't work as this error is still showing up:
Font family `OT1+cmg' unknown. ...lareFontShape{OT1}{cmg}{m}{n}{ cmg10}{}
Any more ideas?
Offline
Not the same fonts, sorry. The ones installed with texlive-fontsextra are for PCL printers. Name clash.
You need to do this:
$ cd
$ wget -O ~/kelly.zip http://www.ctan.org/get/fonts/greek/kelly.zip
$ unzip ~/kelly.zip
$ su - # if you prefer, sudo bash
# mkdir -p /usr/local/share/texmf/fonts/source/mf/kelly
# cp ~yourusername/kelly/*.mf /usr/local/share/texmf/fonts/source/mf/kelly
# texhash
# exitNow try to compile this:
\documentclass[a4paper]{article}
\usepackage{lipsum}
\DeclareFontFamily{OT1}{cmg}{}
\DeclareFontShape{OT1}{cmg}{m}{n}{<-> cmg10}{}
\begin{document}
\fontfamily{cmg}\selectfont\lipsum[1]
\end{document}Should work as expected. Please mind that \DeclareFontFamily must be before \DeclareFontShape.
HTH.
Last edited by syntaxerrormmm (2008-11-13 21:30:59)
syntaxerrormmm - Homepage
Offline
Just tried it out and it produces another error-message:
Font shape `OT1/cmg/m/it' undefined(Font) using `OT1/cmg/m/n' instead on input line 7. Font shape `OT1/cmg/m/it' undefined(Font) using `OT1/cmg/m/n' instead
Some font shapes were not available, defaults substituted.
Then all of the document is in greek-letters, except the headings of the sections and subsections. But I tried again the solution of the homepage I linked in the first post and put \DeclareFontFamily before FontShape as you said and it worked without any errors.
But it is not really how I would want it, only the mu is exchanged, but I need also other greek letters like alpha and beta and maybe a couple of others. Is there no solution that simply exchanges all the small italic greek letters with the upright ones?
I can't really believe that it is that difficult, a bit frustrating.
edit:
I tried one last time to find another solution searching with google and I found one! There is a package called upgreek and when you install and use it you can get the upright letters by using \upalpha, \upmu, etc. Works really well, so I'm very happy now ![]()
But thanks anyway for your help!
Last edited by JonathanArcher (2008-11-16 14:42:13)
Offline