Hi, I'm trying to setup context for a book layout but I'm still failing with some basics (hopefully) ... \definepapersize[Lasker][width=21cm,height=28cm] \setuppapersize[Lasker][A4] \setuplayout[width=172.5mm,lines=53,leftmargin=0mm,rightmargin=0mm,header=12 pt,headerdistance=12pt,footer=12pt,footerdistance=12pt,topspace=20mm,backspa ce=15mm,grid=yes] \setupinterlinespace[line=12pt] \setuppagenumbering [alternative=doublesided,location=header] \setupindenting[12pt] Is this o.k. so far? \setupfootnotes[location=lastcolumn,rule=off,numbercommand=\myfootnotenumber ] \def\myfootnotenumber#1{#1. } \setupfootnotedefinition[location=normal] This does not work as expected. I want footnotes in the last column of a two column format at the *bottom*. Both standard twocolumn (via \startcolumns[n=2]) format fails and also column sets: if I use column sets (defined with \definecolumnset[example][n=2,balance=yes]) footnotes are in the left *and* right column or only in the left. If I use \startcolumns[n=2] footnotes are placed correctly in the right column but not at the bottom of the page and not aligned on grid. ??? After defining a typescript (see comlete example attached) I want to use protrusion and expansion (I've followed the description in co-typography.pdf): \definetypeface[kievit][rm][sans][kievit][default][features=hz] \definetypeface[kievit][ss][sans][kievit][default][features=hz] \definetypeface[kievit][tt][mono][modern][default][rscale=1.12] \definetypeface[kievit][mm][math][iwona] [default][rscale=1.02] \usetypescript[kievit] \setupbodyfont[kievit,ss,10pt] \definefontfeature[default][default] [protrusion=pure,expansion=quality,mode=node,script=latn] \setupalign[hanging] But it doesn't work at all. While with standard two column format line breaking is like without hz features at all; with columnsets line breaking is getting even worse. Any idea? Another question: How can define the amount of indentation and before and after space of quotations (\setupquotation but how)? Quotation should be set 9/10.5pt. And body text should align on grid before and after a quotation. How can I define \setupheader so that I got the following: On a chapter page no header but folio centered in footer, on the following pages folios on left side if even page and on right side if odd page inside header. Right part on even pages with "Part n\quad Chapter m" while text of \chapter in left side of odd pages. +-----------------------------------+ +---------------------------------+ |8 Part I Chapter 3| |Netherlands 9| ... Sometimes I have to change this to: +-----------------------------------+ +---------------------------------+ |11 Part I Chapter 3 Netherlands| |Subsection Euwe-Lasker 12| ... If a subsection is present. Best regards, Ulrich P.S. ConTeXt ver: 2008.08.18 14:00 MKIV
Ulrich Dirr wrote:
After defining a typescript (see comlete example attached) I want to use protrusion and expansion (I've followed the description in co-typography.pdf):
\definetypeface[kievit][rm][sans][kievit][default][features=hz] \definetypeface[kievit][ss][sans][kievit][default][features=hz] \definetypeface[kievit][tt][mono][modern][default][rscale=1.12] \definetypeface[kievit][mm][math][iwona] [default][rscale=1.02]
\usetypescript[kievit] \setupbodyfont[kievit,ss,10pt] \definefontfeature[default][default] [protrusion=pure,expansion=quality,mode=node,script=latn]
This line should read: \definefontfeature[hz][default] [prot.... Afaics, everything else looks ok. Best wishes, Taco
Taco Hoekwater wrote:
Ulrich Dirr wrote:
After defining a typescript (see comlete example attached) I want to use protrusion and expansion (I've followed the description in co-typography.pdf):
\definetypeface[kievit][rm][sans][kievit][default][features=hz] \definetypeface[kievit][ss][sans][kievit][default][features=hz] \definetypeface[kievit][tt][mono][modern][default][rscale=1.12] \definetypeface[kievit][mm][math][iwona] [default][rscale=1.02]
\usetypescript[kievit] \setupbodyfont[kievit,ss,10pt] \definefontfeature[default][default] [protrusion=pure,expansion=quality,mode=node,script=latn]
This line should read:
\definefontfeature[hz][default] [prot....
Afaics, everything else looks ok.
But has no effect :-( Best regards, Ulrich
On Thu, Aug 28, 2008 at 8:43 AM, Ulrich Dirr
Taco Hoekwater wrote:
Ulrich Dirr wrote:
After defining a typescript (see comlete example attached) I want to use protrusion and expansion (I've followed the description in co-typography.pdf):
\definetypeface[kievit][rm][sans][kievit][default][features=hz] \definetypeface[kievit][ss][sans][kievit][default][features=hz] \definetypeface[kievit][tt][mono][modern][default][rscale=1.12] \definetypeface[kievit][mm][math][iwona] [default][rscale=1.02]
\usetypescript[kievit] \setupbodyfont[kievit,ss,10pt] \definefontfeature[default][default] [protrusion=pure,expansion=quality,mode=node,script=latn]
This line should read:
\definefontfeature[hz][default] [prot....
Afaics, everything else looks ok.
But has no effect :-(
\definefontfeature[latin-default] [default] [script=latn,expansion=quality,protrusion=pure] \definefontfeature[latin-smallcaps][smallcaps][script=latn,expansion=quality,protrusion=pure] \definefontfeature[latin-oldstyle] [oldstyle] [script=latn,expansion=quality,protrusion=pure] \starttypescript [sans] [kievit] \definefontsynonym [KievitProRegular] [name:KievitPro-Regular] [features=latin-default] \definefontsynonym [KievitProMedium] [name:KievitPro-Medium] [features=latin-default] \definefontsynonym [KievitProExtraBold] [name:KievitPro-ExtraBold] [features=latin-default] \definefontsynonym [KievitProItalic] [name:KievitPro-Italic] [features=latin-default] \definefontsynonym [KievitProMediumItalic] [name:KievitPro-MediumItalic] [features=latin-default] \definefontsynonym [KievitProExtraBoldItalic] [name:KievitPro-ExtraBoldItalic] [features=latin-default] \stoptypescript \starttypescript [sans] [kievit] \setups[font:fallback:sans] \definefontsynonym [Sans] [KievitProRegular] [features=latin-default] \definefontsynonym [SansBold] [KievitProMedium] [features=latin-default] \definefontsynonym [SansItalic] [KievitProItalic] [features=latin-default] \definefontsynonym [SansBoldItalic] [KievitProMediumItalic] [features=latin-default] \definefontsynonym [SansCaps] [Sans] [features=latin-smallcaps] \stoptypescript \starttypescript [kieviet] \definetypeface [\typescriptone] [rm] [sans] [\typescriptone] [default] \definetypeface [\typescriptone] [ss] [sans] [\typescriptone] [default] \definetypeface [\typescriptone] [tt] [mono] [modern] [default] [rscale=1.12] \definetypeface [\typescriptone] [mm] [math] [iwona] [default] [rscale=1.02] \stoptypescript \usetypescript[kievit] \setupbodyfont[kievit,ss,10pt] \enableadjusting \enableprotruding Wolfgang
Hi Ulrich, Ulrich Dirr wrote:
Afaics, everything else looks ok.
But has no effect :-(
I was apparently still sleeping when I wrote that. Here is what works for me: % engine=luatex \definefontfeature [default][default] [protrusion=quality,expansion=quality,mode=node,script=latn] \definetypeface[kievit][rm][serif][times][default] \definetypeface[kievit][ss][serif][times][default] \definetypeface[kievit][tt][mono][modern][default][rscale=1.12] \definetypeface[kievit][mm][math][iwona] [default][rscale=1.02] \setupbodyfont[kievit,ss,10pt] \starttext \showframe \setupalign[hanging] \input tufte \stoptext % I used [serif][times] instead of [sans][kievit] because I don't have the font, but that should not matter. Things to note: * The relative ordering of commands matters, your \definefontfeature was too late. I'll try to document that in the manual. * You only need \usetypescript[xxx] if the \definetypeface commands are actually inside of a \starttypescript[xxx] block. * It turns out I could not use [features=hz] because at a lower level [times] already sets up [features=default], and that setting wins over the high-level one. But in your new setup for kievit, you could also do it this way: \definefontfeature [hz][default] [protrusion=quality,expansion=quality,mode=node,script=latn] \definetypeface[kievit][rm][serif][times][default][features=hz] just make sure not to attach any [features=...] to the \definefontsynonym commands. Best wishes, Taco
Hi Taco, On 2008-08-28 Taco Hoekwater wrote:
% engine=luatex \definefontfeature [default][default] [protrusion=quality,expansion=quality,mode=node,script=latn] \definetypeface[kievit][rm][serif][times][default] \definetypeface[kievit][ss][serif][times][default] \definetypeface[kievit][tt][mono][modern][default][rscale=1.12] \definetypeface[kievit][mm][math][iwona] [default][rscale=1.02]
\setupbodyfont[kievit,ss,10pt]
\starttext \showframe \setupalign[hanging] \input tufte \stoptext %
This works!
I used [serif][times] instead of [sans][kievit] because I don't have the font, but that should not matter. Things to note:
* The relative ordering of commands matters, your \definefontfeature was too late. I'll try to document that in the manual. * You only need \usetypescript[xxx] if the \definetypeface commands are actually inside of a \starttypescript[xxx] block. * It turns out I could not use [features=hz] because at a lower level [times] already sets up [features=default], and that setting wins over the high-level one. But in your new setup for kievit, you could also do it this way: \definefontfeature [hz][default] [protrusion=quality,expansion=quality,mode=node,script=latn] \definetypeface[kievit][rm][serif][times][default][features=hz] just make sure not to attach any [features=...] to the \definefontsynonym commands.
Thank you very much for explaining these mysteries. The whole typescript thingy is a strange black box for me ... Interesting is that you instruct me not to use any features in \definefontsynonym -- I had just copied this from the wiki. Then the wiki should be updated ;-) I would like to see on the wiki a real life working example for luatex/mkiv using OpenType pro fonts for roman and sans serif, e.g. MinionPro and MetaPro. Using several font features and languages (e.g. small caps, caps spacing, greek, etc.) This would demystify font handling a lot. Best regards, Ulrich
Ulrich Dirr wrote:
Interesting is that you instruct me not to use any features in \definefontsynonym -- I had just copied this from the wiki. Then the wiki should be updated ;-)
Well, the wiki (Wolfgang) is more right than I am. I was trying to shortcut something and then later it became clear that that won't fly. The problem lies with features like smallcaps: these *have* to be defined at the font synonym level. It follows that Wolfgang's solution is better than mine. Best wishes, Taco
participants (3)
-
Taco Hoekwater
-
Ulrich Dirr
-
Wolfgang Schuster