Re: [NTG-context] Parsing HTML entities
On Thu, Feb 17, 2011 at 1:06 AM, Khaled Hosny wrote: > Is there built-in support to parse HTML entities, I've some vague memory > about it but I don't seem to find much useful results. If not, build a lpeg parse should be feasible. -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] EPUB workflow from ConTeXt source?
On 16 Feb 2011, at 17:47, Wolfgang Schuster wrote: > > Am 16.02.2011 um 17:42 schrieb gerben.wie...@rna.nl: > >> I'd like to keep working in one format so I was wondering if there is a >> ConTeXt based workflow/setup that can produce EPUB (next to normal PDF)? > > With MkIV you can get a xml version of document with > \setupbackend[export=yes]. But that XML is not ePUB's XML, I assume. I am still on MKII. Is there a good manual what is needed to move from MKII to MKIV? G ___ 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] using ConTeXt/LuaTeX instead of a spreadsheet program
On 02/16/11 23:46, Martin Schröder wrote: > 2011/2/16 Hans Hagen : >> I would put them in a lua table and access them when needed (you can load >> that table from an external file) > > Which precision do we have in luatex? Single or double? double. Best wishes, Taco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] HTML-like "title" attribute
Am 17.02.2011 um 01:08 schrieb Khaled Hosny: > The link https://github.com/jgm/lunamark :) How about making something like this: https://bitbucket.org/phg/context-rst 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] Parsing HTML entities
Is there built-in support to parse HTML entities, I've some vague memory about it but I don't seem to find much useful results. Regards, Khaled -- Khaled Hosny Egyptian ___ 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] HTML-like "title" attribute
The link https://github.com/jgm/lunamark :) On Thu, Feb 17, 2011 at 02:03:04AM +0200, Khaled Hosny wrote: > I'm playing with some lua markdown parser[1], already added ConTeXt > output support except for two minor features. > > HTML links and images can have a "title" attribute that shows like a > tooltip, but I don't seem to find a way to do similar trick in ConTeXt, > any ideas? \tooltip seems to be the closest but it requires JS which > means AR only, also seems one have to click for the tooltip ti show > which is not exactly the same behaviour. > > Regards, > Khaled > > -- > Khaled Hosny > Egyptian -- Khaled Hosny Egyptian ___ 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] HTML-like "title" attribute
I'm playing with some lua markdown parser[1], already added ConTeXt output support except for two minor features. HTML links and images can have a "title" attribute that shows like a tooltip, but I don't seem to find a way to do similar trick in ConTeXt, any ideas? \tooltip seems to be the closest but it requires JS which means AR only, also seems one have to click for the tooltip ti show which is not exactly the same behaviour. Regards, Khaled -- Khaled Hosny Egyptian ___ 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] \setupalign[hz,hanging] breaks verbatim text
On 16-2-2011 9:11, C. wrote: I tried your code. Does not work. Again, when I comment the line with \setupalign it works. I was using Minion via simplefonts, but it seems modern fonts are also affected. I'working on Windows 7 32bit and updated Context Minimals before testing. @Wolfgang: I included the options because ConTeXt was using the condensed-italic font instead of the italic font. That occurs only if one has both variants installed. what version do you run - 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] What is preloaded by “mtxrun --script”?
On 16-2-2011 11:44, Philipp Gesang wrote: Hi all, I noticed that although mtxrun preloads some of the context libs that doesn’t cover everything available during an ordinary mkiv run. What would be the canonical way to load additional libs like “luat-ini”&c. on demand? “environment.loadluafile()”? Can this be configured globally? Is it wise to mess with “own.libs” in mtxrun? Example: This snippet checks the global env for some tables. “mtxrun --script” doesn’t find any while some of them are there when processed as cld. something dofile(resolvers.findfile("yourfile.lua")) but keep in mind that most of the mkiv code depends on other code and often they depend on functionality that is only available when we're in luatex mode and not in texlua mode 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] Braces in TexLive MKIV
On Wed, 16 Feb 2011, Tom wrote: When I recently upgraded to TexLive MKII, I learned that \lq, etc. no longer worked in that version but that \lbrace still did. Today, I tried MKIV and find that \lbrace does not work in MKIV. So, I tried \braceleft because \quoteleft worked in TexLive 2010 MKII. Neither \lbrace nor \braceleft work in MKIV. What is now the proper representation for this character? $\lbrace x \rbrace$ \textbraceleft x\textbraceright 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] Braces in TexLive MKIV
Thanks, Wolfgang. My document now compiles without errors and produces a PDF. It is my understanding that one of the ways MKIV differs greatly from MKII is in the handling of fonts. Which documentation should I look at first to learn about fonts in MKIV (not that I understand them in MKII yet)? Tom Benjey 717-258-9733 voice 717-243-0074 fax blog: www.TomBenjey.com -Original Message- From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Wolfgang Schuster Sent: Wednesday, February 16, 2011 5:24 PM To: mailing list for ConTeXt users Subject: Re: [NTG-context] Braces in TexLive MKIV Am 16.02.2011 um 22:04 schrieb Tom: > When I recently upgraded to TexLive MKII, I learned that \lq, etc. no longer > worked in that version but that \lbrace still did. Today, I tried MKIV and > find that \lbrace does not work in MKIV. So, I tried \braceleft because > \quoteleft worked in TexLive 2010 MKII. Neither \lbrace nor \braceleft work > in MKIV. What is now the proper representation for this character? Choose one! \starttext \{ $\{$ $\lbrace$ \letterleftbrace\ \textbraceleft \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 ___ ___ 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] using ConTeXt/LuaTeX instead of a spreadsheet program
2011/2/16 Hans Hagen : > I would put them in a lua table and access them when needed (you can load > that table from an external file) Which precision do we have in luatex? Single or double? Best Martin ___ 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] What is preloaded by “mtxrun --script”?
Hi all, I noticed that although mtxrun preloads some of the context libs that doesn’t cover everything available during an ordinary mkiv run. What would be the canonical way to load additional libs like “luat-ini” &c. on demand? “environment.loadluafile()”? Can this be configured globally? Is it wise to mess with “own.libs” in mtxrun? Example: This snippet checks the global env for some tables. “mtxrun --script” doesn’t find any while some of them are there when processed as cld. ···8< -- http://www.ntg.nl/pipermail/ntg-context/2010/054982.html local testme = { "userdata", "thirddata", "moduledata", "documentdata", "parametersets", --"document" } for _,item in next, testme do local i = _G[item] if i then print(item, table.serialize(i)) else print(item, "Nope!") end end -- Comprehensive: --for _,k in next,table.sortedkeys(_G) do --print(k,_G[k]) --end ···8< (My issue is that I’m testing the lua internals of module code without having to startup the whole big typesetting environment. Would be much easier if everything normally accessible from inside an mkiv session was there as well.) Thanks for any insights, Philipp pgpI3YyX7CYJI.pgp Description: PGP signature ___ 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] Braces in TexLive MKIV
Am 16.02.2011 um 22:04 schrieb Tom: > When I recently upgraded to TexLive MKII, I learned that \lq, etc. no longer > worked in that version but that \lbrace still did. Today, I tried MKIV and > find that \lbrace does not work in MKIV. So, I tried \braceleft because > \quoteleft worked in TexLive 2010 MKII. Neither \lbrace nor \braceleft work > in MKIV. What is now the proper representation for this character? Choose one! \starttext \{ $\{$ $\lbrace$ \letterleftbrace\ \textbraceleft \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 ___
[NTG-context] problem with bibliography
Hi Hans and all, the current beta has a problem with a bibliography entry I have in my project. I can't quite put my finger to it, but here's a fairly minimal example. It compiles without problems with an older version I happen to have on my disk (2011.01.06 17:08), but not with the current beta (2011.02.16 19:30): \startpublication[k=malkin2001,t=book, a={{Malkin}},y=2001, n=444,s=Mal01] \editor[]{Irad}[I.]{}{Malkin} \pubyear{2001} \title{Ancient Perceptions of Greek Ethnicity} \city{Cambridge (MA)} \pubname{Harvard UP} \stoppublication \startpublication[k=said2001,t=incollection, a={{Sa{\"\i}d}},y=2001, n=443,s=Sa{\"\i}01] \artauthor[]{Suzanne}[S.]{}{Sa{\"\i}d} \pubyear{2001} \arttitle{The Discourse of Identity in Greek Rhetoric from Isocrates to Aristides} \editor[]{Irad}[I.]{}{Malkin} \crossref{malkin2001} \pages{275--99} \pages{275--99} \pubname{Harvard UP} \stoppublication \setuppublications [refcommand=authoryear] \starttext \startsection[title=Test] \cite[said2001] \placepublications[criterium=all] \stopsection \stoptext It looks like it's the author's name Sa{\"\i}d, but this works in normal text, just not in a bibliography. Can you see what's wrong? Thanks, and best wishes Thomas ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Braces in TexLive MKIV
When I recently upgraded to TexLive MKII, I learned that \lq, etc. no longer worked in that version but that \lbrace still did. Today, I tried MKIV and find that \lbrace does not work in MKIV. So, I tried \braceleft because \quoteleft worked in TexLive 2010 MKII. Neither \lbrace nor \braceleft work in MKIV. What is now the proper representation for this character? Tom Benjey 717-258-9733 voice 717-243-0074 fax blog: www.TomBenjey.com ___ 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] \setupalign[hz,hanging] breaks verbatim text
I tried your code. Does not work. Again, when I comment the line with \setupalign it works. I was using Minion via simplefonts, but it seems modern fonts are also affected. I'working on Windows 7 32bit and updated Context Minimals before testing. @Wolfgang: I included the options because ConTeXt was using the condensed-italic font instead of the italic font. That occurs only if one has both variants installed. > -Ursprüngliche Nachricht- > Von: Hans Hagen [mailto:pra...@wxs.nl] > Gesendet: Mittwoch, 16. Februar 2011 19:41 > An: mailing list for ConTeXt users > Cc: C. > Betreff: Re: [NTG-context] \setupalign[hz,hanging] breaks verbatim text > > On 16-2-2011 6:48, C. wrote: > > I have a strange problem in one of my documents. > > When I uncomment the line with \setupalign[hz,hanging] everything > > works fine. When I use it, I get this error because of a verbatim typing > segment: > > > > \obeyedline ->\par > > > > \doverbatimendofline ->\dostoptagged \obeyedline > > \par \ifconditional > > \verbat... > > l.10 \dodisplayverbatimstop > > > > \ctxcommand ...\directlua \zerocount {commands.#1} > > > > \dodotypeblockverbatim ..., nature = "display", }} > >\dostoptagged > > \endofverbat... > > l.71 \stoptyping > > > > ! ==> Fatal error occurred, no output PDF file produced! > > mtx-context | fatal error: return code: 1 > > > > Here is the troublemaker: > > \starttyping > > test; > > äüöAR \test \Context > > \stoptyping > > > > Interestingly I was not able to produce a real minimal example, > > because when I remove everything except these lines, its working fine > > again. So there has to be at least some lines of text to break stuff. > > Oh yeah, and it seems that using simplefonts and Minion also plays a role. > > Can somebody have a look at this, please? The attached file like it is > > does not compile here. > > Can you figure out what font is involved? This works ok here. > > \definefontfeature[default][default][expansion=quality,protrusion=quality] > > \setupbodyfont[modern,12pt] > > \setupalign[hz,hanging] > > \starttext > > Das Akronym ARMA (AutoRegressive-Moving Average) und die daran > angelehnten Kunstwörter ARMAX und ARIMA bezeichnen lineare Modelle > für stationäre, zeitdiskrete stochastische Prozesse. Sie werden zur > Zeitreihenanalyse in der Messtechnik, in der Statistik und dort insbesondere > in der Ökonometrie eingesetzt. Kern ist ein lineares Gleichungssystem. Man > kann solche Modelle auch als Differenzengleichungen bzw. > Differenzengleichungssysteme ansehen. > > \starttyping > test; > äüöAR \test \Context > \stoptyping > > \stoptext > > > - >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 > - minimal.tex Description: Binary data minimal.log Description: Binary data ___ 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] using ConTeXt/LuaTeX instead of a spreadsheet program
On Wed, Feb 16, 2011 at 18:47, Paul Menzel wrote: > Dear ConTeXt folks, > > > could you please share your experiences with or point me to a resource > dealing with the following issue. > > I need to evaluate some physics experiments where I have some values > which got measured. I thought I could use ConTeXt with LuaTeX to do all > the calculations instead of the calculator and enter the results by hand > or a spreadsheet program. > > Would I enter the values (not many) at the top of the TeX document and > refer to them in the other places? Is an extra file a better approach? > > In your place, I'll go to MS Excel or Openoffice Calc :) ___ 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] using ConTeXt/LuaTeX instead of a spreadsheet program
On 16-2-2011 6:47, Paul Menzel wrote: Dear ConTeXt folks, could you please share your experiences with or point me to a resource dealing with the following issue. I need to evaluate some physics experiments where I have some values which got measured. I thought I could use ConTeXt with LuaTeX to do all the calculations instead of the calculator and enter the results by hand or a spreadsheet program. Would I enter the values (not many) at the top of the TeX document and refer to them in the other places? Is an extra file a better approach? I would put them in a lua table and access them when needed (you can load that table from an external file) - 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] \setupalign[hz,hanging] breaks verbatim text
On 16-2-2011 6:48, C. wrote: I have a strange problem in one of my documents. When I uncomment the line with \setupalign[hz,hanging] everything works fine. When I use it, I get this error because of a verbatim typing segment: \obeyedline ->\par \doverbatimendofline ->\dostoptagged \obeyedline \par \ifconditional \verbat... l.10 \dodisplayverbatimstop \ctxcommand ...\directlua \zerocount {commands.#1} \dodotypeblockverbatim ..., nature = "display", }} \dostoptagged \endofverbat... l.71 \stoptyping ! ==> Fatal error occurred, no output PDF file produced! mtx-context | fatal error: return code: 1 Here is the troublemaker: \starttyping test; äüöAR \test \Context \stoptyping Interestingly I was not able to produce a real minimal example, because when I remove everything except these lines, it’s working fine again. So there has to be at least some lines of text to break stuff. Oh yeah, and it seems that using simplefonts and Minion also plays a role. Can somebody have a look at this, please? The attached file like it is does not compile here. Can you figure out what font is involved? This works ok here. \definefontfeature[default][default][expansion=quality,protrusion=quality] \setupbodyfont[modern,12pt] \setupalign[hz,hanging] \starttext Das Akronym ARMA (AutoRegressive-Moving Average) und die daran angelehnten Kunstwörter ARMAX und ARIMA bezeichnen lineare Modelle für stationäre, zeitdiskrete stochastische Prozesse. Sie werden zur Zeitreihenanalyse in der Messtechnik, in der Statistik und dort insbesondere in der Ökonometrie eingesetzt. Kern ist ein lineares Gleichungssystem. Man kann solche Modelle auch als Differenzengleichungen bzw. Differenzengleichungssysteme ansehen. \starttyping test; äüöAR \test \Context \stoptyping \stoptext - 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] \setupalign[hz,hanging] breaks verbatim text
Am 16.02.2011 um 18:48 schrieb C.: > I have a strange problem in one of my documents. > When I uncomment the line with \setupalign[hz,hanging] everything works > fine. When I use it, I get this error because of a verbatim typing segment: Can you test it with the latest beta, your example runs fine here. BTW: Doesn’t \setmainfont[Minion Pro][expansion=quality,protrusion=quality] work you? 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] using ConTeXt/LuaTeX instead of a spreadsheet program
Am 16.02.2011 um 18:47 schrieb Paul Menzel: > Dear ConTeXt folks, > > could you please share your experiences with or point me to a resource > dealing with the following issue. > > I need to evaluate some physics experiments where I have some values > which got measured. I thought I could use ConTeXt with LuaTeX to do all > the calculations instead of the calculator and enter the results by hand > or a spreadsheet program. > > Would I enter the values (not many) at the top of the TeX document and > refer to them in the other places? Is an extra file a better approach? Do you have a example what do you want to achieve? 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] \setupalign[hz,hanging] breaks verbatim text
I have a strange problem in one of my documents. When I uncomment the line with \setupalign[hz,hanging] everything works fine. When I use it, I get this error because of a verbatim typing segment: \obeyedline ->\par \doverbatimendofline ->\dostoptagged \obeyedline \par \ifconditional \verbat... l.10 \dodisplayverbatimstop \ctxcommand ...\directlua \zerocount {commands.#1} \dodotypeblockverbatim ..., nature = "display", }} \dostoptagged \endofverbat... l.71 \stoptyping ! ==> Fatal error occurred, no output PDF file produced! mtx-context | fatal error: return code: 1 Here is the troublemaker: \starttyping test; äüöAR \test \Context \stoptyping Interestingly I was not able to produce a real minimal example, because when I remove everything except these lines, its working fine again. So there has to be at least some lines of text to break stuff. Oh yeah, and it seems that using simplefonts and Minion also plays a role. Can somebody have a look at this, please? The attached file like it is does not compile here. minimal.tex Description: Binary data ___ 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] using ConTeXt/LuaTeX instead of a spreadsheet program
Dear ConTeXt folks, could you please share your experiences with or point me to a resource dealing with the following issue. I need to evaluate some physics experiments where I have some values which got measured. I thought I could use ConTeXt with LuaTeX to do all the calculations instead of the calculator and enter the results by hand or a spreadsheet program. Would I enter the values (not many) at the top of the TeX document and refer to them in the other places? Is an extra file a better approach? Thanks, Paul [1] http://wiki.contextgarden.net/Programming_in_LuaTeX signature.asc Description: This is a digitally signed message part ___ 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] EPUB workflow from ConTeXt source?
Am 16.02.2011 um 17:42 schrieb gerben.wie...@rna.nl: > I'd like to keep working in one format so I was wondering if there is a > ConTeXt based workflow/setup that can produce EPUB (next to normal PDF)? With MkIV you can get a xml version of document with \setupbackend[export=yes]. 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] EPUB workflow from ConTeXt source?
I'd like to keep working in one format so I was wondering if there is a ConTeXt based workflow/setup that can produce EPUB (next to normal PDF)? Thanks, G ___ 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] Stretching chapter titles - MKII
On Wed, 16 Feb 2011, Tom wrote: I tried to execute MKIV by typing in context hello.tex and got an error message. Apparently something else needs to be installed. MTXrun | unknown script 'context.lua' or 'mtx-context.lua' Run mtxrun --generate What major changes to my documents will I likely need to make to shift to MKIV? - Font loading. Overall font loading is simpler, but you might need to adapt your typescripts (on occasions I have had to define \sc in terms of \addfontfeature, but I haven't checked if that is still needed). - Regimes: MkIV assumes UTF-8. - Headings: the setups for chapter and section stoppers and referencing has changed. You have much more flexibility now, but need to adapt your style files accordingly. - Metapost: It is no longer possible to change the color of a label in metapost. (You can set it up at TeX level, so this is not a limitation...you just need to change the label commands). 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] conditional evaluation and section names
Am 16.02.2011 um 08:36 schrieb Cedric Mauclair: > On Wed, Feb 16, 2011 at 05:52, Daniel Lyons wrote: >> >> On Feb 15, 2011, at 12:05 PM, Wolfgang Schuster wrote: >> >>> \doiftextelse{\getmarking[sectionnumber]} >>> {§ \getmarking[sectionnumber]} >>> {\unknown} >> >> >> I assume there are other helpful functions like this that aren't documented >> on the wiki (such as \DropCap). Is there a place where these things are >> documented that I should be looking? Or a particular piece of source code I >> should read to get acquainted with these sorts of library functions? > > You definitely need to check syst-aux.mkiv. The wiki explains a few of the command too: - http://tex.aanhet.net/context/syst-gen-doc.pdf - http://wiki.contextgarden.net/System_Macros 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] Stretching chapter titles - MKII
remember to setuptex first, all other necessary steps are listed in http://wiki.contextgarden.net/Running_Mark_IV On Wed, 2011-02-16 at 15:14 +0100, Cedric Mauclair wrote: > On Wed, Feb 16, 2011 at 15:06, Tom wrote: > > I tried to execute MKIV by typing in context hello.tex and got an error > > message. Apparently something else needs to be installed. > > > > MTXrun | unknown script 'context.lua' or 'mtx-context.lua' > > Seems like there are some TEXMF... defined. Try to unset them (in bash > 'unset TEXMFLOCAL' for example). Well, this solved the same issue the > other day. > > -- Cédric > > > > > What major changes to my documents will I likely need to make to shift to > > MKIV? > > > > Tom Benjey > > 717-258-9733 voice > > 717-243-0074 fax > > blog: www.TomBenjey.com > > > > > > > > > > -Original Message- > > Am 15.02.2011 um 01:45 schrieb Tom: > > > >> > >> Follows is some code that executes. The lines immediately following > >> \starttext create a sample of the desired output format. However, I want > > to > >> accomplish similar results for chapter titles via the passing of arguments > >> containing the chapter title and number. Numerous attempts at that have > >> resulted in abject failure. I am clearly missing something. > > > > Can't you use MkIV, it has better support for tracking? > > > > 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 > > ___ > > > ___ > 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 ___
Re: [NTG-context] curly bracket different values (entries)
Thank you for the clear answer. The only thing I wish that there was more information about mathcolumn (/MC) command on the wiki. with \startmathcases ... \stopmathcases you get a curly bracket to the left of "...", see [1]. If you just want to have multiline equations, then \startalign ... \stopalign could be want you need (it's also on page [1]). There's also a "My Way" [2] about mathalign. -- Best Regards, Vyatcheslav Yatskovsky ___ 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] Stretching chapter titles - MKII
On Wed, Feb 16, 2011 at 15:06, Tom wrote: > I tried to execute MKIV by typing in context hello.tex and got an error > message. Apparently something else needs to be installed. > > MTXrun | unknown script 'context.lua' or 'mtx-context.lua' Seems like there are some TEXMF... defined. Try to unset them (in bash 'unset TEXMFLOCAL' for example). Well, this solved the same issue the other day. -- Cédric > > What major changes to my documents will I likely need to make to shift to > MKIV? > > Tom Benjey > 717-258-9733 voice > 717-243-0074 fax > blog: www.TomBenjey.com > > > > > -Original Message- > Am 15.02.2011 um 01:45 schrieb Tom: > >> >> Follows is some code that executes. The lines immediately following >> \starttext create a sample of the desired output format. However, I want > to >> accomplish similar results for chapter titles via the passing of arguments >> containing the chapter title and number. Numerous attempts at that have >> resulted in abject failure. I am clearly missing something. > > Can't you use MkIV, it has better support for tracking? > > 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 > ___ > ___ 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] Stretching chapter titles - MKII
I tried to execute MKIV by typing in context hello.tex and got an error message. Apparently something else needs to be installed. MTXrun | unknown script 'context.lua' or 'mtx-context.lua' What major changes to my documents will I likely need to make to shift to MKIV? Tom Benjey 717-258-9733 voice 717-243-0074 fax blog: www.TomBenjey.com -Original Message- Am 15.02.2011 um 01:45 schrieb Tom: > > Follows is some code that executes. The lines immediately following > \starttext create a sample of the desired output format. However, I want to > accomplish similar results for chapter titles via the passing of arguments > containing the chapter title and number. Numerous attempts at that have > resulted in abject failure. I am clearly missing something. Can't you use MkIV, it has better support for tracking? 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] problem with doifolderversionelse and correspondence module
On 16-2-2011 9:20, Florian Wobbe wrote: Hi, since beta 2011.02.14 23:30 the correspondence module complains that context is too old. what dates are fed into: doifolderversionelse - 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] curly bracket different values (entries)
Hi, with \startmathcases ... \stopmathcases you get a curly bracket to the left of "...", see [1]. If you just want to have multiline equations, then \startalign ... \stopalign could be want you need (it's also on page [1]). There's also a "My Way" [2] about mathalign. HTH, Stefan [1] http://wiki.contextgarden.net/Multiline_equations#Cases [2] http://dl.contextgarden.net/myway/mathalign.pdf On 15.02.2011 18:13, Vyatcheslav Yatskovsky wrote: Hi, Sorry for stealing the tread, but what "mathcases" do and how it is different from mathalign? Sometimes, I need to typeset multiline equations, and have to admit that this an obscure subject. Regards, Vyatcheslav ___ 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] problem with doifolderversionelse and correspondence module
Hi, since beta 2011.02.14 23:30 the correspondence module complains that context is too old. Florian ___ 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 ___