[NTG-context] Project structure – how to process product file
Hello, I am trying to split a book in separated chapter files. Every of them includes: \startcomponent kap01 \environment environ %this I use because it is great to fine-tune shorter parts of book, it saves a lot of time \product kniha \starttext ... \stoptext Processing of single chapter files is ok. In my productfile I have: \startproduct kniha \component kap01 \component kap02 \stopproduct Of course, I have both chapters saved like kap01.tex... I have that directory structure: \Pes\environ.tex \Pes\kap01\kap01.tex \Pes\kap02\kap02.tex \Pes\kniha\kniha.tex – this is the product file. But when I try to process the product file, it saves kniha.log, kniha.tuc but no pdf file. Interesting is, the console says exactly: mkiv lua stats > result saved in file - kniha.pdf But no, it really doesn't save anything... Thanks, Honza Hejzl ___ 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] Project structure – how to process product file
Am 10.09.2011 um 12:16 schrieb Honza Hejzl: > Hello, > I am trying to split a book in separated chapter files. Every of them > includes: > > \startcomponent kap01 > \environment environ %this I use because it is great to fine-tune shorter > parts of book, it saves a lot of time > \product kniha > \starttext > ... > \stoptext Remove \starttext/\stoptext (not necessary) from your components and add \stopcomponent at the end of the files. > Processing of single chapter files is ok. > > In my productfile I have: > > \startproduct kniha > \component kap01 > \component kap02 > \stopproduct > > Of course, I have both chapters saved like kap01.tex... > > I have that directory structure: > > \Pes\environ.tex > \Pes\kap01\kap01.tex > \Pes\kap02\kap02.tex > \Pes\kniha\kniha.tex – this is the product file. > > But when I try to process the product file, it saves kniha.log, kniha.tuc but > no pdf file. Interesting is, the console says exactly: > > mkiv lua stats > result saved in file - kniha.pdf > > But no, it really doesn't save anything… Put the product in the same directory as the environment and add \usepath[kap01,kap02] to your environment file. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Fwd: [OS X TeX] ConTeXt issues
On 09/09/2011 17:23, Mojca Miklavec wrote: > On Fri, Sep 9, 2011 at 17:12, Steffen Wolfrum wrote: >> Hi, >> >> does anyone here has MacTeX 2011 installed and could help Joseph? >> (I just saw this on OSX_TEX list, see below). > > This is a "known" problem in the sense that it happens pretty often, > but it is unclear what exactly goes wrong. MacTeX should usually work > by default. > > More information is needed, in particular contents of > /usr/local/texlive/2011/texmfcnf.lua > > Mojca Hello Mojca, I did wonder if this was known: I've noticed that ConTeXt seems to be 'on and off' at least on my Mac (I've done less testing on Windows). My /usr/local/texlive/2011/texmfcnf.lua shows: -- (Public domain.) -- This texmfcnf.lua file should exist only if you have personal changes -- from the distributed file; for example, if TEXMFVAR was changed in -- the installer. -- return { TEXMFCACHE = '~/Library/texlive/2011/texmf-var' } -- Joseph Wright ___ 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] Fwd: [OS X TeX] ConTeXt issues
On 09/09/2011 18:30, Matthias Weber wrote: > Hi, > > I do have MacTeX 2011 installed (for LaTeX needs), but use the Standalone > (former minimals) for CoNTeXt. > > Besides being more recent, this has the advantage that one can archive a done > project together with the Standalone tree > in case changes to CoNText happen break the project. > > The relevant wiki page for installing and configuring with editors is at > > http://wiki.contextgarden.net/ConTeXt_Standalone/Mac_Installation > > Matthias I did think of the minimals, and indeed that was my first port of call after 'context' failed from my MacTeX installation. However, there does not seem to be any Tikz in the minimals, and I needed that. Setting up Tikz is not so straight-forward. I've managed to get a working system on my PC, but would of course like a working system on my Mac too. -- Joseph Wright ___ 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] Fwd: [OS X TeX] ConTeXt issues
Dear Joseph, On Sat, Sep 10, 2011 at 12:36, Joseph Wright wrote: > > Hello Mojca, > > I did wonder if this was known: I've noticed that ConTeXt seems to be > 'on and off' at least on my Mac (I've done less testing on Windows). > > My /usr/local/texlive/2011/texmfcnf.lua shows: > > -- (Public domain.) > -- This texmfcnf.lua file should exist only if you have personal changes > -- from the distributed file; for example, if TEXMFVAR was changed in > -- the installer. > -- > return { TEXMFCACHE = '~/Library/texlive/2011/texmf-var' } > -- > Joseph Wright Were you, by any chance, an early adopter who didn't install the new version of MacPorts once it was officially released? Please replace the contents of that file with: return { content = { variables = { TEXMFHOME = "~/Library/texmf", TEXMFVAR = "~/Library/texlive/2011/texmf-var", TEXMFCONFIG = "~/Library/texlive/2011/texmf-config", }, }, } or reinstall MacTeX. Mojca ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Fwd: [OS X TeX] ConTeXt issues
On 10/09/2011 11:41, Mojca Miklavec wrote: >> My /usr/local/texlive/2011/texmfcnf.lua shows: >> >> -- (Public domain.) >> -- This texmfcnf.lua file should exist only if you have personal changes >> -- from the distributed file; for example, if TEXMFVAR was changed in >> -- the installer. >> -- >> return { TEXMFCACHE = '~/Library/texlive/2011/texmf-var' } >> -- >> Joseph Wright > > Were you, by any chance, an early adopter who didn't install the new > version of MacPorts once it was officially released? > > Please replace the contents of that file with: > > return { > content = { > variables = { > TEXMFHOME = "~/Library/texmf", > TEXMFVAR = "~/Library/texlive/2011/texmf-var", > TEXMFCONFIG = "~/Library/texlive/2011/texmf-config", > }, > }, > } > > or reinstall MacTeX. > > Mojca Hello Mojca, I did indeed install MacTeX 'early' (basically as soon as it became available for testing). I'm surprised "sudo tlmgr install --reinstall context metapost" did not sort this one out. Anyway, that sorts the issue: thanks very much for the very rapid reply. -- Joseph Wright ___ 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] Fwd: [OS X TeX] ConTeXt issues
On 10-9-2011 12:38, Joseph Wright wrote: On 09/09/2011 18:30, Matthias Weber wrote: Hi, I do have MacTeX 2011 installed (for LaTeX needs), but use the Standalone (former minimals) for CoNTeXt. Besides being more recent, this has the advantage that one can archive a done project together with the Standalone tree in case changes to CoNText happen break the project. The relevant wiki page for installing and configuring with editors is at http://wiki.contextgarden.net/ConTeXt_Standalone/Mac_Installation Matthias I did think of the minimals, and indeed that was my first port of call after 'context' failed from my MacTeX installation. However, there does not seem to be any Tikz in the minimals, and I needed that. Setting up Tikz is not so straight-forward. first-setup --modules=all the minimals installer remembers what gets installed and when updating modules will be installed as well if someone only wants luatex the initial install should say --engine=luatex (more minimal, might become default at some point) the only problem with tikz can be that it depends on some built in functionality (i remember a recent post about such a dependency) but normally the tikz maintainers are quite willing to take care of it; another potential issue can be low level resource management but if the proper interfaces are used this should work now Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] syst-ini.mkii missing
On 10-9-2011 05:23, Aditya Mahajan wrote: syst-ini.mkii is missing from the latest beta. Trying to update the minimals gives ! I can't find file `syst-ini.mkii'. \relax l.46 \loadmarkfile{syst-ini} It's in the zip so probably something went wrong when updating the garden? or maybe you just updated when the file was refreshed. I'll push a new beta to force an update. Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Fwd: [OS X TeX] ConTeXt issues
On Sat, Sep 10, 2011 at 12:38, Joseph Wright wrote: > > I did think of the minimals, and indeed that was my first port of call > after 'context' failed from my MacTeX installation. However, there does > not seem to be any Tikz in the minimals, and I needed that. Setting up > Tikz is not so straight-forward. As Hans already said: add --modules=tikz switch. Mojca ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Fwd: [OS X TeX] ConTeXt issues
On Sat, Sep 10, 2011 at 12:49, Joseph Wright wrote: > > Hello Mojca, > > I did indeed install MacTeX 'early' (basically as soon as it became > available for testing). I'm surprised "sudo tlmgr install --reinstall > context metapost" did not sort this one out. tlmgr is not allowed to change your local configuration file (that would be a bad idea) since you might have edited it yourself. We updated that file during testing phase. In the same spirit: you probably don't have the bleeding edge TLU unless you updated it manually and tlmgr won't really help you with that. Even more important might be the version of TeX Dist Preference Pane. Since you seem to have posted your original question to another mailing list, can you please at least leave a reply that the issue was solved (and how you solved it)? Mojca ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] (no subject)
Great, thanks, we are close to success. I can see the pdf file but it is broken and the console seems like it wants some next interaction: /context/base/lpdf-pdx.xml' pages > flushing realpage 1, userpage 1, subpage 1 pages > flushing realpage 2, userpage 2 pages > flushing realpage 3, userpage 3 pages > flushing realpage 4, userpage 4 pages > flushing realpage 5, userpage 5 )) * Any suggestions? Thanks. Honza ___ 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] Project structure - how to process product file (Honza Hejzl)
Great, thanks, we are close to success. I can see the pdf file but it is broken and the console seems like it wants some next interaction: /context/base/lpdf-pdx.xml' pages > flushing realpage 1, userpage 1, subpage 1 pages > flushing realpage 2, userpage 2 pages > flushing realpage 3, userpage 3 pages > flushing realpage 4, userpage 4 pages > flushing realpage 5, userpage 5 )) * Any suggestions? Thanks. Honza ___ 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] Fwd: [OS X TeX] ConTeXt issues
On 10/09/2011 12:04, Mojca Miklavec wrote: > Since you seem to have posted your original question to another > mailing list, can you please at least leave a reply that the issue was > solved (and how you solved it)? Of course: will do. -- Joseph Wright ___ 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] Fwd: [OS X TeX] ConTeXt issues
On 10/09/2011 11:53, Hans Hagen wrote: >> I did think of the minimals, and indeed that was my first port of call >> after 'context' failed from my MacTeX installation. However, there does >> not seem to be any Tikz in the minimals, and I needed that. Setting up >> Tikz is not so straight-forward. > > first-setup --modules=all > > the minimals installer remembers what gets installed and when updating > modules will be installed as well > > if someone only wants luatex the initial install should say > --engine=luatex (more minimal, might become default at some point) > > the only problem with tikz can be that it depends on some built in > functionality (i remember a recent post about such a dependency) but > normally the tikz maintainers are quite willing to take care of it; > another potential issue can be low level resource management but if the > proper interfaces are used this should work now Hello Hans, Thanks for that: I had not investigated the options for first-setup. -- Joseph Wright ___ 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] Project structure - how to process product file (Honza Hejzl)
Am 10.09.2011 um 15:37 schrieb Honza Hejzl: > Great, thanks, we are close to success. > > I can see the pdf file but it is broken and the console seems like it wants > some next interaction: > > /context/base/lpdf-pdx.xml' > pages > flushing realpage 1, userpage 1, subpage 1 > pages > flushing realpage 2, userpage 2 > pages > flushing realpage 3, userpage 3 > pages > flushing realpage 4, userpage 4 > pages > flushing realpage 5, userpage 5 > )) > * > > Any suggestions? Not without more information. - Does this happen when you compile the product or the component? - Do you have matching startproduct/stopproduct and startcomponent/stopcomponent in your files? - Can you make a minimal example or can you send your document (private mail is also possible in this case)! Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Document title (was: (no subject))
Am 22.02.2010 um 15:25 schrieb Roger Mason: > Hello, > > I'm working on a project to set up exams, basing the work on Aditya's > asignment class that was published in Practex in 2006. > > I have a problem getting title information printed correctly. This is a > cut-down version: > > […] > > I'm processing this with Mark II. The problems are that > > (1) The literal 'Examcourse' is typeset; > (2) Today's date is typset, not the one entered in the interface; > (3) The start and stop times are typeset as literals 'Examstart' & 'Examstop' You forgot the backslash in front of your values. It’s also bad style to misuse the \title command for your document title because \title is only the unnumbered version of \chapter, nothing else. Another way to create your document title is the following code: \setupcolors [state=start] \definecolor [colorone][r=0.625,g=0,b=0] %dark red \definecolor [colortwo][b=0.625,g=0,r=0] %dark blue \startsetups examtitle \startframedtext [ width=broad, frame=off, align=middle, foregroundcolor=colortwo, background=shadow, ] {\definedfont[RegularSlanted sa 2.5]\getvariable{exam}{title}} \blank \getvariable{exam}{course} \stopframedtext \blank[big] \startcolor[colortwo] \doifelsevariable{exam}{date}{\expanded{\date[\getvariable{exam}{date}]}}{\currentdate} \hfill Start: \getvariable{exam}{start} \space Stop: \getvariable{exam}{stop} \stopcolor \blank \stopsetups \setvariables[exam][set={\setups[examtitle]}] \starttext \setvariables [exam] [ title=Mid-term 2010, course=ES2917, date={d=17,m=2,y=2010}, start={9:00 am}, stop={11:00 am}] \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] syst-ini.mkii missing
On Sat, 10 Sep 2011, Hans Hagen wrote: On 10-9-2011 05:23, Aditya Mahajan wrote: syst-ini.mkii is missing from the latest beta. Trying to update the minimals gives ! I can't find file `syst-ini.mkii'. \relax l.46 \loadmarkfile{syst-ini} It's in the zip so probably something went wrong when updating the garden? or maybe you just updated when the file was refreshed. I'll push a new beta to force an update. Thanks. Everything works fine now. Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Document title (was: (no subject))
On Sat, 10 Sep 2011, Wolfgang Schuster wrote: Am 22.02.2010 um 15:25 schrieb Roger Mason: Hello, I'm working on a project to set up exams, basing the work on Aditya's asignment class that was published in Practex in 2006. I have a problem getting title information printed correctly. This is a cut-down version: […] I'm processing this with Mark II. The problems are that (1) The literal 'Examcourse' is typeset; (2) Today's date is typset, not the one entered in the interface; (3) The start and stop times are typeset as literals 'Examstart' & 'Examstop' You forgot the backslash in front of your values. It’s also bad style to misuse the \title command for your document title because \title is only the unnumbered version of \chapter, nothing else. OK. That style was my first real project with ConTeXt, so it some non-canonical setups. These days I use: \definehead[assignment][...] \setuphead[assignment][...] \startassignment[...] ... \stopassignment which gives a much better control over the exported xhtml file. Another way to create your document title is the following code: \setupcolors [state=start] \definecolor [colorone][r=0.625,g=0,b=0] %dark red \definecolor [colortwo][b=0.625,g=0,r=0] %dark blue \startsetups examtitle [...] \stopsetups \setvariables[exam][set={\setups[examtitle]}] \starttext \setvariables [exam] [ title=Mid-term 2010, course=ES2917, date={d=17,m=2,y=2010}, start={9:00 am}, stop={11:00 am}] \stoptext Nice, I didn't realize that set key could be used this way. If one is also interested in a usable XML export, then some \starttag..\stoptag must be added to the setups. Aditya___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Project structure - how to process product file (Honza Hejzl) [SOLVED]
Thank you, the solution was the line \environment which is needed to use in both files chapter file and product file, too. Honza Hejzl ___ 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 ___