Hello out there, I currently use: \usetypescript[berry][8r] \setupbodyfont[pos] and wish to change the monospace only, let's say to cmtt10. How do I accomplish this? Patrick
Patrick Gundlach said this at Wed, 29 Jan 2003 18:15:30 +0100:
Hello out there,
I currently use:
\usetypescript[berry][8r] \setupbodyfont[pos]
and wish to change the monospace only, let's say to cmtt10. How do I accomplish this?
I know no simple way of doing this. I have a typescript set up for this, though: \starttypescript [Time] \usetypescript [berry] [8r] \definetypeface [Time] [rm] [serif] [times] [default] [encoding=8r] \definetypeface [Time] [ss] [sans] [helvetica] [default] [rscale=.9,encoding=8r] \definetypeface [Time] [tt] [mono] [computer-modern] [default] [rscale=1.1,encoding=ec] \definetypeface [Time] [mm] [math] [times] [default] [encoding=8r] \stoptypescript I find it preferable to pos because courier is far too light. I'd love to hear of an easier way, though. adam -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Adam T. Lindsay atl@comp.lancs.ac.uk Computing Dept, Lancaster University +44(0)1524/594.537 Lancaster, LA1 4YR, UK Fax:+44(0)1524/593.608 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
"Adam Lindsay"
I know no simple way of doing this. I have a typescript set up for this, though: \starttypescript [Time]
[..] how do I use this? I have tried for the last .... hours. The typescript/font mechanism is far too high for me. Is there any description /documentation of the typescript mechanism? Besides mfont.pdf? mfont is not clear enough. There are only some examples but no real explanation how this mechanism works. At least I cannot see it. Patrick
Patrick Gundlach said this at Wed, 29 Jan 2003 19:11:49 +0100:
"Adam Lindsay"
writes: Hello Adam,
I know no simple way of doing this. I have a typescript set up for this, though: \starttypescript [Time]
[..]
how do I use this? I have tried for the last .... hours. The
Sorry I wasn't clear. I assumed too much. I spent an entire weekend working through this stuff at the start.
typescript/font mechanism is far too high for me.
Patrick, nearly everything I knew about fonts in ConTeXt was learned from Bill McClain's excellent resource: http://home.salamander.com/~wmcclain/context-help.html Basically, you put this into one file, say "font-ttt.tex": %--- begin font-ttt.tex --- \starttypescript [Time] \usetypescript [berry] [8r] \definetypeface [Time] [rm] [serif] [times] [default] [encoding=8r] \definetypeface [Time] [ss] [sans] [helvetica] [default] [rscale=.9,encoding=8r] \definetypeface [Time] [tt] [mono] [computer-modern] [default] [rscale=1.1,encoding=ec] \definetypeface [Time] [mm] [math] [times] [default] [encoding=8r] \stoptypescript %--- end --- Preface your actual text source file with the following: %--- begin usetime.tex --- \usetypescriptfile[font-tmm] \usetypescript[Time] \setupbodyfont[Time,12pt] \starttext \showfontstrip \input tufte \startalignment[right] {\tt \input zapf } \stopalignment \stoptext %--- end --- I haven't been clever enough to figure out how to include the typescript in the same file that I'm ConTeXting. My guess is that this is because of a (reasonable) assumption of wanting to reuse typescripts.
Is there any description /documentation of the typescript mechanism? Besides mfont.pdf? mfont is not clear enough. There are only some examples but no real explanation how this mechanism works. At least I cannot see it.
I really can't help you there... I'm still at the point of imitating examples, really, myself. You can also try typesetting some of the documentation, like font-ini.tex, by copying the file into your own directory, and typing: texexec --pdf --module font-ini.tex (This requires that you did the recommended nl interface installation. It gives me an error at one point, but switching to silent mode by typing 's' allowed it to continue.) I hope that's of some help, even though it's yet another example. Cheers, adam -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Adam T. Lindsay atl@comp.lancs.ac.uk Computing Dept, Lancaster University +44(0)1524/594.537 Lancaster, LA1 4YR, UK Fax:+44(0)1524/593.608 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
"Adam Lindsay"
Sorry I wasn't clear. I assumed too much. I spent an entire weekend working through this stuff at the start.
typescript/font mechanism is far too high for me.
Patrick, nearly everything I knew about fonts in ConTeXt was learned from Bill McClain's excellent resource: http://home.salamander.com/~wmcclain/context-help.html
I have visited this page again. I guess I have to put it under my pillow and read it every evening. Perhaps one day I know how to... I've got it working now. Thank you very much. One thing I'd like to comment: i think tat rscale=1.1 for cmtt is a bit too large.
Basically, you put this into one file, say "font-ttt.tex":
That is what I had before, but somehow I could not make context to switch to that font. Since I don't know how to debug this stuff, this is either "get it right" or "get it wrong".
I haven't been clever enough to figure out how to include the typescript in the same file that I'm ConTeXting.
That took me some time to discover...
My guess is that this is because of a (reasonable) assumption of wanting to reuse typescripts.
Hans should know.. :)
I hope that's of some help, even though it's yet another example.
Well, a clear definiton of how typescripts work would be nice. But Bill has a lot of comments as far as I have seen. Thanks again, Patrick
At 08:39 PM 1/29/2003 +0100, you wrote:
"Adam Lindsay"
writes: Hello Adam,
Sorry I wasn't clear. I assumed too much. I spent an entire weekend working through this stuff at the start.
typescript/font mechanism is far too high for me.
Patrick, nearly everything I knew about fonts in ConTeXt was learned from Bill McClain's excellent resource: http://home.salamander.com/~wmcclain/context-help.html
I have visited this page again. I guess I have to put it under my pillow and read it every evening. Perhaps one day I know how to...
I've got it working now. Thank you very much. One thing I'd like to comment: i think tat rscale=1.1 for cmtt is a bit too large.
Basically, you put this into one file, say "font-ttt.tex":
consider that method to be kind of obsolete and put the ttt in a typescript since those are located first \starttypescript [ttt] \stoptypescript somewhere in a file, say patrick \usetypescriptfile[patrick] Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------
Hans Hagen
\starttypescript [ttt]
\stoptypescript
somewhere in a file, say patrick
\usetypescriptfile[patrick]
OK, the \usetypescriptfile always loads (context/base/type-syn.tex) (context/base/type-enc.tex) (context/base/type-siz.tex) (context/base/type-map.tex) (context/base/type-spe.tex) (context/base/type-exa.tex) ?? Patrick
I really can't help you there... I'm still at the point of imitating examples, really, myself. You can also try typesetting some of the
Perhaps you'd like to use my attached script for font installation. It copies font files (makes all lowercase), fixes some AFM problems (overlong lines), runs texfont and writes a basic typescript that contains some comments how to use it. I'll enhance it somewhen, but until then you must change the "hardcoded" paths in this two lines: # if there's no environment variable TEXMF, set it to default (!$ENV{TEXMF}) && ($ENV{TEXMF} = "/usr/TeX/texmf"); # default on MacOSX... # install everything in texmf-var: $TeXRoot = $ENV{TEXMF}."-var"; Cry if you'd like a bunch of working typescript examples. Grüßlis vom Hraban! -- www.fiee.net/texnique/ www.ramm.ch/context/
At 07:00 PM 1/29/2003 +0000, Adam Lindsay wrote:
how do I use this? I have tried for the last .... hours. The
Sorry I wasn't clear. I assumed too much. I spent an entire weekend working through this stuff at the start.
not bad, since fonts is the most complicatd part of tex (due to the fact that math is involved and so) I haven't been clever enough to figure out how to include the typescript
in the same file that I'm ConTeXting. My guess is that this is because of a (reasonable) assumption of wanting to reuse typescripts.
indeed, also, having all of them in mem takes space
Is there any description /documentation of the typescript mechanism? Besides mfont.pdf? mfont is not clear enough. There are only some examples but no real explanation how this mechanism works. At least I cannot see it.
consider typescripts to be: \starttypescript [key a] [key b] [key c] \stoptypescript and all key's being optional selecting them is a matter of best match, say [key a] or [key a][key b] or ... so \usetypescript [key a] [key b] filters all instances that match those first two keys (actually sets of keys) the definetypeface macro (just take a look in type-ini) filters a couple of combinations inside typescripts can be all kind of things but in practice it's mainly mapping files Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------
Hans Hagen
selecting them is a matter of best match, say [key a] or [key a][key b] or ... so
\usetypescript [key a] [key b]
filters all instances that match those first two keys (actually sets of keys)
I have: \starttypescript [aaa] [bbb][ccc] \def\hello{abc} \stoptypescript and: \starttext \usetypescriptfile[patrick] \usetypescript [aaa][bbb] \message {\hello} \stoptext I get: undefined control sequence \hello. So it looks as if I have to write \usetypescript [aaa][bbb][ccc] or \usetypescript [aaa][bbb][all] to get the above defined typescript. Patrick
At 12:18 AM 1/31/2003 +0100, you wrote:
Hans Hagen
writes: Hello again,
selecting them is a matter of best match, say [key a] or [key a][key b] or ... so
\usetypescript [key a] [key b]
filters all instances that match those first two keys (actually sets of keys)
I have:
\starttypescript [aaa] [bbb][ccc] \def\hello{abc} \stoptypescript
That one should be in an external file, which is registered by \usetypescriptfile[thatfile] Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------
Hans Hagen said this at Fri, 31 Jan 2003 13:34:30 +0100:
That one should be in an external file, which is registered by
\usetypescriptfile[thatfile]
Okay, so with reference to the new My Way module, if I were to, say, create a typescriptfile to illustrate a font combination or two, would the "source code of this document" section easily accommodate the calling in of an external file? (Sure, I guess the answer is learn about buffers and the like.) The real question is, will the elegant self-documenting format still hold with the necessity of putting typescripts in external files? Sorry, I'll back off. I'm getting too eager about something you haven't officially announced yet. Thanks, adam -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Adam T. Lindsay atl@comp.lancs.ac.uk Computing Dept, Lancaster University +44(0)1524/594.537 Lancaster, LA1 4YR, UK Fax:+44(0)1524/593.608 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
At 03:01 PM 1/31/2003 +0000, Adam Lindsay wrote:
Hans Hagen said this at Fri, 31 Jan 2003 13:34:30 +0100:
That one should be in an external file, which is registered by
\usetypescriptfile[thatfile]
Okay, so with reference to the new My Way module, if I were to, say, create a typescriptfile to illustrate a font combination or two, would the "source code of this document" section easily accommodate the calling in of an external file?
sure, \typefile{somefile}
(Sure, I guess the answer is learn about buffers and the like.)
The real question is, will the elegant self-documenting format still hold with the necessity of putting typescripts in external files?
yes, since in many cases styles are split up as well (at least here) Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------
Hans Hagen
That one should be in an external file, which is registered by
\usetypescriptfile[thatfile]
I have \starttypescript [aaa] [bbb][ccc] \def\hello{abc} \stoptypescript in a file called patrick.tex \starttext \usetypescriptfile[patrick] \usetypescript [aaa][bbb] \message {\hello} \stoptext And my comment/question is: I get: undefined control sequence \hello. So it looks as if I have to write \usetypescript [aaa][bbb][ccc] or \usetypescript [aaa][bbb][all] to get the above defined typescript. It is not a matter of 'file not found'. More a matter of key (mis)match for \usetypescript. Patrick
Is there any description /documentation of the typescript mechanism? Besides mfont.pdf? mfont is not clear enough. There are only some examples but no real explanation how this mechanism works. At least I cannot see it.
Patrick, I presume you understand german? ;-) Perhaps my (incomplete) docs are of some help. Ok, no explanation of the mechanism, but some hints what works... While my site is under re-construction you can find the files at: http://www.ramm.ch/fiee/material (fiee-*.zip) Grüßlis vom Hraban! -- www.fiee.net/texnique/ www.ramm.ch/context/
At 05:25 PM 1/29/2003 +0000, Adam Lindsay wrote:
I know no simple way of doing this. I have a typescript set up for this, though: \starttypescript [Time] \usetypescript [berry] [8r] \definetypeface [Time] [rm] [serif] [times] [default] [encoding=8r] \definetypeface [Time] [ss] [sans] [helvetica] [default] [rscale=.9,encoding=8r] \definetypeface [Time] [tt] [mono] [computer-modern] [default] [rscale=1.1,encoding=ec] \definetypeface [Time] [mm] [math] [times] [default] [encoding=8r] \stoptypescript
I find it preferable to pos because courier is far too light. I'd love to hear of an easier way, though.
\usetypescript[times][texnansi] \setupbodyfont[times] ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------
Hans Hagen
\usetypescript[times][texnansi] \setupbodyfont[times]
This switches to a complete new typescript. But is it possible to change the *tt* only? I think that scaling to 1.1 too big. In my opinion 1.03 fits the times' visual appearence. Strange.. the acrobat reader tells me that the urw times (NimbusRomNo9L-Regu) *and* Times-Roman (substituted by TimesNewRomanPSMT) are used... Patrick
At 11:34 AM 1/30/2003 +0100, you wrote:
Hans Hagen
writes: Hello,
\usetypescript[times][texnansi] \setupbodyfont[times]
This switches to a complete new typescript. But is it possible to change the *tt* only?
I think that scaling to 1.1 too big. In my opinion 1.03 fits the times' visual appearence.
Strange.. the acrobat reader tells me that the urw times (NimbusRomNo9L-Regu) *and* Times-Roman (substituted by TimesNewRomanPSMT) are used...
hm, maybe something slanted is not understood to be times; anyway: i always include the 15 base fonts and don't trust/rely on the built-ins Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------
participants (4)
-
Adam Lindsay
-
Hans Hagen
-
Hraban
-
Patrick Gundlach