Re: [NTG-context] pdf file not found (final question)
On Fri, Sep 10 2010, Peter Münster wrote: Can anybody reproduce the following problem (Taco can't ...): \startbuffer[pdf-pages] \starttext page 1 \page page 2 \stoptext \stopbuffer \savebuffer[pdf-pages][pdf-pages.tex] \executesystemcommand{context pdf-pages; mkdir testdir; mv pdf-pages.pdf testdir/2*8.pdf} \starttext \setupexternalfigures[directory={./testdir}] \externalfigure[2*8][page=2] \stoptext - !LuaTeX error: PDF inclusion: required page 2 does not exist No problem with page=1. No problem with other name for pdf-file (for example pdftest.pdf instead of 2*8.pdf). No problem, if pdf-file is in current directory instead of testdir. Hello, After some further investigation, I've found that the reason for this problem is a pdf file in my installation: /opt/context/tex/texmf-local/tex/context/peter/samples/unten-21478.pdf So please try o*w instead of 2*8, and you'll be able to reproduce the problem! But there is still a difference: texmf-local: when using \externalfigure[2*8][page=1] on my installation, I get really the first page of 2*8.pdf and not the unten-21478.pdf. texmf-context: when using \externalfigure[o*w][page=1] you'll get the cow. So the question is: - bug? - or don't ever use * in a filename? Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/ ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] beta
Fine, I see what's the problem: I can't find my fonts. I run mtxrun --script fonts --reload and luatools AdobeSongStd-Light.otf get d:/ConTeXt/tex/texmf-fonts/fonts/opentype/public/Adobe/AdobeSongStd-Light.otf But when I run mtxrun --script fonts --list --file Adobe I get nothing ironically. Did I miss something? I've put the texmfcnf.lua under texmf/web2c. On Sat, Sep 11, 2010 at 12:19 PM, Zhichu Chen zhichu.c...@gmail.com wrote: On Fri, Sep 10, 2010 at 11:59 PM, Hans Hagen pra...@wxs.nl wrote: On 10-9-2010 10:43, Zhichu Chen wrote: My apology. I attach the test file here and hope that's gonna help. I extract everything from the font package to $texmf-fonts/fonts/data/bh/lucida and that's it. works ok here did you run mtxrun --generate etc? Yes, I did. But weird thing happened when I run the command manually again. I got the following message: === systems : begin file untitled-2.tex at line 3 {d:/ConTeXt/tex/texmf-fonts/fonts/map/dvips/bh/lucida/lucida.map} fontnames font database does not match configuration and file hashes fontnames warnings are disabled (tracker 'fonts.warnings') fontnames identifying tree font files with suffix otf === ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] natural tables -- split 'n grid
On 11-9-2010 6:03, Philipp Gesang wrote: Hi, line correction leads to unwanted vertical spacing in split natural tables. Example (in both MkII and MkIV): ··8· %\setuplayout[grid=yes] % not required to reproduce it \starttext \dorecurse{4}{\input knuth\par} \startlinecorrection% fine without line correction \bTABLE[split=yes] % fine with split=no \bTABLEhead \bTR\bTH p\eTH\bTH q\eTH\bTH p or q\eTH\eTR \eTABLEhead \bTABLEbody \bTR\bTC False\eTC\bTC False\eTC\bTC False\eTC\eTR \bTR\bTC True\eTC\bTC False\eTC\bTC True\eTC\eTR \bTR\bTC False\eTC\bTC True\eTC\bTC True\eTC\eTR \bTR\bTC True\eTC\bTC True\eTC\bTC True\eTC\eTR \eTABLEbody \eTABLE \stoplinecorrection \stoptext ··8· What am I missing here? Is line correction even recommended for use with tables? Why isn't it ignored if grid typesetting is switched off? Thanks in advance, that you should not use linecorrection with split - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Units fonts and spacing
On 11-9-2010 4:00, Wolfgang Schuster wrote: Am 11.09.2010 um 11:33 schrieb Hans Hagen: Will siunits module be used as a base for this or will this be something completely new? I don't know what you mean with siunits. Wolfgangs module? We have unit support in context for along time (also as part of some mathml extensions). So, we're more talking of an upgrade of the current module (units and digits) and I will have a look at Wolfgangs code to see what additional support is in there and we can merge things if needed. He’s talking about my module. The difference between our modules is that your use “10 \Meter \Per \Second” for the input while i use ”\siunit{10\meter\per\second}”. ah, so you explicitly tag the unit one reason why I didn't do this is that it does not integrate well in math at that time (superscripts etc) and the mechanism was mainly meant for schoolbooks (and strongly related to mathml input as well) There is nothing wrong about two modules with the same function as long as both do not cause a problem for the module (and i took care of this in my module). sure Parts like the number parsing can become part of the core and you provide a function which others can use to integrate it in their own macros. indeed The fundamentals of units are not going to change much, apart from the fact that we can now parse m/s if needed instead of using the verbose names). I’m not a friend of the ”m/s” input because you can’t say where a units starts/ends without adding separators between them, here is a example from latex’s siunitx package which supports both methods but although the first is shorter we should rely on the tex method hm, never seen that one (no time to look into it anyway) - si{kg.m/s^2} - si{\kilo\gram\metre\per\square\second} we can provide the first one flagged as unit mode for dummies but it will never work out well with $ a = 123 m/s^2$ so one would always hae to tag the unit then. Keep in mind that the units module runs on top of synonyms so that one can ask for lists of used units and meanings of them. Adding this function is no problem, synonyms can also be integrated in any other system. yes let's discuss it at the conference Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] countervalue section
Hi all, how can I change a section's conversion (eg. for use in headertext). See minimal example below, please. Steffen === \starttext \chapter{Test} \headnumber[chapter]% now we have numbers % And just now we want to show the same as Characters not numbers: %\convertnumber{\Characters}{\countervalue{@@sesection-2}}% - gives error %\Characters{\headnumber[chapter]}% - gives error \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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] pdf file not found (final question)
On Sun, Sep 12 2010, Hans Hagen wrote: On 12-9-2010 8:41, Peter Münster wrote: - or don't ever use * in a filename? in all our projects we normalize to a-z and a dash, otherwise you always get into problems esp when graphics come from a third party ... multiple spaces in names, funny case mixing, underscores not seen on low res displays, mismatches between source and real names, I totally agree. In my own projects I do the same. The question is rather: is context supposed to support the * in filenames, or not. If yes, context must be enhanced somewhere. If no, I can add something to the context manual. And it would be nice, if there was a clear error message. It was really not obvious to me, that some file in my local tree was the reason for !LuaTeX error: PDF inclusion: required page 2 does not exist Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/ ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] setuparranging eats the last page
Hello, Then I added \setuparranging [2SIDE] in the given example bellow, the last page of the document disappeared. Looks like a bug. MKIV version: 2010.09.09 23:45 === \setuppapersize[A5][A4,landscape] \setuparranging [2SIDE] \appendtoks \page Last page. \to\everystoptext \starttext First page. \page Next page. \stoptext == Marius ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] stray characters in output before bibliography
Hi, I'm new to ConTeXt (from LaTeX). I'm trying it out for a course paper that I need to write and running into a problem with the output pdf. With respect to the code below, when I compile it, I get the odd text pubs]References under the References section heading. I've looked around, but I can't find anyone having a similar problem. Is this caused by something I'm doing incorrectly in the ConTeXt code or is it something wrong with the bib module? For reference: I'm using MacTeX 2010 (up-to-date) on OSX10.6. --- \usemodule[bib] \setupbibtex[database=sources,sort=author, numbering=yes] \starttext \cite[something] some text. \section{References} \completepublications \stoptext --- Output looks like: (Something, Somedate) some text. 1 References pubs]References 1 Title of the book, publisher, etc --- Thanks for any help, - Johann ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] stray characters in output before bibliography
On 09/12/2010 03:24 PM, Johann P.S. Dahm wrote: (Something, Somedate) some text. 1 References pubs]References Something is wrong here (I guess perhaps a version issue), but it can be circumvented by using \placepublications[criterium=all] 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] pdf file not found (final question)
On 12-9-2010 3:10, Peter Münster wrote: On Sun, Sep 12 2010, Hans Hagen wrote: On 12-9-2010 8:41, Peter Münster wrote: - or don't ever use * in a filename? in all our projects we normalize to a-z and a dash, otherwise you always get into problems esp when graphics come from a third party ... multiple spaces in names, funny case mixing, underscores not seen on low res displays, mismatches between source and real names, I totally agree. In my own projects I do the same. The question is rather: is context supposed to support the * in filenames, or not. it depends ... in some places I process patterns and then the * is special in lua so for the moment consider '*' and '?' and such are 'not to be used in filenames' Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] countervalue section
Am 12.09.2010 um 14:23 schrieb Steffen Wolfrum: Hi all, how can I change a section's conversion (eg. for use in headertext). \convertnumber{...}{\namedheadnumber{chapter}} or \convertnumber{...}{\placerawheadnumber[chapter]} 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] countervalue section
Am 12.09.2010 um 18:28 schrieb Wolfgang Schuster: Am 12.09.2010 um 14:23 schrieb Steffen Wolfrum: Hi all, how can I change a section's conversion (eg. for use in headertext). \convertnumber{...}{\namedheadnumber{chapter}} or \convertnumber{...}{\placerawheadnumber[chapter]} Wolfgang Wonderful: \namedheadnumber ... Thank you, Steffen ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] unsubscribe
___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___