Re: [NTG-context] hz and protrusion
Hans, This is great news, thanks a million. Where should I keep an eye out for the interface extensions? Dave On Feb 15, 2008, at 10:08 AM, Hans Hagen wrote: Hi, The latest luatex beta + mkiv support hz and protruding. The user interface will be extended a bit, but for the moment it goes as follows: % engine=luatex % \setupfontexpansion [quality][stretch=2.5,shrink=2.5,step=. 5,factor=1] \setupfontexpansion[oeps][a=1,b=2] \setuptolerance[verytolerant,stretch] \showframe \starttext \definefontfeature[demo][default] [mode=node,expansion=quality,protrusion=pure] \start \definedfont[Serif*demo at 12pt] \enableadjusting \enableprotruding \input tufte \par %\definedfont[name:optimanova*demo at 12pt] \enableadjusting \enableprotruding \input tufte \par \stop \stoptext (or the usual \setupalign options) As you may deduce from this example, handling is gone in mkiv. This not only safes some 40K format file, but the new mechanism also runs faster (some 10% overhead on 300 pages of pure text, which is rare). At some point we need to extend the hz/protruding vectors in mkiv to cover non latin scripts as well (currently they default to factors of 1). As with mkiv, latin glyphs fall back to their shape parent. Under some circumstances hz may not work as expected. Fixing this is on the agenda for the next luatex beta release. 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 - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] t-tikz: problem with colorspace pgfprgb
On Sun, 2 Mar 2008, Finn Martensen wrote: 2008/3/2, Aditya Mahajan [EMAIL PROTECTED]: I have the following problem with TikZ: When I use the patterns library in a tikzpicture environment, the file is compiled without problems and creates a PDF file. However, Acrobat displays an error message Could not find the ColorSpace named 'pgfprgb'. [...] Can you please post a minimal example? I have compiled a few examples from the tikz manual by using all tikz librarries, but never had this problem. It just discovered that it depends, e.g., on whether there is only one page with a tikzpicture or more pages with tikzpictures. To give code examples: the first works, but not the second ** Code with no problems: ** \usemodule[tikz] \usetikzlibrary[patterns] \starttext \starttikzpicture \fill[pattern=dots] (0,0) -- (0,1) -- (1,1) -- (1,0); \stoptikzpicture \stoptext ** Code with problems: ** \usemodule[tikz] \usetikzlibrary[patterns] \starttext \starttikzpicture \draw (0,0) -- (1,0); \stoptikzpicture \page \starttikzpicture \fill[pattern=dots] (0,0) -- (0,1) -- (1,1) -- (1,0); \stoptikzpicture \stoptext I can reproduce this problem. On linux, with evince pdf viewer (2.21.91) I get Error: Bad color space 'pgfprgb', with Adobe reader (8.1.2) Wrong operand type. The example does work fine with plain TeX and LaTeX. Something wrong in the way patterns are handled by tikz for context. I do not think that anyone on this list understands the internals of TikZ. Your best bet is to report this to the tikz-mailing list. Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Using Postscript Type 1 fonts in ConTeXt/XeTeX?
Some of your statements seem wrong or at least confusing to me: Am 2008-03-01 um 13:19 schrieb Roland: Seems we never posted the conclusion about this problem: XeTeX simply doesn't work with the old Mac Type 1 Postscript fonts on Mac OS X (Leopard or before). The reason is that these old fonts store their data in the resource fork, which Unix utilities like XeTeX don't see. Only TrueType or OpenType fonts will be recognised and loaded correctly. As you state later, all data fork fonts (TrueType, OpenType and PostScript) should work. For I never tried XeTeX I don't know if PS Type 1 and 3 will work. Isn't it possible to use traditional TeX-installed fonts with XeTeX? PCs don't have the data fork PCs don't know the Mac *resource* fork. BTW there are different forks *possible* with NTFS (supported from WinNT to XP, no more in Vista)! For those with access to a font conversion program like fondu (?) fontforge (?) or fontlab (?) it may be possible to convert the old Type 1 font fondu is by the same author as fontforge; look at http://fondu.sourceforge.net/ http://fontforge.sourceforge.net/ Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] hz and protrusion
David Wooten wrote: Hans, This is great news, thanks a million. Where should I keep an eye out for the interface extensions? on this list - 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 - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] multiple pattern with xmltools.rb
Hi, I tried several variants to use multiple pattern with xmltool. None of them worked and looking in the script didn't help either (me_no_ruby). A (not working) example: xmltools.rb --dir --pattern={*.png,*.jpg} --output=filelist.xml I need the filelist as base for the creation of a resource library (xml part), so multiple pattern support is a prerequisite here. Peter ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] multiple pattern with xmltools.rb
Peter Rolf wrote: Hi, I tried several variants to use multiple pattern with xmltool. None of them worked and looking in the script didn't help either (me_no_ruby). A (not working) example: xmltools.rb --dir --pattern={*.png,*.jpg} --output=filelist.xml I need the filelist as base for the creation of a resource library (xml part), so multiple pattern support is a prerequisite here. wodks ok here, on vista maybe you need to quote the argument? - 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 - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] t-tikz: problem with colorspace pgfprgb
On Mon, Mar 3, 2008 at 6:15 AM, Aditya Mahajan wrote: On Sun, 2 Mar 2008, Finn Martensen wrote: 2008/3/2, Aditya Mahajan [EMAIL PROTECTED]: I have the following problem with TikZ: When I use the patterns library in a tikzpicture environment, the file is compiled without problems and creates a PDF file. However, Acrobat displays an error message Could not find the ColorSpace named 'pgfprgb'. [...] Can you please post a minimal example? I have compiled a few examples from the tikz manual by using all tikz librarries, but never had this problem. It just discovered that it depends, e.g., on whether there is only one page with a tikzpicture or more pages with tikzpictures. To give code examples: the first works, but not the second ** Code with no problems: ** \usemodule[tikz] \usetikzlibrary[patterns] \starttext \starttikzpicture \fill[pattern=dots] (0,0) -- (0,1) -- (1,1) -- (1,0); \stoptikzpicture \stoptext ** Code with problems: ** \usemodule[tikz] \usetikzlibrary[patterns] \starttext \starttikzpicture \draw (0,0) -- (1,0); \stoptikzpicture \page \starttikzpicture \fill[pattern=dots] (0,0) -- (0,1) -- (1,1) -- (1,0); \stoptikzpicture \stoptext I can reproduce this problem. On linux, with evince pdf viewer (2.21.91) I get Error: Bad color space 'pgfprgb', with Adobe reader (8.1.2) Wrong operand type. The example does work fine with plain TeX and LaTeX. Something wrong in the way patterns are handled by tikz for context. I do not think that anyone on this list understands the internals of TikZ. Your best bet is to report this to the tikz-mailing list. Till Tantau has already replied (privately): I tracked down this problem. It turns out that ConTeXt does, well, radical things with the page resources (it simply resets them after each page, which is why a pattern cannot be used on any page other than the page on which it is defined). I'll try to fix this later, although ConTeXt could be a bit less aggressive, here... I fixed this in the CVS. You will have to check it out to use the patch. The main problem is that pgf and context both fight over who can set page resources. As there is no clean way to do this, both pgf and context have their own systems. Actually, context's system is a bit cleaner, but we also have to support latex and plain tex. Anyway, I put in some patches that should solve the problem under normal circumstances. If you use ConTeXt commands that also mess around with extended graphic states, some further changes would presumably be necessary, but I'm not sure. So ... feel free to test it (should I set up automatic updates of tikz from cvs for the minimals?). Mojca ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] multiple pattern with xmltools.rb
Hans Hagen schrieb: Peter Rolf wrote: Hi, I tried several variants to use multiple pattern with xmltool. None of them worked and looking in the script didn't help either (me_no_ruby). A (not working) example: xmltools.rb --dir --pattern={*.png,*.jpg} --output=filelist.xml I need the filelist as base for the creation of a resource library (xml part), so multiple pattern support is a prerequisite here. wodks ok here, on vista maybe you need to quote the argument? right! :) the braces around the pattern are eaten up by 'make', so you have to protect them with quotes. thanks again. RL_PATTERN := '{*.png,*.jpg}' FL_CMD := xmltools.rb --dir --pattern=$(RL_PATTERN) peter - 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 - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] t-tikz: problem with colorspace pgfprgb
On Mon, 3 Mar 2008, Mojca Miklavec wrote: On Mon, Mar 3, 2008 at 6:15 AM, Aditya Mahajan wrote: On Sun, 2 Mar 2008, Finn Martensen wrote: 2008/3/2, Aditya Mahajan [EMAIL PROTECTED]: I have the following problem with TikZ: When I use the patterns library in a tikzpicture environment, the file is compiled without problems and creates a PDF file. However, Acrobat displays an error message Could not find the ColorSpace named 'pgfprgb'. [...] Can you please post a minimal example? I have compiled a few examples from the tikz manual by using all tikz librarries, but never had this problem. It just discovered that it depends, e.g., on whether there is only one page with a tikzpicture or more pages with tikzpictures. To give code examples: the first works, but not the second ** Code with no problems: ** \usemodule[tikz] \usetikzlibrary[patterns] \starttext \starttikzpicture \fill[pattern=dots] (0,0) -- (0,1) -- (1,1) -- (1,0); \stoptikzpicture \stoptext ** Code with problems: ** \usemodule[tikz] \usetikzlibrary[patterns] \starttext \starttikzpicture \draw (0,0) -- (1,0); \stoptikzpicture \page \starttikzpicture \fill[pattern=dots] (0,0) -- (0,1) -- (1,1) -- (1,0); \stoptikzpicture \stoptext I can reproduce this problem. On linux, with evince pdf viewer (2.21.91) I get Error: Bad color space 'pgfprgb', with Adobe reader (8.1.2) Wrong operand type. The example does work fine with plain TeX and LaTeX. Something wrong in the way patterns are handled by tikz for context. I do not think that anyone on this list understands the internals of TikZ. Your best bet is to report this to the tikz-mailing list. Till Tantau has already replied (privately): I tracked down this problem. It turns out that ConTeXt does, well, radical things with the page resources (it simply resets them after each page, which is why a pattern cannot be used on any page other than the page on which it is defined). I'll try to fix this later, although ConTeXt could be a bit less aggressive, here... I fixed this in the CVS. You will have to check it out to use the patch. The main problem is that pgf and context both fight over who can set page resources. As there is no clean way to do this, both pgf and context have their own systems. Actually, context's system is a bit cleaner, but we also have to support latex and plain tex. Anyway, I put in some patches that should solve the problem under normal circumstances. If you use ConTeXt commands that also mess around with extended graphic states, some further changes would presumably be necessary, but I'm not sure. Works well the minimal example that Finn posted. So ... feel free to test it (should I set up automatic updates of tikz from cvs for the minimals?). That will be nice. Actually, what do you mirror at the minimals, the current context stable or the current beta? Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] t-tikz: problem with colorspace pgfprgb
So ... feel free to test it (should I set up automatic updates of tikz from cvs for the minimals?). That will be nice. Actually, what do you mirror at the minimals, the current context stable or the current beta? Both. One can choose current, beta or any verison (by date - but not a complete archive is there). However, the scripts (mtxrun, texmfstart) are from current, in the best hope that the versions do not differ too much. There is also an experimental branch, but it does not really work at the moment. (I have no idea how to get the latest luatex binaries and don't see many other reasons at the moment, but if I get some idea, I will implement it.) Mojca ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Background color spaning columns.
I am trying change the background color of some text. It works fine if I am using one column. It also works fine if I am using multiple columns, but restricting my background color changes to only a single line of text in a column. However, if I have a section that I want to I change, and that section spans more than one line in a given column it does not work. What happens is that the background starts to change where you have indicated; however, instead of stopping at the end of the column, the background color changes for the entire text. See the subject entitled Problem 1 below for an example. Is there a fix for this (and no, using a single column is not a solution.) Problem #2 is the same thing only the background change starts in the first column and extends to the second. In this case the output is even worse. It's difficult to describe, so run the code. Solutions? Thanks, Bart *** * Sample Code --- #1 *** \setupcolors[state=start] \definetextbackground[highlight][ backgroundcolor=yellow, frame=off, location=text, color=black] \definestartstop[Highlight][ before={\starttextbackground[highlight]}, after=\stoptextbackground] \starttext \subject{Problem 1} \startcolumns It was a· \starthighlight dark· and stormy night; the rain fell in torrents --- except at occasional intervals, when it was checked by a· violent\stoptextbackground~ gust of wind which swept up the streets (for it is in London that our scene lies), rattling along the housetops, and fiercely agitating the scanty flame of the lamps that struggled against the darkness. \stopcolumns \subject{Problem 2} \startcolumns It was a dark and stormy night; the rain fell in torrents --- except at occasional intervals, when it was checked by a violent gust of wind which· \starthighlight· swept up the streets (for it is in London that our scene lies), rattling along the housetops, and fiercely agitating the scanty flame \stophighlight of the lamps that struggled against the darkness. \stopcolumns \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Background color spaning columns.
On Mon, 3 Mar 2008, Bart Wise wrote: I am trying change the background color of some text. It works fine if I am using one column. It also works fine if I am using multiple columns, but restricting my background color changes to only a single line of text in a column. I have encountered this problem in the past. This is a limitations of the simple column mechanism. However, if I have a section that I want to I change, and that section spans more than one line in a given column it does not work. What happens is that the background starts to change where you have indicated; however, instead of stopping at the end of the column, the background color changes for the entire text. See the subject entitled Problem 1 below for an example. Is there a fix for this (and no, using a single column is not a solution.) Use columnsets. They are not as easy and simple as columns, but they provide a lot more features. See the columnset manual for details about using them. Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Using Postscript Type 1 fonts in ConTeXt/XeTeX?
On Mon, Mar 3, 2008 at 8:58 PM, Henning Hraban Ramm wrote: Am 2008-03-03 um 17:44 schrieb Mojca Miklavec: - or to patch ConTeXt to use xdv2pdf instead of xdvipdfmx + rewrite a bunch of definitions that load Latin Modern (they should not be loaded since xdv2pdf doesn't support traditional TeX-installed fonts) Since there are OpenType LM fonts now, one could just install them for the OS. True. But there are to mechanisms to load fonts: by font name or by filename. By filename only works in xdvipdfmx and by font name requires the font to be installed (and thus cannot be made the default/cannot be expected from users). If there were enough requests, xdv2pdf could be made optional by: - providing an extra switch for texexec - providing an alternative that doesn't use Latin Modern by filename (which means either not loading OpenType LM at all or assuming that it's installed) I just didn't feel that it would be necessary to support that (didn't know the limitations of xdvipdfmx) when I was asking Hans to write patches. If there are requests to do it, it could probably be done. Mojca ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Using Postscript Type 1 fonts in ConTeXt/XeTeX?
On Tue, 4 Mar 2008 01:10:06 +0100 Mojca Miklavec [EMAIL PROTECTED] wrote: On Mon, Mar 3, 2008 at 8:58 PM, Henning Hraban Ramm wrote: Am 2008-03-03 um 17:44 schrieb Mojca Miklavec: - or to patch ConTeXt to use xdv2pdf instead of xdvipdfmx + rewrite a bunch of definitions that load Latin Modern (they should not be loaded since xdv2pdf doesn't support traditional TeX-installed fonts) Since there are OpenType LM fonts now, one could just install them for the OS. True. But there are to mechanisms to load fonts: by font name or by filename. By filename only works in xdvipdfmx and by font name requires the font to be installed (and thus cannot be made the default/cannot be expected from users). If there were enough requests, xdv2pdf could be made optional by: - providing an extra switch for texexec IRC this is already possible on a Mac, texexec --xtx use dvipdfmx and texexec --xetex use xdv2pdf to convert the DVI file to PDF. - providing an alternative that doesn't use Latin Modern by filename (which means either not loading OpenType LM at all or assuming that it's installed) I just didn't feel that it would be necessary to support that (didn't know the limitations of xdvipdfmx) when I was asking Hans to write patches. If there are requests to do it, it could probably be done. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] problem with startitemize and columns option
hi, I am trying to migrate from latex to context and i would like to create an enumeration using this minimal example : \startitemize[m,joinedup] \item\startitemize[a,columns,three] \item test 1 \item test 2 \item test 3 \stopitemize \item \startitemize[a,joinedup] \item test 4 \item test 5 \item test 6 \stopitemize \stopitemize -- You can see that test 4 to test 6 are well-aligned with the item number 2 Unfortunately, the test 1 to test 3 are not because of the columns option. I tried to find a solution in all doc on the wiki, but could'nt managed to put test 1 just in front of item 1 ... Somebody can help ? thanks mikael PS : sorry for my english ;-) _ Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail http://mail.yahoo.fr ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___