Re: [NTG-context] Using Luatex.

2011-07-01 Thread Wolfgang Schuster

Am 30.06.2011 um 18:21 schrieb John Culleton:

 Understood. I also found a chapter on fonts which I presume will go in a 
 manual yet to be written. In that chapter I found a \definefont command which 
 should allow me to emulate my previous use of the \font commmand. 
 In my work I frequently adjust font sizes by tiny increments to help fit text 
 better on a specific page etc. And customers sometimes want a specific 
 decorative font at a specific size. And the \font command is very direct. For 
 this reason in both LaTeX and Context I tend to revert to the primitive.

This is no reason why you have to use \definefont for each font you want to 
use, write a separate typeface for for each of them and switch to it, you can 
also select the size with this method. There are also many ways to influence 
how the lines are broken, see below for a few examples.

\definenarrower
  [adjustmargin]
  [  left=0.1mm,
   middle=0.1mm,
right=0.1mm]

\definefontfeature[default][default][expansion=yes]

\setupbodyfont[palatino,10bp]

\starttext \showframe

\input zapf

\startadjustmargin[10*right]
\input zapf
\stopadjustmargin

\start \setuptolerance[verytolerant,stretch]
\input zapf
\stop

\start \kerncharacters[0.01]
\input zapf
\stop

\start \setupalign[hz]
\input zapf
\stop

\start \switchtobodyfont[9.8bp]
\input zapf
\stop

\stoptext

Wolfgang

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


Re: [NTG-context] Using Luatex.

2011-06-30 Thread John Culleton
On Wednesday, June 29, 2011 05:01:29 pm Wolfgang Schuster 
wrote:
 Am 29.06.2011 um 22:50 schrieb John Culleton:
  Been away for a while. Currently using luatex for 
lightly formatted
  documents. But I want to use Context for my next job 
(lots of
  formatting). How do I incorporate luatex and the fonts 
found by luatex
  in my Context file? And should I use MKII or MKIV?
 
 John, the question you should ask yourself is if ConTeXt 
is the right tool
 for you.
 
 What i learnt from you past mails is that you always use 
many macros from
 files which are written for plain TeX instead of 
ConTeXt’s own mechanism.
 When you really want to use ConTeXt then use ConTeXt’s 
commands to change
 the font, the layout and also to produce a index etc.
 
 Wolfgang
 
 
 
___
  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
 
___
 

Understood. I also found a chapter on fonts which I presume 
will go in a manual yet to be written. In that chapter I 
found a \definefont command which should allow me to 
emulate my previous use of the \font commmand. 

In my work I frequently adjust font sizes by tiny 
increments to help fit text better on a specific page etc. 
And customers sometimes want a specific decorative font at 
a specific size. And the \font command is very direct. For 
this reason in both LaTeX and Context I tend to revert to 
the primitive. 

The new task I have in front of me will have a complex 
layout where the features of Context for lists within lists 
etc. will be most useful. And there will be lots of small 
illustrations. So I will do it in Context. 

Thanks as always for the help from this list. 


-- 
John Culleton
Able Indexers and Typesetters
Cover design, Indexing, Interior Layout
___
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
___

[NTG-context] Using Luatex.

2011-06-29 Thread John Culleton
Been away for a while. Currently using luatex for lightly 
formatted documents. But I want to use Context for my next
job (lots of formatting). How do I incorporate luatex and 
the fonts found by luatex in my Context file? 

And should I use MKII or MKIV?

My luatex books are basically pdftex files with a few 
statements to get at fonts not included with TeX, e.g.,

\input luaotfload.sty
\font\lll={CHOPS___.TTF} at 48bp
\font\lk={CHOPS___.TTF} at 36bp
\font\hl={CHOPS___.TTF} at 16bp
\font\head={CHOPS___.TTF} at 26bp
\font\lr pplr7t at 12bp 
\font\llr pplr7t at 14bp 
\font\rm pplr7t at 10bp 
\font\it pplri7t at 10bp
\font\bf pplb7t at 10bp


-- 
John Culleton
Able Indexers and Typesetters
Cover design, Indexing, Interior Layout
___
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
___

Re: [NTG-context] Using Luatex.

2011-06-29 Thread Wolfgang Schuster

Am 29.06.2011 um 22:50 schrieb John Culleton:

 Been away for a while. Currently using luatex for lightly formatted 
 documents. But I want to use Context for my next
 job (lots of formatting). How do I incorporate luatex and the fonts found by 
 luatex in my Context file? 
 And should I use MKII or MKIV?

John, the question you should ask yourself is if ConTeXt is the right tool for 
you.

What i learnt from you past mails is that you always use many macros from files 
which are written for plain TeX instead of ConTeXt’s own mechanism. When you 
really want to use ConTeXt then use ConTeXt’s commands to change the font, the 
layout and also to produce a index etc.

Wolfgang


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


Re: [NTG-context] Using Luatex.

2011-06-29 Thread luigi scarso
On Wed, Jun 29, 2011 at 10:50 PM, John Culleton j...@wexfordpress.com wrote:
 Been away for a while. Currently using luatex for lightly formatted
 documents. But I want to use Context for my next
 job (lots of formatting). How do I incorporate luatex and the fonts found by
 luatex in my Context file?
See fonts in context
http://www.boekplan.nl/node/11


 And should I use MKII or MKIV?
mkii uses pdftex
mkiv uses luatex
Best solution is the minimals.

 My luatex books are basically pdftex files with a few statements to get at
 fonts not included with TeX, e.g.,
 \input luaotfload.sty

 \font\lll={CHOPS___.TTF} at 48bp

 \font\lk={CHOPS___.TTF} at 36bp

 \font\hl={CHOPS___.TTF} at 16bp

 \font\head={CHOPS___.TTF} at 26bp

 \font\lr pplr7t at 12bp

 \font\llr pplr7t at 14bp

 \font\rm pplr7t at 10bp

 \font\it pplri7t at 10bp

 \font\bf pplb7t at 10bp
Even if you can use a sort of plain luatex in mkiv, It's better ti use
the mkiv syntax.

-- 
luigi
___
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
___