About these ads

Greek letters in text without changing to math mode

You don’t need to change to math mode every time you want to type a greek letter in normal text. Loading the textgreek package allows typesetting greek letters, generally just by adding a text-prefix to the letter name, e.g. for \Delta\beta it would be:

\usepackage{textgreek}
...
\textDelta\textbeta

The letters will adapt to the font style you are using (bold, italics, small capitals, etc.)

Furthermore, the author provides three different font types, cbgreek (default), euler, and artemisia. The font type can be change through the optional argument, when loading the package:

\usepackage[euler]{textgreek}

The differences are minor for most letters, check the documentation for details.

Complete command list (copied from the documentation):

Commands for greek letters in normal text.

Note, \mu is an exception. Since the textcomp package already provided a command textmu, the author decided to call it textmugreek instead. Use the latter to avoid unexpected results.

About these ads

10 Responses to “Greek letters in text without changing to math mode”

  • tmertzi (@tmertzi)

    For better results with greek *language* use babel or xetex. The greek letters in math mode are just symbols (no stresses or accents in a straightforward way)

    Good tip however

  • Sper

    It’s good to know, however. Thanks, Tom!

  • aucuneimportance

    What’s the difference with using \ensuremath{\alpha}

    Any way, what’s the problem with typing $\beta$ everytime ?

    • tom

      Hi there,

      The main advantage probably is that you don’t have to worry about font style (e.g. bold), it works just like for normal text. Also, the letters are not in italics by default. Other than that, I think you are right, it’s a personal choice whether you prefer switching to math mode or using the textgreek package.
      By the way, for bold symbols in math mode use:

      \usepackage{bm}
      ...
      $\boldsymbol{\beta}$

      Ensuremath has it’s own problems (see here for a discussion), but is also a valid choice in most cases.

      Best, Tom.

  • ABC

    Great guide! I will use it from now on! But…

    I am having trouble using this with \usepackage[sc]{mathpazo} that I put to use the Palatino font.

    Greek letters (e.g., \textbeta)
    (1) look ugly and pixelated (when zoomed in)
    (2) are not modified by \textbf and such
    (3) are not similar to the Palatino font

    If I remove the mathpazo package everything works (but I get the standard LaTeX font).

    Does anyone know a workaround for this? I know (3) is not the packages fault, but I would love to have upright greek fonts Palatino-like.

    Thanks

  • Marie Hoffmann

    Was wondering a long time, whether this would be possible. Thanks!
    Noticed, that the optional package is named “artemisia”, not “anthemisia” like written above.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 711 other followers

%d bloggers like this: