I'd just like to add my use case, which basically involves a manual install of LGRx:
Essentially, all I want is to be able to type units like μW directly in UTF-8 in the source .tex file (that is, I'd rather not type constructs like \foreignlanguage{greek}{μ}W); and I need to be using pdflatex.
Currently I'm on a machine with texlive 2011, which I cannot upgrade fully at the moment.
On texlive 2011, the combo:
[utf8x]{inputenc/x} + [LGR, T1]{fontenc} + {textcomp}
generally works fine. Unfortunately, the problem is that additionally I need to be using biblatex, which chokes on the ucs package which utf8x loads.
So, I tried the [LGRx,T1]{fontenc} as recommended in the accepted answer - but it turns out, there is no LGRx encoding in texlive 2011 ...
So, after a bit of digging, this is what I ended up doing in bash:
wget http://milde.users.sourceforge.net/LGR/lgrxenc.def -O /path/to/texlive/2011/texmf-dist/tex/generic/babel/lgrxenc.def
texhash
wget http://milde.users.sourceforge.net/LGR/lgrenc.dfu -O /path/to/texlive/2011/texmf-dist/tex/latex/base/lgrenc.dfu
texhash
Note that you must call texhash (see LaTeX/Installing Extra Packages: 4. Update your index - Wikibooks) otherwise pdflatex will not be able to find the newly downloaded files.
With that, now the combo
[utf8]{inputenc/x} + [LGRx, T1]{fontenc} + {textcomp}
... works fine, like in this example:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[LGRx, T1]{fontenc}
\usepackage{textcomp}
\usepackage[backend=biber]{biblatex} % just testing - is OK
\begin{document}
μW
\end{document}
Note that
- the lgrxenc.def I've downloaded is v0.6/2012-06-29 , and it contains
\DeclareTextSymbol{\textmu}{LGR}{109} - while the latest lgrxenc.def v0.8 2013-05-30 is "backwards compatibility file for new lgrenc.def", and has fewer definitions (and \textmu is not present in it)
- the lgrenc.dfu I've downloaded is v0.2 2012-06-27; the latest is lgrenc.dfu v1.4.1 2013-07-18 and it has now a different location in the tree - but they both contain
\DeclareUnicodeCharacter{03BC}{\textmu}
- textcomp.sty is needed, as it defines
\DeclareTextSymbolDefault{\textmu}{TS1}
Well, hope this helps someone,
Cheers!
φ(U+03C6). – egreg Jan 05 '14 at 23:34