Re: [NTG-context] luatex 0.30.1
. setuptex: yes, but you can also have that it initialisation. I have put . context/tex/setuptex context/tex into ~/.bash_profile hmm... some conflicts with other minimals or tex distros may arise, because you can not choose what luatex binary to execute context --make and context --generate are only needed the first time after each update Yes, it's true. But I want to put in a separe log the output context --generate so I do it by hand. Minimals work. If a test pass minimals, it's ok. If the same test doesn't pass on tl2008, probably tl2008 is to update and/or there are some env variables to adjust . -- luigi ___ 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] linear_shade and xetex
Aditya Mahajan wrote: On Mon, 13 Oct 2008, Aditya Mahajan wrote: Hi, linear shading in MP does not work with xetex. Since no one replied am I correct in assuming that this is currently not possible or requires a lot of work? My guess is that there are communication problems with the pdf backend (dvipdfmx). In XeTeX, that communication has to happen via \specials. It could be impossible, or it could simply be that Hans doesn't know what \special to output. Best wishes, Taco ___ 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] Verbatim Text (esp. XML/XSL + opportunity of a brand new support for the RelaxNG Compact syntax)
Hi Renaud, Renaud Aubin wrote: Hi Folks ! I'm currently writting a technical report in which I need to type some XML an non-XML text. Sample file (xml_test.tex): I have some custom XML text (trivial) + a not-so-complicated xsl transformation (a part is included within the test file). I know there is verb-xml but... I need to improve it to support xpath expr. More over, I want to preserve the initial indentation. The point is now, how to improve verb-xml to support xpath expressions ? I'm working with Mark II... Should I switch to Mark IV if I want to write a new XML verbatim support (with lua)? + the bonus question: I want to add some support for the RelaxNG Compact syntax, should I follow the procedure described on the wiki or switch to Mark IV ? The deadline for this technical report: end of october... Mark IV's framework for syntax highlighting is definately easier to use if you are somewhat familiar with 'normal' scripting languages (as opposed to TeX). But 'end of october' is pretty close, so I would suggest using t-vim, maybe with some postprocessing. http://modules.contextgarden.net/vim Best wishes, Taco ___ 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] context minimals path and directory structure question
Hello! I'm using context-minimal version: 2008.10.01 19:13 and have a generally question. I'm writing several documents with similar structure and design and have collected all common settings in settings.tex like following: \startenvironment settings ... ... ... \stopenvironment and just do the usual invoking by in anything.tex \environment settings \starttext ... ... ... \stoptext I've installed the minimals structure in /home/$USER/context/... on my ubuntu 8.04 machine. Now to the question: Where in this structure do I place settings.tex so it can be found by context from anywhere in my document-structure? I suppose I should do something like context --make after placing the file. If I do the usual upgrade what happens then? Is there a more efficient way doing similar tasks, like writing a module? All best! Janneman ___ 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] luatex 0.30.1
On Oct 19, 2008, at 9:41 AM, luigi scarso wrote: the Wolfgang's example. (and also my xml catalog ) If you have a small example , I will check it too . I'm using rev 1565 and context version: 2008.10.17 10:41, and the Wolfgang's example still fails on my box (OS X 10.5). There's no error or warning on the terminal, the log and tui files are empty, and the tuo file says: % % loaded files: 0 % % % temporary files: 0 % % % commands: 0 % % % programs: 0 % \endinput which doesn't look very good... Thomas ___ 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] linear_shade and xetex
Taco Hoekwater wrote: Aditya Mahajan wrote: On Mon, 13 Oct 2008, Aditya Mahajan wrote: Hi, linear shading in MP does not work with xetex. Since no one replied am I correct in assuming that this is currently not possible or requires a lot of work? My guess is that there are communication problems with the pdf backend (dvipdfmx). In XeTeX, that communication has to happen via \specials. It could be impossible, or it could simply be that Hans doesn't know what \special to output. it's just that i didn't adapt some spec-dpx code when i went from supp-pdf+supp-mpe to meta-pdf - 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] luatex 0.30.1
On Mon, Oct 20, 2008 at 10:50 AM, Thomas A. Schmitz [EMAIL PROTECTED] wrote: On Oct 19, 2008, at 9:41 AM, luigi scarso wrote: the Wolfgang's example. (and also my xml catalog ) If you have a small example , I will check it too . I'm using rev 1565 and context version: 2008.10.17 10:41, and the Wolfgang's example still fails on my box (OS X 10.5). There's no error or warning on the terminal, the log and tui files are empty, and the tuo file says: % % loaded files: 0 % % % temporary files: 0 % % % commands: 0 % % % programs: 0 % \endinput which doesn't look very good... an horror movie this evening, ASAP , I will post a zip of the test on minimals/minimals-beta. But I'm on a linux box... -- luigi ___ 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] Problems with Palatino sans serif
Hi Rory, Aditya Mahajan wrote: On my local system, though, all the text is serif and at the same size. There is no size variation with \tfa, \tfb, etc. If I remove all the \ss commands then the sizing works again. Sorry for being so slow with this, Aditya was right with his analysis. I just installed a texlive2008, and the problem is really a simple bug / omission in the pre-august context release, I should have spotted it without having to actually install a texlive myself. Anyway, from the Release Notes page for 2008.08.04: type-one.tex: * add an ss definition for palatino and fourier typescripts Because there is no fallback font defined either, you get 'nothing' when you switch to \ss in the older contexts. You could attempt to update your context installation, but this could introduce new problems, so it may be easiest to add a \definetypeface line for palatino ss in your document someplace before the \setupbodyfont. \definetypeface [palatino] [ss] [sans] [modern] [default] [encoding=ec,rscale=1.075] Best wishes, Taco ___ 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] Problems with Palatino sans serif
Mojca Miklavec wrote: I don't know the cure. The same thing happens to me with or without \usetypescriptfile[type-gyr]. I have noticed that a map file that is present in TeX Liven 2007 is missing in TeX Live 2008 (also using MacTeX with some random version of ConTeXt). The missing mapfile (ec-urw-palatino) is completely harmless. The file exists in the context minimals, and it contains the map lines for texfont-installed urw palatino metrics. But in texlive mactex texfont is not used, these distributions use the berry names for the font metrics. Using these metrics is triggered by a \usetypescript[berry] in cont-sys.rme, and the associated fontmap definitions are in (the also automatically loaded) ec-base.map. So it is just a spurious warning. But what's also really annoying and might be connected - all my accented letters written in palatino (URWPalladio) are gone (š is ok, č looses accent, ž disappears, fi ligatures turn into some weird accents ...) when I post-process the document with Adobe Acrobat in order to reduce document size by downsampling photos. For this, can you send me a private message with before after set of pdfs? If possible, ones generated with \nopdfcompression (because that is easier to debug). Afaict, it is unrelated to this problem, but still definately a bug. I tried to switch to TeXGyre, but then all the line/page breaks are broken. This is unavoidable, texgyre simply has different metrics from the URW version of the fonts. Best wishes, Taco ___ 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] bib module not to break page?
Hi, I am using the bib module in context. The problem is that \completepublications always starts a new page to place reference list. Is there any configuration available such that not to break pages between main part and the reference? Thanks. -- Zhaopeng XING Tinbergen Institute ___ 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] luatex 0.30.1
luigi scarso wrote: % programs: 0 % \endinput which doesn't look very good... an horror movie this evening, ASAP , I will post a zip of the test on minimals/minimals-beta. But I'm on a linux box... As I wrote to Thomas already: an empty tuo in mkiv is nothing to be worried about. Mkiv reads and writes .tuc files, and the existance of tui/ruo is simply an archaism. Best wishes, Taco ___ 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] Problems with Palatino sans serif
On Mon, Oct 20, 2008 at 11:54 AM, Taco Hoekwater wrote: Mojca Miklavec wrote: I don't know the cure. The same thing happens to me with or without \usetypescriptfile[type-gyr]. I have noticed that a map file that is present in TeX Liven 2007 is missing in TeX Live 2008 (also using MacTeX with some random version of ConTeXt). The missing mapfile (ec-urw-palatino) is completely harmless. The file exists in the context minimals, and it contains the map lines for texfont-installed urw palatino metrics. But in texlive mactex texfont is not used, these distributions use the berry names for the font metrics. Using these metrics is triggered by a \usetypescript[berry] in cont-sys.rme, and the associated fontmap definitions are in (the also automatically loaded) ec-base.map. So it is just a spurious warning. But what's also really annoying and might be connected - all my accented letters written in palatino (URWPalladio) are gone (š is ok, č looses accent, ž disappears, fi ligatures turn into some weird accents ...) when I post-process the document with Adobe Acrobat in order to reduce document size by downsampling photos. For this, can you send me a private message with before after set of pdfs? I have been trying to create a minimal example. Now that's bad: minimal example works OK with the same set of settings and same text. It's only the 60-pages document that fails. I'll send you the link, but it could just as well be that it's a bug in Acrobat. If possible, ones generated with \nopdfcompression (because that is easier to debug). How can I uncompress the files generated by Adobe? Afaict, it is unrelated to this problem, but still definately a bug. I only wonder if it's a bug in ConTeXt or Acrobat ... If it was a problem with maps or whatever, single-page example should have failed already. I tried to switch to TeXGyre, but then all the line/page breaks are broken. This is unavoidable, texgyre simply has different metrics from the URW version of the fonts. I'm fully aware of that :( But I could think about that a few weeks ago. 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] No mac update in the minimals?
On Mon, Oct 20, 2008 at 1:49 PM, luigi scarso wrote: On Mon, Oct 20, 2008 at 4:18 AM, Ruini Xue wrote: It seems that the Mac minimal has not been updated? what about luatex --version It's my fault. My bad that I didn't notice that *I* have been using the old version all the time ... All other platforms work OK I guess. Mojca /The shoemaker's children go barefoot./ ___ 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] No mac update in the minimals?
On Mon, Oct 20, 2008 at 4:18 AM, Ruini Xue wrote: It seems that the Mac minimal has not been updated? Eem ... Apparently I left the building script running and went for a cup of coffee without checking the results: /bin/sh ../libtool --mode=link g++ -o luatex luatexini.o luatex0.o luatex1.o luatex2.o luatex3.o luatexextra.o luatex-pool.o luatexdir/libpdf.a ../../libs/libpng/libpng.a ../../libs/zlib/libz.a ../../libs/xpdf/xpdf/libxpdf.a ../../libs/xpdf/goo/libGoo.a ../../libs/xpdf/fofi/libfofi.a ../../libs/md5/md5.o ../../libs/obsdcompat/libopenbsd-compat.a ../../libs/lua51/liblua.a ../../libs/slnunicode/slnunico.o ../../libs/luazip/src/luazip.o ../../libs/zziplib/zzip/libzzip.a ../../libs/luafilesystem/src/lfs.o ../../libs/luasocket/src/socket.a ../../libs/luapeg/lpeg.o ../../libs/luamd5/md5lib.o ../../libs/luamd5/md5.o ../../libs/luazlib/lgzip.o ../../libs/luazlib/lzlib.o ../../libs/luafontforge/libff.a mpdir/lmplib.o mpdir/.libs/libmplib.a lib/lib.a ../kpathsea/libkpathsea.la -lm g++ -o luatex luatexini.o luatex0.o luatex1.o luatex2.o luatex3.o luatexextra.o luatex-pool.o ../../libs/md5/md5.o ../../libs/slnunicode/slnunico.o ../../libs/luazip/src/luazip.o ../../libs/luafilesystem/src/lfs.o ../../libs/luapeg/lpeg.o ../../libs/luamd5/md5lib.o ../../libs/luamd5/md5.o ../../libs/luazlib/lgzip.o ../../libs/luazlib/lzlib.o mpdir/lmplib.o luatexdir/libpdf.a ../../libs/libpng/libpng.a ../../libs/zlib/libz.a ../../libs/xpdf/xpdf/libxpdf.a ../../libs/xpdf/goo/libGoo.a ../../libs/xpdf/fofi/libfofi.a ../../libs/obsdcompat/libopenbsd-compat.a ../../libs/lua51/liblua.a ../../libs/zziplib/zzip/libzzip.a ../../libs/luasocket/src/socket.a ../../libs/luafontforge/libff.a mpdir/.libs/libmplib.a lib/lib.a ../kpathsea/.libs/libkpathsea.a -lm /usr/bin/ld: Undefined symbols: _getcontext _makecontext _swapcontext collect2: ld returned 1 exit status make: *** [luatex] Error 1 cp: statusa »build/texk/web2c/luatex« ni moč ugotoviti s stat: No such file or directory I'm sorry. The weird thing is that osx-ppc build works OK, while the native one (osx-intel) doesn't. I need to check the latest svn if that one works better. 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] luatex 0.30.1
On Mon, Oct 20, 2008 at 12:59 PM, Taco Hoekwater [EMAIL PROTECTED] wrote: luigi scarso wrote: % programs: 0 % \endinput which doesn't look very good... an horror movie As I wrote to Thomas already: an empty tuo in mkiv is nothing to be worried about. Mkiv reads and writes .tuc files, and the existance of tui/ruo is simply an archaism. Yes, I know. I'm still convinced that minimals minimals-beta work, but I'm not on OS X 10.5 (for otared they work but it's an intel mac) -- luigi ___ 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] bib module not to break page?
Thanks. I got it! 2008/10/20 Taco Hoekwater [EMAIL PROTECTED] Zhaopeng Xing wrote: Hi, I am using the bib module in context. The problem is that \completepublications always starts a new page to place reference list. Is there any configuration available such that not to break pages between main part and the reference? Thanks. \completepublications is roughly equivalent to \title{References} \placepublications[criterium=previous] so whether or not you get a page break depends on the settings for \title. You could change those settings using \setuphead, or you could make \completepublications use a different sectioning command, like so \setuppublicationlist[title=\section] or you could just use explicit \section {...} \placepublications[criterium=previous] so, there are multiple options. Best wishes, Taco ___ 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 ___ -- Zhaopeng XING Tinbergen Institute ___ 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] Problems with Palatino sans serif
Mojca Miklavec wrote: For this, can you send me a private message with before after set of pdfs? http://www.mars2008.si/taco/ If possible, ones generated with \nopdfcompression (because that is easier to debug). Afaict, it is unrelated to this problem, but still definately a bug. The file is 26MB now. I will try to see what I can do to cut it down to some smaller size still showing the bug, before filling the disk quota :) :) :) by sending uncompressed PDF. I fetched the files (so you can delete them) and I am tempted to believe this is an AR (distiller) bug, because the /Encoding in the generated PDF is incomplete, and it was probably correct in the z-before.pdf (I did not decompress the file, but it must have been ok, otherwise that file would have displayed incorrectly as well). The Slanted entry in the z-after.pdf has: 341 0 obj /Subtype/Type1 /FontDescriptor 344 0 R /LastChar 246 /Widths 343 0 R /BaseFont/HFKCGX+URWPalladioL-Roma-Slant_167 /FirstChar 2 /ToUnicode 340 0 R /Encoding 342 0 R /Type/Font endobj 342 0 obj /Differences [46/period 53/five 71/G 80/P 84/T 97/a 101/e 104/h/i/j/k/l/m/n/o 114/r/s/t 121/y] /BaseEncoding/WinAnsiEncoding /Type/Encoding endobj 344 0 obj /StemV 84 /FontName/HFKCGX+URWPalladioL-Roma-Slant_167 /FontFile 339 0 R /Flags 4 /Descent -282 /FontBBox[-166 -283 1021 943] /Ascent 715/CapHeight 680/XHeight 469 /ItalicAngle -9 /CharSet(/A/B/C/D/E/F/G/H/I/J/K/L/M/N/O/P/R/S/Scaron/T/U/V/W/Z\ /Zcaron/a/b/bracketleft/bracketright/c/caron/colon/comma\ /d/e/eacute/eight/endash/exclam/f/fi/ /five/four/g/guillemotleft\ /guillemotright/h/hyphen/i/j/k/l/m/n/nine/o/odieresis/one\ /parenleft/parenright/period/question/r/s/scaron/seven/six\ /t/three/two/u/v/y/z/zcaron/zero) /Type/FontDescriptor endobj Notice the big difference between the /Differences and the /CharSet. Despite the name of /Differences, this normally lists all the glyphs in the subset. When I manually add 14/Zcaron/zcaron at the start of /Differences, then suddenly the slanted accented z-s reappear. I suspect Acrobat Pro gets confused about the encoding because it probably has to merge more than one subset into a single one. Perhaps it believes all encodings are equal. This you could test by looking at an uncompressed generated pdf's Font objects in a text editor. Best wishes, Taco ___ 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] context minimals path and directory structure question
On Mon, Oct 20, 2008 at 10:13 AM, Jan-Erik Hägglöf [EMAIL PROTECTED] wrote: Hello! I'm using context-minimal version: 2008.10.01 19:13 ok, I suppose that you are using first-setup.sh and . setuptext and have a generally question. I'm writing several documents with similar structure and design and have collected all common settings in settings.tex like following: \startenvironment settings ... ... ... \stopenvironment and just do the usual invoking by in anything.tex \environment settings \starttext ... ... ... \stoptext I've installed the minimals structure in /home/$USER/context/... on my ubuntu 8.04 machine. Now to the question: Where in this structure do I place settings.tex so it can be found by context from anywhere in my document-structure? tex/texmf-local/tex/context/user can be a good place I suppose I should do something like context --make after placing the file. If I do the usual upgrade what happens then? first-setup.sh should not delete your files. context --generate context --make are safe (well, one can always write a malicius tex file that overwrite tex/texmf-local/tex/context/user/settings.tex ...) -- luigi ___ 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] Problems with Palatino sans serif
For this, can you send me a private message with before after set of pdfs? http://www.mars2008.si/taco/ If possible, ones generated with \nopdfcompression (because that is easier to debug). Afaict, it is unrelated to this problem, but still definately a bug. The file is 26MB now. I will try to see what I can do to cut it down to some smaller size still showing the bug, before filling the disk quota :) :) :) by sending uncompressed PDF. 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] context minimals path and directory structure question
On Mon, 20 Oct 2008, Jan-Erik Hägglöf wrote: Where in this structure do I place settings.tex so it can be found by context from anywhere in my document-structure? For files which are specific to one or two projects, I usually place them in the directory: main-dir/ | + settings.tex | + project-1/ || |+--- component-1-1.tex | + project-2/ and then in component-1-1.tex, put \environment settings There is no need to tell the relative path to context. When context cannot find a file in the current dir, it looks up two (or three?) levels to find the file. As Mojca said, this has the added advantage of making the structure self-sufficient. You can just copy the main-dir on a different computer and everything works. For files that are used in many different projects, I usually make it a module (if you are not using any advanced features, like localenvironments or setupmodules, modules and environments are the same) I have created a directory texmf-local/tex/context/aditya where I put all my files (and sync them to a svn server so that I can use them on different computers). I suppose I should do something like context --make after placing the file. If I do the usual upgrade what happens then? You make need to run luatools --generate (or texhash if using mkii) if place the files in texmf-local. To prevent any accidents with upgrades, create a directory in texmf-local/tex/context that is unique. You can also create the directory in $TEXMFHOME/tex/context (which is usually $HOME/tex/context in *nix systems, I do not know about win/mac). Normally upgrades do not touch anything in $TEXMFHOME. 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] luatex 0.30.1
luigi scarso wrote: On Mon, Oct 20, 2008 at 10:50 AM, Thomas A. Schmitz [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: On Oct 19, 2008, at 9:41 AM, luigi scarso wrote: the Wolfgang's example. (and also my xml catalog ) If you have a small example , I will check it too . I'm using rev 1565 and context version: 2008.10.17 10:41, and the Wolfgang's example still fails on my box (OS X 10.5). There's no error or warning on the terminal, the log and tui files are empty, and the tuo file says: % % loaded files: 0 % % % temporary files: 0 % % % commands: 0 % % % programs: 0 % \endinput which doesn't look very good... an horror movie this evening, ASAP , I will post a zip of the test on minimals/minimals-beta. But I'm on a linux box... in mkiv you will only see toc entries in the tuo file and even these will go away - 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] No mac update in the minimals?
On Mon, Oct 20, 2008 at 4:18 AM, Ruini Xue [EMAIL PROTECTED] wrote: It seems that the Mac minimal has not been updated? what about luatex --version context --version -- luigi ___ 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] Problems with Palatino sans serif
On Mon, Oct 20, 2008 at 2:45 PM, Taco Hoekwater [EMAIL PROTECTED] wrote: Mojca Miklavec wrote: For this, can you send me a private message with before after set of pdfs? http://www.mars2008.si/taco/ If possible, ones generated with \nopdfcompression (because that is easier to debug). Afaict, it is unrelated to this problem, but still definately a bug. The file is 26MB now. I will try to see what I can do to cut it down to some smaller size still showing the bug, before filling the disk quota :) :) :) by sending uncompressed PDF. I fetched the files (so you can delete them) and I am tempted to believe this is an AR (distiller) bug, because the /Encoding in the generated PDF is incomplete, and it was probably correct in the z-before.pdf (I did not decompress the file, but it must have been ok, otherwise that file would have displayed incorrectly as well). The Slanted entry in the z-after.pdf has: 341 0 obj /Subtype/Type1 /FontDescriptor 344 0 R /LastChar 246 /Widths 343 0 R /BaseFont/HFKCGX+URWPalladioL-Roma-Slant_167 /FirstChar 2 /ToUnicode 340 0 R /Encoding 342 0 R /Type/Font endobj 342 0 obj /Differences [46/period 53/five 71/G 80/P 84/T 97/a 101/e 104/h/i/j/k/l/m/n/o 114/r/s/t 121/y] /BaseEncoding/WinAnsiEncoding /Type/Encoding endobj 344 0 obj /StemV 84 /FontName/HFKCGX+URWPalladioL-Roma-Slant_167 /FontFile 339 0 R /Flags 4 /Descent -282 /FontBBox[-166 -283 1021 943] /Ascent 715/CapHeight 680/XHeight 469 /ItalicAngle -9 /CharSet(/A/B/C/D/E/F/G/H/I/J/K/L/M/N/O/P/R/S/Scaron/T/U/V/W/Z\ /Zcaron/a/b/bracketleft/bracketright/c/caron/colon/comma\ /d/e/eacute/eight/endash/exclam/f/fi/ /five/four/g/guillemotleft\ /guillemotright/h/hyphen/i/j/k/l/m/n/nine/o/odieresis/one\ /parenleft/parenright/period/question/r/s/scaron/seven/six\ /t/three/two/u/v/y/z/zcaron/zero) /Type/FontDescriptor endobj Notice the big difference between the /Differences and the /CharSet. Despite the name of /Differences, this normally lists all the glyphs in the subset. When I manually add 14/Zcaron/zcaron at the start of /Differences, then suddenly the slanted accented z-s reappear. I suspect Acrobat Pro gets confused about the encoding because it probably has to merge more than one subset into a single one. Perhaps it believes all encodings are equal. This you could test by looking at an uncompressed generated pdf's Font objects in a text editor. !PS-AdobeFont-1.0: URWPalladioL-Roma 1.05%%CreationDate: Wed Dec 22 1999% Copyright (URW)++,Copyright 1999 by (URW)++ Design Development% (URW)++,Copyright 1999 by (URW)++ Design Development% See the file COPYING (GNU General Public License) for license conditions.% As a special exception, permission is granted to include this font% program in a Postscript or PDF file that consists of a document that% contains text to be displayed or printed using this font, regardless% of the conditions or license applying to the document itself.12 dict begin/FontInfo 10 dict dup begin/version (1.05) readonly def/Notice ((URW)++,Copyright 1999 by (URW)++ Design Development. See the file COPYING (GNU General Public License) for license conditions. As a special exception, permission-- is granted to include this font program in a Postscript or PDF file that consists of a document that contains text to be displayed or printed using this font, regardless-- of the conditions or license applying to the document itself.) readonly def /Copyright (Copyright (URW)++,Copyright 1999 by (URW)++ Design Development) readonly def /FullName (URW Palladio L Roman) readonly def /FamilyName (URW Palladio L) readonly def /Weight (Roman) readonly def /ItalicAngle -9.4809 def /isFixedPitch false def /UnderlinePosition -100 def /UnderlineThickness 50 def end readonly def /FontName /HFKCGX+URWPalladioL-Roma-Slant_167 def /PaintType 0 def /WMode 0 def /FontBBox {-166 -283 1021 943} readonly def /FontType 1 def /FontMatrix [0.001 0 0.000167 0.001 0 0 ] readonly def /Encoding StandardEncoding def currentdict end currentfile eexec And then (nova.)-466(\016eleli) for nova. Želeli where Ž is missing. I can at least do a bissection. Maybe some included PDF image is confusing things. 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] context minimals path and directory structure question
On Mon, Oct 20, 2008 at 10:13 AM, Jan-Erik Hägglöf wrote: Hello! I'm using context-minimal version: 2008.10.01 19:13 and have a generally question. I'm writing several documents with similar structure and design and have collected all common settings in settings.tex like following: \startenvironment settings ... ... ... \stopenvironment and just do the usual invoking by in anything.tex \environment settings \starttext ... ... ... \stoptext I've installed the minimals structure in /home/$USER/context/... on my ubuntu 8.04 machine. Now to the question: Where in this structure do I place settings.tex so it can be found by context from anywhere in my document-structure? Like Luigi said, texmf-local/tex/context/whatever might be the best place in the tree. I suppose I should do something like context --make after placing the file. mktexlsr for kpathsea and luatools --generate for mkiv. Though some folders are searched even without putting them to database. If I do the usual upgrade what happens then? The script doesn't touch texmf-local. Is there a more efficient way doing similar tasks, like writing a module? You can also have settings.tex on top of all the folders that use it. Plain file and module do not make much difference in such cases. (For safety reasons, I prefer to have a copy of such files locally (in folder where I process files). I never know when I switch computer and forget to copy some files from some global folders.) 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] bib module not to break page?
Zhaopeng Xing wrote: Hi, I am using the bib module in context. The problem is that \completepublications always starts a new page to place reference list. Is there any configuration available such that not to break pages between main part and the reference? Thanks. \completepublications is roughly equivalent to \title{References} \placepublications[criterium=previous] so whether or not you get a page break depends on the settings for \title. You could change those settings using \setuphead, or you could make \completepublications use a different sectioning command, like so \setuppublicationlist[title=\section] or you could just use explicit \section {...} \placepublications[criterium=previous] so, there are multiple options. Best wishes, Taco ___ 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] No mac update in the minimals?
On Mon, Oct 20, 2008 at 4:18 AM, Ruini Xue wrote: It seems that the Mac minimal has not been updated? Fixed. There's now luatex 0.30.2, so even the latest ConTeXt beta should now run OK. (For windows, linux-64 freebsd you need to wait a bit.) 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] Verbatim Text (esp. XML/XSL + opportunity of a brand new support for the RelaxNG Compact syntax)
Taco, Aditya, Thanks, t-vim will do the job for the end of october... Even if I will surely give a try to MarkIV on this particular point. Regards, Renaud Taco Hoekwater a écrit : Hi Renaud, Renaud Aubin wrote: Hi Folks ! I'm currently writting a technical report in which I need to type some XML an non-XML text. Sample file (xml_test.tex): I have some custom XML text (trivial) + a not-so-complicated xsl transformation (a part is included within the test file). I know there is verb-xml but... I need to improve it to support xpath expr. More over, I want to preserve the initial indentation. The point is now, how to improve verb-xml to support xpath expressions ? I'm working with Mark II... Should I switch to Mark IV if I want to write a new XML verbatim support (with lua)? + the bonus question: I want to add some support for the RelaxNG Compact syntax, should I follow the procedure described on the wiki or switch to Mark IV ? The deadline for this technical report: end of october... Mark IV's framework for syntax highlighting is definately easier to use if you are somewhat familiar with 'normal' scripting languages (as opposed to TeX). But 'end of october' is pretty close, so I would suggest using t-vim, maybe with some postprocessing. http://modules.contextgarden.net/vim Best wishes, Taco ___ 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] luatex 0.30.1
With the finger crossed I will start tomorrow a project in mkiv Good luck, or as you say in Italy in bocca al lupo!… Crepi il lupo! Arthur ___ 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] luatex 0.30.1
On Oct 20, 2008, at 7:25 PM, luigi scarso wrote: These are my wolfgang tests under linux ubuntu with new minimals. This is LuaTeX, Version snapshot-0.30.2-2008102016, build unknown Yes, thank you Luigi - xml processing works now on OS X as well. And thanks Taco for looking into this! All best Thomas ___ 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] Problems with Palatino sans serif
Taco Hoekwater wrote: Hi Rory, Hi Taco, Thanks for responding. Because there is no fallback font defined either, you get 'nothing' when you switch to \ss in the older contexts. You could attempt to update your context installation, but this could introduce new problems, so it may be easiest to add a \definetypeface line I've already updated my installation, which cleared up the problem. Is it risky in general to use 'ctxtool --updatecontext'? for palatino ss in your document someplace before the \setupbodyfont. \definetypeface [palatino] [ss] [sans] [modern] [default] [encoding=ec,rscale=1.075] Oh, I see. This uses the Computer Modern sans. So if I understand things correctly, the various arguments are: [palatino]: the typeface being defined (or modified in this case) [ss]: the part of the typeface being defined (the \ss name) [sans]: refers to a part of the modern typeface [modern]: pick the sans part of the this typeface [default]: what's this bit? [encoding]: the encoding to use [rscale]: a scaling adjustment to make up for CM's smaller x-size. Is that the general idea? Cheers, Rory Best wishes, Taco ___ 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] Problems with Palatino sans serif
Rory Molinari wrote: So if I understand things correctly, the various arguments are: [palatino]: the typeface being defined (or modified in this case) [ss]: the part of the typeface being defined (the \ss name) [sans]: refers to a part of the modern typeface [modern]: pick the sans part of the this typeface [default]: what's this bit? [encoding]: the encoding to use [rscale]: a scaling adjustment to make up for CM's smaller x-size. Is that the general idea? Yes, spot on. The [default] is for font families with optical scaling instances and is only used with the computer modern fonts. When combined with a different font set, like palatino, it doesn't make much sense so it is usually left at [default]. Best wishes, Taco ___ 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 itemize with arranging pages
Hi all, itemize won't work with page arrangement. Is this connected with this: http://wiki.contextgarden.net/Imposition#Caveat:_common_troubles ? (In other words: feature, not bug; and resolvable using texexec --arrange?) (I just want to be sure.) Greets -- Marcin Borkowski (http://mbork.pl) ___ 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] Problem with itemize with arranging pages
On Tue, 21 Oct 2008, Marcin Borkowski wrote: Hi all, itemize won't work with page arrangement. Is this connected with this: http://wiki.contextgarden.net/Imposition#Caveat:_common_troubles ? (In other words: feature, not bug; and resolvable using texexec --arrange?) (I just want to be sure.) Itemize uses two pass data (so that \startitemize[reverse] can work). Therefore itemize not working with page arrangements seems reasonable. (I haven't checked yet). 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 ___
[NTG-context] What should I learn?
Hi, I would like to ask you some advice on what should I learn. Context was the first typography program I used. Then I tried Tex and a little bit of latex. Context is where I get the best results, but what I really would like is something that allows me to do things in my own way, not something that's always great for reasons I don't understand. (Of course, the first documents I would type would not be that good, but I'll learn with time.) I thought Tex could be that, but it's not. I can't use it to create something to fit my (worst) taste instead of Knuth's (better) taste without doing a lot more work than I'm able to do. I also like to write programs (I use a really nice language named Haskell). Do you thing I could get what I want if I write or translate typography functions to that language, and then write programs to generate documents? Where could I find or where could I learn about such functions? Thanks, Maurício ___ 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 ___