[NTG-context] Concrete outline fonts
Hi folks. This is what happens when you're fighting insomnia in a foreign land. I started investigating the TeXLive tree, and came up with at least a partial solution to something that keeps getting asked about here. Mark Ainsworth said this at Thu, 7 Aug 2003 11:48:55 +0100: On another track, is there any way of getting pdftex to use the pfb concrete fonts, rather than the bitmap versions without a major hack of my map files? Has someone written a simple little routine to do the patching automatically. They print out ok, but the on-screen versions are really naff. The computer concrete fonts *do* exist in a type1 version, albeit only in pl0 encoding. They probably only get installed when you choose the polish language/fonts package in TeXLive. CTAN appears to have these files at: http://www.ctan.org/getfile/?filename=language/polish/cc-pl.zipaction=/ tools/filesearch Anyway, by creating some simple font synonyms to fonts already referred to by ConTeXt's built-in typescript, you can access the fonts fairly easily: %% use the Polish cc-pl type1 files that come with TeXLive7 \definefontsynonym [ccr10] [pcr10] [encoding=pl0] \definefontsynonym [ccti10] [pcti10] [encoding=pl0] \definefontsynonym [ccsl10] [pcsl10] [encoding=pl0] \definefontsynonym [cccsc10] [pccsc10] [encoding=pl0] \setupbodyfont[con] \starttext \input knuth \showaccents \stoptext In addition, if you install the type-eul.zip files, you can use the fonts with euler math, as well: % http://homepage.mac.com/atl/tex/EulerContext.zip % replace \setupbodyfont[con] with \usetypescriptfile[type-eul] \setupbodyfont[con,eul] Hope someone finds that interesting. adam [I sent this to the list whilst travelling from an alternate email account. I guess it didn't get seen b/c of all the email viruses flying around.] -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Adam T. Lindsay [EMAIL PROTECTED] Computing Dept, Lancaster University +44(0)1524/594.537 Lancaster, LA1 4YR, UK Fax:+44(0)1524/593.608 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- - End Forwarded Message - -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Adam T. Lindsay [EMAIL PROTECTED] Computing Dept, Lancaster University +44(0)1524/594.537 Lancaster, LA1 4YR, UK Fax:+44(0)1524/593.608 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] ConTeXt, XML and verbatim
I. I'm working on some documentation writen in XML. This documentation contain many nested XML files. To process XML I use simple ConTeXt construction \processXMLfilegrouped{file.xml} (or) \starttext \processXMLfilegrouped{file.xml} \stoptext In XML source nested files are involved by nested/ tag. To process nested XML files I have defined something like this: \defineXMLcommand [nested] {\processXMLfile{\XMLpar{nested}{src}{}}} It works good. I want to treat each 'newline-char' as a space (in the whole document). For that purpose I use: \catcode`^^M=10 The problem is that it DOESN'T work for nested XML files. How can I set someting like this for the whole XML structure, not only for file processed just 'under' ConTeXt? It works only for the file processed directly by the command \processXMLfile{...} II. Meybe someone knowns how to 'translate' verbatim environments for XML code? I mean how to define environment which I can use in this way verbatim /verbatim to get literal content of such XML tag? Thanks, Pawe Jackowski ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Re: ConTeXt project structure?
Hello Matthias, My only complaint so far: As far as I understand it, context requires full path names relative to the main directory. But probably I haven't figured it out yet... As far as I can see, there are two ways to include the products: a) as you said with path names directory/productname b) on web2c systems via the TEXINPUTS environment variable. I am looking for a third (...) way as well Patrick ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] \c!gebied
Dear ConTeXt hackers, what is this \setupsystem[\c!gebied={/Users/pg/}] doing in my .tmp file? What is the purpose of the setting? How can I overwrite this (if it is useful for anything)? Patrick ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Re: Hyperlinks to locations in other documents-repost
Hi, Hans Hagen [EMAIL PROTECTED] writes: I made a small test file \setupoutput[pdftex] \pdfcompresslevel=0 \setupinteraction[state=start] \starttext \chapter[one]{One} \goto {document} [testtest::] \goto {chapter 2} [testtest::two] \chapter[two]{Two} nothing here \stoptext (and its mirror testtest.tex) Now, somehow this works in acrobat 5 but not in acrobat 6! Creating a link in acrobat 6 manually also does not work. Looks like a bug in acrobat 6, but before i look into it in more detail i want confirmation from other users Same here. The document gets opened, but the page with Chapter 2 is not selected. Both Acrobat/Adobe reader on Mac OS X. Patrick ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] ConTeXt, XML and verbatim
On Wed, Sep 03, 2003 at 04:09:32PM +0200, Pawel Jackowski na WP wrote: II. Meybe someone knowns how to 'translate' verbatim environments for XML code? I mean how to define environment which I can use in this way verbatim /verbatim to get literal content of such XML tag? There are no verbatim environments in XML, and you cannot get literal content. Instead, you can have tags, like your verbatim above, that request line-oriented layout. programlisting is such a tag in Docbook. This is how docbook in context does it: \def\XMLDBstartlineorientedlayout {\bgroup \frenchspacing \obeyspaces \obeytabs \obeylines \parindent=0pt% \setupwhitespace[none] \def\obeyedline{\par\def\obeyedline{\strut\par}}% \def\obeyedspace{\strut\space}% \blank[medium]} \def\XMLDBstoplineorientedlayout{\blank[medium]\egroup} \defineXMLenvironment[programlisting] {\XMLDBstartlineorientedlayout \tt\XMLsimpleentitiestrue}% {\XMLDBstoplineorientedlayout} Regards, Simon -- Simon Pepping email: [EMAIL PROTECTED] home page: scaprea.hobby.nl ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \c!gebied
At 17:57 03/09/2003 +0200, you wrote: Dear ConTeXt hackers, what is this \setupsystem[\c!gebied={/Users/pg/}] doing in my .tmp file? What is the purpose of the setting? How can I overwrite this (if it is useful for anything)? it's used (by texexec and) me to run on path 'x' but use files from path 'y' which is needed in web apps Hans - Hans Hagen | PRAGMA ADE | [EMAIL PROTECTED] 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 - ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Create pseudo small caps.
John, First off, make sure you don't already have the font buried somewhere. I found Charter SC (faked) in my TeXLive 7 installation: \showfont[bchrc8t] Ah, but there's a typo/omission in type-enc.tex. That particular line should be: \definefontsynonym [ec-bchr8a-capitalized-800] [bchrc8t] [encoding=ec] If you put that single line in your input file, and then call the default charter face with: \usetypescript[berry][ec] % or [8r] \definetypeface[charter][rm][serif][charter][default][encoding=ec] \setupbodyfont[charter] ...you should be set. If the font isn't there, or you prefer to use something other than ec-encoding, then read on. As for texfont, I have only done this particular one using texfont in a batch mode, but it should be at least close to the mark. Make sure the directory tree where you find your fonts is writeable. Make sure that $texmf/fonts/afm/bit is correctly named 'bitstrea'. (ah, another bug, this time in TeXLive...) texfont /path/to/context/data/type-tmf.dat --en=8r --inst -make \ --fontroot=/path/to/texmf-fonts --co=charter --ve=bitstrea This should (I'm a little rusty) run texfont on Hans's built-in batchfile, selecting only charter. With that done, I think this ought to work: \definetypeface[charter][rm][serif][charter][default][encoding=8r] \setupbodyfont[charter] If you want to run texfont only to make smallcaps, I think the command you want is: sudo texfont --en=ec --fontroot=/path/to/texmf-local --inst --make \ --ve=bitstrea --co=charter --source=auto --ca=0.8 bchr8a I'll leave it to you to integrate that one into your typescript. I was going to ask about the \kap series of commands, but none seem to give a mix of (faked) caps and small caps. Hope that helps a bit, adam John Culleton said this at Wed, 3 Sep 2003 17:34:04 -0400: On Tuesday 02 September 2003 16:06, John Culleton wrote: I am using Bitstream Charter following the directions on Bill McClain's page for typescripts. Now I want to use \sc in both regular and expanded form. What is the best way to add a \sc typeface to my file? Bill McC suggested that Texfont could be used to create a small caps version but I haven't figured it out yet. If I don't find any other answer I will either use a small caps font from another typeface or else do a kludge like \fonta H\fontb ELLO ---to get Hello in caps and small caps, \fonta being Charter at 11pts and \fontb being Charter at perhaps 6pts. Surely there is a better way?? -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Adam T. Lindsay [EMAIL PROTECTED] Computing Dept, Lancaster University +44(0)1524/594.537 Lancaster, LA1 4YR, UK Fax:+44(0)1524/593.608 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context