Fonts & Character Setsupright \mu in latex

Information and discussion about fonts and character sets (e.g. how to use language specific characters)
Post Reply
rajini
Posts: 64
Joined: Mon Mar 22, 2010 2:27 pm

upright \mu in latex

Post by rajini »

Hello everyone,
In latex how to write a upright \mu.
I tried using \muup and \upmu but i am not getting..I tried even by enclosing them in { }..but no use..
It is not working even in $ $ mode.
I use the following packages:

Code: Select all

\usepackage[ngerman,english]{babel}
\usepackage{amsmath}
\usepackage{mathptmx}
\usepackage{lmodern} % math, rm, ss, tt
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}.
What wrong am i doing?
thanks
Last edited by rajini on Mon Mar 22, 2010 11:30 pm, edited 1 time 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
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

upright \mu in latex

Post by localghost »

Please clarify in which context you want to typeset this character, whether as a variable or as a unit prefix. And please always provide complete examples [1]. Code snippets are useless.

[1] View topic: Avoidable mistakes


Thorsten
rajini
Posts: 64
Joined: Mon Mar 22, 2010 2:27 pm

Re: upright \mu in latex

Post by rajini »

Opps,
sorry, it is obviously for unit
e.g., in micrometer. I want to substitute micro with upright \mu and there should not any space between the symbol and the letter 'm'.
i saw two upright symbol for \mu..(txfonts and upgreek) but don't know which to use?
thanks
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

upright \mu in latex

Post by localghost »

Take a look at the siunitx package. But you always can use \textmu from the textcomp package. Further solutions might be found in »The Comprehensive LaTeX Symbol List«.
rajini
Posts: 64
Joined: Mon Mar 22, 2010 2:27 pm

upright \mu in latex

Post by rajini »

If you dont mind would please write the code:
i used

Code: Select all

{\textmu}
..but it is not nice..i feel it looks like computer-like font..like the in in calculators..
I already have the portable document format of the comprehensive symbols..there i saw two commands:

Code: Select all

\muup
and

Code: Select all

\upmu
. Both of them are not working..
I even tried enclosing in side

Code: Select all

{ }
and also tried enclosing in

Code: Select all

$ $
..
please tell me how can i do..what package i should use..
You experts knows better...
thanks
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

upright \mu in latex

Post by gmedina »

Hi,

\upmu requires the upgreek package. An example:

Code: Select all

\documentclass{article}
\usepackage{upgreek}

\begin{document}

A slanted mu: $\mu$

An upright mu: $\upmu$. Requires the \texttt{upgreek} package.

\end{document}
\muup requires the txfonts package:

Code: Select all

\documentclass{article}
\usepackage{txfonts}

\begin{document}

A slanted mu: $\mu$

An upright mu: $\muup$. Requires the \texttt{txfonts} package.

\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
rajini
Posts: 64
Joined: Mon Mar 22, 2010 2:27 pm

Re: upright \mu in latex

Post by rajini »

Hi thanks..
I do not find much difference between the two symbols..both works in my case..
rajini
spiegboy
Posts: 120
Joined: Thu Dec 06, 2007 9:58 am

upright \mu in latex

Post by spiegboy »

just want to make a comment that any symbol question can be easily solved by refer to the comprehensive symbol list as you suggested here. Maybe it would be a good idea to post an article to detail all necessary documents for different categories of questions.
localghost wrote:Take a look at the siunitx package. But you always can use \textmu from the textcomp package. Further solutions might be found in »The Comprehensive LaTeX Symbol List«.
Post Reply