ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Protcode for context
@ 2010-05-20 15:29 John Culleton
  2010-05-20 15:37 ` Taco Hoekwater
  0 siblings, 1 reply; 4+ messages in thread
From: John Culleton @ 2010-05-20 15:29 UTC (permalink / raw)
  To: mailing list for ConTeXt users

The following works for pdftex
--------------------------------------
\rm
\pdfadjustspacing=2
\input protcode.tex
\pdfprotrudechars=2
\setprotcode\font
\pdffontexpand\rm 20 20 5 autoexpand
-----------------------------------
but on Context (mkii or mkiv) it gives this error:
--------------------------------------------
(./prot.tex (./protcode.tex)
! Missing font identifier.
<to be read again>
                   \edef
\checkfontclass #1->\edef
                          \fontclass {\executeifdefined {\fontclass -#1}{\fo...

\setcurrentfontstyle #1->\checkfontclass {#1}
                                             \edef \fontstyle {#1}\ifmmode 
\...
l.8 \pdffontexpand\rm
                      20 20 5 autoexpand
-------------------------------------------------------------
It does not matter whether I use minimals or texlive. 

-- 
John Culleton
Wexford Press

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Protcode for context
  2010-05-20 15:29 Protcode for context John Culleton
@ 2010-05-20 15:37 ` Taco Hoekwater
  2010-05-20 23:56   ` John Culleton
  0 siblings, 1 reply; 4+ messages in thread
From: Taco Hoekwater @ 2010-05-20 15:37 UTC (permalink / raw)
  To: mailing list for ConTeXt users

John Culleton wrote:
> The following works for pdftex
> --------------------------------------
> \rm
> \pdfadjustspacing=2
> \input protcode.tex
> \pdfprotrudechars=2
> \setprotcode\font
> \pdffontexpand\rm 20 20 5 autoexpand

\rm is not a font identifier in ConTeXt, but a full-blown font
switch, a bit like \rmfamily in latex.

The http://wiki.contextgarden.net/Protrusion  explains how to use
protrusion. The bottom line: if you want protrusion in context,
use context commands, not plain TeX commands.

Best wishes,
Taco
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Protcode for context
  2010-05-20 15:37 ` Taco Hoekwater
@ 2010-05-20 23:56   ` John Culleton
  2010-05-20 23:58     ` John Culleton
  0 siblings, 1 reply; 4+ messages in thread
From: John Culleton @ 2010-05-20 23:56 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Thursday 20 May 2010 11:37:15 Taco Hoekwater wrote:
> John Culleton wrote:
> > The following works for pdftex
> > --------------------------------------
> > \rm
> > \pdfadjustspacing=2
> > \input protcode.tex
> > \pdfprotrudechars=2
> > \setprotcode\font
> > \pdffontexpand\rm 20 20 5 autoexpand
>
> \rm is not a font identifier in ConTeXt, but a full-blown font
> switch, a bit like \rmfamily in latex.
>
> The http://wiki.contextgarden.net/Protrusion  explains how to use
> protrusion. The bottom line: if you want protrusion in context,
> use context commands, not plain TeX commands.
>
> Best wishes,
> Taco

Thanks much. That handles protrusion. 

I can't find a reference in the wiki for the HZ style of 
expansion/contraction of a font. I searched under HZ, autoexpand 
and so on. What is the keyword for mkiv?
-- 
John Culleton
Wexford Press
"Create Book Covers with Scribus"
Printable E-book 38 pages $5.95
http://www.scribd.com/doc/24676863/
http://www.booklocker.com/books/4055.html
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Protcode for context
  2010-05-20 23:56   ` John Culleton
@ 2010-05-20 23:58     ` John Culleton
  0 siblings, 0 replies; 4+ messages in thread
From: John Culleton @ 2010-05-20 23:58 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Thursday 20 May 2010 19:56:00 John Culleton wrote:
> On Thursday 20 May 2010 11:37:15 Taco Hoekwater wrote:
> > John Culleton wrote:
> > > The following works for pdftex
> > > --------------------------------------
> > > \rm
> > > \pdfadjustspacing=2
> > > \input protcode.tex
> > > \pdfprotrudechars=2
> > > \setprotcode\font
> > > \pdffontexpand\rm 20 20 5 autoexpand
> >
> > \rm is not a font identifier in ConTeXt, but a full-blown font
> > switch, a bit like \rmfamily in latex.
> >
> > The http://wiki.contextgarden.net/Protrusion  explains how to 
use
> > protrusion. The bottom line: if you want protrusion in context,
> > use context commands, not plain TeX commands.
> >
> > Best wishes,
> > Taco
>
> Thanks much. That handles protrusion.
>
> I can't find a reference in the wiki for the HZ style of
> expansion/contraction of a font. I searched under HZ, 
autoexpand
> and so on. What is the keyword for mkiv?
 Never mind, found it under protrusion. 
-- 
John Culleton
Wexford Press
"Create Book Covers with Scribus"
Printable E-book 38 pages $5.95
http://www.scribd.com/doc/24676863/
http://www.booklocker.com/books/4055.html
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

end of thread, other threads:[~2010-05-20 23:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-20 15:29 Protcode for context John Culleton
2010-05-20 15:37 ` Taco Hoekwater
2010-05-20 23:56   ` John Culleton
2010-05-20 23:58     ` John Culleton

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).