Hi all, I am working to setup styles in heads with the typeface karat, that i define as follows: \starttypescript [karat] \definetypeface [karat] [ss] [sans] [karat] [default] [encoding=texnansi] \stoptypescript Here is my head definition: \setuphead[part] [align=left, page=right, placehead=yes, style=???????, before={\hbox{}\vfill}, after={\vfill}, command=\MyPart] Question: what command should i use to define this head to use the karat typeface above as its style ? Thanks for any help. Dirar.
Dirar BOUGATEF wrote:
Hi all,
I am working to setup styles in heads with the typeface karat, that i define as follows:
\starttypescript [karat] \definetypeface [karat] [ss] [sans] [karat] [default] [encoding=texnansi] \stoptypescript
Here is my head definition:
\setuphead[part] [align=left, page=right, placehead=yes, style=???????, before={\hbox{}\vfill}, after={\vfill}, command=\MyPart]
Question: what command should i use to define this head to use the karat typeface above as its style ?
...,style={\switchtobodyfont[karat]\bfc},... or, when no math is used, \setupbodyfont[karat] \definefont[MyPartFont][SansBold at 24pt] \setuphead[part][style=\MyPartFont] you could also add more faces to: \starttypescript [karat] \definetypeface [gold] [rm] [serif][gold] [default] [encoding=texnansi] \definetypeface [karat] [ss] [sans] [karat] [default] [encoding=texnansi] \stoptypescript and then (say that the body font is rm (gold)), do \setuphead[part][style=\ss\bfd] etc etc 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 -----------------------------------------------------------------
I have tried style={\switchtobodyfont[karat]} and it works. Now how to switch to a different size without going through: \setupbodyfont[karat] \definefont[MyPartFont][SansBold at 24pt] \setuphead[part][style=\MyPartFont] The problem i see here is that i have to go through \setupbodyfont[karat] and that i can't say something like: \definefont[MyPartFont][karat at 24pt] Lets say i have 5 fonts in my document i only want to say \setupbodyfont[MyMainFont] once, then i should have other mecanisms for switching properly to other fonts at different sizes. Why does \definefont maps only from Sans, Serif, SansBold etc. ? This is quit fastidious, cause for this to work we have to use \setupbodyfont first and follow the steps above. I may be missing something out there .. Many thanks. Dirar.
Dirar BOUGATEF wrote:
I have tried style={\switchtobodyfont[karat]} and it works. Now how to switch to a different size without going through:
you can do things like: \usetypescript [sans][karat][map,name] to load the appropriate defs
\definefont[MyPartFont][SansBold at 24pt] \setuphead[part][style=\MyPartFont]
The problem i see here is that i have to go through \setupbodyfont[karat] and that i can't say something like:
\definefont[MyPartFont][karat at 24pt]
actually you can, goven that karat is known Serif SerifBold Sans SansItalic Karat KaratBold (or maybe Karat-Bold) texnansi-karat are all valid in a \definefont
Lets say i have 5 fonts in my document i only want to say \setupbodyfont[MyMainFont] once, then i should have other mecanisms for switching properly to other fonts at different sizes. Why does \definefont maps only from Sans, Serif, SansBold etc. ? This is quit fastidious, cause for this to work we have to use \setupbodyfont first and follow the steps above.
I may be missing something out there ..
i think so -) 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 -----------------------------------------------------------------
i have tried this, and leads to: bodyfont : unknown variant MyFont \usetypescriptfile[karat-type] \usetypescript[karat] \usetypescriptfile[opulent-type] \usetypescript[opulent] \usetypescript [sans][karat][map,name] \definefont[MyFont][karat] \starttext \switchtobodyfont[karat] Madame, Monsieur \switchtobodyfont[opulent] Madame, Monsieur \switchtobodyfont[MyFont] Madame, Monsieur \stoptext
Hi Dirar, I is not enough to give the commands which typescripts/files to use, you must setup first a bodyfont and then switch to other fonts Dirar BOUGATEF wrote:
i have tried this, and leads to:
bodyfont : unknown variant MyFont
\usetypescriptfile[karat-type] \usetypescript[karat]
\usetypescriptfile[opulent-type] \usetypescript[opulent]
\usetypescript [sans][karat][map,name] \definefont[MyFont][karat]
\definetypeface [Dirar] [rm] [serif] [times] [default] \definetypeface [Dirar] [ss] [sans] [helvetica] [default] [rscale=.9] \definetypeface [Dirar] [tt] [mono] [courier] [default] [rscale=1.1] \definetypeface [Other] [rm] [serif] [other-times] [default] \definetypeface [Other] [ss] [sans] [other-helvetica] [default] [rscale=.9] \definetypeface [Other] [tt] [mono] [other-courier] [default] [rscale=1.1] \starttext \switchtotypeface[Dirar][ss,12pt] MAdame, Monsieur switchtotypeface[Other][rm,12pt] Madame, Monsieur \stoptext I hope this will solve the question Willi
\starttext \switchtobodyfont[karat] Madame, Monsieur
\switchtobodyfont[opulent] Madame, Monsieur
\switchtobodyfont[MyFont] Madame, Monsieur \stoptext
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Hi Willy, What i need is to have a synonym for the font Dirar you defined, how do i have to proceed? I have tried the following: (Am gonna use my fonts names as i started the subject with) \starttypescript [karat] \definetypeface [karat] [ss] [sans] [karat] [default] [encoding=texnansi] \stoptypescript \usetypescriptfile[karat-type] \usetypescript[karat] \definebodyfont[MyFont][karat] \starttext \switchtobodyfont[MyFont] \stoptext This leads to the error: bodyfont : unknown variant MyFont Do you see any problem here ? Many thanks. Dirar.
Hi Dirar, What you have is apparently different already defined typefaces. So use switchtoypeface to change from karat to opulent. Then switchtobodyfont[karat,12pt] or whatever. You can not use the command definebodyfont in the way you do. For details for this command please refer to the manual mfonts.pdf Willi Dirar BOUGATEF wrote:
Hi Willy,
What i need is to have a synonym for the font Dirar you defined, how do i have to proceed? I have tried the following: (Am gonna use my fonts names as i started the subject with)
\starttypescript [karat] \definetypeface [karat] [ss] [sans] [karat] [default] [encoding=texnansi] \stoptypescript
\usetypescriptfile[karat-type] \usetypescript[karat]
\definebodyfont[MyFont][karat]
\starttext \switchtobodyfont[MyFont] \stoptext
This leads to the error:
bodyfont : unknown variant MyFont
Do you see any problem here ?
Many thanks.
Dirar.
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Dirar BOUGATEF wrote:
\definebodyfont[MyFont][karat]
\starttext \switchtobodyfont[MyFont] \stoptext
I believe \definebodyfont[MyFont][karat] should be \definefontsynonym[MyFont][karat], which should allow \switchtobodyfont[MyFont], but you may also be looking for \definefont[MyFont][karat], which defines \MyFont. regards, Christopher
From mfonts.pdf, it looks like there are 2 ways of configuring fonts after
Thanks Christopher, i have tried what you asked me but this didn't solve the problem. To me it was the right thing to do, but it looks like it is because my font is defined as a typeface collection that it does not work. I have tried \switchtotypeface instead as Willie said and this works fine. Now, i don't know where you got this command from, Willie (Thanks by the way :) ), cause it is nowhere in mfonts.pdf nor in cont-eni.pdf. Am really confused about the proper way to configure my fonts and use them, i know some trickeries but am not sure about the right way to do things. Question: they are installed (page 9). 1. As a whole. 2. As a typeface collection. In my understanding, when a font is defined as a whole, you can use the following commands to play with your font: 1. \setupbodyfont 2. \definebodyfont 3. \setupfontsynonym 4. \definefontsynonym 5. \switchtobodyfont When it is defined as a collection of typefaces you have to use: 1. \definetypeface 2. \switchtotypeface Now, when to use each one is a mystery. Could anyone explain a bit more ? Thanks.
Hello all,
'upgrading' to the 2004 TeXLive distribution (via GW's i-Installer)
broke the following (which is
a distilled version of a much larger file)
\startproject test
\startbodymatter
\section{Why is $1+1=2$?}
Let us first discuss {\em addition\index{addition}}.
\stopbodymatter
\startbackmatter
\completeindex
\stopbackmatter
\stopproject
Commenting out \completeindex makes the file TeXable, but, of course,
without index.
It don't get an error message but TeXshop 'stalls' with the following
log:
TeXExec 5.0 - ConTeXt / PRAGMA ADE 1997-2004
executable : pdfetex
format : cont-en
inputfile : test
output : pdftex
interface : en
current mode : none
TeX run : 1
This is pdfeTeX, Version 3.141592-1.20a-2.2 (Web2C 7.5.3)
(/usr/local/teTeX/share/texmf.local/web2c/natural.tcx)
output format initialized to DVI
entering extended mode
(./test.tex
ConTeXt ver: 2004.10.28 fmt: 2004.11.22 int: english mes: english
language : language en is active
Matthias Weber wrote:
Hello all,
'upgrading' to the 2004 TeXLive distribution (via GW's i-Installer) broke the following (which is
you mean that it loops ... \def\doplaceregister[#1][#2]% {\iffirstargument \begingroup \edef\currentregister{#1}% <<<<< \def\docompleteregister[#1][#2]% {\iffirstargument \begingroup \edef\currentregister{#1}% <<<<< change the def's into edef's in core-reg.tex and reformat 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 -----------------------------------------------------------------
Thanks, Hans, this works! I have to admit reading Hans' instruction "... and reformat" gave me the shivers. Fortunately I found an almost terminal-free way to do it on a Mac, I record it here for others who are faint of heart like myself. i) Locate the file you need to modify. This is easiest done by typing locate filename in a terminal window, and pasting the located directory path into the finder menu box you get under Go...Go To Folder. This only works if the locate database is up to date, it can be updated (for instance) using MacJanitor which freely executes maintenance routines that never happen on those Macs that are asleep at night. ii) Open the located file with TeXShop (for instance), modify it at will, and save. This might not work due to missing permissions. In this case, save to the desktop first and copy into the located directory. You'll be asked for authentication. iii) Start GW's i-Installer, go to i-Package... open..., and select ConTeXt. Then, select configure only (do not download!), and ignore the warning. i-Installer will then perform all the secret things to reformat ConTeXt. iv) If something went wrong, use the i-Installer to download and configure ConTeXt again. Matthias On Nov 22, 2004, at 5:15 PM, Hans Hagen wrote:
Matthias Weber wrote:
Hello all, 'upgrading' to the 2004 TeXLive distribution (via GW's i-Installer) broke the following (which is
you mean that it loops ...
\def\doplaceregister[#1][#2]% {\iffirstargument \begingroup \edef\currentregister{#1}% <<<<<
\def\docompleteregister[#1][#2]% {\iffirstargument \begingroup \edef\currentregister{#1}% <<<<<
change the def's into edef's in core-reg.tex and reformat
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 -----------------------------------------------------------------
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Hello all, I might be the only one, but I wanted the index before the bibliography, so my backmatter looks like: \startbackmatter \completeindex \completepublications \stopbackmatter which results in the log (excerpt) title : - \headtext {pubs} (./cxmf.tuo) system : pubs not found/processed When I conform and use \startbackmatter \completepublications \completeindex \stopbackmatter everything is fine, up to the order. ( TeXLive 2004 only) Matthias
participants (7)
-
Christopher Creutzig
-
Dirar BOUGATEF
-
h h extern
-
Hans Hagen
-
Matthias Weber
-
Taco Hoekwater
-
Willi Egger