LaTeX forum ⇒ GeneralUpright Greek characters Topic is solved

General information and discussion about TeXnicCenter
thedrivingpete
Posts: 2
Joined: Wed Sep 07, 2016 1:45 pm

Upright Greek characters

Postby thedrivingpete » Wed Sep 07, 2016 1:54 pm

Hello everyone,

I am using Texniccenter 2.02 and use some greek letters in my text. Because they should not be italic like in math mode, I used for example $\upmu$.

But this is not set in the normal font the rest of the plain text is set in, but in the math font (I guess?). The font I use is libertine and that font has the greek letters, I just cant get Texniccenter to use them :(

I use:
  1. \usepackage[latin1]{inputenc}
  2. \usepackage{libertine}
  3. \usepackage{libertinust1math}
  4. \usepackage[T1]{fontenc}


an I would like to write for example
\char"03BC
to use the unicode character for mu. Is that possible somehow?
Thank you for your time, help is very much apprechiated!
Last edited by cgnieder on Tue Sep 13, 2016 8:45 pm, edited 2 times in total.
Reason: code marked, title edited

Tags:

User avatar
cgnieder
Site Moderator
Posts: 1988
Joined: Sat Apr 16, 2011 7:27 pm

Postby cgnieder » Tue Sep 13, 2016 8:42 pm

Welcome to the forum!

Your problem is not completely clear to me. However, here are a few examples of how to use upright Greek letters:

Single letters or short sentences in text:
  1. \documentclass{article}
  2. \usepackage{textgreek}
  3. \begin{document}
  4.  
  5. \textmu
  6.  
  7. {\textgreekfont P'ater}
  8.  
  9. \end{document}


Single upright letters in math:

  1. \documentclass{article}
  2. \usepackage{upgreek}
  3. \begin{document}
  4.  
  5. $\upmu$
  6.  
  7. \end{document}


Longer passages in text:

  1. \documentclass{article}
  2. \usepackage[polutonikogreek,english]{babel}
  3. \begin{document}
  4.  
  5. \foreignlanguage{polutonikogreek}{P'ater}
  6.  
  7. \end{document}


Regards
Clemens
------------------------------
chemmacros · chemformula · leadsheets · xsim

thedrivingpete
Posts: 2
Joined: Wed Sep 07, 2016 1:45 pm

Postby thedrivingpete » Fri Sep 16, 2016 1:00 pm

Hi Clemens,

thank you for this hint! I did not know about the \textgreek package and using that solved my problems.

Greeting from Freiburg,
Peter

User avatar
cgnieder
Site Moderator
Posts: 1988
Joined: Sat Apr 16, 2011 7:27 pm

Postby cgnieder » Fri Sep 16, 2016 6:07 pm

thedrivingpete wrote:Greeting from Freiburg


You also might be interested in TeXwelt and in the context of this thread in this particular question and its answers: Wie schreibe ich griechische Buchstaben aufrecht?

Regards
Clemens
------------------------------
chemmacros · chemformula · leadsheets · xsim


Return to “General”

Who is online

Users browsing this forum: No registered users and 3 guests