Hello, I've just read Taco's comment on the new feature-requests-page on the wiki, and I wonder how it's done in LaTeX. Isn't there a possibility to use ec-encoding for the main-font, and for some exceptions such as \textmu another encoding? What happens with the following LaTeX-example? \documentclass{article} \usepackage[T1]{fontenc}% Does "T1" mean the same as "ec" ? \usepackage{lmodern} \usepackage{textcomp} \begin{document} Textmu: \textmu \end{document} Cheers, Peter -- http://pmrb.free.fr/contact/
Peter Münster wrote:
Hello,
I've just read Taco's comment on the new feature-requests-page on the wiki, and I wonder how it's done in LaTeX.
LaTeX in ec encoding (that's what fontenc calls T1) takes the \textmu from the associated 'text companion' font, which is encoded in 'TS1'.
Isn't there a possibility to use ec-encoding for the main-font, and for some exceptions such as \textmu another encoding?
I'd been wrestling with that for a while before I wrote the remark, but I could not make that work in ConTeXt. Perhaps somebody else knows. Anyway, I think \textmu (which is probably only used for denoting 'micro'-units) should preferably be upright in roman text (and italic in italic text, bold in bold etc) but that is a bit complicated because it is not available in the ec encoding. It should be possible to switch the encoding for just a single command, but I could not figure out how. I tried to do something like \def\textmu{{\useecoding[texnansi]\char 181 }} but that doesn't work. Taco
Taco Hoekwater said this at Fri, 10 Jun 2005 08:12:27 +0200:
Isn't there a possibility to use ec-encoding for the main-font, and for some exceptions such as \textmu another encoding?
I'd been wrestling with that for a while before I wrote the remark, but I could not make that work in ConTeXt. Perhaps somebody else knows.
I really like what Vit did with his Storm font support, and I think it's probably the way to support "Companion" encodings in general. http://typokvitek.com/typokv-download-TeX-en.html Basically, he adopts a variant convention in his typescripts (main encoding, and the companion font is typesynonym'd to main encoding + suffix [e.g., ec-hoekwater and ec-hoekwater-companion]), and then defines the extra characters and font \variant[]s of the main encoding. Pretty clean, in my opinion. I brought this up with TS1/Companion encodings before on the list, but got the strong impression people weren't interested. :) -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Adam T. Lindsay, Computing Dept. atl@comp.lancs.ac.uk Lancaster University, InfoLab21 +44(0)1524/510.514 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
On Fri, 10 Jun 2005, Taco Hoekwater wrote:
I'd been wrestling with that for a while before I wrote the remark, but I could not make that work in ConTeXt.
This is, what I'm doing now: \let\textmuO=\textmu \def\textmu{{\usetypescript[modern][texnansi]% \setupbodyfont[modern]\textmuO}} But it would be better, to have something like this: \doifbodyfont{lmodern}{% Here I don't know, how to do it... \let\textmuO=\textmu \def\textmu{{\usetypescript[modern][texnansi]% \setupbodyfont[modern]\textmuO}}% } Cheers, Peter -- http://pmrb.free.fr/contact/
On Fri, 10 Jun 2005, Peter Münster wrote:
On Fri, 10 Jun 2005, Taco Hoekwater wrote:
I'd been wrestling with that for a while before I wrote the remark, but I could not make that work in ConTeXt.
This is, what I'm doing now:
\let\textmuO=\textmu \def\textmu{{\usetypescript[modern][texnansi]% \setupbodyfont[modern]\textmuO}}
Oh, no, completely wrong! With this hack, font switching (\it, \bf etc) does not work anymore... Peter -- http://pmrb.free.fr/contact/
participants (3)
-
Adam Lindsay
-
Peter Münster
-
Taco Hoekwater