I'm writing an essay in which I need the greek letters to be upright. I have fixed this by applying the accepted solution given to this question. I quote from that solution:




\greektext A whole paragraph in greek letters \latintext


However, when i try to write the letter phi, by using the Latin letter f, I get a version of phi that I don't want. It looks kinda like this enter image description here (only upright) but I want it to look like this enter image description here (only upright) which is the version I get when I use the standard \phi within the math environment.

  • A tip: If you indent lines by 4 spaces, then they are marked as a code sample. You can also highlight the code and click the "code" button (with "{}" on it). Aug 8 '11 at 15:07
  • Have you tried XeLaTeX? It works with Unicode and is a lot better at multilingual typesetting. Aug 8 '11 at 15:14
  • 1
    A brief look at the documentation of cbgreek reveals it has no such letter (a variant of normal phi) defined. The LGR encoding used in \greektext does not make letters active, so one cannot do something like \let\textphi\textvarphi either.
    – eudoxos
    Aug 8 '11 at 15:45
  • @Andrey Vihrov, thanks for the tip. I'll try to keep that in mind for next time I'll post. Also, I'll look into XeTeX.
    – Speldosa
    Aug 8 '11 at 17:33
  • @eudoxos Oh, so cbgreek is something else than the greek alphabet that is used in the math environment?
    – Speldosa
    Aug 8 '11 at 17:33

I don't think there is any way to do this via babel-interpreted keyboard input, at least not without serious hacking.

Now, if you're typesetting actual Greek, I would recommend simply going with the loopy phi. That's what's used in Greek writing.

If, however, you're typesetting Greek letters for science or math, there are some packages that provide an upright variant phi:

  • upgreek (Euler or Adobe Symbol): $\upphi$
  • txfonts (Times-like): $\phiup$
  • pxfonts (Palatino-like): $\phiup$

If you need these letters a lot, you could define marcos for them with shorter names. For other upright Greek letters from these packages, see The Comprehensive LaTeX Symbol List.

Another option would be looking for a font that has the variant you like (Don't know if that exists, cf. above) and using that, probabaly with XeLaTeX. For XeLaTeX, however, you should use polyglossia instead of babel. Then again, if you're using XeLaTeX already, you might as well just directly put in one of the phis available in Unicode: ϕφɸ. But since this would mean a lot of copy-and-pasting, this might miss your point entirely because you seem to be looking for a comfortable way of typing in Greek letters.

  • I'm just seeing that basically everything I'm saying has been said in the question you linked, but better and more detailed. Then I'm afraid, the only thing I can contribute here is my first two paragraphs. Generally, The distinction between Greek text (with babel) and Greek letters/symbols in science and math (with e.g. $\upphi$) is in line with the semantic markup that's typical of LaTeX.
    – doncherry
    Aug 8 '11 at 15:50
  • Thanks for the info. I'll look into what you told me (along with checking out the question I linked to) and get back here afterwards. For clarity, what I want to do is to include greek letters in a couple of instances in the text to describe some concepts that I've defined with help of greek letters.
    – Speldosa
    Aug 8 '11 at 17:39
  • Ok, I've checked out txfonts out now and they will do for the greek letters. However, I don't want to change anything else in my document. I only want the txfonts when it comes to greek letters as regular text (I'm happy with the way it looks in the math environment). Could somebody maybe give me a hint to how I should do this because I'm not entirely sure how to do it on my own.
    – Speldosa
    Aug 8 '11 at 18:05
  • 1
    @Speldosa: Then I'd definitely recommend forgetting about the babel part and using math upright Greek letters. Here's some info about changing the font for a certain paragraph/sentence, about changing the math font (which will change all equations), and here's how to find out the cryptic names of your fonts. TeX.sx knows everything :).
    – doncherry
    Aug 8 '11 at 18:52
  • I was pretty sure there were some info about this to on SE. Thanks for referring me to the right threads. I'll come back here and mark your answer as accepted as soon as I get it to work :)
    – Speldosa
    Aug 8 '11 at 19:16

So, I just happend to run over a solution that worked perfectly for me.

By placing \usepackage[varg]{txfonts} in the preamble, I get the times font for the text and txfonts for the math environment, typesetted in a way that looks estethically pleasing. When I just changed the math environment individually to txfonts it didn't look anything like this. Don't ask me why, I'm clueless, but at least it worked.

I found the package in this list over free math fonts: ftp://ctan.tug.org/tex-archive/info/Free_Math_Font_Survey/survey.html.

  • 1
    Cool. I just found this question (and some questions linked to it), which might help if you still wanted to try the other way round.
    – doncherry
    Aug 9 '11 at 9:06
  • Thanks, I'll save those questions as references if I want to do something similar later. For the time being, this solution fits me perfectly though so there's no reason to change it.
    – Speldosa
    Aug 9 '11 at 9:49

If you use the tipa phonetic symbols font, you can use \textphi to get the upright phi that you so desire, although it is in bold face, and appears to be the capital letter for phi.

If you use the wsuipa phonetic symbols font, you can use \niphi to also get the upright phi, except that it is not in bold face.

The fonts that support upright Greek letters, however, are txfonts/pxfonts and upgreek Upright Greek Letters fonts, respectively. With the txfonts/pxfonts font, there are two variants for phi, namely \phiup and \varphiup. With the upgreek font, they are \upphi and \upvarphi, respectively.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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