[NTG-context] LuaTeX error: attempt to index field '?' (a nil value)
latest minimals: $ context contextman ! LuaTeX error ...text/tex/texmf-context/tex/context/base/strc-not.lua:87: attempt to index field '?' (a nil value) stack traceback: ...text/tex/texmf-context/tex/context/base/strc-not.lua:87: in function 'listindex' ...text/tex/texmf-context/tex/context/base/strc-not.lua:253: in function 'setsymbolpage' main ctx instance:1: in main chunk. I have not been able to identify what code is triggering this; My other projects compile without errors using this version of the minimals. Alan ___ 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] producing a pdf/X-1a:2001 file
Am 26.06.2010 04:36, schrieb luigi scarso: On Sat, Jun 26, 2010 at 2:34 AM, Ciro c...@kavyata.com wrote: The company that is printing my book requires format PDF/X-1a:2001. The file produced by LuaTex is PDF 1.5. I wonder if there will be a problem, and if so, how can I do the conversion to X-1a:2001? It's a complex subject, I fear that you need acrobat to be sure or defend your result Anyway http://www.tug.org/pipermail/pdftex/2009-June/thread.html#8050 Context should be able to produce PDF/X-1a:2003 so far (donno the difference to the 2001 version). I will look into it tomorrow (no time now). To give you a first impression what is needed (data,formats), I attached a test file (mkiv only) for the 2003 variant. Best wishes, Peter % PDF/X-1a \pdfminorversion=3 \pdfobjcompresslevel=0 \setupcolors[rgb=no]% only CMYK and Gray allowed %\embedICCprofile{CMYK}{ISOcoated_v2_300_eci.icc} \usePDFXoutputintent [%reference=no, info={ISO Coated v2 (ECI)}, outputcondition={Offset printing, according to ISO 12647-2:2004/Amd 1, OFCOM, paper type 1 or 2 = coated art, 115 g/m2, tone value increase curves A (CMY) and B (K)}, id=FOGRA39, name=http://www.color.org] \starttext \setupinteraction [title=TITLE, subtitle=SUBTITLE, author=AUTHOR, keyword={{KEYWORD1, KEYWORD2}, KEYWORD3}, ] \startluacode -- PDF/X-1a:2003 lpdf.addtoinfo(GTS_PDFXVersion,PDF/X-1a:2003) lpdf.injectxmpinfo(xml://rdf:RDF,rdf:Description rdf:about='' xmlns:pdfxid='http://www.npes.org/pdfx/ns/id/'pdfxid:GTS_PDFXVersionPDF/X-1a:2003/pdfxid:GTS_PDFXVersion/rdf:Description,false) \stopluacode \null \definecolor[cmykblack][k=1] \hbox\bgroup \blackrule[color=cyan,width=1cm,height=1cm]% \blackrule[color=magenta,width=1cm,height=1cm]% \blackrule[color=yellow,width=1cm,height=1cm]% \blackrule[color=cmykblack,width=1cm,height=1cm] \egroup \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] producing a pdf/X-1a:2001 file
Peter, thank you for you file. I tested it, but the \usePDFXoutputintent command is not understood by texexec. thank you ciro On Sat, Jun 26, 2010 at 7:14 AM, Peter Rolf indi...@gmx.net wrote: Am 26.06.2010 04:36, schrieb luigi scarso: On Sat, Jun 26, 2010 at 2:34 AM, Ciro c...@kavyata.com wrote: The company that is printing my book requires format PDF/X-1a:2001. The file produced by LuaTex is PDF 1.5. I wonder if there will be a problem, and if so, how can I do the conversion to X-1a:2001? It's a complex subject, I fear that you need acrobat to be sure or defend your result Anyway http://www.tug.org/pipermail/pdftex/2009-June/thread.html#8050 Context should be able to produce PDF/X-1a:2003 so far (donno the difference to the 2001 version). I will look into it tomorrow (no time now). To give you a first impression what is needed (data,formats), I attached a test file (mkiv only) for the 2003 variant. Best wishes, 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 : http://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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Converting numerals to text
Is there a command or macro that converts a numeral to its English language equivalent? For example, I would like to display Thirteen for 13. Tom Benjey 717-258-9733 voice 717-243-0074 fax Twitter: @TomBenjey ___ 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] Converting numerals to text
On Sat, Jun 26, 2010 at 22:31, Tom wrote: Is there a command or macro that converts a numeral to its English language equivalent? For example, I would like to display Thirteen for 13. http://wiki.contextgarden.net/Page_numbering_in_words http://thread.gmane.org/gmane.comp.tex.context/33962/focus=34304 (there is an attachment t-counting.tex in that thread) 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] vim syntax highlighting in MKIV
On Fri, 25 Jun 2010, Hans Hagen wrote: On 25-6-2010 9:48, Martin 'golodhrim' Scholz wrote: Hi Hans, Mojca, Aditya and List, just tried to use the vim Syntax Highlighting module in ConTeXt MKIV, but if running the documents complains it searches a file called filename-vimsyntax.tmp-vimsyntax.tmp sure that file not exists but there is a file called filename-vimsyntax.tmp is there a way to do a workaround so that the vim Syntaxhighlighting module would work in MKIV or does it need to be rewriten completedly? probably something that M or A can fix easily Something changed in mtxrun ... Earlier (checked on the 2009.12.31) if I used mtxrun bin:vim kpse:2context.vim the kpse:2context.vim was expanded to the full path of 2context.vim. Now (in 2010.06.20), kpse:2context.vim expands to tree://full-path. Of couse, vim does not understand the tree:// prefix and cannot load the file. Is there an option to avoid the tree:// prefix? Almost all the errors in t-vim over the years have due to trying to support kpse: directive. (The errors were not a fault of ConTeXt, but the way quotes are handled by cmd.exe and the various shells in *nix. I still haven't figured out a syntax that works with all shells). This makes me wonder whether it was a good idea to make vim module work out of the box. Perhaps a more robust alternative was to ask the uses to copy 2context.vim to $HOME/.vim/scripts/ and forget about getting mtxrun to locate the file. What do others think? 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] title page ( \framed)
In typesetting a title page, why in this minimal example is the framed title not centered? \starttext \startstandardmakeup [doubleside=no,align=middle] \framed {Title} \stopstandardmakeup \stoptext If I remove the \framed, the Title then gets centered. (I suppose that one could always add \startalignment\stopalignment but this is not the point...) Alan ___ 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] vim syntax highlighting in MKIV
On Sat, 26 Jun 2010, Aditya Mahajan wrote: Almost all the errors in t-vim over the years have due to trying to support kpse: directive. (The errors were not a fault of ConTeXt, but the way quotes are handled by cmd.exe and the various shells in *nix. I still haven't figured out a syntax that works with all shells). This makes me wonder whether it was a good idea to make vim module work out of the box. Perhaps a more robust alternative was to ask the uses to copy 2context.vim to $HOME/.vim/scripts/ and forget about getting mtxrun to locate the file. What do others think? In the spirit of MkIV, I have attempted to redo the vim module from scratch. http://github.com/adityam/filter Download t-vim.tex t-filter.tex and 2context.vim. For testing just place them in the current directory. This new version is delegates the task of creating external files and running vim to get syntax highlighting to t-filter. It reads the file under a restrictive catcode regime... so 2context.vim only has to escape a few characters: \ { }, everything else has a catcode other (except space and newline which are active). Currently, this new module only supports * syntax highlighting (syntax=filetype) * two color schemes (alternative=pscolor and alternative=blackandwhite) * specifying start and stop lines (start=... , stop=...) An additional feature is that the module stores the md5 sums of all files, and runs vim only if the file has changed. So, this should be significantly faster than the old module. Difference * No \typevimfile... instead \definevimtyping[whatever] creates a command \typewhateverfile that can be used as \typewhateverfile[options][file] * Currently, no support for line numbering, although that should be easy to add now. * No support for active spaces yet. * Most importantly, this only runs under MkIV. That is because \doprocesslocalsetups is not defined in MkII. Hans, can you add the definition of \doprocesslocalsetups to MkII? I have only tested on linux. Testing on other platforms will be appreciated (Just run the files under test/vim/). 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___