Re: [NTG-context] Asymptote or Metapost and ConTeXt parameters.
On Tue, 20 Dec 2016, Jaroslav Hajtmar wrote: very much for your Metapost example. This I certainly sufficient for the production of simple images for my ideas. \define[1]\mycircle{ \startASY import graph; draw(Circle((0,0),#1)); \stopASY } \starttext \mycircle{20} \mycircle{30} \mycircle{40} \stoptext It is already feasible to define something this simple using the filter module. I don't have asymptote installed on the machine that I am currently working on, but here is an example that uses pandoc. \usemodule[filter] \defineexternalfilter [MARKDOWN] [ filtercommand={pandoc -f markdown -t context \externalfilterinputfile\space -o \externalfilteroutputfile}, cache=yes, purge=no, % Just for testing. May be removed. ] \define[1]\TEST {\setbuffer[MARKDOWN]This is #1\endbuffer \processMARKDOWNbuffer[MARKDOWN]} \starttext \startMARKDOWN This is **one** \stopMARKDOWN \TEST{**ONE**} \TEST{_TWO_} \stoptext With this method, the results are not cached. Let me know if this works for your needs. 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] header text style and dimension
Dear, I want to reduce the dimension of only the header text and have it italic. Sorry, should be easy, but I tested a bit and can’t have it working by setting \setupheader. Thanks a lot -a- -- Andrea Valle -- CIRMA - StudiUm Università degli Studi di Torino --> http://www.cirma.unito.it/andrea/ --> http://www.fonurgia.unito.it/andrea/ --> http://www.flickr.com/photos/vanderaalle/sets/ --> http://vimeo.com/vanderaalle --> andrea.va...@unito.it -- "This is a very complicated case, Maude. You know, a lotta ins, a lotta outs, a lotta what-have-yous." (Jeffrey 'The Dude' Lebowski) -- Andrea Valle -- CIRMA - StudiUm Università degli Studi di Torino --> http://www.cirma.unito.it/andrea/ --> http://www.fonurgia.unito.it/andrea/ --> http://www.flickr.com/photos/vanderaalle/sets/ --> http://vimeo.com/vanderaalle --> andrea.va...@unito.it -- "This is a very complicated case, Maude. You know, a lotta ins, a lotta outs, a lotta what-have-yous." (Jeffrey 'The Dude' Lebowski) ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] "\" in text from "\comment"
On 12/21/2016 9:29 PM, Pablo Rodriguez wrote: Dear Hans, I’m afraid I might have hit a bug (with beta from 2016.12.21 18:51): \startbuffer[demo] pandoc \ConTeXt\ is great \stopbuffer \startxmlsetups xml:initialize %~ \xmlsetsetup{#1}{doc|p|pre|code}{xml:*} \xmlsetsetup{#1}{doc|p|code}{xml:*} \xmlsetsetup{#1}{pre/code}{xml:pre:code} \stopxmlsetups \xmlregistersetup{xml:initialize} \startxmlsetups xml:doc \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:pre:code \comment[symbol=Key, location=inmargin, color=yellow]{\xmlflush{#1}}\xmlprettyprint{#1}{tex} \stopxmlsetups \setuppapersize[A6] \setupinteraction[state=start] \starttext \xmlprocessbuffer{main}{demo}{} \stoptext Text from comment reads "\Ux {5C}ConTeXt\Ux {5C} is great". It should read "\ConTeXt\ is great". Am I missing something or is this a real bug? \startxmlsetups xml:pre:code solution one \begingroup \expandUx \comment[symbol=Key, location=inmargin,color=yellow]{\xmlflush{#1}} \endgroup \par solution two \comment[symbol=Key, location=inmargin,color=yellow]{\xmlpure{#1}} \par \xmlprettyprint{#1}{tex} \stopxmlsetups - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] "\" in text from "\comment"
Dear Hans, I’m afraid I might have hit a bug (with beta from 2016.12.21 18:51): \startbuffer[demo] pandoc \ConTeXt\ is great \stopbuffer \startxmlsetups xml:initialize %~ \xmlsetsetup{#1}{doc|p|pre|code}{xml:*} \xmlsetsetup{#1}{doc|p|code}{xml:*} \xmlsetsetup{#1}{pre/code}{xml:pre:code} \stopxmlsetups \xmlregistersetup{xml:initialize} \startxmlsetups xml:doc \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:pre:code \comment[symbol=Key, location=inmargin, color=yellow]{\xmlflush{#1}}\xmlprettyprint{#1}{tex} \stopxmlsetups \setuppapersize[A6] \setupinteraction[state=start] \starttext \xmlprocessbuffer{main}{demo}{} \stoptext Text from comment reads "\Ux {5C}ConTeXt\Ux {5C} is great". It should read "\ConTeXt\ is great". Am I missing something or is this a real bug? Many thanks for your help, Pablo -- http://www.ousia.tk ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] references.bookmarks.preroll and quotation
On 12/21/2016 8:28 AM, Christoph Reller wrote: Hi, I have the following MWE: \setupinteraction[state=start] \placebookmarks[chapter] \enabledirectives[references.bookmarks.preroll] \starttext \startchapter[title=B \quotation{C} D] \input ward \stopchapter \stoptext The generated bookmark has wrongly placed spaces: B“ C ” D Without the directive references.bookmarks.preroll, the bookmark is: B "C" D I need this directive because in titles I use macros that use \autoinsertnextspace. Is this a bug? Any feedback is welcome. fixed in next beta Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___