[NTG-context] \starttyping while processing XML causing error
Hi, I have this minimal example: 1) Tasques.context: \environment ./entorn-xml \starttext A \xmlprocessfile{demo}{./dades.xml}{} B \stoptext 2) entorn-xml.tex: \startxmlsetups xml:demo:base \xmlsetsetup{demo}{*}{-} \xmlsetsetup{demo}{things|code|}{xml:demo:*} \stopxmlsetups \xmlregisterdocumentsetup{demo}{xml:demo:base} \startxmlsetups xml:demo:things \xmlflush{#1} \stopxmlsetups %TODO: startcode: http://www.ntg.nl/pipermail/ntg-context/2012/064750.html \startxmlsetups xml:demo:code \bigskip \startlines\xmlflush{#1}\stoplines \stopxmlsetups 3) dades.xml: ?xml version='1.0' standalone='yes' encoding=UTF-8? things code [root@serviedre ~]# pacman -Syu :: Synchronizing package databases... core 193.0 KiB 50.0K/s 00:04 [##] 100% extra2037.1 KiB 166K/s 00:12 [##] 100% community 2.2 MiB 374K/s 00:06 [##] 100% alarm 55.6 KiB 242K/s 00:00 [##] 100% aur64.0 KiB 288K/s 00:00 [##] 100% :: Starting full system upgrade... warning: linux-sun4i: ignoring package upgrade (3.4.79-1 = 3.4.79-2) warning: linux-sun4i-headers: ignoring package upgrade (3.4.79-1 = 3.4.79-2) there is nothing to do /code /things When I compile tasques.context, all is ok, but when I substitute the \startlines \stoplines with \starttyping \stoptyping context never ends. Is that a bug? I just found [this](http://www.ntg.nl/pipermail/ntg-context/2012/064750.html), but really no solution. Since 2012 I suppose many things are changed so I ask. Why doesn't it work? Thanks in advance, Xan. ___ 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] tweaking placefloat
Hi wizards, in a new book project I need to place some photos covering the upper or lower half of the page (bleeding, not within textarea) with a caption below resp. above the photo, within textwidth. Is it possible to tweak placefloat, so that I can use \placefloat[here,top/bottom]{Caption}{\externalfigure[something][width=\the\dimexpr\paperwidth+3mm\relax]} for this layout? Or is there a better solution? Should I use layers instead? Greetlings, Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ 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] Problems with XML and table of contents
Hi, I have this: \definehead [Fitxa] [subsubject] \setuphead [Fitxa][textstyle=sca,align=normal,color=headingcolor,before={},ownnumber=yes,incrementnumber=yes,number=no,strut=no] \setuplabeltext [Fitxa=Fitxa] \setuplist[Fitxa] [margin=4em,interaction=text,color=green,textcommand=\WORD] %\setuplist [Fitxa] [width=2em,criterium=all,interaction=all] \newcounter\FitxaNumber \def\fitxa#1% {\doglobal\increment\FitxaNumber \Fitxa{\FitxaNumber}{#1}} \setupcombinedlist[content][list={chapter,section,subsection,Fitxa,tasca},interaction=all,textcolor=black] and \startxmlsetups xml:demo:titol \fitxa{\xmltext{#1}{/}} \stopxmlsetups In the document all is ok, but in the table of contents, I get phantom content. Any clue? Thanks in advance, Xan ___ 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] How can I use Aditya filter module within XML?
Hi, Is it possible to use paragraph \startmarkdown bla... \stopmarkdown /paragraph With my code (xmlflush) the start/stopmarkdown is printed without interpretation. Regards, Xan ___ 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] typewriter style with Constantia
Hi, With the following setup and ConTeXt version 2014.02.14 I got typewriter style: --8---cut here---start-8--- \definefontfamily[constantia][sans][Constantia] \setupbodyfont[constantia] \starttext normal and \type{mono} \stoptext --8---cut here---end---8--- But not with version 2014.03.25. What should I do to get typewriter style please? TIA for any help, -- Peter ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] typewriter style with Constantia
Am 27.03.2014 um 16:21 schrieb Peter Münster pmli...@free.fr: Hi, With the following setup and ConTeXt version 2014.02.14 I got typewriter style: --8---cut here---start-8--- \definefontfamily[constantia][sans][Constantia] \setupbodyfont[constantia] \starttext normal and \type{mono} \stoptext --8---cut here---end---8--- But not with version 2014.03.25. What should I do to get typewriter style please? You have to specify a font for monospaced text and it’s better to set also a font for math. \definefontfamily[constantia][serif][Constantia] \definefontfamily[constantia][mono] [Consolas] \definefontfamily[constantia][math] [TeX Gyre Pagella Math] \setupbodyfont[constantia] \starttext normal and \type{mono} \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] wrong bookmark destinations in PDF files
Hans, I’m afraid that bookmark destinations are wrong in latest beta from 2014.03.25 16:58. Here you have the minimal sample (that I copied from source): \nopdfcompression \starttext \setupinteraction[state=start]\setupinteractionscreen[option=bookmark] \placebookmarks[chapter,section,subsection][chapter] \chapter{First} \bookmark{The First Indeed} \section{alpha} \bookmark[chapter]{The First Indeed Again} \section{beta} \chapter{Second} \bookmark{The Second Indeed} \section{gamma \tex{radiation}} \subsection{a} \subsection{b} \section{delta} \section{epsilon} \chapter{Third \relax} \chapter{我〈能吞下玻璃而不傷身〉體。}% whatever that means \chapter{Idris Samawi Hamid ادريس سماوي حامد} \stoptext The output generated with beta from 2014.03.25 16:58 (http://www.ousia.tk/wrong-destination.pdf) contains bookmarks that don’t work either in okular or in SumatraPDF (I don’t have other viewers to check it). The output generated with beta from 2014.03.07 11:42 (http://www.ousia.tk/right-destination.pdf) works fine with these viewers. I’m afraid this might be a 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] wrong bookmark destinations in PDF files
On 3/27/2014 7:13 PM, Pablo Rodriguez wrote: Hans, I’m afraid that bookmark destinations are wrong in latest beta from 2014.03.25 16:58. Here you have the minimal sample (that I copied from source): \nopdfcompression \starttext \setupinteraction[state=start]\setupinteractionscreen[option=bookmark] \placebookmarks[chapter,section,subsection][chapter] \chapter{First} \bookmark{The First Indeed} \section{alpha} \bookmark[chapter]{The First Indeed Again} \section{beta} \chapter{Second} \bookmark{The Second Indeed} \section{gamma \tex{radiation}} \subsection{a} \subsection{b} \section{delta} \section{epsilon} \chapter{Third \relax} \chapter{我〈能吞下玻璃而不傷身〉體。}% whatever that means \chapter{Idris Samawi Hamid ادريس سماوي حامد} \stoptext fixed (hopefully) The output generated with beta from 2014.03.25 16:58 (http://www.ousia.tk/wrong-destination.pdf) contains bookmarks that don’t work either in okular or in SumatraPDF (I don’t have other viewers to check it). The output generated with beta from 2014.03.07 11:42 (http://www.ousia.tk/right-destination.pdf) works fine with these viewers. I’m afraid this might be a bug. indeed a side effect of a partial reimplementation 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 ___
[NTG-context] new blank
Hi, this works ok in the beta \showmakeup \starttext \strut \hfill first line \blank[overlay] second line \hfill \strut \ruledvbox { \strut \hfill line 1 \blank[overlay] line 2\hfill \strut \blank[overlay] \strut \hfill line 3\hfill \strut } \startitemize[n] \item bla \item \startitemize[a] \item bla $\displaystyle\int^{x^{y^4}}$ \item bla \stopitemize \stopitemize \stoptext (somewhat tricky solution for the reported itemize issue) - 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] \starttyping while processing XML causing error
On 3/27/2014 9:46 AM, Xan wrote: \starttext A \xmlprocessfile{demo}{./dades.xml}{} B \stoptext \startxmlsetups xml:demo:code \blank \start \ttx \xmlverbatim{#1} \stop \blank \stopxmlsetups -- - 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] Problems with XML and table of contents
On 3/27/2014 11:55 AM, Xan wrote: Hi, I have this: \definehead [Fitxa] [subsubject] \setuphead [Fitxa][textstyle=sca,align=normal,color=headingcolor,before={},ownnumber=yes,incrementnumber=yes,number=no,strut=no] \setuplabeltext [Fitxa=Fitxa] \setuplist[Fitxa] [margin=4em,interaction=text,color=green,textcommand=\WORD] %\setuplist [Fitxa] [width=2em,criterium=all,interaction=all] \newcounter\FitxaNumber \def\fitxa#1% {\doglobal\increment\FitxaNumber \Fitxa{\FitxaNumber}{#1}} \setupcombinedlist[content][list={chapter,section,subsection,Fitxa,tasca},interaction=all,textcolor=black] and \startxmlsetups xml:demo:titol \fitxa{\xmltext{#1}{/}} \stopxmlsetups In the document all is ok, but in the table of contents, I get phantom content. Any clue? \definehead [Fitxa] [subsection][ownnumber=yes,expansion=yes] \newcounter\FitxaNumber \startxmlsetups xml:demo:base \xmlsetsetup{demo}{*}{xml:demo:*} \stopxmlsetups \xmlregisterdocumentsetup{demo}{xml:demo:base} \startxmlsetups xml:demo:d \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:demo:t \doglobal\increment\FitxaNumber \Fitxa{\FitxaNumber}{\xmlflush{#1}} \stopxmlsetups \startxmlsetups xml:demo:b \start \bf \xmlflush{#1} \stop \stopxmlsetups \starttext \placelist[Fitxa][criterium=all] \page \xmlprocessfile{demo}{./x.xml}{} \stoptext ?xml version='1.0' standalone='yes' encoding=UTF-8? d tnormal bbold/b/t tsome more/t /d - 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] new blank
Hello, ** Hans Hagen [2014-03-27 20:09:55 +0100]: Hi, this works ok in the beta \showmakeup \starttext \strut \hfill first line \blank[overlay] second line \hfill \strut \ruledvbox { \strut \hfill line 1 \blank[overlay] line 2\hfill \strut \blank[overlay] \strut \hfill line 3\hfill \strut } \startitemize[n] \item bla \item \startitemize[a] \item bla $\displaystyle\int^{x^{y^4}}$ \item bla \stopitemize \stopitemize \stoptext This example causes luatex to core dump on my system: Archlinux x86_64 with up-to-date ConTeXt Suite, though this example works fine on Windows x64. Seems that linux binaries a bit outdated, I get here: $ luatex --version | head -n 1 This is LuaTeX, Version beta-0.78.2 (TeX Live 2014/dev) (rev 4746) while on Windows: luatex --version This is LuaTeX, Version beta-0.79.0 (TeX Live 2013/W32TeX) (rev 4953) ... For the record, this is message that luatex shows on Linux: ... luatex: ../../../source/texk/web2c/luatexdir/tex/texnodes.w:830: free_error: Assertion `p my_prealloc' failed. mtx-context | fatal error: no return code, message: luatex: execution interrupted --- WBR, Vladimir Lomov -- True happiness will be found only in true love. ___ 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 ___