GeneralUpright Greek characters

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

Upright Greek characters

Post by thedrivingpete »

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:

Code: Select all

\usepackage[latin1]{inputenc}
\usepackage{libertine}
\usepackage{libertinust1math}
\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.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

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

Upright Greek characters

Post by cgnieder »

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:

Code: Select all

\documentclass{article}
\usepackage{textgreek}
\begin{document}

\textmu

{\textgreekfont P'ater}

\end{document}
Single upright letters in math:

Code: Select all

\documentclass{article}
\usepackage{upgreek}
\begin{document}

$\upmu$

\end{document}
Longer passages in text:

Code: Select all

\documentclass{article}
\usepackage[polutonikogreek,english]{babel}
\begin{document}

\foreignlanguage{polutonikogreek}{P'ater}

\end{document}
Regards
site moderator & package author
thedrivingpete
Posts: 2
Joined: Wed Sep 07, 2016 1:45 pm

Thank you!

Post by thedrivingpete »

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: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Upright Greek characters

Post by cgnieder »

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
site moderator & package author
Post Reply