Re: [NTG-context] New math feature requests
On Tue, 8 Aug 2006, Aditya Mahajan wrote: Hi Hans and Taco, I am back with some more math request Forgot a small request: Can this be added to core-mat.tex \def\intertext#1{\startintertext#1\stopintertext} Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] texfont: font only works with pdftex
On Mon, 7 Aug 2006, Hans Hagen wrote: since you're typesetting german ... why not using the texnansi encoding instead of the flawed ec encoding? The problem is that it doesn't work with the texnansi encoding either. See my last mails. Andreas ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] counting the words in a TeX document
Mojca Miklavec wrote: On 8/7/06, Hans Hagen wrote: (I'll spare you the fun with sections for some other time,) but since you reminded me that I might have some questions left, here you have another one: how do I replace hyphens, en-dashes and em-dashes with spaces/line breaks? \catcode`~=13\let~=\space does what I want, but none of the following works: \def\-{\space} \def-{\space} \let\-=\space \catcode`-=\active \def-{ } I tried that one already, but it didn't work. Now I figured out that it was because of nesting the definitions (perhaps even some interference with negative numbers?), not because of wrong definition on itself. I'm sorry. Mojca (But my fear is that the whole problem is too complex anyway (tables, ) to be solved elegantly.) i'm nearly 100% sure that you will never manage to make that working ; if you want to count words, you need to intercept them at the input stage and/or interpret the output 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
Re: [NTG-context] safe way of writing arguments
Jano Kula wrote: Hi! Is it safe to leave spare comma at the end of the key=value list or other list of arguments? in most cases it is ok It is not nice, but when adding/commenting arguments in readable way (one per line) it's faster and while experimenting with parameters one doesn't have to care about the last comma adding or removing it back and forth, for example: \setuplayout[ grid=yes, %header=0mm, footer=7mm, %footerdistance=10mm, %cutspace=12mm, ] in this case a space after 12mm is not that problematic because layout are calculated in vertical mode and the 12 mm is used in assignments or \setuphead[ chapter, section, %subsection, %subsubsection, hm, here it can be troublesome unless i catch an empty case (not sure); if you run into troubles with such cases report it to the list and we can see if we can catch it ][ textstyle=\ss, numberstyle=\ss, ] 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
Re: [NTG-context] texfont: font only works with pdftex
Andreas Schneider wrote: On Mon, 7 Aug 2006, Hans Hagen wrote: since you're typesetting german ... why not using the texnansi encoding instead of the flawed ec encoding? The problem is that it doesn't work with the texnansi encoding either. See my last mails. if the problem is in a font not having glyphs, you can consider making a special encoding vector + enco-* file; not that complex since one can start with an existing one 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
Re: [NTG-context] New math feature requests
Aditya Mahajan wrote: On Tue, 8 Aug 2006, Aditya Mahajan wrote: Hi Hans and Taco, I am back with some more math request Forgot a small request: Can this be added to core-mat.tex \def\intertext#1{\startintertext#1\stopintertext} sure, but as: \def\intertext#1% {\noalign{\dointertext{#1}}} (more efficient) 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
Re: [NTG-context] texfont: installed font only works with pdftex
Andreas Schneider wrote: On Tue, 8 Aug 2006, Hans Hagen wrote: if the problem is in a font not having glyphs, you can consider making a special encoding vector + enco-* file; not that complex since one can start with an existing one The problem is that it does work with pdftex (tex - pdf via texexec --pdf), but it does NOT work with tex - dvi - ps via texexec, dvips (some glyphs, such as ligatures and umlauts, don't work in the latter case). It should be possible to get it working, as fontinst is able to do it, so I don't know why I should need an extra encoding. Somehow you yourself (and not texfont!) have created a font map file called bgj.map for dvips, and that file is wrong. Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Context 2006.08.04 released
Sanjoy Mahajan wrote: in such case you need to add a \dontleavehmode to force tex into starting a paragraph Is that better than using \noindentation (suggested by the other Mahajan)? The one problem with it that I found is an extra space in indentation for the first paragraph. I guess it's because there's a space in horizontal mode somewhere that isn't being ignored (as it would have been in vertical mode)? hm, try to nail that space down and let me know 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
Re: [NTG-context] Context 2006.08.04 released
Nicolas Grilly wrote: Why does it break column alignment? Is it normal? A quick test looks fine to me. What precisely is wrong? Taco % testfile \setupTABLE[column][each][aligncharacter=yes, alignmentcharacter={,}] \definestartstop[tableau][ before={\blank[2*big]}, commands={\switchtobodyfont[10pt]}, after={\blank[big]}] \starttext \starttableau \bTABLE \bTR \bTD 2,22 \eTD \bTD 2 \eTD \eTR \bTR \bTD 22,2 \eTD \bTD 222 \eTD \eTR \eTABLE \stoptableau \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] environment files and indenting
Sanjoy Mahajan wrote: But if I inline the environment file, to get \startenvironment ne \setupindenting[medium,yes] \stopenvironment \starttext \placeformula\startformula x = 10 \stopformula \stoptext then texexec doesn't produce any overfull \hbox. And also no PDF, because \stopenvironment executes \endinput :-) Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] buffers
Aditya Mahajan wrote: Hans, was this fixed. There is a typo in core-buf.tex and it is still present in latest updateable version (2006.08.02). ok done 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
Re: [NTG-context] Context 2006.08.04 released
Renaud AUBIN wrote: DemiBold causes problems here... Demibold seems to work cleanly... all should be DemiBold; fixed - 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
Re: [NTG-context] Context 2006.08.04 released
Taco Hoekwater wrote: A quick test looks fine to me. What precisely is wrong? My test file to reproduce the problem is at the end of this message. When executing this test file, you should see numbers in table 2 are not correctly aligned. When you comment \starttableau and \stoptableau, columns are correctly aligned. It seems the problem exists only when table 1 and table 2 have not the same number of columns. Thanks for your help, Nicolas Grilly %testfile \setuppapersize [A4, landscape] [A4, landscape] \definestartstop[tableau][ before={\blank[2*big]}, commands={\switchtobodyfont[10pt]}, after={\blank[big]} ] \setupTABLE[column][each][align=middle, aligncharacter=yes, alignmentcharacter={,}] \starttext \subject{Table 1 - Numbers in this table are correctly aligned} \starttableau \bTABLE \bTR \bTH Nombre de trucs \eTH \bTH Evolution des trucs \eTH \bTH Revenu des trucs \eTH \bTH Evolution des trucs \eTH \eTR \bTR \bTD 38 229 \eTD \bTD +8,3\% \eTD \bTD 387 930 k\$ \eTD \bTD +8,3\% \eTD \eTR \bTR \bTD 29 616 \eTD \bTD +7,0\% \eTD \bTD 272 241 k\$ \eTD \bTD +0,7\% \eTD \eTR \eTABLE \stoptableau \subject{Table 2 - Numbers in these tables are not aligned} \starttableau \bTABLE \bTR \bTH Nombre de trucs \eTH \bTH Part des trucs \eTH \bTH Evolution des trucs \eTH \bTH Revenu des trucs \eTH \bTH Part des trucs \eTH \bTH Evolution des trucs \eTH \eTR \bTR \bTD 27 269 \eTD \bTD 92,1\% \eTD \bTD +7,3\% \eTD \bTD 127 110 k\$ \eTD \bTD 46,7\% \eTD \bTD -2,0\% \eTD \eTR \bTR \bTD 20 084 \eTD \bTD 67,8\% \eTD \bTD +1,6\% \eTD \bTD 65 770 k\$ \eTD \bTD 24,2\% \eTD \bTD +2,7\% \eTD \eTR \eTABLE \stoptableau \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] safe way of writing arguments
Hans Hagen wrote: Jano Kula wrote: Hi! Is it safe to leave spare comma at the end of the key=value list or other list of arguments? in most cases it is ok It is not nice, but when adding/commenting arguments in readable way (one per line) it's faster and while experimenting with parameters one doesn't have to care about the last comma adding or removing it back and forth, for example: \setuplayout[ grid=yes, %header=0mm, footer=7mm, %footerdistance=10mm, %cutspace=12mm, ] in this case a space after 12mm is not that problematic because layout are calculated in vertical mode and the 12 mm is used in assignments or \setuphead[ chapter, section, %subsection, %subsubsection, hm, here it can be troublesome unless i catch an empty case (not sure); if you run into troubles with such cases report it to the list and we can see if we can catch it ][ textstyle=\ss, numberstyle=\ss, ] 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, I've found the example of the different behaviour, though the reason isn't the comma, but the space after the command, I think. So even writing parameters one-per-line (with space left behind = last one without comma or percent sign) can be dangerous. %\setuphead[chapter][style=\bfd]% works %\setuphead[chapter][style={\bfd}] % works %\setuphead[chapter][style={\bfd} ] % doesn't work %\setuphead[chapter][style={\bfd},] % works \starttext \chapter{Test chapter} \stoptext This is not seriuos, I just want to find, how the things work. Jano ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] environment files and indenting
And also no PDF, because \stopenvironment executes \endinput :-) Whoops! I'd been testing so many variants in order to find the minimal file and had outsourced the checking to 'grep hbox' (rather than reading through the texexec output by hand). So I didn't even notice the lack of a PDF file. So that leaves the original problem, which is why the hbox is overfull in this minimal file (that produces a PDF!): \setupindenting[medium,yes] \starttext \placeformula\startformula x = 10 \stopformula \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] How to get rid of header
Taco Hoekwater wrote: I would like to know a clean answer to this as well. I often use code that does something similar to James' solution (posted last week): \startsetups [chapter:before] \page[left] \noheaderandfooterlines \leavevmode \page[right] \stopsetups \setuphead [chapter] [before=\setups{chapter:before}] but that is a bit too hackish for my taste. From a post by Hans on the dev list: Hans Hagen wrote: it's \page[empty,right] or \page[yes,empty,right] page entries are processed in sequence \page[something,something,{something,something},something] Greetings, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] safe way of writing arguments
Jano Kula wrote: Hans Hagen wrote: Jano Kula wrote: Hi! Is it safe to leave spare comma at the end of the key=value list or other list of arguments? in most cases it is ok It is not nice, but when adding/commenting arguments in readable way (one per line) it's faster and while experimenting with parameters one doesn't have to care about the last comma adding or removing it back and forth, for example: \setuplayout[ grid=yes, %header=0mm, footer=7mm, %footerdistance=10mm, %cutspace=12mm, ] in this case a space after 12mm is not that problematic because layout are calculated in vertical mode and the 12 mm is used in assignments or \setuphead[ chapter, section, %subsection, %subsubsection, hm, here it can be troublesome unless i catch an empty case (not sure); if you run into troubles with such cases report it to the list and we can see if we can catch it ][ textstyle=\ss, numberstyle=\ss, ] 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, I've found the example of the different behaviour, though the reason isn't the comma, but the space after the command, I think. So even writing parameters one-per-line (with space left behind = last one without comma or percent sign) can be dangerous. %\setuphead[chapter][style=\bfd]% works %\setuphead[chapter][style={\bfd}] % works %\setuphead[chapter][style={\bfd} ] % doesn't work %\setuphead[chapter][style={\bfd},] % works \starttext \chapter{Test chapter} \stoptext This is not seriuos, I just want to find, how the things work. this is because the value of style is interpreted in its own special way; also, in {xx}space the become part of the value, and {\bfd} is ineffective due to grouping then 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
Re: [NTG-context] Context 2006.08.04 released
Ok, works with Demi"B"old lbd.afm gives FontName LucidaBright-Demi FullName Lucida Bright Demibold FamilyName LucidaBright Weight DemiBold So, afaiu, you use the Weight to suffix the font's name... But I don't understand why Demibold works ? Strange ? Could you explain ? The result of \placeformula \startformula[lucida] 1 \Gamma \alpha x \stopformula \placeformula \startformula[lucida] 1 \Gamma {\bfm \alpha x} \stopformula \placeformula \startformula[lucidaboldmath] 1 \Gamma \alpha x \stopformula \placeformula \startformula[lucidaboldmath] 1 \Gamma {\bfm \alpha x} \stopformula doesn't match the one displayed in "This Way" (\startformula[lucida] 1 \Gamma {\bfm \alpha x} \stopformula returns Demi in "This Way" and Math-AltItalic in my test file)... Odd or not ? Renaud Hans Hagen a crit: Renaud AUBIN wrote: DemiBold causes problems here... Demibold seems to work cleanly... all should be DemiBold; fixed - 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 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Context 2006.08.04 released
Renaud AUBIN wrote: Ok, works with DemiBold lbd.afm gives FontName LucidaBright-Demi FullName Lucida Bright Demibold FamilyName LucidaBright ah, i see, so we should use Demibold Weight DemiBold So, afaiu, you use the Weight to suffix the font's name... But I don't understand why Demibold works ? Strange ? Could you explain ? this are internal names, so in principle you could use then in \definefont hm, so maybe we should use just LucidaBright-Demi 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
[NTG-context] \dontleavehmode and indenting after section (was Re: Context 2006.08.04 released)
Hans wrote: Is that better than using \noindentation (suggested by the other Mahajan)? The one problem with it that I found is an extra space in indentation for the first paragraph. I guess it's because there's a space in horizontal mode somewhere that isn't being ignored (as it would have been in vertical mode)? hm, try to nail that space down and let me know I couldn't find the extra space in the source, but here's the minimal test file in the hope that your eyes and understanding are sharper. The I from Indented? is indented a tiny bit relative to the section number (context 2006.08.02): \setuphead[section][after={\dontleavehmode}] \starttext \section{First} Indented? \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Context 2006.08.04 released
I'm agree to use Demibold ;) (my type-buy is ready) Can you test: \placeformula \startformula[lucida] 1 \Gamma \alpha x \stopformula \placeformula \startformula[lucida] 1 \Gamma {\bfm \alpha x} \stopformula \placeformula \startformula[lucidaboldmath] 1 \Gamma \alpha x \stopformula \placeformula \startformula[lucidaboldmath] 1 \Gamma {\bfm \alpha x} \stopformula please and compare with http://www.pragma-ade.com/general/magazines/mag-0005.pdf where you say "For Lucida lovers, we prepared some typescripts that provide (mixed) bold math." page 5 Hans Hagen a crit: Renaud AUBIN wrote: Ok, works with Demi"B"old lbd.afm gives FontName LucidaBright-Demi FullName Lucida Bright Demibold FamilyName LucidaBright ah, i see, so we should use Demibold Weight DemiBold So, afaiu, you use the Weight to suffix the font's name... But I don't understand why Demibold works ? Strange ? Could you explain ? this are internal names, so in principle you could use then in \definefont hm, so maybe we should use just LucidaBright-Demi 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 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \dontleavehmode and indenting after section (was Re: Context 2006.08.04 released)
Sanjoy Mahajan wrote: I couldn't find the extra space in the source, but here's the minimal test file in the hope that your eyes and understanding are sharper. The space is created from the linefeed at the end of the line \section{First} but I do not quite see why it is not ignored. Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] environment files and indenting
Sanjoy Mahajan wrote: So that leaves the original problem, which is why the hbox is overfull in this minimal file (that produces a PDF!): The overfull box is caused by a strut. It is easily removed by \def\verticalstrut {\normalvbox {\hsize \zeropoint \noindent\strut }} Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] New math feature requests
Aditya Mahajan wrote: 2. In amsmath, most of alignment constructs exist in two forms: outer and inner. The mathalignment implemented in core-mat.tex corresponds to outer alignment. The inner alignment is same as outer alignment, but is only as wide as necessay. The most common amsmath inner alignment constructs are aligned and gathered. It is easiest to explain by means of an example. Suppose I want to type a x + b y = c `\ } (simultaneous equations) d x + e y = f / , I want to be able to do \defineinnermathalignment[aligned][n=2,left={\left.},right={\right\}}] This sounds very close to \definemathmatrix, yes? Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] New math feature requests
On Tue, 8 Aug 2006, Taco Hoekwater wrote: Aditya Mahajan wrote: 2. In amsmath, most of alignment constructs exist in two forms: outer and inner. The mathalignment implemented in core-mat.tex corresponds to outer alignment. The inner alignment is same as outer alignment, but is only as wide as necessay. The most common amsmath inner alignment constructs are aligned and gathered. It is easiest to explain by means of an example. Suppose I want to type a x + b y = c `\ } (simultaneous equations) d x + e y = f / , I want to be able to do \defineinnermathalignment[aligned][n=2,left={\left.},right={\right\}}] This sounds very close to \definemathmatrix, yes? It is, and my first thought was that this can be achieved using \definematrix (that is why the previous requests for location= and style=). However, all my attempts to use a matrix failed because: 1. Matrix does not see beyond the \NCs as align. Comapre the output of \startformula \startalign[n=2] \NC a \NC = bx + c \NR \NC \NC + ey \NR \stopalign \stopformula with \startformula \startmatrix[n=2,distance=0pt, style=\displaystyle] \NC a \NC = bx + c \NR \NC \NC + ey \NR \stopmatrix \stopformula The '+' in the second line comes out as a unary operator rather than a binary operator. This can be corrected by using \NC{}+ but should the user really know the ugly implementation details? 2. Matrix does not correct interline space. Compare \startformula \startalign[n=2] \NC f(x) \NC = \int_{-\infty}^{\infty} \phi(y-x) dy \NR \NC \NC = \sum_{i=-\infty}^{\infty} \hat phi(i-x) \NR \stopalign \stopformula with \startformula \startmatrix[n=2,distance=0pt, style=\displaystyle] \NC f(x) \NC = \int_{-\infty}^{\infty} \phi(y-x) dy \NR \NC \NC = \sum_{i=-\infty}^{\infty} \hat phi(i-x) \NR \stopmatrix \stopformula The two lines are too close. I thought that it might be easier to simply wrap the whole align around a hbox as these inner alignments need not break across pages. If matrix can be enhanced to take care of the above two requirements then matrix is fine. However, if I just want a matrix, then both above behaviours of the matrix are correct. I am not sure what kind of interface matrix should have to behave in both ways (the current matrix behaviour and the requested aligned behaviour). Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \dontleavehmode and indenting after section (was Re: Context 2006.08.04 released)
The space is created from the linefeed at the end of the line \section{First} but I do not quite see why it is not ignored. Right in front of my nose (I was looking in the source files for a line that needed a % at the end). Is it because tex is still in horizontal mode thanks to the \dontleavehmode, and also because spaces after } are not ignored automatically? -Sanjoy `Never underestimate the evil of which men of power are capable.' --Bertrand Russell, _War Crimes in Vietnam_, chapter 1. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] environment files and indenting
The overfull box is caused by a strut. It is easily removed by \def\verticalstrut{\normalvbox {\hsize \zeropoint \noindent\strut }} Easily removed, but not so easily found! Thanks, that fixes it. Looking at the standard definition of \verticalstrut (in core-spa.tex): \def\verticalstrut {\normalvbox{\hsize\zeropoint\strut}} your fix adds a \noindent. Is that a general solution (e.g. for a subsequent release) or does it have side effects? -Sanjoy `Never underestimate the evil of which men of power are capable.' --Bertrand Russell, _War Crimes in Vietnam_, chapter 1. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] environment files and indenting
Sanjoy Mahajan wrote: The overfull box is caused by a strut. It is easily removed by \def\verticalstrut{\normalvbox {\hsize \zeropoint \noindent\strut }} Easily removed, but not so easily found! Thanks, that fixes it. Looking at the standard definition of \verticalstrut (in core-spa.tex): \def\verticalstrut {\normalvbox{\hsize\zeropoint\strut}} your fix adds a \noindent. Is that a general solution (e.g. for a subsequent release) or does it have side effects? The release I just announced fixes the problem by using \forgetall instead of \noindent. Side-effect do not matter because any effects will stay local to the \normalvbox, and that is left right away. Cheers, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \dontleavehmode and indenting after section (was Re: Context 2006.08.04 released)
Sanjoy Mahajan wrote: The space is created from the linefeed at the end of the line \section{First} but I do not quite see why it is not ignored. Right in front of my nose (I was looking in the source files for a line that needed a % at the end). Is it because tex is still in horizontal mode thanks to the \dontleavehmode, and also because spaces after } are not ignored automatically? The answer is yes (the new release has a patch for this by adding \ignorespaces at the end of the \section command). Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] marking files for delition in the next texutil/ctxtools --purge run
Mojca Miklavec wrote: Hello, is it possible to mark the files somehow, so that they are deleted in the next run of ctxtools --purge[files]? (I create a lot of temporary files with different macros and would like to get rid of them at the end.) This is supported in the new release, just say \registertempfile{mytempfile.tmp} Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] hyphenation by default off in lists ?
Steffen Wolfrum wrote: Hi, is hyphenation by default off in lists? This is resolved in the latest release. It allows control of the alternative=(a|b|c) parameters by \setuplistalternative[a] See texshow for the precise details. Cheers, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Context 2006.08.08 released
On Tue, 8 Aug 2006, Taco Hoekwater wrote: Hello all, I am pleased to announce that the new ConTeXt release from Hans Hagen can be downloaded as of now from the Pragma ADE website or one of its mirrors. http://www.pragma-ade.com/context/current/cont-tmf.zip http://context.aanhet.net/context/current/cont-tmf.zip http://mirror.contextgarden.net/context/current/cont-tmf.zip The current release has version 2006.08.08 A very short list of changes is given below. As usual, there is an html page with more detailed release notes available on the Wiki, see: http://wiki.contextgarden.net/Release_Notes Something broke with formula numbering, and it is due to the numbering changes. \preparethenumber is commented from core-sec.tex, dododoformulanumber in core-mat.tex still uses it. As a result even the simple \placeformula \startformula a = b \stopformula fails with ! Undefined control sequence. \dododoformulanumber [EMAIL PROTECTED] \preparethenumber \??fm \composedsectionnumb... argument \normalreqno {\doformulanumber [][][]{} } \secondoftwoarguments #1#2-#2 \dostopformula -\doplaceformulanumber \getvalue {\e!stop \formulaparameter ... l.3 \placeformula \startformula a = b \stopformula Changing preparethenumber in dododoformula by preparefullnumber gets rid of the problem. Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Context 2006.08.08 released
Same thing happens here... (Aditya was faster... ;) ) Renaud Aditya Mahajan a crit: Something broke with formula numbering, and it is due to the numbering changes. \preparethenumber is commented from core-sec.tex, dododoformulanumber in core-mat.tex still uses it. As a result even the simple \placeformula \startformula a = b \stopformula fails with ! Undefined control sequence. \dododoformulanumber [EMAIL PROTECTED] \preparethenumber \??fm \composedsectionnumb... argument \normalreqno {\doformulanumber [][][]{} } \secondoftwoarguments #1#2-#2 \dostopformula -\doplaceformulanumber \getvalue {\e!stop \formulaparameter ... l.3 \placeformula \startformula a = b \stopformula Changing preparethenumber in dododoformula by preparefullnumber gets rid of the problem. Aditya ___ 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
Re: [NTG-context] Context 2006.08.08 released
What's the meaning of automatically calls bibtex now. We don't have to call: texexec --once mydoc bibtex mydoc texexec mydoc anymore ? Renaud Taco Hoekwater a écrit : Hello all, I am pleased to announce that the new ConTeXt release from Hans Hagen can be downloaded as of now from the Pragma ADE website or one of its mirrors. http://www.pragma-ade.com/context/current/cont-tmf.zip http://context.aanhet.net/context/current/cont-tmf.zip http://mirror.contextgarden.net/context/current/cont-tmf.zip The current release has version 2006.08.08 A very short list of changes is given below. As usual, there is an html page with more detailed release notes available on the Wiki, see: http://wiki.contextgarden.net/Release_Notes New features: * The first release of the cow font * Support for strikethrough text using metapost * Macros can register temporary files that are automatically cleaned up * A few small math extensions: * matrix option style=\textstyle|\displaystyle so that each entry is in that style * matrix option location=low|lohi|high for the baseline placement of the matrix * macro \intertext added * Sorting of alphabetic commalists (\sortalphacommacommand) is now possible * Included metapost figures start out using black instead of the text color now, and \MPcolor{currentcolor} can be used for selecting the current text color outside figure * Page ranges in registers can optionally be compressed using \setupregister[compress=yes] * The bib module automatically runs bibtex now * SciTE on Windows now uses ComSpec instead of calling cmd.exe directly Bugfixes: * A bugfix in defined (named) buffer handling * Some french messages fixed * Some fixes for character alignment errors in natural tables * In grid mode, \displaywidowpenalty and \brokenpenalty are now set to zero * Figure numbers in captions fixed (separator, stopper, suffix) * LucidaNewMath-Demi (bold) font fixed Happy TeXing, Taco Hoekwater ___ 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
Re: [NTG-context] Context 2006.08.08 released
I have finally read bibmode-doc... (Sorry to pollute the ML with dumb post...) Renaud AUBIN a écrit : What's the meaning of automatically calls bibtex now. We don't have to call: texexec --once mydoc bibtex mydoc texexec mydoc anymore ? Renaud ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \dontleavehmode and indenting after section (was Re: Context 2006.08.04 released)
Taco wrote: Right in front of my nose (I was looking in the source files for a line that needed a % at the end). Is it because tex is still in horizontal mode thanks to the \dontleavehmode, and also because spaces after } are not ignored automatically? The answer is yes (the new release has a patch for this by adding \ignorespaces at the end of the \section command). In my plain-TeX days I used \ignorespaces all over in definitions of \section and \subsection for that purpose. Eventually that and other formatting code got too messy (the worst was after I hacked up a \url macro). So rather than reinvent many wheels badly, I switched to ConTeXt. So thanks for the rapid fixes, to that one and to the overfull hbox from the indented \strut. -Sanjoy `Never underestimate the evil of which men of power are capable.' --Bertrand Russell, _War Crimes in Vietnam_, chapter 1. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Context 2006.08.08 released
Renaud AUBIN wrote: I have finally read bibmode-doc... (Sorry to pollute the ML with dumb post...) Renaud AUBIN a écrit : What's the meaning of automatically calls bibtex now. We don't have to call: texexec --once mydoc bibtex mydoc texexec mydoc anymore ? Correct. Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] texfont: installed font only works with pdftex
On Tue, 8 Aug 2006, Taco Hoekwater wrote: Somehow you yourself (and not texfont!) have created a font map file called bgj.map for dvips, and that file is wrong. Hmm, I have created it just for LaTeX. Since it contains only entries for ec-bgj* (without 'raw') it should not interfere with the other mapfiles (created by texfont) which are for ec-raw-bgj* and texnansi-raw-bgj* (with 'raw'), or am I mistaken? Anyway xdvi complains about texnansi-raw-bgj* (see example below which I had already included in one of my previous mails). Andreas - \setuppapersize[A4][A4] \mainlanguage[de] \language[de] \enableregime[windows] \setupencoding[default=texnansi] \usetypescriptfile[type-eleggar] \usetypescript[eleggar] \setupbodyfont[eleggar,11pt] \setupbodyfontenvironment[default][em=italic] \starttext Einige Zeichen: `, ', --, , Ligaturen: fi, fl, ff, ffi, ffl Aufgelöste Ligaturen: f|i, f|l Umlaute: ä, ö, ü, ß, Ä, Ö, Ü; a, o, u, s \stoptext - xdvi.bin: Warning: Character 228 is mapped to .notdef in font texnansi-raw-bgjr (page 1), replacing by whitespace. xdvi.bin: Warning: Character 132 is mapped to .notdef in font texnansi-raw-bgjr (page 1), replacing by whitespace. xdvi.bin: Warning: Character 147 is mapped to .notdef in font texnansi-raw-bgjr (page 1), replacing by whitespace. xdvi.bin: Warning: Character 150 is mapped to .notdef in font texnansi-raw-bgjr (page 1), replacing by whitespace. xdvi.bin: Warning: Character 12 is mapped to .notdef in font texnansi-raw-bgjr (page 1), replacing by whitespace. xdvi.bin: Warning: Character 8 is mapped to .notdef in font texnansi-raw-bgjr (page 1), replacing by whitespace. xdvi.bin: Warning: Character 246 is mapped to .notdef in font texnansi-raw-bgjr (page 1), replacing by whitespace. xdvi.bin: Warning: Character 252 is mapped to .notdef in font texnansi-raw-bgjr (page 1), replacing by whitespace. xdvi.bin: Warning: Character 223 is mapped to .notdef in font texnansi-raw-bgjr (page 1), replacing by whitespace. xdvi.bin: Warning: Character 214 is mapped to .notdef in font texnansi-raw-bgjr (page 1), replacing by whitespace. xdvi.bin: Warning: Character 220 is mapped to .notdef in font texnansi-raw-bgjr (page 1), replacing by whitespace.___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Context 2006.08.08 released
Great that the new Cows-letter-font is released! Will you kindly provide some hints how to use this font? - I remember some trickery you presented at the NTG meeting. . Last but not least, what am I missing trying to get the cows show up? \loadmapfile[koeieletters] \usetypescriptfile[type-cow] \usetypescript[cow][texnansi] \setupbodyfont[cow,ss,36pt] \starttext Hello! \blank[big] $1 + 1 = 2$ \stoptext Cheers Willi Taco Hoekwater wrote: Hello all, I am pleased to announce that the new ConTeXt release from Hans Hagen can be downloaded as of now from the Pragma ADE website or one of its mirrors. http://www.pragma-ade.com/context/current/cont-tmf.zip http://context.aanhet.net/context/current/cont-tmf.zip http://mirror.contextgarden.net/context/current/cont-tmf.zip The current release has version 2006.08.08 A very short list of changes is given below. As usual, there is an html page with more detailed release notes available on the Wiki, see: http://wiki.contextgarden.net/Release_Notes New features: * The first release of the cow font * Support for strikethrough text using metapost * Macros can register temporary files that are automatically cleaned up * A few small math extensions: * matrix option style=\textstyle|\displaystyle so that each entry is in that style * matrix option location=low|lohi|high for the baseline placement of the matrix * macro \intertext added * Sorting of alphabetic commalists (\sortalphacommacommand) is now possible * Included metapost figures start out using black instead of the text color now, and \MPcolor{currentcolor} can be used for selecting the current text color outside figure * Page ranges in registers can optionally be compressed using \setupregister[compress=yes] * The bib module automatically runs bibtex now * SciTE on Windows now uses ComSpec instead of calling cmd.exe directly Bugfixes: * A bugfix in defined (named) buffer handling * Some french messages fixed * Some fixes for character alignment errors in natural tables * In grid mode, \displaywidowpenalty and \brokenpenalty are now set to zero * Figure numbers in captions fixed (separator, stopper, suffix) * LucidaNewMath-Demi (bold) font fixed Happy TeXing, Taco Hoekwater ___ 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
Re: [NTG-context] Context 2006.08.08 released
Aditya Mahajan wrote: Something broke with formula numbering, and it is due to the numbering hm, i really need this ultra light portable to carry around at home which beeps when someone sends such a mail -) anyway, with a bit of delay ... new zips uploaded (unchecked -) 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
Re: [NTG-context] updating ConTeXt with ctxtools
Sanjoy—thanks for pointing me to the thread. I must have missed it the first time around.I inserted Hans’f.write("#{program} #{callname} \"[EMAIL PROTECTED]"\012")in my texmfstart, changing the original 012 to 015 as Taco suggested for the Mac. But now I get syntax error near unexpected token `"#{program} #{callname} \"[EMAIL PROTECTED]"\015"whenever I run texmfstart. (The same, if I restore 012 as well.) I am running Mac OS X 10.4.7.In any case, I have probably misunderstood the thread. Has a summary been posted somewhere that I might consult?AlanOn Aug 6, 2006, at 9:39 AM, Sanjoy Mahajan wrote: kpsewhich: option `--expand-var' requires an argument See the Ubuntu installation thread a couple weeks ago (search forTEXMFLOCAL and Ubuntu). The problem is that TEXMFLOCAL isn't beingevaluated properly due to quoting differences between Unix and Windowssyntax (with ctxtools using the Windows syntax at the moment).-Sanjoy`Never underestimate the evil of which men of power are capable.' --Bertrand Russell, _War Crimes in Vietnam_, chapter 1.___ntg-context mailing listntg-context@ntg.nlhttp://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Context 2006.08.08 released
anyway, with a bit of delay ... new zips uploaded (unchecked -) I just tested Aditya's example \starttext \placeformula \startformula a = b \stopformula \stoptext and found that it worked fine (with 2006.08.08 21:51), so I guessed that some fast updating happened! I've added that example to the contexttest files as 'tex/context/base/core-mat.tex/test-005.tex'. I also included a test for \dontleavehmode mixing with \section headings (as core-sec.tex/test-001.tex). -Sanjoy `Never underestimate the evil of which men of power are capable.' --Bertrand Russell, _War Crimes in Vietnam_, chapter 1. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] updating ConTeXt with ctxtools
In any case, I have probably misunderstood the thread. Has a summary been posted somewhere that I might consult? I need to summarize all the Linux installation methods on the Wiki, once I get it all straight in my head. Right now in reality and in my head it's a nightmare because of all the flavors (texlive, tetex 2 or 3, etc.) and the gazillion map files that could be anywhere. ConTeXt tries to work everywhere so it has a hard life. I don't know much about what MacOS X does, but if you're not using a graphical installation method, it should be like BSD 4.[0123] Unix that I once used. In which case it should work mostly like Linux. Here's what I do now and did just half hour ago to update to the 2006.08.08 version. I use bash (a mostly sh-compatiable shell), which the MacOS terminal runs too I think. The $ below is my bash prompt and everything after it is what I type: $ TEXMFLOCAL=/home/sanjoy/texmf texmfstart ctxtools --updatecontext This fixes the problem that ctxtools uses (I think) Windows quoting in this source line: tree = `kpsewhich --expand-path $TEXMFLOCAL`.chomp rescue nil In Unix ruby (like in Perl) the $TEXMFLOCAL is expanded by the shell because of the $, and the result is run by the backticks. Usually TEXMFLOCAL has no setting in the shell or environment so ruby runs the command with $TEXMFLOCAL replaced by an empty string, giving: kpsewhich --expand-path So kpsewhich complains that it didn't get an argument for --expand-path (or --expand-var). The long-term fix is to figure out how to quote that works in Windows and Unix, but I don't know how since I don't use Windows. The short-term hack is to set TEXMFLOCAL just while running ctxtools, which is done by the command above that I run. So maybe try that using the vanilla distribution (so with \012 restored) and report back what happens and let's see if we can find a fix if something else doesn't work. My computers run Linux but my partner has a MacOS 10.3 machine and I'll use it for ConTeXt experiments if needed. -Sanjoy `Never underestimate the evil of which men of power are capable.' --Bertrand Russell, _War Crimes in Vietnam_, chapter 1. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] ctxtools.rb (was Re: Context 2006.08.08 released )
Hans, The latest ctxtools.rb has: def locatedlocaltree tree = `kpsewhich --expand-path $TEXMFLOCAL`.chomp rescue nil unless tree FileTest.directory?(tree) then tree = `kpsewhich --expand-path $TEXMF`.chomp rescue nil end return tree end I know the Windows/Unix quoting isn't sorted out, but another problem is with --expand-path. If the kpsewhich --expand-path $TEXMF line would get run here (with '$TEXMF'), it would produce /home/sanjoy/.texmf-config:/home/sanjoy/.texmf-var:/home/sanjoy/texmf:/etc/texmf:/var/lib/texmf:/usr/local/share/texmf:/usr/share/texmf:/usr/share/texmf-tetex which would eventually become the argument of an unhappy Dir.chdir(). Should localtedlocaltree() extract the first component before doing 'return tree'? -Sanjoy `Never underestimate the evil of which men of power are capable.' --Bertrand Russell, _War Crimes in Vietnam_, chapter 1. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] updating ConTeXt with ctxtools
Sanjoy Mahajan wrote: In any case, I have probably misunderstood the thread. Has a summary been posted somewhere that I might consult? I need to summarize all the Linux installation methods on the Wiki, once I get it all straight in my head. Right now in reality and in my head it's a nightmare because of all the flavors (texlive, tetex 2 or 3, etc.) and the gazillion map files that could be anywhere. ConTeXt tries to work everywhere so it has a hard life. I don't know much about what MacOS X does, but if you're not using a graphical installation method, it should be like BSD 4.[0123] Unix that I once used. In which case it should work mostly like Linux. Here's what I do now and did just half hour ago to update to the 2006.08.08 version. I use bash (a mostly sh-compatiable shell), which the MacOS terminal runs too I think. The $ below is my bash prompt and everything after it is what I type: $ TEXMFLOCAL=/home/sanjoy/texmf texmfstart ctxtools --updatecontext This fixes the problem that ctxtools uses (I think) Windows quoting in this source line: tree = `kpsewhich --expand-path $TEXMFLOCAL`.chomp rescue nil In Unix ruby (like in Perl) the $TEXMFLOCAL is expanded by the shell because of the $, and the result is run by the backticks. Usually TEXMFLOCAL has no setting in the shell or environment so ruby runs the command with $TEXMFLOCAL replaced by an empty string, giving: kpsewhich --expand-path So kpsewhich complains that it didn't get an argument for --expand-path (or --expand-var). The long-term fix is to figure out how to quote that works in Windows and Unix, but I don't know how since I don't use Windows. The short-term hack is to set TEXMFLOCAL just while running ctxtools, which is done by the command above that I run. So maybe try that using the vanilla distribution (so with \012 restored) and report back what happens and let's see if we can find a fix if something else doesn't work. My computers run Linux but my partner has a MacOS 10.3 machine and I'll use it for ConTeXt experiments if needed. does this one work ok? (the stupid thing is that kpsewhich is not made for user friendlyness, e.g.\ a natural solution would be to support kpsewhich --expand-path TEXMFLOCAL i.e. it expects an internal var so why not be clever and put the $ in front of it internally; there are more places in kpsewhich where robust cross-platformness can be provided but it has a low priority i guess def locatedlocaltree if System.unix? then tree = `kpsewhich --expand-path '$TEXMFLOCAL'`.chomp rescue nil unless tree FileTest.directory?(tree) then tree = `kpsewhich --expand-path '$TEXMF'`.chomp rescue nil end else tree = `kpsewhich --expand-path $TEXMFLOCAL`.chomp rescue nil unless tree FileTest.directory?(tree) then tree = `kpsewhich --expand-path $TEXMF`.chomp rescue nil end end return tree end -- - 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
Re: [NTG-context] texfont: installed font only works with pdftex
Hi Andreas, Andreas Schneider wrote: On Tue, 8 Aug 2006, Taco Hoekwater wrote: Somehow you yourself (and not texfont!) have created a font map file called bgj.map for dvips, and that file is wrong. Hmm, I have created it just for LaTeX. Since it contains only entries for ec-bgj* (without 'raw') it should not interfere with the other mapfiles (created by texfont) which are for ec-raw-bgj* and texnansi-raw-bgj* (with 'raw'), or am I mistaken? Anyway xdvi complains about texnansi-raw-bgj* (see example below which I had already included in one of my previous mails). There are two problems that I can see. There is only one that you can fix, and there is another problem that is a base texfont issue. The fixable problem first: If there is a virtual font, then dvi processors will recursively break it down into its constituents (those are the *-raw-* font metrics). Eventually, when there are no longer virtual fonts to resolve, it looks for the 'base' fonts in its map file. This process works in a similar fashion for all programs like pdftex, dvipdfmx, dvips, and xdvi, but texfont only creates a map file for pdftex. Unf, the pdftex map file cannot be used by dvips, so for dvips you have to create your own (like you did). When you create a map file for dvips for a texfont-installed font family, it needs to have those *-raw-* entries that will map the fonts to the real postscript font files on your harddisk, and those were missing from your bgj.map. Using the attached map file fragment, I can create a postscript file that has fi ligatures of your example in texnansi encoding using dvips. I have no xdvi here to try it, but that should work as well. The second problem: texfont simply does not 'do' EC correctly (at least not on my machine). There are simply no fi ligatures, not in pdftex either. I will investigate this further. Taco texnansi-raw-bgjb ElegantGaramondBT-BoldTeXnANSIEncoding ReEncodeFont texnansi.enc bgjb.pfb texnansi-raw-bgjr ElegantGaramondBT-Roman TeXnANSIEncoding ReEncodeFont texnansi.enc bgjr.pfb texnansi-raw-bgjri ElegantGaramondBT-Italic TeXnANSIEncoding ReEncodeFont texnansi.enc bgjri.pfb ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] texfont: installed font only works with pdftex
Taco Hoekwater wrote: The second problem: texfont simply does not 'do' EC correctly (at least not on my machine). There are simply no fi ligatures, not in pdftex either. I will investigate this further. how does -afmpl perform? i always suspected afm2tfm not to take non existing ligs into account 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
Re: [NTG-context] texfont: installed font only works with pdftex
Taco Hoekwater wrote: When you create a map file for dvips for a texfont-installed font family, it needs to have those *-raw-* entries that will map the fonts to the real postscript font files on your harddisk, and those were missing from your bgj.map. the reason why i create the map files the way we do is that i want to prevent pdftex to be too clever in sharing font resources (thre are versions out there that assume sequivalent Names to always equivalent which is not always true (think of slanted or extended fonts) (i've been bitten too often by that so i play safe) it is no problem to add that entry optionally (grep for cleanfont in texexec.pl; to tired to see the light now) 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
Re: [NTG-context] Context 2006.08.08 released
Willi Egger wrote: Great that the new Cows-letter-font is released! Will you kindly provide some hints how to use this font? - I remember some trickery you presented at the NTG meeting. . Last but not least, what am I missing trying to get the cows show up? This should work: \loadmapfile[koeieletters] \usetypescriptfile[type-cow] \usetypescript[cow][default] % only in 'default' encoding \definebodyfontenvironment[72pt] \setupbodyfont[cow,72pt] \starttext \rm Hello! % the typescript switches to sans by default \blank[big] $1 + 1 = 2$ \stoptext Cheers, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] texfont: installed font only works with pdftex
Hans Hagen wrote: Taco Hoekwater wrote: The second problem: texfont simply does not 'do' EC correctly (at least not on my machine). There are simply no fi ligatures, not in pdftex either. I will investigate this further. how does -afmpl perform? i always suspected afm2tfm not to take non existing ligs into account Just as bad (here, at least). I'll get back to you about this tomorrow, it is too late for me to do serious work. Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Footnote not marked in narrative
All, How can I have a footnote that is not marked in the narrative? ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Context 2006.08.08 released
Willi Egger wrote: Great that the new Cows-letter-font is released! Will you kindly provide some hints how to use this font? - I remember some trickery you presented at the NTG meeting. .. Last but not least, what am I missing trying to get the cows show up? just load the symb-cow symbols (\usesymbols[cow]) as starting point (it defined fonts and such) there will be a manual Hans ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Column problem
Hans et al, In making the final pass at our book, I have a problem with the \column command. In trying to start a new column to avoid a widow, I put a \column command at the end of the first of two columns on a page. The result is I get a start of a new column, but it is on a new page. Thus, page 1 has 1 column, the second column is blank, and the rest continues on page 2 in two column format! Help! ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] modules
On 4/4/06, Hans Hagen [EMAIL PROTECTED] wrote: In order to be able to generate new zips i'd like the modules in the wiki to be tds compliant as soon as possible. Ive kept this mail starred since I first saw it and haven't put any thought into what you're actually asking about here. Now, however, I'd really like to know what /TDS compliant/ means and if there's something I should do with my BNF model to make it so. Thanks. nikolai ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] columns - columnsets introduces problems
Hans et al, When we discovered that \column doesn't work reliably with \startcolumns[n=2] ... \stopcolumns, we made some changes to our style files: %\setupcolumns % [tolerance=stretch, % balance=yes, % blank=flexible, % rule=off, % distance=2.5em] \definecolumnset[exercises][n=2] \setupcolumnset [exercises] [distance=2.5em, balance=yes] \definecolumnset[answers][n=2] \setupcolumnset [answers] [distance=2.5em, balance=yes] %\def\startquestions{\exercises{Exercises}\startcolumns[n=2]} %\def\stopquestions{\stopcolumns} \def\startquestions{\exercises{Exercises}\startcolumnset[exercises]} \def\stopquestions{\stopcolumnset} %\def\placeanswers{% % \bgroup % \doifmodeelse{short} % { % \keepblocks[shortsubanswer,longsubanswer] % \answers{Answers}\vskip 1em\startcolumns[n=2] % \selectblocks[shortanswer][criterium=section] % \stopcolumns % } % { % \keepblocks[shortsubanswer,longsubanswer] % \answers{Solutions}\vskip 1em % \selectblocks[longanswer][criterium=section] % } % \egroup %} \def\placeanswers{% \bgroup \doifmodeelse{short} { \keepblocks[shortsubanswer,longsubanswer] \answers{Answers}\vskip 1em\startcolumnset[answers] \selectblocks[shortanswer][criterium=section] \stopcolumnset } { \keepblocks[shortsubanswer,longsubanswer] \answers{Solutions}\vskip 1em \selectblocks[longanswer][criterium=section] } \egroup } We can now no longer compile what we could formerly compile: systems : end file chapter0/equations at line 77 systems : begin file chapter0/equationsexercises at line 79 (../chapter0/equationsexercises.tex system : module newmat (line 31) already loaded system : module math=ext (line 32) already loaded system : module fig-base (line 33) already loaded [24.24] exercises : - Exercises ! Missing number, treated as zero. to be read again y \v!yes -y es \doindecrement ...ned \else \ifx #2\relax \else #2 \fi \fi +#1\relax } \doifelse ... \!!stringa {#1}\edef \!!stringb {#2} \ifx \!!stringa \!! stringb... \doregister ...sterparameter \c!ownnumber }\v!yes {\dosingleempty \dodoregis... \Tindex #1-\index {#1}#1 ... l.104 \setnumber [page]{\pagenumberExercisesOneTwo} If I go into the offending file and comment out the line: \startquestions %\setnumber[page]{\pagenumberExercisesOneTwo} Compiling again: systems : end file chapter0/equations at line 77 systems : begin file chapter0/equationsexercises at line 79 (../chapter0/equationsexercises.tex system : module newmat (line 31) already loaded system : module math=ext (line 32) already loaded system : module fig-base (line 33) already loaded [24.24] exercises : - Exercises ! Missing number, treated as zero. to be read again y \v!yes -y es \doindecrement ...ned \else \ifx #2\relax \else #2 \fi \fi +#1\relax } \doifelse ... \!!stringa {#1}\edef \!!stringb {#2} \ifx \!!stringa \!! stringb... \doregister ...sterparameter \c!ownnumber }\v!yes {\dosingleempty \dodoregis... \Tindex #1-\index {#1}#1 ... l.105 ? We are at a complete loss of what to do. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] modules
TDS is the Tex Directory Structure, designed so that the various tex distributions use the same file structure. See http://www.tug.org/tds/ -Sanjoy `Never underestimate the evil of which men of power are capable.' --Bertrand Russell, _War Crimes in Vietnam_, chapter 1. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] texfont: installed font only works with pdftex
On Aug 8, 2006, at 11:57 PM, Taco Hoekwater wrote: how does -afmpl perform? i always suspected afm2tfm not to take non existing ligs into account Just as bad (here, at least). I'll get back to you about this tomorrow, it is too late for me to do serious work. I've experimented with afm2pl, and as I wrote in an earlier mail: the beginning of EC.enc with its additional LIGKERN instructions confuses it so it will not include default ligatures. If you delete this, it will work. If you use lm-ec.enc (which has a number of mistakes fixed anyway), it works. BUT afm2pl needs a file default.lig which is not present in all TeX distributions. I asked Siep a couple of months ago, and he replied there was a switch to ignore default.lig, but in that case, the default ligs would have to be supplied by texfont itself (which should be doable). IMHO, texfont should switch to afm2pl by default; it's much better at preserving kerning information (Adam, any thoughts on this?), and it makes virtual fonts unnecessary. I now use it regularly for all my font needs and am very satisfied with it. Best Thomas ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context