ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* upshaped \textmu
@ 2005-06-09 18:16 Peter Münster
  2005-06-10  6:12 ` Taco Hoekwater
  0 siblings, 1 reply; 6+ messages in thread
From: Peter Münster @ 2005-06-09 18:16 UTC (permalink / raw)


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/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: upshaped \textmu
  2005-06-09 18:16 upshaped \textmu Peter Münster
@ 2005-06-10  6:12 ` Taco Hoekwater
  2005-06-10 13:40   ` Adam Lindsay
  2005-06-10 16:13   ` Peter Münster
  0 siblings, 2 replies; 6+ messages in thread
From: Taco Hoekwater @ 2005-06-10  6:12 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: upshaped \textmu
  2005-06-10  6:12 ` Taco Hoekwater
@ 2005-06-10 13:40   ` Adam Lindsay
  2005-06-10 14:05     ` Taco Hoekwater
  2005-06-10 16:13   ` Peter Münster
  1 sibling, 1 reply; 6+ messages in thread
From: Adam Lindsay @ 2005-06-10 13:40 UTC (permalink / raw)


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
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: upshaped \textmu
  2005-06-10 13:40   ` Adam Lindsay
@ 2005-06-10 14:05     ` Taco Hoekwater
  0 siblings, 0 replies; 6+ messages in thread
From: Taco Hoekwater @ 2005-06-10 14:05 UTC (permalink / raw)
  Cc: mailing list for ConTeXt users



Adam Lindsay wrote:
 >
> I brought this up with TS1/Companion encodings before on the list, but
> got the strong impression people weren't interested. :)

I didn't care back in the days when we still used a sane default
encoding ;)

Taco

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: upshaped \textmu
  2005-06-10  6:12 ` Taco Hoekwater
  2005-06-10 13:40   ` Adam Lindsay
@ 2005-06-10 16:13   ` Peter Münster
  2005-06-11  9:39     ` Peter Münster
  1 sibling, 1 reply; 6+ messages in thread
From: Peter Münster @ 2005-06-10 16:13 UTC (permalink / raw)


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/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: upshaped \textmu
  2005-06-10 16:13   ` Peter Münster
@ 2005-06-11  9:39     ` Peter Münster
  0 siblings, 0 replies; 6+ messages in thread
From: Peter Münster @ 2005-06-11  9:39 UTC (permalink / raw)


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/

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-06-11  9:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-09 18:16 upshaped \textmu Peter Münster
2005-06-10  6:12 ` Taco Hoekwater
2005-06-10 13:40   ` Adam Lindsay
2005-06-10 14:05     ` Taco Hoekwater
2005-06-10 16:13   ` Peter Münster
2005-06-11  9:39     ` Peter Münster

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).