Hi, In macrotype (a latex package which uses pdftex extension), I can use tracking when I want to assign a small caps font. How can I do that in ConTeXt? Thanks. Yue Wang
Yue Wang wrote:
Hi,
In macrotype (a latex package which uses pdftex extension), I can use tracking when I want to assign a small caps font. How can I do that in ConTeXt?
i have no clue what you mean with tracking ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Am 06.02.2009 um 19:28 schrieb Hans Hagen:
Yue Wang wrote:
Hi, In macrotype (a latex package which uses pdftex extension), I can use tracking when I want to assign a small caps font. How can I do that in ConTeXt?
i have no clue what you mean with tracking
He means the letterspacing feature from pdfTeX. Wolfgang
Am 07.02.2009 um 03:29 schrieb Yue Wang:
i have no clue what you mean with tracking
He means the letterspacing feature from pdfTeX.
Wolfgang is right. And are there such higher level macros in ConTeXt?
In MkII it is integrated in the font handling mechanism like protrusion and hz. To stretch words or short sentences the \stretched command could be used. In MkIV you can use \setcharacterkerning, you can use it like the \lsseries command. Wolfgang
Yue Wang wrote:
Hi,
i have no clue what you mean with tracking He means the letterspacing feature from pdfTeX.
Wolfgang is right. And are there such higher level macros in ConTeXt? Thanks!
it's organized as 'font handlers' an in mkiv as feature Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Yue Wang wrote:
Hi:
it's organized as 'font handlers' an in mkiv as feature
i get it, Thanks a lot, Hans and Wolfgang!
and... what's the name of that feature?
protrusion expansion ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Hans Hagen schrieb:
Yue Wang wrote:
Hi:
it's organized as 'font handlers' an in mkiv as feature
i get it, Thanks a lot, Hans and Wolfgang!
and... what's the name of that feature?
protrusion expansion
And how do you do this with your two above features. \starttext Thus, I came to the conclusion that the designer of a new system must not only be the implementer and first large||scale user; the designer should also write the first user manual. \setcharacterkerning[extrakerning] Thus, I came to the conclusion that the designer of a new system must not only be the implementer and first large||scale user; the designer should also write the first user manual. \stoptext Wolfgang
Hi, Wolfgang:
\starttext
Thus, I came to the conclusion that the designer of a new system must not only be the implementer and first large||scale user; the designer should also write the first user manual.
\setcharacterkerning[extrakerning]
Thus, I came to the conclusion that the designer of a new system must not only be the implementer and first large||scale user; the designer should also write the first user manual.
\stoptext
The code doesn't work here. MKII report that set characterkerning is not defined. MKIV report this:
texmfstart texexec --autopdf --pdf test.tex TeXExec | processing document 'test.tex' TeXExec | no ctx file found TeXExec | tex processing method: context TeXExec | TeX run 1 TeXExec | writing option file test.top TeXExec | using randomseed 1302 TeXExec | tex engine: luatex TeXExec | tex format: cont-en This is luaTeX, Version snapshot-0.31.3-2008122922 (test.tex
ConTeXt ver: 2009.01.18 14:39 MKIV fmt: 2009.2.8 int: english/english system : cont-new loaded (C:/context/tex/texmf-context/tex/context/base/cont-new.tex systems : beware: some patches loaded from cont-new.tex (C:/context/tex/texmf-context/tex/context/base/cont-new.mkiv) (C:/context/tex/texmf-context/tex/context/base/cont-mtx.tex)) system : cont-fil loaded (C:/context/tex/texmf-context/tex/context/base/cont-fil.tex loading : Context File Synonyms ) system : cont-sys.rme loaded (C:/context/tex/texmf-context/tex/context/user/cont-sys.rme (C:/context/tex/texmf-context/tex/context/base/type-tmf.tex) (C:/context/tex/texmf-context/tex/context/base/type-siz.tex) (C:/context/tex/texmf-context/tex/context/base/type-otf.tex)) bodyfont : 12pt rm is loaded specials : pdftex loaded language : language en is active system : test.top loaded (test.top) (test.tuo) (test.tuo) systems : begin file test at line 2 (C:/context/tex/texmf-context/tex/context/sample/zapf.tex) (C:/context/tex/texmf-context/tex/context/sample/zapf.tex) fonts : resetting map file list {C:/context/tex/texmf-context/fonts/map/pdftex/context/original-empty.map} fonts : using map file: original-base {C:/context/tex/texmf-context/fonts/map/pdftex/context/original-base.map} fonts : using map file: lm-math {C:/context/tex/texmf/fonts/map/dvips/lm/lm-math.map} fonts : using map file: lm-rm {C:/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map} fonts : using map file: original-ams-base {C:/context/tex/texmf-context/fonts/map/pdftex/context/original-ams-base.map} fonts : using map file: original-ams-euler {C:/context/tex/texmf-context/fonts/map/pdftex/context/original-ams-euler.map} fonts : using map file: original-public-lm {C:/context/tex/texmf-context/fonts/map/pdftex/context/original-public-lm.map} [1.1]For node p:=0, 1==0 (l.1195,r.1) ! This can't happen (dotest). \actualshipout ... \box \postponedcontent \box 0}} \else \message {[\ifarrang... \myshipout ... \fi {\thisisrealpage \realfolio #1} \gotonextrealpage \aftersh... \dofinaloutput ...agebody #1#2\setpagecounters }}} \fi \the \everyaftershipou... \finaloutput ...EAEAEA \dofinaloutput \fi \fi #1#2 \resetselectiepagina \incr... \sidefloatoutput ...e \else \finalsidefloatoutput \global \sidefloatvsize \n... <argument> ...\fi \else \the \defaultstreamoutput \fi ... l.6 \stoptext ! ==> Fatal error occurred, no output PDF file produced! LuaTools | running command: luatex --fmt="C:/context/tex/texmf-cache/luatex-cache/context/2fea56f92e5267d7cc9662e4d5f52e1e/formats/cont-en" --lua="C:/context/tex/texmf-cache/luatex-cache/context/2fea56f92e5267d7cc9662e4d5f52e1e/formats/cont-en.luc" "test.tex" "" LuaTools | LuaTools | runtime: 2.156 seconds TeXUtil | parsing file test.tui TeXUtil | check loading of file 'test', begin/end problem TeXUtil | shortcuts : 0 TeXUtil | expansions: 0 TeXUtil | reductions: 0 TeXUtil | divisions : 0 TeXUtil | loaded files: 1 TeXUtil | temporary files: 0 TeXUtil | commands: 2 TeXUtil | programs: 0 TeXUtil | tuo file saved TeXExec | runtime: 2.344
Exit code: 0
Yue Wang
Yue Wang schrieb:
\starttext
Thus, I came to the conclusion that the designer of a new system must not only be the implementer and first large||scale user; the designer should also write the first user manual.
\setcharacterkerning[extrakerning]
Thus, I came to the conclusion that the designer of a new system must not only be the implementer and first large||scale user; the designer should also write the first user manual.
\stoptext
The code doesn't work here. MKII report that set characterkerning is not defined.
I told this in my other mail.
ConTeXt ver: 2009.01.18 14:39 MKIV fmt: 2009.2.8 int: english/english
ConTeXt ver: 2009.02.04 11:53 MKIV fmt: 2009.2.5 int: english/english This is luaTeX, Version snapshot-0.33.1 But I get the same error message when I one of ConTeXt example files, e.g. "\setcharacterkerning[extrakerning]\input knuth " Wolfgang
Hi,
I told this in my other mail.
You said that I can use something like \stretched{LETTER}. How can I automatically adjust the spacing? (like add 0.25em space between each characters).
ConTeXt ver: 2009.01.18 14:39 MKIV fmt: 2009.2.8 int: english/english
ConTeXt ver: 2009.02.04 11:53 MKIV fmt: 2009.2.5 int: english/english
This is luaTeX, Version snapshot-0.33.1
But I get the same error message when I one of ConTeXt example files, e.g. "\setcharacterkerning[extrakerning]\input knuth "
Yes, I test the document with "knuth" Yue Wang
Yue Wang schrieb:
You said that I can use something like \stretched{LETTER}. How can I automatically adjust the spacing? (like add 0.25em space between each characters).
The correct command \strechednormalcase, not \stretched. You can set the kerning between chars with \stretchedspaceamount and the space between words with \stretchedspacefactor. \def\stretchedspacefactor{4} % default value \def\stretchedspaceamount{.25em} % default value \starttext This is a normal kerned sentence. \stretchednormalcase{This is a special kerned sentence.} \stoptext Wolfgang
Wolfgang Schuster schrieb:
Yue Wang schrieb:
You said that I can use something like \stretched{LETTER}. How can I automatically adjust the spacing? (like add 0.25em space between each characters).
The correct command \strechednormalcase, not \stretched.
You can set the kerning between chars with \stretchedspaceamount and the space between words with \stretchedspacefactor.
\def\stretchedspacefactor{4} % default value \def\stretchedspaceamount{.25em} % default value
\starttext
This is a normal kerned sentence.
\stretchednormalcase{This is a special kerned sentence.}
\stoptext
Another solution for pdfTeX is to use \knbccode and \knaccode. \starttext \input knuth \pdfappendkern=1 \knbccode\font`a=125 \knaccode\font`a=125 \knbccode\font`b=125 \knaccode\font`b=125 \knbccode\font`c=125 \knaccode\font`c=125 \knbccode\font`d=125 \knaccode\font`d=125 \knbccode\font`e=125 \knaccode\font`e=125 \knbccode\font`f=125 \knaccode\font`f=125 \knbccode\font`g=125 \knaccode\font`g=125 \knbccode\font`h=125 \knaccode\font`h=125 \knbccode\font`i=125 \knaccode\font`i=125 \knbccode\font`j=125 \knaccode\font`j=125 \knbccode\font`k=125 \knaccode\font`k=125 \knbccode\font`l=125 \knaccode\font`l=125 \knbccode\font`m=125 \knaccode\font`m=125 \knbccode\font`n=125 \knaccode\font`n=125 \knbccode\font`o=125 \knaccode\font`o=125 \knbccode\font`p=125 \knaccode\font`p=125 \knbccode\font`q=125 \knaccode\font`q=125 \knbccode\font`r=125 \knaccode\font`r=125 \knbccode\font`s=125 \knaccode\font`s=125 \knbccode\font`t=125 \knaccode\font`t=125 \knbccode\font`u=125 \knaccode\font`u=125 \knbccode\font`v=125 \knaccode\font`v=125 \knbccode\font`w=125 \knaccode\font`w=125 \knbccode\font`x=125 \knaccode\font`x=125 \knbccode\font`y=125 \knaccode\font`y=125 \knbccode\font`z=125 \knaccode\font`z=125 \input knuth \stoptext Wolfgang
Hi
On Mon, Feb 9, 2009 at 1:24 AM, Wolfgang Schuster
Wolfgang Schuster schrieb:
Another solution for pdfTeX is to use \knbccode and \knaccode.
\pdfappendkern=1
\knbccode\font`a=125 \knaccode\font`a=125
...
A shorter version is:
\dostepwiserecurse{65}{122}{1} {\knbccode\font#1=125 \knaccode\font#1=125 }
Works, Thanks a lot for this! Yue Wang
Yue Wang wrote:
Hi, Wolfgang:
\starttext
Thus, I came to the conclusion that the designer of a new system must not only be the implementer and first large||scale user; the designer should also write the first user manual.
\setcharacterkerning[extrakerning]
Thus, I came to the conclusion that the designer of a new system must not only be the implementer and first large||scale user; the designer should also write the first user manual.
\stoptext
The code doesn't work here. MKII report that set characterkerning is not defined. MKIV report this:
works ok here (although i noticed that i had to improve disc node treatment which i did; will be in next beta) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (3)
-
Hans Hagen
-
Wolfgang Schuster
-
Yue Wang