All, I have: \setupurl [style=bold] \useURL[craig][http://online.redwoods.cc.ca.us/instruct/darnold/CalcProj/Fal l98/CraigA/project3.htm] \from[craig] But it runs off my slide before wrapping. I'd like to break this up so it is on two lines and centered. Any suggestions?
there is \hyphenatedurl{http://www....} May be this is what you are looking for. Willi David Arnold wrote:
All,
I have:
\setupurl [style=bold]
\useURL[craig][http://online.redwoods.cc.ca.us/instruct/darnold/CalcProj/Fal l98/CraigA/project3.htm]
\from[craig]
But it runs off my slide before wrapping. I'd like to break this up so it is on two lines and centered. Any suggestions? _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Willi et al, How do you use \hyphenatedurl? I tried: \setupurl [style=bold] \useURL[craig][\hyphenatedurl{http://online.redwoods.cc.ca.us/instruct/darno ld/CalcProj/Fall98/CraigA/project3.htm}] \from[craig] But this gave me: ERROR: Improper alphabetic constant. --- TeX said --- <to be read again> \hyphenatedurl \scanurl ...d #1\relax #1\else \ifnum \catcode `#1 =8 \flushurl \splitbefore ... At 10:34 AM 11/2/04 +0100, you wrote:
there is \hyphenatedurl{http://www....}
May be this is what you are looking for.
Willi
David Arnold wrote:
All,
I have:
\setupurl [style=bold]
\useURL[craig][http://online.redwoods.cc.ca.us/instruct/darnold/CalcProj/Fal
l98/CraigA/project3.htm]
\from[craig]
But it runs off my slide before wrapping. I'd like to break this up so it is on two lines and centered. Any suggestions? _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
David Arnold wrote:
Willi et al,
How do you use \hyphenatedurl? I tried:
ok, let's end the suffering here ... \starttext \showframe \setupurl [style=bold] \useURL[craig][http://online.redwoods.cc.ca.us/instruct/darnold/CalcProj/Fall98/CraigA/proj...] \useURL[giarc][nice place][http://online.redwoods.cc.ca.us/instruct/darnold/CalcProj/Fall98/CraigA/proj...] \setuptolerance[verytolerant,stretch] \from[craig] \par \from[giarc] \par \stoptext ----------------------------------------------------------------- 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 et al, Thanks. This worked. I am seeing here and there that the syntax for \useURL is: \useURL[][][][] The first [] is to hold a symbolic name such as "craig" that can be referred to latter, as in \from{craig}\par. The second [] is what actually gets typeset? What is the third [] for? What is the fourth [] for? Finally, could you wax philosophic a bit on the meaning and purpose of \setuptolerance[verytolerant,stretch]? I certainly see that it works, but I am not sure why. Thanks. At 05:24 PM 11/2/04 +0100, you wrote:
David Arnold wrote:
Willi et al,
How do you use \hyphenatedurl? I tried:
ok, let's end the suffering here ...
\starttext
\showframe
\setupurl [style=bold]
\useURL[craig][http://online.redwoods.cc.ca.us/instruct/darnold/CalcProj/Fa ll98/CraigA/project3.htm] \useURL[giarc][nice place][http://online.redwoods.cc.ca.us/instruct/darnold/CalcProj/Fall98/Cra igA/project3.htm]
\setuptolerance[verytolerant,stretch]
\from[craig] \par
\from[giarc] \par
\stoptext
----------------------------------------------------------------- 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
David Arnold wrote:
What is the fourth [] for?
the stuff that may come after a #, as in http://www.pragma-ade.mars/someplace/to/go#someday=2006.09.04 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 am seeing here and there that the syntax for \useURL is:
\useURL[][][][]
Hi, I have put an example in texshow-web (http://texshow.contextgarden.net/cmd=useURL) Patrick -- ConTeXt wiki: http://contextgarden.net
Hi, thanks Patrick for the example. The only thing is, that \useURL does not hypenate. In Context there is also a command \hyphenatedurl: From: \hyphenatedurl{http://www.perseus.tufts.edu/cgi-bin/ptext?doc=Perseus:text:1999.01.0218:book=1:line=1} However you will loose the interactivity. Another approach is then to use Patrick's example like \setupoutput[pdftex] \setupcolors [state=start] \setupinteraction [state=start,color=blue] \useURL [hyphenated] [{http://www.perseus.tufts.edu/cgi-bin/ptext?doc=Perseus:text:1999.01.0218:book=1:line=1}] [] [\tex{Odysee from Homeros on the Internet}] \starttext Read once from: \hyphenatedurl{http://www.perseus.tufts.edu/cgi-bin/ptext?doc=Perseus:text:1999.01.0218:book=1:line=1} Read also from \from[hyphenated]! \stoptext Don not to forget to enclose the very long URL in braces! - Otherwise the requested page is not loaded. Willi Patrick Gundlach wrote:
[...]
I am seeing here and there that the syntax for \useURL is:
\useURL[][][][]
Hi, I have put an example in texshow-web (http://texshow.contextgarden.net/cmd=useURL)
Patrick
Hello Willi, [...]
[\tex{Odysee from Homeros on the Internet}]
you should not use \tex{...} here of course. Unless you have an unknown TeX interpreter that you should tell us about :-) Patrick -- ConTeXt wiki: http://contextgarden.net
Hi Patrick, Oeps, indeed! I was a bit in a hurry and I saw that there was a slash in front of the external link ... Willi Patrick Gundlach wrote:
Hello Willi,
[...]
[\tex{Odysee from Homeros on the Internet}]
you should not use \tex{...} here of course. Unless you have an unknown TeX interpreter that you should tell us about :-)
Patrick
Hi, thanks Patrick for the example. The only thing is, that \useURL does not hypenate. In Context there is also a command \hyphenatedurl: From: \hyphenatedurl{http://www.perseus.tufts.edu/cgi-bin/ptext?doc=Perseus:text:1999.01.0218:book=1:line=1} However you will loose the interactivity. Another approach is then to use Patrick's example like \setupoutput[pdftex] \setupcolors [state=start] \setupinteraction [state=start,color=blue] \useURL [hyphenated] [{http://www.perseus.tufts.edu/cgi-bin/ptext?doc=Perseus:text:1999.01.0218:book=1:line=1}] [] [\tex{Odysee from Homeros on the Internet}] \starttext Read once from: \hyphenatedurl{http://www.perseus.tufts.edu/cgi-bin/ptext?doc=Perseus:text:1999.01.0218:book=1:line=1} Read also from \from[hyphenated]! \stoptext Don not to forget to enclose the very long URL in braces! - Otherwise the requested page is not loaded. Willi Patrick Gundlach wrote:
[...]
I am seeing here and there that the syntax for \useURL is:
\useURL[][][][]
Hi, I have put an example in texshow-web (http://texshow.contextgarden.net/cmd=useURL)
Patrick
Hello, I think I´mgetting confused with all of the font selection within context. First: I have a miktex environment on on W2K. 1. to change single fonts: \definetypeface [palatino] [rm] [serif] [palatino] [default] [encoding=ec] \switchtotypeface[palatino][12pt,rm] results in an error that the font is not found (font: uplr8t) on my system following files are available: uplr8a.afm uplr8v.tfm uplr8v.pfb uplr8a.pfb uplr8v.htf but I think tfm is needed 2. I thought that the default encoding should be texnansi I tried that but context is looking for texnansi-uhvr8a (here for helvet). The font uhvr8a is on my system. 3. should be there some font-switching macros on the system called font-xxx.tex (example font-lbr.tex)? These are missing on my system. I think these are needed forthings like: \setupbodyfont[lbr, sans, 12pt] 4. within miktex there are "lucida" font files from yandy (lbr.tfm ). Is that a free version of lucida-font? (is that for math? [there is anotherfile called math-lbt.tex in \context\base]) Summary: do I need to get the missing fonts/files and why are they not provided with miktex. Perhaps a change of the distribution is to prefer? (which one) Is there a manual which explains how to change fonts (in a way that a normal user who is new to context can understand it)? Thanks a lot Wolfgang
Hello Wolfgang,
I think I´mgetting confused with all of the font selection within context.
You are not the first one...
First: I have a miktex environment on on W2K.
That should be OK for all needs.
1. to change single fonts:
see http://contextgarden.net/Psnfss
\definetypeface [palatino] [rm] [serif] [palatino] [default] [encoding=ec] \switchtotypeface[palatino][12pt,rm]
I have never used \switchtotypeface.
2. I thought that the default encoding should be texnansi
This depends on your setup. See cont-sys.tex as a place where defaultencoding is sometimes set.
3. should be there some font-switching macros on the system called font-xxx.tex (example font-lbr.tex)? These are missing on my system. I think these are needed forthings like: \setupbodyfont[lbr, sans, 12pt]
Well the font-xxx.tex files have nothing (not completely true) to do with the font switching commands.
4. within miktex there are "lucida" font files from yandy (lbr.tfm ). Is that a free version of lucida-font?
No. There is no really free version of lucida. They once came with staroffice and there was a script that was able to pull them out and make them accessable for TeX. But I think that the quality is lower than the original ones (once read a statement from Walter Schmit about them, don't remember when and where) and math is not included.
(is that for math? [there is anotherfile called math-lbt.tex in \context\base])
No math fonts like lucida for free.
do I need to get the missing fonts/files and why are they not provided with miktex. Perhaps a change of the distribution is to prefer? (which one)
No, go ahead with MikTeX. Try out the stuff that is on the wiki and please report on your success/failure.
Is there a manual which explains how to change fonts (in a way that a normal user who is new to context can understand it)?
yes and no. See the wiki for links. Patrick -- ConTeXt wiki: http://contextgarden.net
Patrick Gundlach said this at Mon, 6 Dec 2004 14:41:58 +0100:
\switchtotypeface[palatino][12pt,rm]
I have never used \switchtotypeface.
\setuptypeface[palatino,12pt,rm] is probably more appropriate here. -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Adam T. Lindsay, Computing Dept. atl@comp.lancs.ac.uk Lancaster University, InfoLab21 +44(0)1524/510.514 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Dear friends, Let's join the font discussion! Two years ago I installed under latex an adapted cyrillic font family, along with a new encoding (which I named l2t.enc -- a variant of t2a), for koi8 texts, which makes it possible to call special diacritics (like \cyrkdot) by means of regular input codes, such as \= and \d. (In this way the text can still be processed without the special font and its code, but looks less nice.) As anybody can imagine, it was the toughest latex thing I ever did, I guess, but it worked and still does. I am telling you this because after this complicated job I have been trying several times to install a simple type 1 font under Context, the last time being two days ago, but without any success. (I got the same simple font working under latex, though.) I carefully read Adam's 'My Way' over and over again, but I cannot get it work in my system. I put all the files exactly on the indicated places! (Texfont is very handy, but it seems to me, that nevertheless mapping files are not found.) Could anybody give me, and some others, a hand? The font is simply not recognised (log file message: bodyfont: unknown variant johanna). Of course, I am still miles away of getting my cyrillic font working under context... Let's not take the font Palatino, because it's already there, but a simple font: say, johanna, which consists of two files: johanna.pfb johanna.afm. Which concrete steps do we have to take to make johanna work under Context with Miktex? And, perhaps more important, where do I put my map files and font files, etc. so that they be recognised? The next step would be the installation of a ttf font. After that a whole font family should not be that difficult anymore. Thank you very much in advance! Kind regards, Robert Ermers
Rob Ermers said this at Mon, 6 Dec 2004 22:30:22 +0100:
The font is simply not recognised (log file message: bodyfont: unknown variant johanna). Of course, I am still miles away of getting my cyrillic font working under context...
Okay, that sounds odd. How do you define/use the font in ConTeXt?
Let's not take the font Palatino, because it's already there, but a simple font: say, johanna, which consists of two files:
johanna.pfb johanna.afm.
Okay, stick those two files in a temp directory together. What happens with: texfont --make --install --co=johanna --ve=something --show ?
Which concrete steps do we have to take to make johanna work under Context with Miktex?
as before, I don't know about MikTeX specifically... -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Adam T. Lindsay, Computing Dept. atl@comp.lancs.ac.uk Lancaster University, InfoLab21 +44(0)1524/510.514 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Hi Adam, Thanks for your quick reaction. Before ending this eventful day, I ran texexec as you suggested. The font in question is Hudson (vendor=softmaker = Berry 5), for which I invented the name 5hu (+r for roman). I have the two files 5hur.pdf and 5hur.afm. Texfont generated a number of files and put them in several directories: - texnansi-softmaker-hudson.map in J:\tex\localtexmf\fonts\map\pdftex\context - texnansi-5hur.tfm in J:\tex\localtexmf\fonts\tfm\softmaker\hudson - texnansi-5hur.vf in J:\tex\localtexmf\fonts\vf\softmaker\hudson - 5hur.afm in J:\tex\localtexmf\fonts\afm\softmaker\hudson - 5hur.pfb in J:\tex\localtexmf\fonts\type1\softmaker\hudson Texfont also generated the following: D:\Fonts\hudson\hudson: texnansi-softmaker-hudson.log D:\Fonts\hudson\hudson: texnansi-softmaker-hudson.tex D:\Fonts\hudson\hudson: texnansi-softmaker-hudson.tmp D:\Fonts\hudson\hudson: texnansi-softmaker-hudson.pdf The pdf file does not show the hudson font - I wonder if it should. Perhaps I should mention that Texfont was interrupted; atf2tfm gets stuck - a conflict with a dll, but if click on OK, nothing serious seems to be the matter. The tfm file is generated after all. If I test afm2tfm without texfont, it works normally. I have a test file, which is called testhuds-con.tex. Kind regards, Robert
Adam Lindsay wrote:
Rob Ermers said this at Mon, 6 Dec 2004 22:30:22 +0100:
The font is simply not recognised (log file message: bodyfont: unknown variant johanna). Of course, I am still miles away of getting my cyrillic font working under context...
there is support for cyrillic in context but there are many encodings; i'm sure that there are users out there who can help 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 -----------------------------------------------------------------
Rob Ermers wrote:
The font is simply not recognised (log file message: bodyfont: unknown variant johanna). Of course, I am still miles away of getting my cyrillic font working under context...
that message is an indication that you didn't define it as bodyfont for instance: \definetypeface[johanna][rm][serif][palatino][default] will provide \setupbodyfont[johanna,10pt,rm] the combination [serif] [palatino] is the main typescript filter, while [rm] is what it gets mapped onto; [default] concerns the size 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 -----------------------------------------------------------------
Dear Contexers, I'm logging in through webmail, so right now I cannot try your suggestions but I will as soon as I get home. I already thank everybody for responding. I am puzzled by this line which Hans wrote: \definetypeface[johanna][rm][serif][palatino][default] Hans further writes that [serif][palatino] is the main typescript filter and that [rm] is mapped on to [serif][palatino] I don't quite grasp this. - Why exactly do I have to refer to [serif][palatino]? - Do you mean that palatino serves as a default which has to be remapped when a new font is installed? - Where is this status of palatino registered? - And why did you chose palatino, rather than another typeface? Thanks again, Robert
Rob Ermers wrote:
The font is simply not recognised (log file message: bodyfont: unknown variant johanna). Of course, I am still miles away of getting my cyrillic font working under context...
that message is an indication that you didn't define it as bodyfont
for instance:
\definetypeface[johanna][rm][serif][palatino][default]
will provide
\setupbodyfont[johanna,10pt,rm]
the combination [serif] [palatino] is the main typescript filter, while [rm] is what it gets mapped onto; [default] concerns the size
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 -----------------------------------------------------------------
r.ermers@hccnet.nl said this at Tue, 7 Dec 2004 09:09:27 +0100:
am puzzled by this line which Hans wrote:
\definetypeface[johanna][rm][serif][palatino][default]
Hans further writes that [serif][palatino] is the main typescript filter and that [rm] is mapped on to [serif][palatino]
See earlier in the thread in my message to Wolfgang on typescript filters and remapping. It also goes back to the problem I asked about in my earlier message: how do you actually use/invoke the font in ConTeXt? -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Adam T. Lindsay, Computing Dept. atl@comp.lancs.ac.uk Lancaster University, InfoLab21 +44(0)1524/510.514 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Rob Ermers said this at Mon, 6 Dec 2004 22:30:22 +0100:
The font is simply not recognised (log file message: bodyfont: unknown variant johanna). Of course, I am still miles away of getting my cyrillic font working under context...
Okay, that sounds odd. How do you define/use the font in ConTeXt?
Let's not take the font Palatino, because it's already there, but a simple font: say, johanna, which consists of two files:
johanna.pfb johanna.afm.
Okay, stick those two files in a temp directory together. What happens with: texfont --make --install --co=johanna --ve=something --show ?
Which concrete steps do we have to take to make johanna work under Context with Miktex?
as before, I don't know about MikTeX specifically... -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Adam T. Lindsay, Computing Dept. atl@comp.lancs.ac.uk Lancaster University, InfoLab21 +44(0)1524/510.514 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Hello, when using text background colors in enumerations, I run into a problem whenever the enumeration appears on the beginning of a page: Then, the background extends over some part (sometimes all) of the previous page. I can manually correct this by putting a \break just before the enumeration, but this is a little tedious, as I am frequently reformatting the document. Below is a small example. Thanks for any help! (TeXExec 5.2.3 , ConTeXt ver: 2004.11.23 fmt: 2004.12.16 int: english mes: english) Matthias %ConText \mainlanguage [en] \setupcolors[state=start] \setupcolor[rgb] % Exercises and Activities \definecolor[exc] [r=.94,g=.9,b=.9] \definetextbackground [exbackground] [backgroundcolor=exc, corner=round, before=\blank, after=\blank, leftoffset=5pt, rightoffset=5pt, topoffset=5pt, bottomoffset=5pt, frame=on, framecolor=darkgreen, location=paragraph, color=darkgreen] \defineenumeration [exercise] [before={\starttextbackground[exbackground]}, after={\stoptextbackground}, way=bysection, text=Exercise, start=1, location=hanging, letter=rm] \setuppapersize[S6][S6] \setupbodyfont[12pt] \starttext \input tufte \input tufte new line new line new line \startexercise Please explain how to get rid of the additional framed stuff on page 1. \stopexercise \input tufte \stoptext
Matthias Weber wrote:
[before={\starttextbackground[exbackground]},
try: [before={\testpage[2]\starttextbackground[exbackground]}, that way a pagebreak is forced when less than three lines are left 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 fixes it most of the time. But the problem still occurs with one "new line" less. (Example again at the bottom) :( Matthias On Jan 10, 2005, at 12:49 PM, Hans Hagen wrote:
Matthias Weber wrote:
[before={\starttextbackground[exbackground]},
try:
[before={\testpage[2]\starttextbackground[exbackground]},
that way a pagebreak is forced when less than three lines are left
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
\mainlanguage [en] \setupcolors[state=start] \setupcolor[rgb] % Exercises and Activities \definecolor[exc] [r=.94,g=.9,b=.9] \definetextbackground [exbackground] [backgroundcolor=exc, corner=round, before=\blank, after=\blank, leftoffset=5pt, rightoffset=5pt, topoffset=5pt, bottomoffset=5pt, frame=on, framecolor=darkgreen, location=paragraph, color=darkgreen] \defineenumeration [exercise] [before={\testpage[2]\starttextbackground[exbackground]}, after={\stoptextbackground}, way=bysection, text=Exercise, start=1, location=hanging, letter=rm] \setuppapersize[S6][S6] \setupbodyfont[12pt] \starttext \input tufte \input tufte new line new line %new line \startexercise Please explain how to get rid of the additional framed stuff on page 1. \stopexercise \input tufte \stoptext
Matthias Weber wrote:
Thanks, Hans, this fixes it most of the time. But the problem still occurs with one "new line" less. (Example again at the bottom) :(
in your case the testpage should test for 3 lines, because you have 5pt margin + a blank before it \testpage[3] actually the best solution is when i start introducing special background options (no time for that now, o for the moment use the testpage); that way i can hook it in the righ tplace 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, that brings it down to two problematic cases in a 400 page document, and I can live with that. Matthias On Jan 10, 2005, at 1:57 PM, Hans Hagen wrote:
Matthias Weber wrote:
Thanks, Hans, this fixes it most of the time. But the problem still occurs with one "new line" less. (Example again at the bottom) :(
in your case the testpage should test for 3 lines, because you have 5pt margin + a blank before it
\testpage[3]
actually the best solution is when i start introducing special background options (no time for that now, o for the moment use the testpage); that way i can hook it in the righ tplace
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
Wolfgang Zillig said this at Mon, 6 Dec 2004 13:40:24 +0100:
Hello,
I think I´mgetting confused with all of the font selection within context.
Don't worry: it's a bit complicated at first... but it's learn-able (and easier, to my mind, than LaTeX's way of doing things!).
First: I have a miktex environment on on W2K.
I don't have miktex. But I'll try to teach what I know!
1. to change single fonts: \definetypeface [palatino] [rm] [serif] [palatino] [default] [encoding=ec] \switchtotypeface[palatino][12pt,rm] results in an error that the font is not found (font: uplr8t)
okay, let's expand through the typescripts a bit: You invoke these typescripts through your typeface definition (primarily; there are others that automatically get triggered): [serif][palatino][name] [serif][palatino][ec] [serif][default] [size] % etc... Serif then gets mapped in type-syn: \starttypescript [serif] [palatino] [name] \definefontsynonym [Serif] [Palatino] %... Palatino then gets mapped in type-enc: \starttypescript [serif] [palatino] [texnansi,ec,8r,t5] \definefontsynonym [Palatino][\typefaceencoding- uplr8a][encoding=\typefaceencoding] %... This line gets expanded to: \definefontsynonym [Palatino][ec-uplr8a][encoding=ec] %... ...So at this point, your system would be looking around for ec- uplr8a.tfm, but it's not. You provide a clue as to why not:
2. I thought that the default encoding should be texnansi
In the new cont-sys.rme, it's set to ec encoding: \setupencoding [\s!default=ec] ...and the berry type synonyms are invoked: \usetypescript [berry] [\defaultencoding] So the following typescript gets invoked, mapping the above ec-uplr8a: \starttypescript [berry] [ec] \definefontsynonym [ec-uplr8a] [uplr8t] [encoding=ec] That, being the last one in the chain, is what ConTeXt looks for. For those following along at home, the whole chain of name resolution, taking into account the encoding, is therefore: (\rm\tf) > Serif > Palatino > ec-uplr8a > uplr8t
on my system following files are available:
That's quite a mixture of types, below. Can you provide a listing of the .tfm files in fonts/tfm/urw/palatino ?
uplr8a.afm
(The base Adobe Font Metrics file, which enables you to generate new tfms)
uplr8v.tfm uplr8v.pfb
(Vietnamese variants of the fonts!)
uplr8a.pfb
(That's the postscript font file you ultimately want to include in your document.)
uplr8v.htf
(Irrelevant to our discussion. TeX4ht-related, I think?)
Summary:
do I need to get the missing fonts/files and why are they not provided with miktex. Perhaps a change of the distribution is to prefer? (which one)
Well, I'm wondering where all the tfms have gone on my distribution, as well (gwTeX on the Mac doesn't seem to include 8r or ec/8t metrics, either). It looks like you might have to do a texfont run to build (ConTeXt-named) tfms in order to be useful. It's not all that scary. I gave a rundown of the steps I followed in this primitive MyWay. It might be useful so long as you don't treat it as literal instructions: http://homepage.mac.com/atl/tex/TexfontExamined.pdf Cheers, adam -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Adam T. Lindsay, Computing Dept. atl@comp.lancs.ac.uk Lancaster University, InfoLab21 +44(0)1524/510.514 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Hello Adam, [...]
Well, I'm wondering where all the tfms have gone on my distribution, as well (gwTeX on the Mac doesn't seem to include 8r or ec/8t metrics, either).
Do you have psnfss (LaTeX) installed? Patrick -- ConTeXt wiki: http://contextgarden.net
participants (10)
-
Adam Lindsay
-
David Arnold
-
h h extern
-
Hans Hagen
-
Matthias Weber
-
Patrick Gundlach
-
r.ermers@hccnet.nl
-
Rob Ermers
-
Willi Egger
-
Wolfgang Zillig