Re: [NTG-context] startchapter?
Hi Hans, Did you try this: \startchapter[title={the-title},reference={reference-to-this-chapter}] see: http://www.mail-archive.com/ntg-context@ntg.nl/msg66342.html Adam On Sun, Feb 24, 2013 at 3:32 PM, Meer, H. van der h.vanderm...@uva.nlwrote: Previously I could use \chapter[reference-to-this-chapter]{title} Now the preferred way seems to be \startchapter[title=the-title], but how do I program now the reference to this chapter? The Wiki does not contains a page for \startchapter and the section on command only gives info and examples on the \chapter macro. Hans van der Meer ___ 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] fit text to page
Hi list, I'm trying to scale a text to the textwidth and textheight by keeping the aspect ratio, using different papersizes. When the dimensions get too big I get an Arithmetic overflow. (I'm trying to do something similar to resizebox in LaTeX: http://tex.stackexchange.com/questions/55394/perfectly-scale-line-paragraph-image-anything-up-to-textwidth) Minimal example: \setuppapersize[A4][A4] %% [A1][A1] \showframe \starttext \scale[factor=max,width=\textwidth,height=\textheight]{\framed[frame=on]{!}} \stoptext Error message: ! Arithmetic overflow. recently read \c_grph_scale_used_y_scale \grph_scale_convert_large_scale ...scratchdimen #3 \relax \fi \scratchdimen -... \grph_scale_calculations_yes ...grph_scale_temp_y \xdef \finalscaleboxwidth ... \grph_scale_calculate ...h_scale_calculations_yes \fi \fi \fi \syst_boxes_with_next_box ...grph_scale_calculate \ifconditional \c_grph_sca... l.6 ...h,height=\textheight]{\framed[frame=on]{!}} Adam ___ 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] tex file as input (was: bad argument #1 to 'gsub')
Hi Here's a minimal example to follow up: http://www.ntg.nl/pipermail/ntg-context/2011/060169.html (having some file.tex in folder test) \starttext \input test/file \stoptext gives: ! LuaTeX error .../ctx/tex/texmf-context/tex/context/base/data-env.lua:234: bad argument #1 to 'gsub' (string expected, got nil). system tex error on line 2 in file input.tex: LuaTeX error ... Tested on minimals 2011.06.24 16:57. Using \input test/file.tex works though. Adam ___ 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] tracefiles error
Hi tracefiles seems to be broken. \starttext Hello world! \stoptext context --tracefiles hello.tex gives: ! Undefined control sequence. system tex error on line 4 in file test.tex: Undefined control sequence ... By using latest minimals 2011.06.24 16:57. Adam ___ 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] tracefiles error
ah, an obsolete feature, I'll remove it (there is so much tracing nowadays under tracker and directive control that this flag makes not much sense any more). Thought so. Thanks. Adam ___ 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] \star not working
Could we just add a \textstar in char-def.lua? (And maybe use that to redefine \symbol[star]) I'd welcome that, seeing that we already have textbullet. char-def.lua, line 56213: + contextname=textstar, what unicode? U+22C6 Adam ___ 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] [OT] pdf.js - HTML5 PDF renderer
Hi pdf.js is a technology demonstrator prototype to explore whether the HTML5 platform is complete enough to faithfully and efficiently render the ISO 32000-1:2008 Portable Document Format (PDF) without native code assistance. You can read more about pdf.js here: http://andreasgal.com/2011/06/15/pdf-js/ http://blog.mozilla.com/cjones/2011/06/15/overview-of-pdf-js-guts/ Demo: http://people.mozilla.org/~gal/test.html Adam ___ 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] export: tilde problems
better is #xA0; I see, I should've used the \lettertilde instead then, sorry. no, it's the utf character So what would be the correct way to do this then? --- \setupinteraction[state=start] \setupbackend[export=test.xml] \starttext \bgroup \catcode`\~=11 \goto{projects.dcs.kcl.ac.uk/\lettertilde reviczky}[url(http://projects.dcs.kcl.ac.uk/~reviczky/)] \egroup \stoptext --- The above solution works (as suggested by luigi), but it doesn't look that good. How can I pass on the tilde in the url without the catcode? Adam ___ 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] export: tilde problems
So what would be the correct way to do this then? Right, so is this ok, or is there a better way? --- \setupinteraction[state=start] \setupbackend[export=test.xml] \starttext \goto{projects.dcs.kcl.ac.uk/\lettertilde reviczky}[url(http://projects.dcs.kcl.ac.uk/\string~reviczky/)] \stoptext --- Adam ___ 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] \star not working
Hi Can someone confirm this: --- \starttext \star \stoptext --- Nothing shows up in the PDF. ConTeXt is current version: 2011.06.20 10:47 (it is fine on live.contextgarden.net, and worked a couple of days ago). Adam ___ 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] export: graphic url (special chars?)
You could try (untested) \def\googlechart[#1][#2]% {\externalfigure[#1][...]% \endgroup} Thanks, but it has the same result. \def\dogooglechart[#1][#2]% {\useexternalfigure[googlechart][#1]% \endgroup \externalfigure[googlechart][...]} That screws up the url in the css (gives a url(googlechart) in the css). Btw. this is not really about google charts, I just took that as an example. Adam ___ 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] \star not working
Use $\star$ or \symbol[star]. Thanks, but both will use the math font (in my case: https://github.com/khaledhosny/euler-otf) which doesn't have this symbol. Missing character: There is no ⋆ (U+22C6) in font euler! Using \star only worked as a workaround until recently. I'm not doing anything wrong here, am I? I'm looking at: --- \usetypescript[palatino] \definetypeface [palatino] [mm] [math] [euler] [euler][rscale=1.03] \definetypeface [boldmath] [mm] [boldmath][euler][euler][rscale=1.03] \setupbodyfont[palatino,11pt] \starttext $\star$ \symbol[star] \star \stoptext --- Adam ___ 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] \star not working
This came up a while ago, I believe this is the solution: http://www.mail-archive.com/ntg-context@ntg.nl/msg47703.html Thanks. So if I want to typeset the star in non-math mode instead, how do I do that? I just tested it (\star) with version: 2011.06.19 14:17, and there it works. With version: 2011.06.20 10:47 it doesn't. Adam ___ 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] export: tilde problems
It's a side effect of ~ becoming a utf character for nbsp. I'll change Yeah, I completely forgot about that, because it was natural in an url. the definition to: \unexpanded\edef~{\utfchar{00A0}} Then you get this: \goto{a.c.d/~reviczky}[url(http://a.c.d/~reviczky)] \goto{\hyphenatedurl{a.c.d/~reviczky}}[url(http://a.c.d/~reviczky)] Which is what one can expect. Cheers. Adam ___ 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] netiquette (was: \star not working)
could you please use a mail program which sets the correct header fields so that threading is working [1]? I know, sorry about that, but I couldn't figure out why this doesn't work when I'm at the university. Any hints appreciated (for outlook web). Adam ___ 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] export: graphic within table (error)
Hans, I'm getting this error if I put an image within a table using the export backend: ! LuaTeX error /usr/share/texmf/tex/context/base/back-exp.lua:297: bad argument #3 to 'format' (string expected, got boolean). Minimal example: --- \setupbackend[export=yes] \starttext % \externalfigure[mill] % -- fine \bTABLE % \bTR \bTD test \eTD \eTR % -- fine \bTR \bTD \externalfigure[mill] \eTD \eTR % -- error \eTABLE \stoptext --- Log attached. Adam (test.tex ConTeXt ver: 2011.06.18 14:13 MKIV fmt: 2011.6.19 int: english/english system cont-new.mkiv loaded (/usr/share/texmf/tex/context/base/cont-new.mkiv system beware: some patches loaded from cont-new.mkiv ) system test.top loaded system options begin of optionfile system options system options % runtime options files (command line driven) system options \unprotect system options % feedback and basic job control system options % handy for special styles system options \startluacode system options document = document or { } system options document.arguments={ system options } system options document.files={ system options test.tex, system options } system options \stopluacode system options % process info system options \setupsystem[inputfile=test.tex] system options \setupsystem[\c!n=1,\c!m=1] system options % modes system options % options (not that important) system options \startsetups *runtime:options system options \stopsetups system options % styles and modules system options \startsetups *runtime:modules system options \stopsetups system options % done system options \protect \endinput system options system options end of optionfile (test.top) fontslatin modern fonts are not preloaded languageslanguage en is active backend export enabling export to xml {/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.map} fontspreloading latin modern fonts (second stage) (/usr/share/texmf/tex/context/base/type-siz.mkiv) (/usr/share/texmf/tex/context/base/type-otf.mkiv){/usr/share/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map} fontsvirtual math unable to resolve name mapsfromchar fontsfallback modern rm 12pt is loaded system begin file test.tex at line 4 backend xmp using file '/usr/share/texmf/tex/context/base/lpdf-pdx.xml' /usr/share/texmf/tex/context/sample/mill.png pagesflushing realpage 1, userpage 1, subpage 1 system end file test.tex at line 10 )/usr/share/texmf/fonts/opentype/public/lm/lmroman12-regular.otf backend export saving xml data in 'test.export backend export saving css image definitions in 'test-images.css ! LuaTeX error /usr/share/texmf/tex/context/base/back-exp.lua:297: bad argument #3 to 'format' (string expected, got boolean). system tex error on line 0 in file : LuaTeX error ... empty file * ./test.tex ? ___ 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] persian interface broken?
Hi I just noticed that making the persian formats (context --make cont-pe) fails with: ! Undefined control sequence. -\zwnj argument تعریف درونحاشیه \do@sicom #1#2-\@EA \gdef \csname #2 \@EA \endcsname \@EA {\csname #1\endcsn... l.5300 } l.31 ...(\userinterfacetag,\userresponsestag)} Log attached. Is this known? I don't really need it, just want to know if this is suppose to work with recent context. Adam resolvers | resolving | configuration files already identified resolvers | resolving | loading configuration file '/usr/share/texmf/web2c/texmfcnf.lua' resolvers | resolving | resolvers | resolving | locating list of 'home:texmf' (runtime) resolvers | methods | resolver: method=locators, how=uri, scheme=file, argument=home:texmf resolvers | files | file locator 'home:texmf' not found resolvers | resolving | locating list of 'selfautoparent:texmf-project' (cached) resolvers | methods | resolver: method=locators, how=uri, scheme=file, argument=selfautoparent:texmf-project resolvers | files | file locator 'selfautoparent:texmf-project' not found resolvers | resolving | locating list of 'selfautoparent:texmf-fonts' (cached) resolvers | methods | resolver: method=locators, how=uri, scheme=file, argument=selfautoparent:texmf-fonts resolvers | files | file locator 'selfautoparent:texmf-fonts' not found resolvers | resolving | locating list of '/usr/local/share/texmf' (cached) resolvers | methods | resolver: method=locators, how=uri, scheme=file, argument=/usr/local/share/texmf resolvers | files | file locator '/usr/local/share/texmf' found as '/usr/local/share/texmf' resolvers | resolving | locating list of '/usr/share/texmf' (runtime) resolvers | methods | resolver: method=locators, how=uri, scheme=file, argument=/usr/share/texmf resolvers | files | file locator '/usr/share/texmf' found as '/usr/share/texmf' resolvers | resolving | locating list of 'selfautoparent:texmf-linux' (cached) resolvers | methods | resolver: method=locators, how=uri, scheme=file, argument=selfautoparent:texmf-linux resolvers | files | file locator 'selfautoparent:texmf-linux' not found resolvers | resolving | locating list of '/usr/share/texmf-texlive' (runtime) resolvers | methods | resolver: method=locators, how=uri, scheme=file, argument=/usr/share/texmf-texlive resolvers | files | file locator '/usr/share/texmf-texlive' found as '/usr/share/texmf-texlive' resolvers | resolving | resolvers | methods | resolver: method=generators, how=uri, scheme=file, argument=/usr/local/share/texmf resolvers | expansions | scanning path '/usr/local/share/texmf', branch '/usr/local/share/texmf' resolvers | expansions | 1 files found on 0 directories with 1 uppercase remappings resolvers | methods | resolver: method=generators, how=uri, scheme=file, argument=/usr/share/texmf resolvers | expansions | scanning path '/usr/share/texmf', branch '/usr/share/texmf' resolvers | expansions | 13935 files found on 781 directories with 389 uppercase remappings resolvers | methods | resolver: method=generators, how=uri, scheme=file, argument=/usr/share/texmf-texlive resolvers | expansions | scanning path '/usr/share/texmf-texlive', branch '/usr/share/texmf-texlive' resolvers | expansions | 47167 files found on 4775 directories with 2792 uppercase remappings resolvers | resolving | resolvers | resolving | saving tree '/usr/local/share/texmf' resolvers | caches | hashing tree /usr/local/share/texmf, hash 5044cbe2799fe389b078f26ff6b9ee8e resolvers | caching | preparing 'files' for '/usr/local/share/texmf' resolvers | caching | category 'files', cachename '/usr/local/share/texmf' saved in '/home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/trees/5044cbe2799fe389b078f26ff6b9ee8e.lua' system | logs | lua: compiling /home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/trees/5044cbe2799fe389b078f26ff6b9ee8e.lua into /home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/trees/5044cbe2799fe389b078f26ff6b9ee8e.luc resolvers | caching | 'files' compiled to '/home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/trees/5044cbe2799fe389b078f26ff6b9ee8e.luc' resolvers | resolving | saving tree '/usr/share/texmf' resolvers | caches | hashing tree /usr/share/texmf, hash 0638a6bb4aac17125bf8bd1aa29dc0c8 resolvers | caching | preparing 'files' for '/usr/share/texmf' resolvers | caching | category 'files', cachename '/usr/share/texmf' saved in '/home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/trees/0638a6bb4aac17125bf8bd1aa29dc0c8.lua' system | logs | lua: compiling
[NTG-context] export: graphic url (special chars?)
Hi The following example results in a broken xml as well: -- \setupbackend[export=test.xml] \starttext \externalfigure[https://chart.googleapis.com/chart?cht=p3chs=250x100chd=t:60,40chl=Hello\letterbar World][method=png,scale=4000] \stoptext --- XML Parsing Error: not well-formed Location: file:///home/reviczky/Downloads/test/test.xml Line Number 10, Column 74: The problem is with the name property: name='https://chart.googleapis.com/chart?cht=p3chs=250x100chd=t:60,40chl=Hello|World' Further, if the url has a % symbol then the name property stops at that, see: --- \setupbackend[export=test.xml] \enabledirectives[schemes.cleanmethod=md5] \def\googlechart {\begingroup \setcatcodetable\vrbcatcodes \dodoubleempty\dogooglechart} \def\dogooglechart[#1][#2]% {\endgroup \externalfigure[#1][method=png,#2]} \starttext \googlechart[http://chart.apis.google.com/chart?chs=350x220cht=p3chd=s:G99pchdl=2|1|1|6|2|0|52|52|2|2|1|1|2|2|2|2|2|1|1|2|2|1|1|1|2|1|1chdlp=bchp=0.1chl=fsharp|gettext|gettext-base|Others%20%2824%29chma=95,95chtt=Launchpad+Statistics+for+%7Ereviczky+-+ppachts=676767,13.5][factor=max] \stoptext --- gives: name='http://chart.apis.google.com/chart?chs=350x220cht=p3chd=s:G99pchdl=2|1|1|6|2|0|52|52|2|2|1|1|2|2|2|2|2|1|1|2|2|1|1|1|2|1|1chdlp=bchp=0.1chl=fsharp|gettext|gettext-base|Others' Though I guess this is not really a problem. Adam ___ 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] export: tilde problems
Hi The following minimal example gives a broken xml: --- \setupinteraction[state=start] \setupbackend[export=test.xml] \starttext \goto{projects.dcs.kcl.ac.uk/~reviczky}[url(http://projects.dcs.kcl.ac.uk/~reviczky/)] \stoptext --- XML Parsing Error: not well-formed Location: file:///home/reviczky/Downloads/test/test.xml Line Number 10, Column 139: The tilde sign has a #A0; value in the xml, shouldn't that be a #126;? Also the tilde in the destination= and url= properties for link have a space(?) instead. Adam ___ 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] dejavu math fallback?
xits is part of the minimals It is certainly on contextgarden: http://minimals.contextgarden.net/current/fonts/extra/xits/fonts/opentype/public/xits/ But I don't think it comes with the minimals. I just did a fresh minimals setup and it gives me the same: ! Math error: parameter \Umathquad\displaystyle is not set. along with lines like: fontsdefining forced type otf of xits-math not found I also can't find the otf files in the minimals setup (bin, tex). I hope it's not just me ... Adam ___ 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] dejavu math fallback?
Hi Using math with dejavu as the bodyfont produces: ! Math error: parameter \Umathquad\displaystyle is not set. minimal example: --- \setupbodyfont[dejavu] \starttext $e = mc^2$ \stoptext --- Installing the xits-math (https://github.com/khaledhosny/xits-math/) solves the problem. Shouldn't there be a fallback to lmmath or similar? Log using context without xits-math attached. Adam context export-example.tex mtx-context | run 1: luatex --fmt=/home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/formats/cont-en --lua=/home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/formats/cont-en.lui --backend=pdf ./export-example.tex This is LuaTeX, Version beta-0.71.0-2011061600 (rev 4301) \write18 enabled. (export-example.tex ConTeXt ver: 2011.06.16 00:34 MKIV fmt: 2011.6.16 int: english/english system cont-new.mkiv loaded (/usr/share/texmf/tex/context/base/cont-new.mkiv system beware: some patches loaded from cont-new.mkiv ) system export-example.top loaded (export-example.top) fontslatin modern fonts are not preloaded languageslanguage en is active backend export enabling export to xml (/usr/share/texmf/tex/context/base/type-siz.mkiv) (/usr/share/texmf/tex/context/base/type-otf.mkiv){/usr/share/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map}{/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.map} fontsdefining forced type otf of xits-math not found fontsdefining font with asked name 'xits-math' is not found using lookup 'file' fontsdefining unknown font xits-math, loading aborted fontsdefining unable to define xits-math.otf as \*dejavu7ptmmmr33* fontsdefining forced type otf of xits-math not found fontsdefining font with asked name 'xits-math' is not found using lookup 'file' fontsdefining unknown font xits-math, loading aborted fontsdefining unable to define xits-math.otf as \*dejavu9ptmmmr22* fontsdefining forced type otf of xits-math not found fontsdefining font with asked name 'xits-math' is not found using lookup 'file' fontsdefining unknown font xits-math, loading aborted fontsdefining unable to define xits-math.otf as \*dejavu12ptmmmr11* system begin file export-example.tex at line 16 structuresectioning chapter @ level 2 : 0.1 - Example verbatimsfile export.tex does not exist (/usr/share/texmf/tex/context/sample/zapf.tex) floatblocks 1 placed (/usr/share/texmf/tex/context/sample/zapf.tex) (/usr/share/texmf/tex/context/sample/tufte.tex) Overfull \hbox (1.0876pt too wide) in paragraph at lines 1--34 \*dejavu12ptrmtf* everyÂday caÂpacÂity to seÂlect, edit, sinÂgle out, strucÂture, highÂlight, group, Overfull \hbox (2.30989pt too wide) in paragraph at lines 1--34 \*dejavu12ptrmtf* hole, pick over, sort, inÂteÂgrate, blend, inÂspect, filÂter, lump, skip, smooth, Overfull \hbox (0.86143pt too wide) in paragraph at lines 1--34 \*dejavu12ptrmtf* itemÂize, reÂview, dip into, flip through, browse, glance into, leaf through, backend xmp using file '/usr/share/texmf/tex/context/base/lpdf-pdx.xml' /usr/share/texmf/tex/context/sample/hacker.jpg pagesflushing realpage 1, userpage 1, subpage 1 floatblocks 2 placed (/usr/share/texmf/tex/context/sample/tufte.tex) Overfull \hbox (1.0876pt too wide) in paragraph at lines 1--40 \*dejavu12ptrmtf* everyÂday caÂpacÂity to seÂlect, edit, sinÂgle out, strucÂture, highÂlight, group, Overfull \hbox (2.30989pt too wide) in paragraph at lines 1--40 \*dejavu12ptrmtf* hole, pick over, sort, inÂteÂgrate, blend, inÂspect, filÂter, lump, skip, smooth, Overfull \hbox (0.86143pt too wide) in paragraph at lines 1--40 \*dejavu12ptrmtf* itemÂize, reÂview, dip into, flip through, browse, glance into, leaf through, (/usr/share/texmf/tex/context/sample/zapf.tex) /usr/share/texmf/tex/context/sample/cow.pdf pagesflushing realpage 2, userpage 2 (/usr/share/texmf/tex/context/sample/ward.tex) (/usr/share/texmf/tex/context/sample/tufte.tex) Overfull \hbox (2.0251pt too wide) in paragraph at lines 56--56 \*dejavu12ptrmtf* avÂerÂage, apÂproxÂiÂmate, clusÂter, agÂgreÂgate, outÂline, sum Overfull \hbox (9.8708pt too wide) in paragraph at lines 56--56 \*dejavu12ptrmtf* glance into, leaf through, skim, reÂfine, enuÂmerÂate, glean, (/usr/share/texmf/tex/context/sample/knuth.tex pagesflushing realpage 3, userpage 3 ) ! Math error: parameter \Umathquad\displaystyle is not set. system tex error on line 62 in file export-example.tex: Math error: parameter \Umathquad\displaystyle is not set ... 52 \startparagraph \input zapf (Zapf) \stopparagraph 53 54 \startdescription {Ward} \input ward \stopdescription 55 56 \startdescription
[NTG-context] PNG file corrupted by ASCII conversion
Hi I'm getting the following error with PNG images: libpng error: PNG file corrupted by ASCII conversion !LuaTeX error: libpng: internal error == Fatal error occurred, no output PDF file produced! minimal example --- \starttext \placefigure{}{\externalfigure[mill.png]} \stoptext --- LuaTeX in minimals beta-0.70.1-2011051923 (rev 4277) and latest trunk beta-0.71.0-2011061600 (rev 4301) are both affected. Adam ___ 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] Itemizing from zero
Hey folks, I noticed some other people had issues with \startitemize[n] counting starting from zero as a bug a while ago. In my case, I need a specific list to start counting from zero. Is there any way to do this? see: http://wiki.contextgarden.net/Enumerations example: --- \starttext \startitemize[n][start=0] \dorecurse{3}{\item Lorem ipsum} \stopitemize \stoptext --- Adam ___ 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] LuaTeX regression?
Hi It appears that something went wrong with the svn rev. 4283 (I think 4282 was still ok). Simple hello world tex gives me: mtx-context | run 1: luatex --fmt=/home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/formats/cont-en --lua=/home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/formats/cont-en.lui --backend=pdf ./test.tex This is LuaTeX, Version beta-0.71.0-2011052518 (rev 4283) \write18 enabled. mtx-context | fatal error: no return code, message: luatex: execution interrupted Adam ___ 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] problems with \date[]
Hans, Don't we need rather this change too? line 487 in lang-txt.lua: -fr=aoât, +fr=août, Adam ___ 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] Parsing CFF DICT failed
Any chance of a (smallish) test file? I've attached the test file, log and broken pdf/synctex files. Do you need anything else? Adam \enabledirectives[system.synctex] \setupbibtex[database={sample},sort=author] \starttext \chapter{Bibliography} \completepublications[criterium=text] \stoptext @STRING{hh = {Hans Hagen}} @ELECTRONIC{hh2010, author = hh, year = {2010}, title = {Metafun. \CONTEXT\ mkiv}, url = {http://www.pragma-ade.nl/general/manuals/metafun-s.pdf}, } @ARTICLE{hh2010a, author = hh, title = {The Font Name Mess}, journal = {MAPS}, year = {2010}, volume = {40}, pages = {2-8}, keywords = {context}, } @ARTICLE{hh2010b, author = hh, title = {Grouping in Hybrid Environments}, journal = {MAPS}, year = {2010}, volume = {40}, pages = {67-71}, keywords = {context}, } @BOOK{Eijkhout1991, title = {\TeX\ by Topic. A \TeX nician's Reference}, publisher = {Addison-Wesley}, year = {1991}, author = {Victor Eijkhout}, address = {London}, keywords = {general}, } (test.tex ConTeXt ver: 2011.05.14 16:34 MKIV fmt: 2011.5.14 int: english/english system cont-new.mkiv loaded (/usr/share/texmf/tex/context/base/cont-new.mkiv system beware: some patches loaded from cont-new.mkiv ) system test.top loaded system options begin of optionfile system options system options % runtime options files (command line driven) system options \unprotect system options % feedback and basic job control system options % handy for special styles system options \startluacode system options document = document or { } system options document.arguments={ system options } system options document.files={ system options test.tex, system options } system options \stopluacode system options % process info system options \setupsystem[inputfile=test.tex] system options \setupsystem[\c!n=1,\c!m=1] system options % modes system options % options (not that important) system options \startsetups *runtime:options system options \stopsetups system options % styles and modules system options \startsetups *runtime:modules system options \stopsetups system options % done system options \protect \endinput system options system options end of optionfile (test.top) fontslatin modern fonts are not preloaded languageslanguage en is active system synctex functionality is enabled! publications wrote a new auxiliary file \jobname.aux {/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.map} fontspreloading latin modern fonts (second stage) (/usr/share/texmf/tex/context/base/type-siz.mkiv) (/usr/share/texmf/tex/context/base/type-otf.mkiv){/usr/share/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map} fontsvirtual math unable to resolve name mapsfromchar fontsfallback modern rm 12pt is loaded system begin file test.tex at line 3 structuresectioning chapter @ level 2 : 0.1 - Bibliography backend xmp using file '/usr/share/texmf/tex/context/base/lpdf-pdx.xml' pagesflushing realpage 1, userpage 1, subpage 1 structuresectioning chapter @ level 2 : 0.2 - \headtext {pubs} publications loading database from test.bbl (test.bbl) pagesflushing realpage 2, userpage 2 system end file test.tex at line 6 )/usr/share/texmf/fonts/opentype/public/lm/lmroman12-regular.otf !LuaTeX error (file /usr/share/texmf/fonts/opentype/public/lm/lmroman12-regular.otf): Parsing CFF DICT failed. (error=-1) == Fatal error occurred, no output PDF file produced! test.pdf Description: test.pdf test.synctex.gz(b.txt Description: test.synctex.gz(b.txt ___ 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] Parsing CFF DICT failed
Hi Not sure where the problem is but using the latest beta (2011.05.14) I get this error: !LuaTeX error (file /usr/share/texmf/fonts/opentype/public/tex-gyre/texgyrecursor-bold.otf): Parsing CFF DICT failed. (error=-1) == Fatal error occurred, no output PDF file produced! This used to work a couple of days ago ... Log attached. Adam (/home/reviczky/Downloads/thesis/src/prd_finalreport.tex ConTeXt ver: 2011.05.14 16:34 MKIV fmt: 2011.5.14 int: english/english (/usr/share/texmf/tex/context/base/cont-new.mkiv) (prd_finalreport.top ){/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.map} (/usr/share/texmf/tex/context/base/type-siz.mkiv) (/usr/share/texmf/tex/context/base/type-otf.mkiv){/usr/share/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map} (project_6ccs3prj.tex (env_6ccs3prj.tex (/usr/share/texmf/tex/context/base/colo-imp-x11.mkiv) (/usr/share/texmf/tex/context/base/m-database.mkiv+ /usr/share/texmf/tex/context/base/m-database.lua) (/usr/share/texmf/tex/context/base/page-run.mkiv))) (c_titlepage.tex) (c_legal.tex) (c_abstract.tex) (c_acknowledgements.tex) (c_tableofcontents.tex) (c_introduction.tex) (c_background.tex) (c_body.tex) (c_evaluation.tex) (c_conclusions.tex Overfull \hbox (9.75206pt too wide) in paragraph at lines 26--26 [][]\*TeX Gyre11ptrmtf* (-15) Second\*TeX Gyre11ptrmtf* (-20) ly, \*TeX Gyre11ptrmtf* (-15) an ana\*TeX Gyre11ptrmtf* (-20) Âl\*TeX Gyre11ptrmtf* (-15) og\*TeX Gyre11ptrmtf* (-20) y \*TeX Gyre11ptrmtf* (-15) can be d\*TeX Gyre11ptrmtf* (-20) r\*TeX Gyre11ptrmtf* (-15) awn w\*TeX Gyre11ptrmtf* (-20) it\*TeX Gyre11ptrmtf* (-15) h \*TeX Gyre11ptrmtf* (-20) t\*TeX Gyre11ptrmtf* (-15) he wa\*TeX Gyre11ptrmtf* (-20) y L[]T[]X \*TeX Gyre11ptrmtf* (-15) enhanced \*TeX Gyre11ptrmtf* (-20) T[]X \*TeX Gyre11ptrmtf* (-15) o\*TeX Gyre11ptrmtf* (-20) r X\*TeX Gyre11ptrmtf* (-15) H\*TeX Gyre11ptrmtf* (-20) T\*TeX Gyre11ptrmtf* (-15) M\*TeX Gyre11ptrmtf* (-20) L+\*TeX Gyre11ptrmtf* (-15) CSS \hbox(7.887+2.6675)x426.78743, glue set - 1.0, direction TLT .\whatsit ..\localinterlinepenalty=0 ..\localbrokenpenalty=0 ..\localleftbox=null ..\localrightbox=null .\hbox(0.0+0.0)x0.0, direction TLT .\*TeX Gyre11ptrmtf* (-15) S .\*TeX Gyre11ptrmtf* (-15) e .\*TeX Gyre11ptrmtf* (-15) c .etc. ) (c_bibliography.tex (prd_finalreport.bbl)) (c_appendix.tex /home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/schemes/0e9b8cc57c0432d5c772dda2b9cd6dfe.png /home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/schemes/20423a750695b2b662ba0d45cffb47d7.png /home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/schemes/e5e275d1076b71ab932ea5ebd4ebf214.png /home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/schemes/d4119ab8da3dcb23984cfb71ad63d7fd.png /home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/schemes/38eb45f44eddb6c6d26bb5dd5aeb81f8.png /home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/schemes/77bb547e2ae6cfc8f18ed6ac3fcc4cb0.png /home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/schemes/e5ef87eb4b66f38fd4ed47540edace38 /home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/schemes/cab33a4eaf4616b446d5e19baa4af9d7) (c_userguide.tex /home/reviczky/Downloads/thesis/src/graphics/goldbach_main.png /home/reviczky/Downloads/thesis/src/graphics/goldbach_about.png /home/reviczky/Downloads/thesis/src/graphics/goldbach_credits.png /home/reviczky/Downloads/thesis/src/graphics/goldbach_licence.png /home/reviczky/Downloads/thesis/src/graphics/goldbach_open.png /home/reviczky/Downloads/thesis/src/graphics/goldbach_filters.png /home/reviczky/Downloads/thesis/src/graphics/goldbach_progress.png /home/reviczky/Downloads/thesis/src/graphics/goldbach_clear.png /home/reviczky/Downloads/thesis/src/graphics/goldbach_recognition.png /home/reviczky/Downloads/thesis/src/graphics/goldbach_relational.png /home/reviczky/Downloads/thesis/src/graphics/goldbach_ellipses.png /home/reviczky/Downloads/thesis/src/graphics/goldbach_operator.png /home/reviczky/Downloads/thesis/src/graphics/goldbach_arrow.png /home/reviczky/Downloads/thesis/src/graphics/goldbach_logical.png /home/reviczky/Downloads/thesis/src/graphics/goldbach_sets.png /home/reviczky/Downloads/thesis/src/graphics/goldbach_misc.png /home/reviczky/Downloads/thesis/src/graphics/goldbach_greeklo.png /home/reviczky/Downloads/thesis/src/graphics/goldbach_greekup.png /home/reviczky/Downloads/thesis/src/graphics/goldbach_typeset.png /home/reviczky/Downloads/thesis/src/graphics/goldbach_mkiv.png /home/reviczky/Downloads/thesis/src/graphics/goldbach_save.png /home/reviczky/Downloads/thesis/src/graphics/goldbach_export.png /home/reviczky/Downloads/thesis/src/graphics/goldbach_modified.png /home/reviczky/Downloads/thesis/src/graphics/goldbach_de.png /home/reviczky/Downloads/thesis/src/graphics/goldbach_fr.png
Re: [NTG-context] Parsing CFF DICT failed
It seems to be syntex/luatex related. Here's a minimal example using the sample.bib from the wiki (http://wiki.contextgarden.net/sample_bib): %%% \enabledirectives[system.synctex] \setupbibtex[database={sample},sort=author] \starttext \chapter{Bibliography} \completepublications[criterium=text] \stoptext %%% error: !LuaTeX error (file /usr/share/texmf/fonts/opentype/public/lm/lmroman12-regular.otf): Parsing CFF DICT failed. (error=-1) == Fatal error occurred, no output PDF file produced! note: * criterium=all works, obviously I have cite's in my document, but that shouldn't matter * commenting out the synctex line also makes it work again * somehow the problem is in combination with a title element (part, chapter, etc.), because without it it works again as well More verbose log attached. Adam (test.tex ConTeXt ver: 2011.05.14 16:34 MKIV fmt: 2011.5.14 int: english/english system cont-new.mkiv loaded (/usr/share/texmf/tex/context/base/cont-new.mkiv system beware: some patches loaded from cont-new.mkiv ) system test.top loaded system options begin of optionfile system options system options % runtime options files (command line driven) system options \unprotect system options % feedback and basic job control system options % handy for special styles system options \startluacode system options document = document or { } system options document.arguments={ system options } system options document.files={ system options test.tex, system options } system options \stopluacode system options % process info system options \setupsystem[inputfile=test.tex] system options \setupsystem[\c!n=1,\c!m=1] system options % modes system options % options (not that important) system options \startsetups *runtime:options system options \stopsetups system options % styles and modules system options \startsetups *runtime:modules system options \stopsetups system options % done system options \protect \endinput system options system options end of optionfile (test.top) fontslatin modern fonts are not preloaded languageslanguage en is active system synctex functionality is enabled! publications wrote a new auxiliary file \jobname.aux {/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.map} fontspreloading latin modern fonts (second stage) (/usr/share/texmf/tex/context/base/type-siz.mkiv) (/usr/share/texmf/tex/context/base/type-otf.mkiv){/usr/share/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map} fontsvirtual math unable to resolve name mapsfromchar fontsfallback modern rm 12pt is loaded system begin file test.tex at line 4 structuresectioning chapter @ level 2 : 0.1 - Bibliography backend xmp using file '/usr/share/texmf/tex/context/base/lpdf-pdx.xml' pagesflushing realpage 1, userpage 1, subpage 1 structuresectioning chapter @ level 2 : 0.2 - \headtext {pubs} publications loading database from test.bbl (test.bbl) pagesflushing realpage 2, userpage 2 system end file test.tex at line 7 )/usr/share/texmf/fonts/opentype/public/lm/lmroman12-regular.otf !LuaTeX error (file /usr/share/texmf/fonts/opentype/public/lm/lmroman12-regular.otf): Parsing CFF DICT failed. (error=-1) == Fatal error occurred, no output PDF file produced! ___ 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] Parsing CFF DICT failed
It seems to be syntex/luatex related. Just noticed that there's no luatex banner in the log because of the error, so: This is LuaTeX, Version beta-0.71.0-2011051313 (rev 4265) Adam ___ 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] dirty epub fixes
Hans, Since I didn't got a working epub for the first few tries, I did some further inspections with epubcheck[1]. Using this minimal example: \setupbackend[export=test.xml,xhtml=test.xhtml,css={test.css,mathml.css}] \starttext Test \stoptext The main errors are: * opf: id has to be either stylesheet for css or the xhtml filename without the suffix * opf: itemref needs to be the name of the xhtml without the suffix Here's a very dirty quick fix I did to get a working epub: add after line 112 or so: + local id = file.removesuffix(filename) line 116: - used[#used+1] = format(item id='%s' href='%s' media-type='%s'/,i,filename,mime) + if suffix == css then + id = stylesheet + elseif suffix == ncx then + id = file.suffix(filename) + end + used[#used+1] = format(item id='%s' href='%s' media-type='%s'/,id,filename,mime) line 121: - package = format(package,identifier,identifier,concat(used,\n),root) + package = format(package,identifier,identifier,concat(used,\n),file.removesuffix(root)) I'm sure you make a better fix (I've attached the patched one in case it's easier to diff). Not sure if you want to do something about the other errors, but it'd be nice to have a valid epub in the end. Adam [1] http://code.google.com/p/epubcheck/ Epubcheck Version 1.2 ERROR: test.tree/test.epub: extra field length for first filename must be 0, but was 28 ERROR: test.tree/test.epub/OPS/test.opf(3): value of attribute unique-identifier is invalid; must be an XML name without colons ERROR: test.tree/test.epub/OPS/test.opf(8): value of attribute id is invalid; must be an XML name without colons ERROR: test.tree/test.epub/OPS/test.opf(13): value of attribute id is invalid; must be an XML name without colons ERROR: test.tree/test.epub/OPS/test.opf(14): value of attribute id is invalid; must be an XML name without colons ERROR: test.tree/test.epub/OPS/test.opf(15): value of attribute id is invalid; must be an XML name without colons ERROR: test.tree/test.epub/OPS/test.opf(18): item with id 'ncx' not found ERROR: test.tree/test.epub/OPS/test.opf(19): item with id 'test.xhtml' not found ERROR: test.tree/test.epub/OPS/test.xhtml(12): elements from namespace are not allowed Check finished with warnings or errors! if not modules then modules = { } end modules ['mtx-epub'] = { version = 1.001, comment = companion to mtxrun.lua, author= Hans Hagen, PRAGMA-ADE, Hasselt NL, copyright = PRAGMA ADE / ConTeXt Development Team, license = see context related readme files } local format = string.format local concat = table.concat local helpinfo = [[ --makecreate epub zip file example: mtxrun --script epub --make mydocument ]] local application = logs.application { name = mtx-epub, banner = ConTeXt EPUB Helpers 0.10, helpinfo = helpinfo, } -- script code scripts = scripts or { } scripts.epub = scripts.epub or { } local mimetype = application/epub+zip local container = [[ ?xml version=1.0 encoding=UTF-8 ? container version=1.0 xmlns=urn:oasis:names:tc:opendocument:xmlns:container rootfiles rootfile full-path=OPS/%s media-type=application/oebps-package+xml/ /rootfiles /container ]] local package = [[ ?xml version=1.0? package version=2.0 xmlns=http://www.idpf.org/2007/opf; unique-identifier=%s metadata xmlns:dc=http://purl.org/dc/elements/1.1/; xmlns:opf=http://www.idpf.org/2007/opf; dc:titleMy Title/dc:title dc:languageen/dc:language dc:identifier id=%s / dc:creator opf:file-as=Self, My opf:role=autMySelf/dc:creator /metadata manifest %s /manifest spine toc=ncx itemref idref=%s / /spine /package ]] local mimetypes = { xhtml = application/xhtml+xml, css = text/css, } -- specification = { -- name = document, -- identifier = 123, -- root = a.xhtml, -- files = { -- a.xhtml, -- b.css, -- c.png, -- } -- } function scripts.epub.make() local filename = environment.files[1] if filename and filename ~= then filename = file.basename(filename) local specfile = file.replacesuffix(filename,specification) local specification = lfs.isfile(specfile) and dofile(specfile) or { } -- inspect(specification) local name = specification.name or file.removesuffix(filename) local identifier = specification.identifier or os.uuid() local files = specification.files or { file.addsuffix(filename,xhtml) } local root = specification.root or files[1] local epubname = name local epubpath = file.replacesuffix(name,tree) local epubfile = file.replacesuffix(name,epub) local epubroot = file.replacesuffix(name,opf) lfs.mkdir(epubpath)
Re: [NTG-context] synonyms/abbreviations and style setup question
What would I have to do to get small capitals? I tried style=smallcaps, but that only gave me capitals all of the same height, and no small capitals. use textstyle=... (smallcaps or cap) Adam ___ 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] Error with export=yes
Anyhow, \setupbackend[export=yes] \definefontsynonym [Dingbats] [name:dingbats] [features=dingbats] \starttext Hello world! (\getnamedglyphdirect{Dingbats}{a79}) (\getnamedglyphdirect{Dingbats*dingbats}{a79}) (\getglyphdirect{Dingbats*dingbats}{\number2756}) ({\definedfont[Dingbats]\char2756}) \stoptext (1) will export 'v' (2) ok in next beta (3) ok (4) ok This is strange, attached my export and log. PDF is still fine. Do I miss something from context? Adam test.export Description: test.export (test.tex ConTeXt ver: 2011.05.09 10:14 MKIV fmt: 2011.5.9 int: english/english system cont-new.mkiv loaded (/usr/share/texmf/tex/context/base/cont-new.mkiv system beware: some patches loaded from cont-new.mkiv ) system test.top loaded system options begin of optionfile system options system options % runtime options files (command line driven) system options \unprotect system options % feedback and basic job control system options % handy for special styles system options \startluacode system options document = document or { } system options document.arguments={ system options } system options document.files={ system options test.tex, system options } system options \stopluacode system options % process info system options \setupsystem[inputfile=test.tex] system options \setupsystem[\c!n=2,\c!m=3] system options % modes system options % options (not that important) system options \startsetups *runtime:options system options \stopsetups system options % styles and modules system options \startsetups *runtime:modules system options \stopsetups system options % done system options \protect \endinput system options system options end of optionfile (test.top) fontslatin modern fonts are not preloaded languageslanguage en is active backend export enabling export to xml {/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.map} fontspreloading latin modern fonts (second stage) (/usr/share/texmf/tex/context/base/type-siz.mkiv) (/usr/share/texmf/tex/context/base/type-otf.mkiv){/usr/share/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map} fontsvirtual math unable to resolve name mapsfromchar fontsfallback modern rm 12pt is loaded system begin file test.tex at line 5 backend xmp using file '/usr/share/texmf/tex/context/base/lpdf-pdx.xml' pagesflushing realpage 1, userpage 1, subpage 1 system end file test.tex at line 13 )/usr/share/texmf-texlive/fonts/type1/urw/zapfding/uzdr.pfb/usr/share/texmf/fonts/opentype/public/lm/lmroman12-regular.otf backend export finalizing backend export saving xml data in 'test.export backend export saving css template in 'test.template mkiv lua stats used config file - /usr/share/texmf/web2c/texmfcnf.lua mkiv lua stats used cache path - /home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d mkiv lua stats input load time - 0.131 seconds mkiv lua stats stored bytecode data - 285 modules, 58 tables, 343 chunks mkiv lua stats cleaned up reserved nodes - 33 nodes, 9 lists of 423 mkiv lua stats node memory usage - 20 glue_spec mkiv lua stats node list callback tasks - 6 unique task lists, 5 instances (re)created, 2354 calls mkiv lua stats used backend - pdf (backend for directly generating pdf output) mkiv lua stats loaded patterns - en::2 mkiv lua stats callbacks - 2491 direct, 2974 indirect, 5465 total mkiv lua stats randomizer- resumed with value 0.98525745094999 mkiv lua stats lxml preparation time - 0.000 seconds, 0 nodes, 15 lpath calls, 0 cached calls mkiv lua stats structure elements- 1 element chains identified mkiv lua stats result saved in file - test.pdf mkiv lua stats loaded fonts - 34 files: stmary10.afm uzdr.afm eufb10.tfm eufb7.tfm eufm10.tfm eufm7.tfm msam10.tfm msam7.tfm msbm10.tfm msbm7.tfm lmmono12-regular.otf lmmono8-regular.otf lmmono9-regular.otf lmroman12-bold.otf lmroman12-regular.otf lmroman7-bold.otf lmroman7-regular.otf lmroman9-bold.otf lmroman9-regular.otf lmsans12-regular.otf lmsans8-regular.otf lmsans9-regular.otf lmex10.tfm lmmi12.tfm lmmi7.tfm lmmi9.tfm lmmib10.tfm lmmib7.tfm lmsy10.tfm lmsy7.tfm lmsy9.tfm rm-lmr12.tfm rm-lmr7.tfm rm-lmr9.tfm mkiv lua stats fonts load time - 0.526 seconds mkiv lua stats xml exporting time- 0.003 seconds mkiv lua stats luatex banner - this is luatex, version beta-0.71.0-2011050806
Re: [NTG-context] Error with export=yes
no clue So it looks like having the urw zapfding fonts from texlive mess this up (uzdr.afm, uzdr.pfb and uzdr.pfm). Don't you have them? Why is it a problem if context finds those? Without those fonts, I have this in the log: fontsnames font database has matching configuration and file hashes fontsdefining font with asked name 'dingbats' is not found using lookup 'name' fontsdefining unknown font dingbats, loading aborted fontsdefining unable to define dingbats as \**currentsymbolfont** fontsnames font database has matching configuration and file hashes fontsdefining font with asked name 'dingbats' is not found using lookup 'name' fontsdefining unknown font dingbats, loading aborted fontsdefining unable to define dingbats as \**currentsymbolfont** fontsnames font database has matching configuration and file hashes fontsdefining font with asked name 'dingbats' is not found using lookup 'name' fontsdefining unknown font dingbats, loading aborted fontsdefining unable to define dingbats as \**thedefinedfont** But now the export is fine, on the other hand the pdf misses those characters. Adam ___ 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] Error with export=yes
Something else to play with, making an epub archive. At some point I will add support for images etc. At the end of a run you will see: export saving specification in 'oeps.specification' (mtxrun --script epub --make oeps.specification) The mentioned mtxrun call will make an archive. Excellent, didn't expect that so soon. I'm on it! Cheers Adam ___ 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] Error with export=yes
export saving specification in 'oeps.specification' (mtxrun --script epub --make oeps.specification) Somehow I can't get this working yet, this doesn't get triggered at my end, do I forget something? shouldn't also back-exp.lua line 406: -handle:write( url=',file,') +handle:write( url=',url,') Adam ___ 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] Error with export=yes
Do you set a value for the xhtml key? Yeah, I figured that out now, epub is generated now, still playing with it, trying with calibre .. Thanks ___ 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] Error with export=yes
I still must miss something, because the epub doesn't seem to contain anything. So here's a simple example: \setupbackend[export=yes,xhtml=test.xhtml] \starttext Hello world! \stoptext Then after running context: mtxrun --script epub --make test.specification table={ [files]={ test.xhtml }, [identifier]=89a4fe19-4610-b806-b0dd-5fad6ede3dde, [name]=test, [root]=test.xhtml, } adding: mimetype (stored 0%) adding: META-INF/ (stored 0%) adding: META-INF/container.xml (deflated 32%) adding: OPS/ (stored 0%) adding: OPS/test.opf (deflated 49%) mtx-epub| epub archive: test.tree/test.epub The xhtml seems to be missing from OPS, but even putting that in there doesn't give me a working epub (even though it increases the epub size). Help? Adam ___ 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] Error with export=yes
The xhtml seems to be missing from OPS, but even putting that in there doesn't give me a working epub (even though it increases the epub size). Right, adding a title solves that, but still empty when trying to open it ... ___ 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] Proposed changes for Croatian language
just send me a patch after the next beta then (i just merged in other fixes) I've attached the newly patched lang-txt.lua against the current experimental (2011.05.08) with the hu fixes. Adam lang-txt.lua.gz Description: lang-txt.lua.gz ___ 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] Error with export=yes
fixed in next beta (you can replace gmatch by string.gmatch as a fast fix) Thanks, that fixed the problem for one, but still it fails on my thesis with: ! LuaTeX error /usr/share/texmf/tex/context/base/back-exp.lua:868: attempt to index field '?' (a nil value). empty file I hope it is not because of my tex file. Log attached. Adam (/home/reviczky/Downloads/ctx/test/thesis/src/prd_finalreport.tex ConTeXt ver: 2011.05.08 23:02 MKIV fmt: 2011.5.9 int: english/english (/usr/share/texmf/tex/context/base/cont-new.mkiv) (prd_finalreport.top ){/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.map} (/usr/share/texmf/tex/context/base/type-siz.mkiv) (/usr/share/texmf/tex/context/base/type-otf.mkiv){/usr/share/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map} (project_6ccs3prj.tex (env_6ccs3prj.tex (/usr/share/texmf/tex/context/base/colo-imp-x11.mkiv) (/usr/share/texmf/tex/context/base/m-database.mkiv+ /usr/share/texmf/tex/context/base/m-database.lua) (/usr/share/texmf/tex/context/base/page-run.mkiv))) (c_titlepage.tex) (c_legal.tex) (c_abstract.tex) (c_acknowledgements.tex) (c_tableofcontents.tex) (c_introduction.tex) (c_background.tex) (c_body.tex) (c_evaluation.tex) (c_conclusions.tex Overfull \hbox (11.07205pt too wide) in paragraph at lines 26--26 [][]\*TeX Gyre11ptrmtf* (-15) Second\*TeX Gyre11ptrmtf* (-20) ly, \*TeX Gyre11ptrmtf* (-15) an ana\*TeX Gyre11ptrmtf* (-20) Âl\*TeX Gyre11ptrmtf* (-15) og\*TeX Gyre11ptrmtf* (-20) y \*TeX Gyre11ptrmtf* (-15) can be d\*TeX Gyre11ptrmtf* (-20) r\*TeX Gyre11ptrmtf* (-15) awn w\*TeX Gyre11ptrmtf* (-20) it\*TeX Gyre11ptrmtf* (-15) h \*TeX Gyre11ptrmtf* (-20) t\*TeX Gyre11ptrmtf* (-15) he wa\*TeX Gyre11ptrmtf* (-20) y L[]T[]X \*TeX Gyre11ptrmtf* (-15) enhanced \*TeX Gyre11ptrmtf* (-20) T[]X \*TeX Gyre11ptrmtf* (-15) o\*TeX Gyre11ptrmtf* (-20) r X\*TeX Gyre11ptrmtf* (-15) H\*TeX Gyre11ptrmtf* (-20) T\*TeX Gyre11ptrmtf* (-15) M\*TeX Gyre11ptrmtf* (-20) L+\*TeX Gyre11ptrmtf* (-15) CSS \hbox(7.887+2.6675)x426.78743, glue set - 1.0, direction TLT .\whatsit ..\localinterlinepenalty=0 ..\localbrokenpenalty=0 ..\localleftbox=null ..\localrightbox=null .\hbox(0.0+0.0)x0.0, direction TLT .\*TeX Gyre11ptrmtf* (-15) S .\*TeX Gyre11ptrmtf* (-15) e .\*TeX Gyre11ptrmtf* (-15) c .etc. ) (c_bibliography.tex (prd_finalreport.bbl)) (c_appendix.tex /home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/schemes/0e9b8cc57c0432d5c772dda2b9cd6dfe.png /home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/schemes/20423a750695b2b662ba0d45cffb47d7.png /home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/schemes/e5e275d1076b71ab932ea5ebd4ebf214.png /home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/schemes/d4119ab8da3dcb23984cfb71ad63d7fd.png /home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/schemes/38eb45f44eddb6c6d26bb5dd5aeb81f8.png /home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/schemes/77bb547e2ae6cfc8f18ed6ac3fcc4cb0.png /home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/schemes/e5ef87eb4b66f38fd4ed47540edace38 /home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/schemes/cab33a4eaf4616b446d5e19baa4af9d7) (c_userguide.tex /home/reviczky/Downloads/ctx/test/thesis/src/graphics/goldbach_main.png /home/reviczky/Downloads/ctx/test/thesis/src/graphics/goldbach_about.png /home/reviczky/Downloads/ctx/test/thesis/src/graphics/goldbach_credits.png /home/reviczky/Downloads/ctx/test/thesis/src/graphics/goldbach_licence.png /home/reviczky/Downloads/ctx/test/thesis/src/graphics/goldbach_open.png /home/reviczky/Downloads/ctx/test/thesis/src/graphics/goldbach_filters.png /home/reviczky/Downloads/ctx/test/thesis/src/graphics/goldbach_progress.png /home/reviczky/Downloads/ctx/test/thesis/src/graphics/goldbach_clear.png /home/reviczky/Downloads/ctx/test/thesis/src/graphics/goldbach_recognition.png /home/reviczky/Downloads/ctx/test/thesis/src/graphics/goldbach_relational.png /home/reviczky/Downloads/ctx/test/thesis/src/graphics/goldbach_ellipses.png /home/reviczky/Downloads/ctx/test/thesis/src/graphics/goldbach_operator.png /home/reviczky/Downloads/ctx/test/thesis/src/graphics/goldbach_arrow.png /home/reviczky/Downloads/ctx/test/thesis/src/graphics/goldbach_logical.png /home/reviczky/Downloads/ctx/test/thesis/src/graphics/goldbach_sets.png /home/reviczky/Downloads/ctx/test/thesis/src/graphics/goldbach_misc.png /home/reviczky/Downloads/ctx/test/thesis/src/graphics/goldbach_greeklo.png /home/reviczky/Downloads/ctx/test/thesis/src/graphics/goldbach_greekup.png /home/reviczky/Downloads/ctx/test/thesis/src/graphics/goldbach_typeset.png /home/reviczky/Downloads/ctx/test/thesis/src/graphics/goldbach_mkiv.png /home/reviczky/Downloads/ctx/test/thesis/src/graphics/goldbach_save.png
Re: [NTG-context] Error with export=yes
Further, using an example with dingbats: %%% \setupbackend[export=cld-mkiv-export.xml,xhtml=cld-mkiv-export.xhtml,css={cld-mkiv-export.css,mathml.css}] \starttext Hello world! \getnamedglyphdirect{name:dingbats}{a79} \stoptext %%% Produces a broken xhtml (XML Parsing Error: not well-formed), the pdf is fine of course. The end-mark is exported to �� in xhtml. Not sure if that's anything to fix, just wanted to let you know. Adam ___ 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] Proposed changes for Croatian language
If it would be easier, I can send fixed lang-txt.lua. indeed easier Hans While we're at it, attached is a patched one for the Hungarian language (against the current beta). Adam lang-txt.lua.gz Description: lang-txt.lua.gz ___ 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] Error with export=yes
\setupbackend [export=cld-mkiv-export.xml, xhtml=cld-mkiv-export.xhtml, css={cld-mkiv-export.css,mathml.css}] There's an article in the eurotex proceedings about these issues. I don't know if Mojca has put the presentation somewhere online. Since this worked nicely on a simple hello world example, I thought I'm trying it out on a few documents I have. The logs are attached, do I need to make a minimal out of it? Adam (/home/reviczky/Downloads/ctx/presentation/src/presentation_6ccs3prj.tex ConTeXt ver: 2011.05.06 16:52 MKIV fmt: 2011.5.7 int: english/english (/usr/share/texmf/tex/context/base/cont-new.mkiv) (presentation_6ccs3prj.top ) (/home/reviczky/Downloads/ctx/presentation/src/env_6ccs3prj.tex (/usr/share/texmf/tex/context/third/simpleslides/t-simpleslides.tex (/usr/share/texmf/tex/context/third/simpleslides/simpleslides-f-default.tex (/usr/share/texmf/tex/context/base/type-siz.mkiv) (/usr/share/texmf/tex/context/base/type-otf.mkiv) (/usr/share/texmf/tex/context/base/type-otf.mkiv){/usr/share/texmf/fonts/map/pdftex/context/mkiv-tx.map}{/usr/share/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map}{/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.map}) (/usr/share/texmf/tex/context/third/simpleslides/simpleslides-s-default.tex) (/usr/share/texmf/tex/context/third/simpleslides/simpleslides-s-Split.tex)) (/usr/share/texmf/tex/context/base/m-chart.mkiv) (/usr/share/texmf/tex/context/base/symb-mvs.mkiv) fontssymbols loaded: library 'mvs') (/home/reviczky/Downloads/ctx/presentation/src/s_titlepage.tex) ! LuaTeX error /usr/share/texmf/tex/context/base/back-exp.lua:1237: attempt to call global 'gmatch' (a nil value) stack traceback: /usr/share/texmf/tex/context/base/back-exp.lua:1237: in function 'collectresults' /usr/share/texmf/tex/context/base/back-exp.lua:1284: in function 'collectresults' /usr/share/texmf/tex/context/base/back-exp.lua:1284: in function 'collectresults' /usr/share/texmf/tex/context/base/back-exp.lua:1284: in function 'collectresults' /usr/share/texmf/tex/context/base/back-exp.lua:1284: in function 'collectresults' /usr/share/texmf/tex/context/base/back-exp.lua:1284: in function 'collectresults' /usr/share/texmf/tex/context/base/back-exp.lua:1284: in function 'collectresults' /usr/share/texmf/tex/context/base/back-exp.lua:1284: in function 'collectresults' /usr/share/texmf/tex/context/base/back-exp.lua:1284: in function 'collectresults' /usr/share/texmf/tex/context/base/back-exp.lua:1284: in function 'collectresults' ... /usr/share/texmf/tex/context/base/back-exp.lua:1284: in function 'collectresults' /usr/share/texmf/tex/context/base/back-exp.lua:1284: in function 'collectresults' /usr/share/texmf/tex/context/base/back-exp.lua:1284: in function 'collectresults' /usr/share/texmf/tex/context/base/back-exp.lua:1284: in function 'collectresults' /usr/share/texmf/tex/context/base/back-exp.lua:1284: in function 'collectresults' /usr/share/texmf/tex/context/base/back-exp.lua:1354: in function 'nodes_handlers_export' local nodes_references_handler = nodes.references.ha...:14: in function local nodes_references_handler = nodes.references.ha...:8 (tail call): ? (tail call): ? main ctx instance:1: in main chunk. 1 \input env_6ccs3prj 2 3 \starttext 4 % Ignite style 5 \input s_titlepage 6 \input s_outline 7 \input s_timeline 8 \input s_motivation 9 \input s_requirements 10 \input s_literature 11 \input s_design 12 \input s_dependencies 13 \input s_rosetta 14 \input s_testing 15 \input s_statistics 16 \input s_loc \finalizeshipoutbox ...alize(tex.box[\number #1])} \actualshipout ...zeshipoutbox \shipoutscratchbox \setbox \scratchbox \hbox ... \myshipout ...\@@ppmethod }\gobbleoneargument {#1} \setnextrealpageno \afters... \dofinaloutput ...hbox {\vbox {\dopagebody #1#2}}} \the \everyaftershipout \a... \finaloutput ...EAEAEA \dofinaloutput \fi \fi #1#2 \resetselectiepagina \doin... \sidefloatoutput ...e \else \finalsidefloatoutput \global \sidefloatvsize \n... ... l.6 \input s_outline The lua interpreter ran into a problem, so the remainder of this lua chunk will be ignored. (/home/reviczky/Downloads/ctx/presentation/src/s_outline.tex) (/home/reviczky/Downloads/ctx/presentation/src/s_timeline.tex /home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/schemes/71a0e8c53d009161a7785acb26954f7f.png) (/home/reviczky/Downloads/ctx/presentation/src/s_motivation.tex /home/reviczky/Downloads/ctx/presentation/src/graphics/thumbnail_timeline.png (PNG copy) Overfull \hbox (1.67787pt too wide) in paragraph at
Re: [NTG-context] Proposed changes for Croatian language
While we're at it, attached is a patched one for the Hungarian language (against the current beta). Adam Sorry, there's one typo in it: line 2232: -hu=ábrák, +hu=Ábrák, Adam ___ 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] handouts blank
I tested your code both with mkii and mkiv, and everything seems to work correctly, both with frame= on or off. What version of context/luatex do you use? I suspect its a problem in luatex, but I have to experiment with it more. I'm using context beta 2011.04.24 with luatex svn rev 4232, but I'm updating to the latest to test it again. Adam ___ 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] handouts blank
Upgrading to the latest context beta (2011.05.01) solved the problem. Adam ___ 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] simpleslides + combinepages != qpdf
Hi Here's another qpdf problem I've encountered lately. Not sure if it's ConTeXt's fault (simpleslides perhaps?) or qpdf. Given the following very minimalistic examples: % slides.tex \usemodule[simpleslides][style=BigNumber,font=Helvetica] \starttext \placeTitle \stoptext %handout.tex \setuppapersize [A4][A4] % or [A4,landscape][A4,landscape] \setuplayout [header=0pt,footer=1cm,backspace=1cm,topspace=1cm,width=middle,height=middle] \setupfootertexts [presentation---\currentdate\space---\space\pagenumber] \starttext \combinepages[slides][nx=2,ny=3,frame=on] \stoptext context slides.tex qpdf --linearize slides.pdf slidesout.pdf = results in the expected outputs context handout.tex = compiles fine and output is as expected qpdf --linearize handout.pdf handoutout.pdf = aborts with the following error: object stream 21 (object 31 0, file position 1601): unknown token while reading object (nullnullnullnull) All with context beta 2011.05.01 and luatex r4233 Can anyone confirm this? Any thoughts? Adam ___ 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] simpleslides + combinepages != qpdf
Does the problem appear if you use do not use simpleslides? If not, does it appear if you use style=default? This will help narrowing down the cause. I've tried a Hello world file and also a non-simpleslides presentation tex file, all of them work. So it seems it's simpleslides and yeah, you where right, it's the styles. I'm using Split for my presentation and as for the minimal I've provided BigNumber, both fail at some point. Using style=default, does not have this problem with qpdf. I'm still trying out different styles and different slide content ... Adam ___ 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] simpleslides + combinepages != qpdf
Hmm, well, I can reproduce this on my presentation even with style=default ... Adam ___ 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] simpleslides + combinepages != qpdf
Right, I have a feeling that this is MetaPost related, hence the random problems with different styles. I can reproduce this now without simpleslides too, using only metapost. Here's a minimal example: Get logo_ignite.mp from: http://pastebin.com/raw.php?i=VqvcWniu % slides.tex \startreusableMPgraphic{ignite} input logo_ignite; \stopreusableMPgraphic \starttext \reuseMPgraphic{ignite} \stoptext %handout.tex \setuppapersize [A4][A4] % or [A4,landscape][A4,landscape] \setuplayout [header=0pt,footer=1cm,backspace=1cm,topspace=1cm,width=middle,height=middle] \setupfootertexts [presentation---\currentdate\space---\space\pagenumber] \starttext \combinepages[slides][nx=2,ny=3,frame=on] \stoptext context slides.tex context handout.tex qpdf --linearize handout.pdf out.pdf results in: object stream 21 (object 31 0, file position 1547): unknown token while reading object (nullnullnullnull) ConTeXt ver: 2011.05.01 12:50 MKIV fmt: 2011.5.2 int: english/english mkiv lua stats luatex banner - this is luatex, version beta-0.71.0-2011050213 (rev 4233) Adam ___ 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] simpleslides + combinepages != qpdf
found it: There were 4 null objects in an ObjStm in handout.pdf, stored now compress: nullnullnullnull (not yet so in 0.70.x). Each null object has a correct pointer to its begin (the 'n'), so one should suppose that an object ends at the character ('l') just before the start ('n') of the next null object. Like in the TeX string pool. But qpdf gives an error about a nullnullnullnull object (fully ignoring the start of the 2nd null object!), and also Adobe Reader 9 quits with an error. Interestingly xpdf displays the file handout.pdf without any problem. The problem is fixed by adding a space at to the end of each object within an ObjStm, so there is now null null null null, see SVN 4242. No comment in the PDF Ref. on this. Looks like a flaw in qpdf and the Reader? Regards, Hartmut Thanks Hartmut for fixing this! On another note I can't seem to compile the latest trunk anymore, it fails with: ... mv -f .deps/libluatex_a-writejp2.Tpo .deps/libluatex_a-writejp2.Po CWEBINPUTS=../../../source/texk/web2c/luatexdir/image TEXMFCNF=../../../source/texk/web2c/../kpathsea ./ctangle writepng.w This is CTANGLE, Version 3.64 (TeX Live 2011) Writing the output file (writepng.c):.500. Done. (No errors were found.) gcc -DHAVE_CONFIG_H -I. -I../../../source/texk/web2c -I./w2c -I/home/reviczky/Downloads/test/luatex-dir/luatex-0.70.0~svn201105022255r{revno}/build/texk -I/home/reviczky/Downloads/test/luatex-dir/luatex-0.70.0~svn201105022255r{revno}/source/texk -DNO_DEBUG -I/usr/include/libpng12 -DPOPPLER_VERSION=\0.16.4\ -I/usr/include/poppler -I/home/reviczky/Downloads/test/luatex-dir/luatex-0.70.0~svn201105022255r{revno}/build/libs/obsdcompat -I/home/reviczky/Downloads/test/luatex-dir/luatex-0.70.0~svn201105022255r{revno}/source/libs/obsdcompat -I../../../source/texk/web2c/libmd5 -I../../../source/texk/web2c/luatexdir -I../../../source/texk/web2c/luatexdir/lua51 -DpdfTeX -I../../../source/texk/web2c/synctexdir -DSYNCTEX_ENGINE_H='synctex-luatex.h' -Wall -Wunused -Wimplicit -Wreturn-type -Wdeclaration-after-statement -Wno-unknown-pragmas -Wmissing-prototypes -Wmissing-declarations -g -Wall -O2 -Wdeclaration-after-statement -MT libluatex_a-writepng.o -MD -MP -MF .deps/libluatex_a-writepng.Tpo -c -o libluatex_a-writepng.o `test -f 'writepng.c' || echo '../../../source/texk/web2c/'`writepng.c ../../../source/texk/web2c/luatexdir/image/writepng.w: In function ‘write_png’: ../../../source/texk/web2c/luatexdir/image/writepng.w:558:19: error: ‘PNG_FP_1’ undeclared (first use in this function) ../../../source/texk/web2c/luatexdir/image/writepng.w:558:19: note: each undeclared identifier is reported only once for each function it appears in make[1]: *** [libluatex_a-writepng.o] Error 1 make[1]: Leaving directory `/home/reviczky/Downloads/test/luatex-dir/luatex-0.70.0~svn201105022255r{revno}/build/texk/web2c' luatex binary not stripped ls: cannot access build/texk/web2c/luatex: No such file or directory make: *** [build-stamp] Error 2 ... Is that a problem on my end? Adam ___ 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] simpleslides + combinepages != qpdf
the PNG_FP_1 i have added recently, it's defined in png.h. Must be some configure problem, maybe system png.h is used instead of the one coming with the libpng within luatex. i don't have the problem here. Sorry, needs investigation... I was indeed using the system's libpng, my bad. Strange though, that this comes out just now. Anyhow, thanks. Adam ___ 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] modules with no author
Thanks for the info. Now I'll think of what to do with the other module. Patrick I you mean the gantt module, have a look at the mailinglist: http://www.ntg.nl/pipermail/ntg-context/2010/054051.html It was advised to upload it to tlcontrib instead, so the module is located here: http://tlcontrib.metatex.org/cgi-bin/package.cgi/ruid=4295644089/action=view/id=300 As I could neither upload it to the minimals module site nor could I delete the empty module page, this is why you have the module with no author etc. Adam ___ 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] handouts blank
Hi, I'm trying to make some (mkiv) handouts from my simpleslides presentation. Unfortunately the resulting pdf is blank for the slides, no frames either. Can someone give me an example that works? Here's my minimal: % slides.tex \usemodule[simpleslides][style=BigNumber,font=Helvetica] \setupTitle [title={Title}, author={Author}, date={\currentdate}] \starttext \placeTitle \SlideTitle{Title2} content \SlideTitle{Title3} content \stoptext % handout.tex \setuppapersize [A4][A4] % or [A4,landscape][A4,landscape] \setuplayout [header=0pt,footer=1cm,backspace=1cm,topspace=1cm,width=middle,height=middle] \setupfootertexts [presentation---\currentdate\space---\space\pagenumber] \starttext \combinepages[slides][nx=2,ny=3,frame=on] \stoptext I also tried it with the standard presentation examples and using .tex and .pdf suffixes for the combinepages command. Adam ___ 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] handouts blank
I'm trying to make some (mkiv) handouts from my simpleslides presentation. Unfortunately the resulting pdf is blank for the slides, no frames either. Can someone give me an example that works? So I just ran tested it with mkii, and there it works. Is there any mkiv way for doing a handout? Adam ___ 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] LuaTeX bug in 4096?
Hi This is very likely luatex related, but I hope it's fine to post it here. I'm using this example: http://www.ntg.nl/pipermail/ntg-context/2011/058519.html This works with luatex svn rev 4195, but with the latest 4196 I get this: /home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/schemes/https-chart.googleapis.com-chart-cht-p3-chs-250x100-chd-t-60-40-chl-Hello-World (PNG copy) mtx-context | fatal error: no return code, message: luatex: execution interrupted% No logs are created. Adam ___ 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] LuaTeX bug in 4096?
thanks for the report and sorry for inconvenience. I'm sifting through the PDF backend, it's not fully stable yet. Will check... Regards, Hartmut Don't worry, I just thought I mention it, in case somebody else is running into it. Thanks for the reply. Cheers Adam ___ 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] label bug with latest beta (2011.04.22)
some day leaving out the \stop's will backfire on you why oh why did I never think about that (probably thought it was a setup)? thanks for pointing that out add added a fallback in the beta much appreciated Adam ___ 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] label bug with latest beta (2011.04.22)
Hi With the latest beta (2011.04.22) I cannot compile my thesis any more. I think I've narrowed it down to this minimal example: %%% \starttext \startpart[title={Table of Contents}] \completecontent[criterium=all] \stoptext %%% ! LuaTeX error /usr/share/texmf/tex/context/base/strc-lst.lua:496: no string to print stack traceback: [C]: in function 'texsprint' /usr/share/texmf/tex/context/base/strc-lst.lua:496: in function 'label' main ctx instance:1: in main chunk. Shouldn't be the label function something like this: function lists.label(n) local l = lists.result[n] local t = l.titledata if t then texsprint(t.label or 0) -- 0 if no label? end end Can someone confirm this? It works with the 2011.04.20 beta, logs attached. Adam (toc.tex ConTeXt ver: 2011.04.22 18:17 MKIV fmt: 2011.4.23 int: english/english system cont-new.mkiv loaded (/usr/share/texmf/tex/context/base/cont-new.mkiv system beware: some patches loaded from cont-new.mkiv ) system toc.top loaded system options begin of optionfile system options system options % runtime options files (command line driven) system options \unprotect system options % feedback and basic job control system options % handy for special styles system options \startluacode system options document = document or { } system options document.arguments={ system options } system options document.files={ system options toc.tex, system options } system options \stopluacode system options % process info system options \setupsystem[inputfile=toc.tex] system options \setupsystem[\c!n=2,\c!m=2] system options % modes system options % options (not that important) system options \startsetups *runtime:options system options \stopsetups system options % styles and modules system options \startsetups *runtime:modules system options \stopsetups system options % done system options \protect \endinput system options system options end of optionfile (toc.top) fontslatin modern fonts are not preloaded languageslanguage en is active {/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.map} fontspreloading latin modern fonts (second stage) (/usr/share/texmf/tex/context/base/type-siz.mkiv) (/usr/share/texmf/tex/context/base/type-otf.mkiv){/usr/share/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map} fontsvirtual math unable to resolve name mapsfromchar fontsfallback modern rm 12pt is loaded system begin file toc.tex at line 1 structuresectioning part @ level 1 : 1 - Table of Contents backend xmp using file '/usr/share/texmf/tex/context/base/lpdf-pdx.xml' pagesflushing realpage 1, userpage 1, subpage 1 structuresectioning title @ level 2 : 1.0 - \headtext {content} ! LuaTeX error /usr/share/texmf/tex/context/base/strc-lst.lua:496: no string to print stack traceback: [C]: in function 'texsprint' /usr/share/texmf/tex/context/base/strc-lst.lua:496: in function 'label' main ctx instance:1: in main chunk. system tex error on line 11 in file toc.tex: LuaTeX error ... 1 \starttext 2 \startpart[title={Table of Contents}] 3 \completecontent[criterium=all] 4 \stoptext 5 \listsymbol@default label(\currentlistindex )} }\leftlabeltext \currentli... argument ...!numbercommand {\currentlistsymbol } }\hfill \domakelistelement ...ndgroup }{#3{#4}}\else #3{#4 }\fi argument ...mmand {\currentlistsymbol }}\hfill } } \firstoftwoarguments #1#2-#1 argument ...thc \zeropoint \setbox 2\emptyhbox } \setbox 4\hbox {\doif {\li... ... l.3 \completecontent[criterium=all] ? q OK, entering \batchmode... pagesflushing realpage 2, userpage 2 system end file toc.tex at line 4 )/usr/share/texmf/fonts/opentype/public/lm/lmroman12-regular.otf mkiv lua stats used config file - /usr/share/texmf/web2c/texmfcnf.lua mkiv lua stats used cache path - /home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d mkiv lua stats input load time - 0.121 seconds mkiv lua stats stored bytecode data - 284 modules, 58 tables, 342 chunks mkiv lua stats cleaned up reserved nodes - 33 nodes, 9 lists of 423 mkiv lua stats node memory usage - 19 glue_spec mkiv lua stats node
Re: [NTG-context] label bug with latest beta (2011.04.22)
Further, I have two more problems with the new label system: 1) The label Part is not shown any more in the ToC. 2) Showing the label in the ToC but not in the parts (bodypart for example) doesn't work any more with this solution: http://www.ntg.nl/pipermail/ntg-context/2011/058614.html Here's an example showing both problems: \setuphead [chapter] [bodypartlabel=] % uncommenting this adds the label again, but in both the toc and the bodypart \setuphead [section] [bodypartlabel=] % uncommenting this adds the label again, but in both the toc and the bodypart %\setuplabeltext [en] [part={Part }] % no difference, Part is not shown \setuplabeltext [en] [chapter={Chapter }] \setuplabeltext [en] [section={Section }] \starttext \startfrontmatter \completecontent [criterium=all,label=yes] \stopfrontmatter \startbodymatter \startpart [title={Table of Contents}] \startchapter [title={Chapter}] \startsection [title={Section}] \stopbodymatter \stoptext Adam ___ 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] The appendices envrionment and title in toc
Set the labels with the “en” tag: \setuplabeltext[en] [chapter=Chapter ] \setuplabeltext[en][appendix=Appendix ] Excellent, thanks. My last question about labels: If I don't use setuplist, then I have labels in the document and no labels in the toc. How can I achieve the opposite, means labels in the toc (like: Chapter 1, Appendix A, ...) but only the numbers in the document (like: 1 Chaptertitle, A Appendixtitle, ...) Adam ___ 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] The appendices envrionment and title in toc
The names of the keys are - frontpartlabel, - bodypartlabel, - appendixlabel and - backpartlabel Appreciate! I've added this to the wiki, because I had a look at it earlier on but didn't find anything regarding the labels in setuphead. Adam ___ 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] How to add metapost 3rd party modules??
But it run into compiling error. For you convenience, append the sources for mpost and context. As for metauml, have a look at this example: http://www.ntg.nl/pipermail/ntg-context/2010/049511.html This works for me with the latest beta. For quick testing purposes just put the metauml (mp) files where your tex file is. Adam PS: The label offset problem is still present, so don't be surprised. ___ 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] rules with different thickness
I slightly modified the code and the output is now better than before, please add it to the wiki. \startuseMPgraphic{tableborders} draw leftboundary OverlayBox withpen pensquare scaled \frameddimension {leftrulethickness} ; draw rightboundary OverlayBox withpen pensquare scaled \frameddimension {rightrulethickness} ; draw topboundaryOverlayBox withpen pensquare scaled \frameddimension {toprulethickness} ; draw bottomboundary OverlayBox withpen pensquare scaled \frameddimension{bottomrulethickness} ; clip currentpicture to OverlayBox leftenlarged (\frameddimension {leftrulethickness}/2) rightenlarged (\frameddimension {rightrulethickness}/2) topenlarged(\frameddimension {toprulethickness}/2) bottomenlarged (\frameddimension{bottomrulethickness}/2) ; setbounds currentpicture to OverlayBox ; \stopuseMPgraphic \defineoverlay[tableborders][\useMPgraphic{tableborders}] \startsetups tableborders \setupTABLE [ background={color,tableborders}, frame=off, backgroundoffset=0pt, leftrulethickness=\framedparameter{rulethickness}, rightrulethickness=\framedparameter{rulethickness}, toprulethickness=\framedparameter{rulethickness}, bottomrulethickness=\framedparameter{rulethickness}] \setupTABLE[row] [odd] [backgroundcolor=lightgray] \setupTABLE[row] [first][backgroundcolor=gray,bottomrulethickness=2pt] \setupTABLE[row] [last] [toprulethickness=2pt,bottomrulethickness=2pt] \setupTABLE[first][last] [leftrulethickness=2pt] \setupTABLE[last] [last] [rightrulethickness=2pt] \stopsetups \starttext \bTABLE \dorecurse{7}{\bTR\dorecurse{3}{\bTD#1-##1\eTD}\eTR} \eTABLE \blank \bTABLE[setups=tableborders] \dorecurse{7}{\bTR\dorecurse{3}{\bTD#1-##1\eTD}\eTR} \eTABLE \stoptext Wolfgang Thanks so much for this, it looks really nice (booth the implementation and the output). I've added this to the TABLE wiki since this example above is a table, however I suspect this would work for any frame. Is there a reason why this doesn't work with mkii? I'm not using mkii for a long time now, just the wiki didn't rendered this example properly and also on my local machine it didn't show the thick rules, works perfectly with mkiv though. Cheers Adam ___ 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] setups on framed
Hi As a follow-up to this: http://www.ntg.nl/pipermail/ntg-context/2011/058569.html I was wondering if it is possible to something like this: \startsetups test \setupframed[frame=off,topframe=on,leftframe=on] \stopsetups \starttext \framed[setups=test]{A fancy title} \stoptext Adam PS: I am aware of defineframed, but I don't want a new command, I want to use different setups on exisiting framed elements. ___ 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] The appendices envrionment and title in toc
It has to be fixed by Hans. ConTeXt looks only for the label of the current heading (e.g. chapter) and not for the label which is set for a certain sectionblock (e.g. “chapter” for the bodypart and “appendix” for the appendices). I wrote a minimal which can be used to see the problem and to test for the correct result once the thing is resolved. \setuplabeltext [chapter=Chapter ] \setuplabeltext[appendix=Appendix ] \setuplist[chapter][label=yes,width=5em] \starttext \startfrontmatter \completecontent \stopfrontmatter \startbodymatter \chapter{Bodypart} \stopbodymatter \startappendices \chapter{Appendix} \stopappendices \stoptext Wolfgang Why does this not work with \mainlanguage[uk] How can I force this to be shown? Adam ___ 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] Google Chart URL
Do you have “\enabledirectives[schemes.cleanmethod=md5]” in your preamble? Silly me, I've forgot that. Thanks again for your help! Adam ___ 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] rules with different thickness
It’s the same as in the past, use MetaPost but there are better ways to change values of certain borders: As much as I like and prefer this solution, I can't get it to work as the old one. With the old one I had a frame 1pt, and just made a 2pt metapost frame around the last row. With the new example of yours I've came up with a minimal example that I've attached. I have to do the table setups, since I'm making the table via a macro, but for the simplicity I left that out from the minimal example. The problem is, that every even row seems to have thicker right/left and top borders, why is that? With both solution if I just draw a thicker bottom line it goes off on the right and left side. Can this be solved somehow? Thanks, Adam \startuseMPgraphic{tableborders} draw leftboundary OverlayBox withpen pensquare scaled \frameddimension{leftrulethickness}; draw rightboundary OverlayBox withpen pensquare scaled \frameddimension{rightrulethickness}; draw topboundary OverlayBox withpen pensquare scaled \frameddimension{toprulethickness}; draw bottomboundary OverlayBox withpen pensquare scaled \frameddimension{bottomrulethickness}; setbounds currentpicture to OverlayBox ; \stopuseMPgraphic \defineoverlay[tableborders][\useMPgraphic{tableborders}] \setupTABLE [background={color,tableborders}, frame=off, leftrulethickness=\framedparameter{rulethickness}, rightrulethickness=\framedparameter{rulethickness}, toprulethickness=\framedparameter{rulethickness}, bottomrulethickness=\framedparameter{rulethickness}] \starttext \setupTABLE[row][odd][background={color,tableborders},backgroundcolor=lightgray] \setupTABLE[row][first][background={color,tableborders},backgroundcolor=gray,bottomrulethickness=2pt] \setupTABLE[row][last][background={color,tableborders},toprulethickness=2pt,bottomrulethickness=2pt] \setupTABLE[first][last][background={color,tableborders},leftrulethickness=2pt] \setupTABLE[last][last][background={color,tableborders},rightrulethickness=2pt] \bTABLE \bTR \bTD 1One \eTD \bTD 1Two \eTD \bTD 1Three \eTD \eTR \bTR \bTD 2One \eTD \bTD 2Two \eTD \bTD 2Three \eTD \eTR \bTR \bTD 3One \eTD \bTD 3Two \eTD \bTD 3Three \eTD \eTR \bTR \bTD 4One \eTD \bTD 4Two \eTD \bTD 4Three \eTD \eTR \bTR \bTD 5One \eTD \bTD 5Two \eTD \bTD 5Three \eTD \eTR \bTR \bTD 5One \eTD \bTD 5Two \eTD \bTD 5Three \eTD \eTR \bTR \bTD 6One \eTD \bTD 6Two \eTD \bTD 6Three \eTD \eTR \bTR \bTD 7One \eTD \bTD 7Two \eTD \bTD 7Three \eTD \eTR \eTABLE \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] Widget and mandatory Rect field?
17 0 obj /Type /Annot /Q 0 /Subtype /Widget /Parent 16 0 R /DA (/rmtf 11.9552 Tf 1.1955 Ts 0 0 0 rg 0 0 0 RG) /MK /CA () /F 4 /Rect [0 14.4275 59.7758 26.3827] endobj 18 0 obj /Type /Annot /Q 0 /Subtype /Widget /Parent 16 0 R /DA (/rmtf 11.9552 Tf 1.1955 Ts 0 0 0 rg 0 0 0 RG) /MK /CA () /F 4 /Rect [0 0 59.7758 11.9552] endobj which look like Annot's with Rect's to me. There is a parent field I was puzzled by this too, but apparently its the parent where the error message is thrown out (rightly or falsely). Are you saying that Evince does forms (and Javascript as it's associated) or is it checking something that is not interpreted anyway? Officially a viewer should ignore annots that it cannot handle. Evince does forms by now, at least to some extent, without JavaScript of course. I've tested this: http://help.adobe.com/en_US/Acrobat/9.0/Samples/interactiveform_enabled.pdf which gives me a Unimplemented annotation: POPPLER_ANNOT_LINE, please post a bug report in Evince bugzilla (http://bugzilla.gnome.org) with a testcase. So there must be some checking. Anyhow, in context we've always had such widgets implemented using a parent / child model and it's the child that matters for rendering (and it definitely has a Rect as it's an Annot) while the parent is just a dictionary and not an annot (one can argue that the Subtype key is not needed there but - at least in the past - it had to be there.) Sounds fair enough, and I'm not complaining :). So, unless I'm sure what (and if something) is wrong I'll do nothing. (Acrobat preflights the document all right and some widgets types are too instable to mess with too much anyway.) That's fine, and as long as its working I don't really care. Hans Cheers Adam ___ 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] Google Chart URL
\asciimode can be overkill because it makes also “%” a normal character, better you define a command which change the catcodes. \def\googlechart {\begingroup \setcatcodetable\vrbcatcodes \dodoubleempty\dogooglechart} \def\dogooglechart[#1][#2]% {\endgroup \externalfigure[#1][method=png,#2]} \starttext \googlechart[https://chart.googleapis.com/chart?cht=p3chs=250x100chd=t:60,40chl=Hello|World] \stoptext Wolfgang Thanks, that looks really nice, but somehow it doesn't work with my url: http://chart.apis.google.com/chart?chs=350x220cht=p3chd=s:G99pchdl=2|1|1|6|2|0|52|52|2|2|1|1|2|2|2|2|2|1|1|2|2|1|1|1|2|1|1chdlp=bchp=0.1chl=fsharp|gettext|gettext-base|Others%20%2824%29chma=95,95chtt=Launchpad+Statistics+for+%7Ereviczky+-+ppachts=676767,13.5 and I can't really figure out why ... Adam ___ 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] rules with different thickness
Hi I stumbled upon this while making a table with rules, where I wanted to have a particular row highlighted with a thicker border: http://www.mail-archive.com/ntg-context@ntg.nl/msg33678.html Since this was posted more then two years ago, I just wanted to know if anything changed on this front? Having r|l|t|b-offsets I thought I could use the same for rulethickness, but according to this, not yet. The metapost workaround works still fine, so for now I'm using that, just want to know what's the status on this. Adam ___ 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] bug with \cite in latest beta (2011.04.13)
Thanks Hans! That was it, now it works again. Best wishes Adam From: Hans Hagen [pra...@wxs.nl] Sent: 17 April 2011 15:57 To: Reviczky, Adam Cc: mailing list for ConTeXt users Subject: Re: [NTG-context] bug with \cite in latest beta (2011.04.13) On 16-4-2011 11:51, Reviczky, Adam wrote: Sadly that didn't help at all (neither on my thesis file nor on the minimal example). I'm attaching the minimal example with the logs. Adam PS: I've changed the line 191 and regenerated the formats. line 157: local current = tonumber(found.entries and found.entries.text) -- tonumber needed i wonder why this surfaces now - 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] Widget and mandatory Rect field?
Hi I have a PDF with widgets and everything's fine with it, and I'm testing it by opening it with Adobe Reader. Now I had a look again with other viewers and when I open it with evince (poppler based), then it gives me some strange errors like this: Error: Annotation rectangle is wrong type Though it opens it fine and no problems at all. I googled a bit and found a bug report on this: https://bugs.freedesktop.org/show_bug.cgi?id=29954 There it is said that its ConTeXt's fault, as It has a Widget annotation without the mandatory Rect field. Is it really so? I couldn't find any threads on this on the list. Can someone confirm this, can this be even fixed? Adam PS: As there's an attached PDF on the bug report, but with mkii, I'm attaching a minimal mkiv PDF (widget.pdf), if that helps. made with: %%% \setupinteraction[state=start] \setuppagenumbering[location=] \starttext \definefieldbody[email][type=line] \fieldbody[email] \stoptext %%% widget.pdf Description: widget.pdf ___ 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] bug with \cite in latest beta (2011.04.13)
So does anybody have a working example with 2011.04.13 for the cite? Using this example gives me a luatex error, and it used to work with earlier beta's: % sample.bib: http://wiki.contextgarden.net/sample_bib %%% \setupbibtex[database={sample},sort=author] % apa works, but I don't want apa % \setuppublications[alternative=apa] % neither num or default doesn't work \setuppublications[alternative=num] \starttext % \cite[][Eijkhout1991] works, but produces not a numbered output \cite[Eijkhout1991] \placepublications[criterium=all] \stoptext %%% The error I get is: ! LuaTeX error /usr/share/texmf/tex/context/base/bibl-tra.lua:192: attempt to compare number with string stack traceback: /usr/share/texmf/tex/context/base/bibl-tra.lua:192: in function 'resolve' main ctx instance:1: in main chunk. Adam ___ 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] Google Chart URL
Hi I have problems with special characters in URL's. What I wanted at first place, is embedding a google chart image, so I've tried this: \starttext \externalfigure[{https://chart.googleapis.com/chart?cht=p3chs=250x100chd=t:60,40chl=Hello|World}] \stoptext which fails with: ! Undefined control sequence. system tex error on line 3 in file test.tex: Undefined control sequence ... as far as I can tell it's the | symbol where it has problems. I came across this thread: http://www.mail-archive.com/ntg-context@ntg.nl/msg25806.html but no solution there either. Then I've tried to move from externalfigure to useURL, but the same problem exists. For obvious reasons I don't want to use url shorteners, as with this kind of URL I can manipulate the resulting image inside the tex source. Any thoughts or solutions? Adam ___ 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] Google Chart URL
\starttext \externalfigure[https://chart.googleapis.com/chart?cht=p3chs=250x100chd=t:60,40chl=Hello\letterbar World][method=png,scale=4000] \stoptext Wolfgang Thank you very much. Adam ___ 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] Google Chart URL
Hmm I still have some problems with this. How would it look like for this URL? I've tried asciimode and \letterbar + \letterpercent, but no luck. http://chart.apis.google.com/chart?chs=350x220cht=p3chd=s:G99pchdl=2|1|1|6|2|0|52|52|2|2|1|1|2|2|2|2|2|1|1|2|2|1|1|1|2|1|1chdlp=bchp=0.1chl=fsharp|gettext|gettext-base|Others%20%2824%29chma=95,95chtt=Launchpad+Statistics+for+%7Ereviczky+-+ppachts=676767,13.5 Thanks Adam ___ 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] bug with \cite in latest beta (2011.04.13)
Sadly that didn't help at all (neither on my thesis file nor on the minimal example). I'm attaching the minimal example with the logs. Adam PS: I've changed the line 191 and regenerated the formats. From: Hans Hagen [pra...@wxs.nl] Sent: 16 April 2011 22:29 To: mailing list for ConTeXt users Cc: Reviczky, Adam Subject: Re: [NTG-context] bug with \cite in latest beta (2011.04.13) On 16-4-2011 8:53, Reviczky, Adam wrote: So does anybody have a working example with 2011.04.13 for the cite? Using this example gives me a luatex error, and it used to work with earlier beta's: % sample.bib: http://wiki.contextgarden.net/sample_bib %%% \setupbibtex[database={sample},sort=author] % apa works, but I don't want apa % \setuppublications[alternative=apa] % neither num or default doesn't work \setuppublications[alternative=num] \starttext % \cite[][Eijkhout1991] works, but produces not a numbered output \cite[Eijkhout1991] \placepublications[criterium=all] \stoptext %%% The error I get is: ! LuaTeX error /usr/share/texmf/tex/context/base/bibl-tra.lua:192: attempt to compare number with string stack traceback: /usr/share/texmf/tex/context/base/bibl-tra.lua:192: in function 'resolve' main ctx instance:1: in main chunk. Does changing the line before it helps? 191:if first and last then -- also test on last must be some weird border case. 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 - @STRING{hh = {Hans Hagen}} @ELECTRONIC{hh2010, author = hh, year = {2010}, title = {Metafun. \CONTEXT\ mkiv}, url = {http://www.pragma-ade.nl/general/manuals/metafun-s.pdf}, } @ARTICLE{hh2010a, author = hh, title = {The Font Name Mess}, journal = {MAPS}, year = {2010}, volume = {40}, pages = {2-8}, keywords = {context}, } @ARTICLE{hh2010b, author = hh, title = {Grouping in Hybrid Environments}, journal = {MAPS}, year = {2010}, volume = {40}, pages = {67-71}, keywords = {context}, } @BOOK{Eijkhout1991, title = {\TeX\ by Topic. A \TeX nician's Reference}, publisher = {Addison-Wesley}, year = {1991}, author = {Victor Eijkhout}, address = {London}, keywords = {general}, } \setupbibtex[database={sample},sort=author] % \setuppublications[alternative=num] \starttext \cite[Eijkhout1991] \placepublications[criterium=all] \stoptext (test.tex ConTeXt ver: 2011.04.13 09:23 MKIV fmt: 2011.4.16 int: english/english system cont-new.mkiv loaded (/usr/share/texmf/tex/context/base/cont-new.mkiv system beware: some patches loaded from cont-new.mkiv ) system test.top loaded system options begin of optionfile system options system options % runtime options files (command line driven) system options \unprotect system options % feedback and basic job control system options % handy for special styles system options \startluacode system options document = document or { } system options document.arguments={ system options } system options document.files={ system options test.tex, system options } system options \stopluacode system options % process info system options \setupsystem[inputfile=test.tex] system options \setupsystem[\c!n=1,\c!m=1] system options % modes system options % options (not that important) system options \startsetups *runtime:options system options \stopsetups system options % styles and modules system options \startsetups *runtime:modules system options \stopsetups system options % done system options \protect \endinput system options system options end of optionfile (test.top) fontslatin modern fonts are not preloaded languageslanguage en is active publications wrote a new auxiliary file \jobname.aux {/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.map} fontspreloading latin modern fonts (second stage) (/usr/share/texmf/tex/context/base/type-siz.mkiv) (/usr/share/texmf/tex/context/base/type-otf.mkiv){/usr/share/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map} fontsvirtual math unable to resolve name mapsfromchar fontsfallback modern rm 12pt is loaded system begin file test.tex at line 4 ! LuaTeX error /usr/share/texmf/tex/context/base/bibl-tra.lua:192: attempt to compare number with string stack
Re: [NTG-context] bug with \cite in latest beta (2011.04.13)
there are some problems with the citecommand in the latest beta. I always get a LuaTeX error... I've hit the same problem, though apa doesn't seem to be affected, so in the meantime you can use: \setuppublications[alternative=apa] Adam ___ 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] frames within frame
Hi If I have two frames within one frame, how can I vertically align the first (well, or both) framed to top or middle. Here's a minimal example: \starttext \framed[strut=no,height=fit,framecolor=green,background=screen,backgroundscreen=.80] {\framed[height=fit,width=100pt,background=screen,backgroundscreen=.90,frame=on,autowidth=force,align=middle]{first box wants to be on top/middle} \framed[offset=none,height=100pt,width=100pt,background=screen,backgroundscreen=.90,frame=on]{second box}} \stoptext So here the second framed defines the hight, and the first framed is on the bottom of the big outer frame. All I want is to have the first box on top or middle respectively. I've tried location, but that didn't work. Adam ___ 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] frames within frame
You need “location=middle” for the *inner* frames. I'm so sure that I've tried that already, anyhow. It works as expected, so thanks! Adam ___ 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] beta (broken?)
I'm getting this since today morning: mtx-context | run 1: luatex --fmt=/home/08/reviczky/local32/texlive/experimental/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/cont-en --lua=/home/08/reviczky/local32/texlive/experimental/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/cont-en.lui --backend=pdf ./test.tex This is LuaTeX, Version beta-0.65.0-2010121316 \write18 enabled. (test.tex ConTeXt ver: 2011.03.25 18:03 MKIV fmt: 2011.3.25 int: english/english system cont-new.mkiv loaded (/home/08/reviczky/local32/texlive/experimental/tex/texmf-context/tex/context/base/cont-new.mkiv system beware: some patches loaded from cont-new.mkiv ) system test.top loaded (test.top) fontslatin modern fonts are not preloaded languageslanguage en is active {/home/08/reviczky/local32/texlive/experimental/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map} fontspreloading latin modern fonts (second stage) (/home/08/reviczky/local32/texlive/experimental/tex/texmf-context/tex/context/base/type-siz.mkiv) (/home/08/reviczky/local32/texlive/experimental/tex/texmf-context/tex/context/base/type-otf.mkiv){/home/08/reviczky/local32/texlive/experimental/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/home/08/reviczky/local32/texlive/experimental/tex/texmf/fonts/map/dvips/lm/lm-rm.map} fontsotf loading loading: /home/08/reviczky/local32/texlive/experimental/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf (hash: lmroman12-regular) fontsotf loading font loaded okay fontsotf loading file size: 110400 fontsencoding loading (extended) adobe glyph list fatal error: this module is not for context system | total runtime: 0.878 ___ 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] more missing or ungrouped '=' after
Hi I'm getting the same lines by using setupfields (in widgets), but this time I don't even get an output. Here's the minimal example: %%% \starttext \setupfields [label,frame,horizontal] [offset=4pt,height=fit,framecolor=green,background=screen,backgroundscreen=.80] [height=40pt,width=100pt,align=middle,background=screen,backgroundscreen=.90,frame=off] [height=40pt,width=100pt,color=red,align=right,style=type,background=screen,backgroundscreen=.90,frame=off] \setupfield[widget][] \definefield [Emaila] [line] [widget] [] [pragma@wxs.nl] \field [Emaila] [your email] \stoptext %%% This runs fine and works as expected with the 2011.02.25 beta. Running it with the 2011.03.18 experimental I get these lines and NO output: checkmissing or ungrouped '=' after 'frame' in line 7 (@@fdlabel checkmissing or ungrouped '=' after 'horizontal' in line 7 (@@fdlab Also I ran into the fact that the general setup settings (setupfields) are not inherited (most likely due to the problem above). Maybe Hans is working on the fld file (as the timestamp suggests), but since I had a similar problems yesterday I better ask first. Any hints appreciated Adam ___ 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] beware: fontclass ignored
Hi Using context experimental 2011.03.18 I get this line when using definebodyfontenvironment: fontsbeware: fontclass ignored (if needed use: [fontclass][size][settings]) Minimal example: http://wiki.contextgarden.net/Reference/en/definebodyfontenvironment %%% \starttext \definefontsize[e] \definebodyfontenvironment [default] [b=4,e=10] This will be {\tfb really} {\bfe Huge} \stoptext %%% This also happens for the s-map-10 module, which seems to be broken anyway. What is the proper use of definebodyfontenvironment then? Adam ___ 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] missing or ungrouped '=' after 'reset'
Hi I'm getting lines like these since context experimental 2011.03.11 (including 2011.03.18) by using definelayout reset. checkmissing or ungrouped '=' after 'reset' in line 8 (@@ly2) checkmissing or ungrouped '=' after 'reset' in line 12 (@@ly9) Did something change around definelayout and its options or is that just a normal (verbose) message? I'm using the example on http://wiki.contextgarden.net/Layout: %%% \setuplayout[% default layout for all the pages backspace=1cm, width=middle] \definelayout[1][% set this layout on the first page backspace=6cm] \definelayout[2][reset] % reset to the default layout starting from the second page \definelayout[5][backspace=6cm] % use this layout starting from page 5 \definelayout[9][reset] % reset to the default layout starting from page 9 \starttext \showframe \dorecurse{20}{\input dawkins \blank[big] \input knuth \page} \stoptext %%% Adam ___ 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] missing or ungrouped '=' after 'reset'
The example is wrong, for \definelayout only assignments are valid parameters while \setuplayout accepts also “reset” for the first (with one argument) or second (with two arguments) argument. Hmm, but it's the only way it produces the output with the right layouts. So what needs to be changed for this example to be in a correct way (and still get the layouts right)? Thanks Adam ___ 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] lang-wrd.lua - howto count 1-, 2-, and 3-letter words?
So I tried to set words.threshold = 4 in context/base/lang-wrd.lua to smaller values but this does not change anything. You have to regenerate the formats too, after you changed the value. Otherwise you could use directly in your document: \ctxlua{languages.words.threshold=1} Adam ___ 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] Verbatim text: intext colors (mkiv)
I’m Sorry, I missed the intext part. For MkIV you need “location=text” to move the numbers in the text. Yeah, I just figured it out, though there's still a % todo: text in page-lin.mkiv, but it works. Wolfgang Thanks again. Adam ___ 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] Verbatim text: intext colors (mkiv)
Line numbers in the text as well as Works here with the last beta. I'm using the latest beta too. Attached is my PDF, do you get something different? I want to have intext numbers (inside the frame), not outside. As I said, works with mkii though. /BTEX … /ETEX (for colors) don't work. “option=commands” is now “escape=yes” Thanks, I've tried that too, but had another typo in there. So that's working now, thanks. Adam intext.pdf Description: intext.pdf ___ 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] Verbatim text: intext colors (mkiv)
Hi, When using verbatim text (for source code) in mkiv: Line numbers in the text as well as /BTEX … /ETEX (for colors) don't work. It is fine using mkii. Attached the two minimal examples. Adam \setupcolors[state=start] \starttext %% SC colors %% \definecolor [SCwhite] [r=1.0, g=1.0, b=1.0] \definecolor [SCblack] [r=0.0, g=0.0, b=0.0] \definecolor [SCblue] [r=0.0, g=0.0, b=0.75] \definecolor [SCred] [r=0.75, g=0.0, b=0.0] \definecolor [SCgrey] [r=0.376, g=0.376, b=0.376] \definecolor [SCgreen] [r=0.0, g=0.45, b=0.0] \definecolor[cirmaBlue] [r=.0,g=.2,b=.6] \defineframedtext [framedSC] [framecolor=cirmaBlue, strut=yes, offset=2mm, width=local, align=right] \definetyping[SC][option=commands, tab=2,numbering=line, before={\startframedSC}, after={\stopframedSC}] \startSC /BTEX{\color[SCred] an example starting with a comment}/ETEX /BTEX{\color[SCgrey] ``this is a string''}/ETEX .postln ; /BTEX{\color[SCgreen] \letterbackslash aSymbol}/ETEX ; /BTEX{\color[SCblue] ThisClassDoesNotExists}/ETEX ; \stopSC \stoptext \starttext \defineframedtext [framedcode] [strut=yes, offset=2mm, width=7cm, align=right] \definetyping[code][numbering=line, bodyfont=small, before={\startframedcode}, after={\stopframedcode}] \setuplinenumbering[location=intext] \startcode This is the first line This is a rather long line that is wrapped, so look how the line numbering is done Another line Last line after an empty line \stopcode \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 ___
[NTG-context] special character in filename
Hi Context fails to run with an input (filename or directoryname) that includes special characters. example files: %%% reviczky@arlequin ~/minimal % la total 0 drwxrwxr-x 1 reviczky reviczky 60 2011-03-05 19:58 ./ drwxr-xr-x 1 reviczky reviczky 2148 2011-03-05 20:00 ../ drwxrwxr-x 1 reviczky reviczky 40 2011-03-05 19:59 dir~1/ drwxrwxr-x 1 reviczky reviczky 40 2011-03-05 19:59 dir+2/ -rw-rw-r-- 1 reviczky reviczky 34 2011-03-05 19:58 test~1.tex -rw-rw-r-- 1 reviczky reviczky 34 2011-03-05 19:58 test+2.tex %%% fails to run for test~1.tex, output: %%% context test\~1.tex mtx-context | run 1: luatex --fmt=/home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/formats/cont-en --lua=/home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/formats/cont-en.lui --backend=pdf ./test~1.tex This is LuaTeX, Version beta-0.66.0-2011030112 (rev 4090) \write18 enabled. ! I can't find file `./test'. to be read again \penalty \CCC:9:126 -\penalty \plustenthousand \normalspaceprimitive * ./test~ 1.tex Please type another input file name: %%% but giving the filename again it runs: %%% ... Please type another input file name: test~1.tex (test~1.tex ConTeXt ver: 2011.02.25 22:03 MKIV fmt: 2011.3.1 int: english/english system cont-new.mkiv loaded (/usr/share/texmf/tex/context/base/cont-new.mkiv system beware: some patches loaded from cont-new.mkiv ) system test~1.top loaded (test~1.top) fontslatin modern fonts are not preloaded languageslanguage en is active {/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.map} fontspreloading latin modern fonts (second stage) (/usr/share/texmf/tex/context/base/type-siz.mkiv) (/usr/share/texmf/tex/context/base/type-otf.mkiv){/usr/share/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map} fontsfallback modern rm 12pt is loaded system begin file test~1.tex at line 1 backend xmp using file '/usr/share/texmf/tex/context/base/lpdf-pdx.xml' pagesflushing realpage 1, userpage 1, subpage 1 system end file test~1.tex at line 3 )/usr/share/texmf/fonts/opentype/public/lm/lmroman12-regular.otf mkiv lua stats used config file - /usr/share/texmf/web2c/texmfcnf.lua mkiv lua stats used cache path - /home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d mkiv lua stats input load time - 0.130 seconds mkiv lua stats stored bytecode data - 275 modules, 56 tables, 331 chunks mkiv lua stats cleaned up reserved nodes - 33 nodes, 9 lists of 411 mkiv lua stats node memory usage - 19 glue_spec mkiv lua stats node list callback tasks - 6 unique task lists, 5 instances (re)created, 2304 calls mkiv lua stats used backend - pdf (backend for directly generating pdf output) mkiv lua stats loaded patterns - en::2 mkiv lua stats language load time- 0.057 seconds , nofpatterns: 1 mkiv lua stats callbacks - 2440 direct, 2929 indirect, 5369 total mkiv lua stats lxml preparation time - 0.000 seconds, 0 nodes, 11 lpath calls, 0 cached calls mkiv lua stats result saved in file - test~1.pdf mkiv lua stats loaded fonts - 33 files: stmary10.afm eufb10.tfm eufb7.tfm eufm10.tfm eufm7.tfm msam10.tfm msam7.tfm msbm10.tfm msbm7.tfm lmmono12-regular.otf lmmono8-regular.otf lmmono9-regular.otf lmroman12-bold.otf lmroman12-regular.otf lmroman7-bold.otf lmroman7-regular.otf lmroman9-bold.otf lmroman9-regular.otf lmsans12-regular.otf lmsans8-regular.otf lmsans9-regular.otf lmex10.tfm lmmi12.tfm lmmi7.tfm lmmi9.tfm lmmib10.tfm lmmib7.tfm lmsy10.tfm lmsy7.tfm lmsy9.tfm rm-lmr12.tfm rm-lmr7.tfm rm-lmr9.tfm mkiv lua stats fonts load time - 0.506 seconds mkiv lua stats luatex banner - this is luatex, version beta-0.66.0-2011030112 (rev 4090) mkiv lua stats control sequences - 29651 of 165536 mkiv lua stats current memory usage - 32 MB (ctx: 33 MB) mkiv lua stats runtime - 54.133 seconds, 1 processed pages, 1 shipped pages, 0.018 pages/second %%% It works with the + character though. The same problem goes for the directory names; directories with ~ in the name drops and error, even if the filename has no special characters in it. Can this be fixed? Adam ___ 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] special character in filename
Yeah, please fix this ASAP. I keep all my context files in a directory which I call /dev/null, and for some reason, this doesn't really work. But I am not going to change the name of my directory, no, you have to rewrite your software! Thomas Dear Thomas I understand, that it's not a good idea, and I've seen similar issues on the list (http://www.ntg.nl/pipermail/ntg-context/2010/052339.html). I ran into this by making a deb package of a software (that includes context files) with a version that have a ~ in it, and therefore it makes a folder name having this character and context fails. So i guess the answer is then, no. Adam ___ 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] special character in filename
only Hans can decide if this can/should be changed I won't argue for any changes, just thought to ask about it. A simple yes, can be done or no, its a really bad idea is perfectly enough for me. I'll think about a workaround outside context. Cheers, Adam ___ 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] MathML broken in mkiv?
Hi I'm trying to use MathML with mkiv (latest beta), but I'm getting errors. I'm attaching the minimal example (borrowed from the wiki) and the log file. Adam \usemodule[mathml] \starttext test \xmlprocessdata{}{ math xmlns='http://www.w3.org/1998/Math/MathML' mrow msup mix/mimn2/mn /msup mo+/mo mrow mn4/mnmix/mi /mrow mo+/mo mn4/mn /mrow /math }{} \stoptext (mathml.tex ConTeXt ver: 2011.02.25 22:03 MKIV fmt: 2011.2.26 int: english/english system cont-new.mkiv loaded (/usr/share/texmf/tex/context/base/cont-new.mkiv system beware: some patches loaded from cont-new.mkiv ) system mathml.top loaded system options begin of optionfile system options system options % runtime options files (command line driven) system options \unprotect system options % feedback and basic job control system options % handy for special styles system options \startluacode system options document = document or { } system options document.arguments={ system options } system options document.files={ system options mathml.tex, system options } system options \stopluacode system options % process info system options \setupsystem[inputfile=mathml.tex] system options \setupsystem[\c!n=1,\c!m=1] system options % modes system options % options (not that important) system options \startsetups *runtime:options system options \stopsetups system options % styles and modules system options \startsetups *runtime:modules system options \stopsetups system options % done system options \protect \endinput system options system options end of optionfile (mathml.top) fontslatin modern fonts are not preloaded languageslanguage en is active resolversmodules loaded: 'mathml' (/usr/share/texmf/tex/context/base/x-mathml.mkiv loading ConTeXt XML Macros / MathML Renderer - /usr/share/texmf/tex/context/base/x-mathml.lua resolversmodules loaded: 'calcmath' (/usr/share/texmf/tex/context/base/x-calcmath.mkiv+ /usr/share/texmf/tex/context/base/x-calcmath.lua)){/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.map} fontspreloading latin modern fonts (second stage) (/usr/share/texmf/tex/context/base/type-siz.mkiv) (/usr/share/texmf/tex/context/base/type-otf.mkiv){/usr/share/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map} fontsfallback modern rm 12pt is loaded system begin file mathml.tex at line 2 xml lpath unknown function 'remapopenmath' xml lpath unknown function 'remapmmlbind' xml lpath unknown function 'remapmmlcsymbol' ! LuaTeX error main ctx instance:1: attempt to index field 'mathml' (a nil value) stack traceback: main ctx instance:1: in main chunk. system tex error on line 7 in file mathml.tex: LuaTeX error ... 1 \usemodule[mathml] 2 \starttext 3 test 4 \xmlprocessdata{}{ 5 math xmlns='http://www.w3.org/1998/Math/MathML' 6 mrow 7 msup mix/mimn2/mn /msup 8 mo+/mo 9 mrow 10 mn4/mnmix/mi 11 /mrow 12 mo+/mo 13 mn4/mn 14 /mrow 15 /math 16 }{} 17 \stoptext \ctxmodulemathml ...rocount {moduledata.mathml.#1} \@@su:mml:mo ...miter }\ctxmodulemathml {mo(#1)} \setfalse \mmlignoredelimi... l.7 } \ctxlxml #1-\directlua \zerocount {lxml.#1} \checkdelimiters ...\right \rightfakedelimiter $#1 \expandafter $\expandafter... argument ...kdelimiters {\xmlall {::3}{/mml:mo}} \fakeleftdelimiter \xmlflu... ... l.16 }{} ? q OK, entering \batchmode... ! LuaTeX error main ctx instance:1: attempt to index field 'mathml' (a nil value) stack traceback: main ctx instance:1: in main chunk. system tex error on line 14 in file mathml.tex: LuaTeX error ... 4 \xmlprocessdata{}{ 5 math xmlns='http://www.w3.org/1998/Math/MathML' 6 mrow 7 msup mix/mimn2/mn /msup 8 mo+/mo 9 mrow 10 mn4/mnmix/mi 11 /mrow 12 mo+/mo 13 mn4/mn 14/mrow 15 /math 16 }{} 17 \stoptext 18 \ctxmodulemathml ...rocount {moduledata.mathml.#1} \@@su:mml:mo ...miter }\ctxmodulemathml {mo(#1)} \setfalse \mmlignoredelimi... l.14 } \ctxlxml #1-\directlua \zerocount {lxml.#1} \checkdelimiters ...\right
Re: [NTG-context] metapost fill between outlines
The only letter (g) I have left in the logo has two spaces that I want to cut out. I can't make a single path out of it so that it doesn't go through the entire letter, so what to do in this case? Here's the example: %%% \starttext \framed[background=color,backgroundcolor=red,height=fit,width=fit]{ \startMPcode path gb[],gf[],gc[]; gb1 := (100.023003,46.691399)..controls (100.023003,47.015598) and (100.348000,47.203098)..(100.969002,47.203098) ..controls (101.859001,47.203098) and (101.859001,46.855499)..(102.371002,46.855499) ..controls (102.695000,46.855499) and (102.991997,47.015598)..(102.991997,47.582001) ..controls (102.991997,48.066399) and (102.530998,48.230499)..(102.101997,48.230499) ..controls (101.616997,48.230499) and (100.996002,48.093800)..(100.348000,47.664101) ..controls (100.188004,47.527302) and (99.781197,47.339802)..(99.539101,47.50) ..controls (99.027298,47.851601) and (98.570297,48.093800)..(97.355499,48.093800) ..controls (96.144501,48.093800) and (94.363297,47.367199)..(93.230499,45.828098) ..controls (92.421898,44.695301) and (92.261703,43.886700)..(92.261703,43.078098) ..controls (92.261703,42.269501) and (92.585899,41.675800)..(92.828102,41.355499) ..controls (92.878899,41.273399) and (92.906197,41.218800)..(92.906197,41.136700) ..controls (92.906197,40.949200) and (92.664101,40.812500)..(92.261703,40.707001) ..controls (91.531197,40.464802) and (90.320297,39.761700)..(90.320297,38.523399) ..controls (90.320297,37.714802) and (90.964798,36.933601)..(91.695297,36.445301) ..controls (91.695297,36.445301) and (90.210899,36.042999)..(89.023399,35.394501) ..controls (88.109398,34.882801) and (87.082001,34.101601)..(87.082001,32.968800) ..controls (87.082001,31.675800) and (88.191399,29.570299)..(92.746101,29.570299) ..controls (95.414101,29.570299) and (97.085899,30.539101)..(97.734398,31.269501) ..controls (98.218803,31.835899) and (98.296898,32.484402)..(98.296898,32.886700) ..controls (98.296898,34.343800) and (96.683601,35.718800)..(94.902298,36.687500) ..controls (93.769501,37.335899) and (92.097702,38.117199)..(92.097702,39.277302) ..controls (92.097702,39.574200) and (92.179703,39.898399)..(92.503899,40.085899) ..controls (92.718803,40.25) and (93.070297,40.328098)..(93.445297,40.328098) ..controls (93.957001,40.328098) and (94.605499,40.167999)..(95.066399,40.167999) ..controls (96.519501,40.167999) and (98.488297,40.652302)..(99.703102,43.242199) ..controls (100.023003,43.968800) and (100.160004,44.695301)..(100.160004,45.316399) ..controls (100.160004,46.125000) and (100.023003,46.316399)..(100.023003,46.691399) --cycle; drawdot (100.023003,46.691399) withcolor blue withpen pencircle scaled 2pt; gf2 := (92.960899,30.351601)..controls (89.968803,30.351601) and (89.078102,32.078098)..(89.078102,32.941399) ..controls (89.078102,33.75) and (89.402298,34.261700)..(90.210899,34.828098) ..controls (90.777298,35.234402) and (91.613297,35.636700)..(92.261703,35.878899) ..controls (92.988297,35.558601) and (94.093803,34.910198)..(94.445297,34.585899) ..controls (96.062500,33.453098) and (96.386703,32.808601)..(96.386703,32.242199) ..controls (96.386703,30.703100) and (94.093803,30.351601)..(92.960899,30.351601) --cycle; drawdot (92.960899,30.351601) withcolor green withpen pencircle scaled 2pt; gf1 := (98.867203,46.367199)..controls (98.867203,45.585899) and (98.570297,44.535198)..(97.894501,43.402302) ..controls (96.628899,41.355499) and (95.628899,40.949200)..(94.769501,40.949200) ..controls (94.039101,40.949200) and (93.714798,41.542999)..(93.714798,42.406200) ..controls (93.714798,43.160198) and (94.039101,44.132801)..(94.605499,45.019501) ..controls (95.468803,46.394501) and (96.683601,47.527302)..(97.761703,47.527302) ..controls (98.488297,47.527302) and (98.867203,47.175800)..(98.867203,46.367199) --cycle; drawdot (98.867203,46.367199) withcolor yellow withpen pencircle scaled 2pt; gc1 := gb1 -- gf1 -- cycle; gc2 := gc1 -- gf2 -- cycle; fill gc2; \stopMPcode } \stoptext %%% How do I get rid of the crossing line? Adam ___ 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] metapost fill between outlines
Just as a thought ... what you currently do with metapost at the moment is a bit of cheating to overcome lack of a feature in metapost - there is still an infinitely thin line between segments and a dumb renderer might display artifacts. Yes, I am aware of this, just wanted to hear something from those who know metapost better. If I wanted to draw a logo (very important graphic that will be used more often) and if I had control points, I would consider creating a raw postscript (EPS) graphics (filling with even-odd rule), convert it to PDF when needed and then use it inside ConTeXt documents (or even inside metapost graphics) as-is. I'm doing something like that already, I was just curious to which extend I could use metapost for this. You could also manually post-process the graphic generated by metapost (removing the link between the inner and outer part of letters and properly fill). But if the current approach is fine with you ... just use it. I think I'm happy with this solution. (Also, I was looking at the graphictext function, isn't that also doing similar things for filling out letters?) Mojca Thanks for explaining this! Adam ___ 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] metapost fill between outlines
Hi Is it possible to fill out a space between two outlines? As for an example, I'd like to draw two circles (same center, one bigger than the other) and fill out the difference. Something like the letter O. Here's a concrete example: %%% draw (6.949220,13.046900)..controls (9.539060,13.046900) and (10.023400,10.781200)..(10.023400,8.679690) ..controls (10.023400,5.335940) and (6.949220,0.00)..(3.234380,0.00) ..controls (0.890625,0.00) and (0.00,1.886720)..(0.00,3.828120) ..controls (0.00,8.492190) and (3.316410,13.046900)..(6.949220,13.046900) --cycle; draw (7.488280,12.293000)..controls (4.933590,12.293000) and (1.265620,6.226560)..(1.265620,2.531250) ..controls (1.265620,1.562500) and (1.695310,0.835938)..(2.722660,0.835938) ..controls (5.230470,0.835938) and (8.972660,7.035160)..(8.972660,10.296900) ..controls (8.972660,11.269500) and (8.703120,12.293000)..(7.488280,12.293000) --cycle; %%% I want to fill out the space between these two draw lines. Is this actually possible? The only reference to this I found was on wikipedia: Most notably, paths can have only one segment (so that regions are simply connected), (...) (http://en.wikipedia.org/wiki/MetaPost). I thought I ask here before I put this aside. As a workaround I fill out the bigger one with color black and the smaller one with color white, but I need to put this on different background colors, so the use of this is very limited. How does it work with fonts (Metafont)? Who's filling that out, because thats also just based on outlines, right? Thanks Adam ___ 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] attachment attaches twice
to be precise, the attachment is attached once (can be seen if one inspects the sample PDF files in uncompressed form with any text or binary editor - if you do not have Adobe Acrobat), but is listed twice by Adobe Reader. Thanks, but the question is still why the beta produces this while it is fine with the current. Adam ___ 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] metapost fill between outlines
You can fill out the bigger one, than clips the smaller one. Can you give me an example with the clip? I can't get it work in a way I want to have it. I've found another thread here: http://www.tug.org/pipermail/metapost/2006-September/000650.html But I fail to see the conclusion there too. And alternately, you can construct the path of the difference out of the two circles, and fill the constructed path. As for the path of the difference, how do you mean that? Example? Adam ___ 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] metapost fill between outlines
\startMPpage path p ; p := fullcircle scaled 1cm ; path q ; q := fullcircle scaled .5cm ; path r ; r := p -- reverse q -- cycle ; drawarrow r withcolor green ; fill r withcolor red ; \stopMPpage This works here. Based on this I can now cut out the smaller one from a fullcircle, but it still fails with two paths having controls (or maybe because of something else). Here are the examples: %%% \starttext \framed[background=color,backgroundcolor=red,height=fit,width=fit]{ \startMPcode path p[]; p1 := fullcircle scaled 2cm; p2 := (7.488280,12.293000)..controls (4.933590,12.293000) and (1.265620,6.226560)..(1.265620,2.531250)..controls (1.265620,1.562500) and (1.695310,0.835938)..(2.722660,0.835938)..controls (5.230470,0.835938) and (8.972660,7.035160)..(8.972660,10.296900)..controls (8.972660,11.269500) and (8.703120,12.293000)..(7.488280,12.293000)--cycle; p3 := p1 -- reverse p2 -- cycle; fill p3 withcolor black; \stopMPcode } \stoptext %%% This works. %%% \starttext \framed[background=color,backgroundcolor=red,height=fit,width=fit]{ \startMPcode path p[]; p1 := (6.949220,13.046900)..controls (9.539060,13.046900) and (10.023400,10.781200)..(10.023400,8.679690)..controls (10.023400,5.335940) and (6.949220,0.00)..(3.234380,0.00)..controls (0.890625,0.00) and (0.00,1.886720)..(0.00,3.828120)..controls (0.00,8.492190) and (3.316410,13.046900)..(6.949220,13.046900) --cycle; p2 := (7.488280,12.293000)..controls (4.933590,12.293000) and (1.265620,6.226560)..(1.265620,2.531250)..controls (1.265620,1.562500) and (1.695310,0.835938)..(2.722660,0.835938)..controls (5.230470,0.835938) and (8.972660,7.035160)..(8.972660,10.296900)..controls (8.972660,11.269500) and (8.703120,12.293000)..(7.488280,12.293000)--cycle; p3 := p1 -- reverse p2 -- cycle; fill p3 withcolor black; \stopMPcode } \stoptext %%% This doesn't work. (It fails already if p1 := (0,0)..(0,20)..(20,20)..cycle; or similar.) Any hints? Adam ___ 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 ___