Please consider this MWE:
Code: Select all
\documentclass{minimal}
\usepackage{lmodern}
\usepackage[utf8x]{inputenx} %
\usepackage[LGR, T1]{fontenc}
\usepackage{textcomp} % defines \textmu, which is now what inputenx seems to use for μ - probably due inpmath.. also \textdegree... but not \textrho
\begin{document}
Testing: μ ρ
\end{document}
Code: Select all
$ pdflatex test.tex
...
! LaTeX Error: Command \textrho unavailable in encoding T1.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.9 Testing: μ ρ
? X
No pages of output.
Transcript written on test.log.
Thanks in advance,
Cheers!
EDIT: Just found:
Mixing English and Ancient Greek in LaTeX | Vita Smid | Web designer & web developer
http://ze.phyr.us/en/blog/post/mixing-e ... k-in-latex
and it suggests:
Code: Select all
\documentclass{minimal}
%\usepackage{lmodern}
\usepackage[greek,english]{babel} % added
\usepackage[utf8x]{inputenx} %
\usepackage[LGR, T1]{fontenc}
\usepackage{textcomp} % defines \textmu, which is now what inputenx seems to use for μ - probably due inpmath.. also \textdegree... but not \textrho
\newcommand{\greek}[1]{{\selectlanguage{greek}#1}} % will look for grmn font: tlmgr install cbfonts (65 MB)
\begin{document}
Testing: \textmu{}W, \greek{μW, ρ}
\end{document}
1) I need to install additional fonts - and indeed, the 'μ' I get is different from the \textmu in Computer Modern
2) Even if I can live with a different font, I just want to write stuff like μW directly in Unicode - and I don't see a point in using a whole command like \greek{} for that.
3) The second MWE works when compiled once, but if you try it for a second time, pdflatex crashes with
Code: Select all
! LaTeX Error: Encoding scheme `' unknown.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.10 \select@language{english}
? X
No pages of output.
Transcript written on test.log.
So, I guess the question still stands - would it be possible to write stuff like μW in Unicode directly in .tex file?
Thanks..