Re: [NTG-context] export images
Am 21.03.2015 um 03:09 schrieb Idris Samawi Hamid ادريس سماوي حامد isha...@colostate.edu: Dear gang, How do we get images in the export? Here is my sample (also attached): == \setupbackend[export=yes] \starttext \startalignment [middle] \dontleavehmode \externalfigure[mill.png] \stopalignment \stoptext == div output: == div div class=image id=image-1!--empty--/div /div == So it seems that \externalfigure[mill.png] is tagged in the output but the image itself is ignored. What am I missing here? pdf output is correct; I copied mill.png from the context sample folder /tex/texmf-context/tex/context/sample/mill.png Put mill.png in the images folder which should exist in the export folder. 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] tabulate and header=repeat
Hello, I have a simple problem with headers and tabulate spread over multiple pages. In the following MWE, the header's \HL gets rendered twice on its first instance (the first page). My error must be something simple (and obvious)? Thanks Alan \setupbodyfont [dejavu,12pt] \setuptabulate[split=yes,header=repeat] \starttext \starttabulatehead \NC \type{\input} \NC text \NC\NR \HL \stoptabulatehead \starttabulate [|r|p|] \NC knuth \NC \input knuth \NC\NR \NC tufte \NC \input tufte \NC\NR \NC ward\NC \input ward\NC\NR \NC darwin \NC \input darwin \NC\NR \NC dawkins \NC \input dawkins \NC\NR \NC reich \NC \input reich \NC\NR \HL \stoptabulate \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] tabulate and header=repeat
Am 21.03.2015 um 18:22 schrieb Alan BRASLAU alan.bras...@cea.fr: Hello, I have a simple problem with headers and tabulate spread over multiple pages. In the following MWE, the header's \HL gets rendered twice on its first instance (the first page). My error must be something simple (and obvious)? There are actually three different rule command (\FL, \ML and \LL) which are used from the \HL dependent on the position in the table and in the table header this auto selection can be wrong because ConTeXt uses \ML while \LL should be used instead. To fix the double rule on the first page use \LL as last rule in the header. \starttabulatehead \NC \type{\input} \NC text \NC\NR \LL \stoptabulatehead 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] export images
On Sat, 21 Mar 2015 02:55:08 -0600, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Am 21.03.2015 um 03:09 schrieb Idris Samawi Hamid ادريس سماوي حامد isha...@colostate.edu: Dear gang, How do we get images in the export? Here is my sample (also attached): == \setupbackend[export=yes] \starttext \startalignment [middle] \dontleavehmode \externalfigure[mill.png] \stopalignment \stoptext == div output: == div div class=image id=image-1!--empty--/div /div == So it seems that \externalfigure[mill.png] is tagged in the output but the image itself is ignored. What am I missing here? pdf output is correct; I copied mill.png from the context sample folder /tex/texmf-context/tex/context/sample/mill.png Put mill.png in the images folder which should exist in the export folder. Thanks, Wolfgang! One more question on this: How can I setup the images so that I don't have to toggle, e.g. \externalfigure[basmalah.png][width=3in] % \externalfigure[basmalah.pdf][width=3in] Is there a way to tell the export to use the png option, while telling the pdf output to use the pdf? This is important when the image is made from a font (no needs scalability in the pdf). Thanks again, Wolfgang, and Best wishes Idris -- Idris Samawi Hamid Professor of Philosophy Colorado State University Fort Collins, CO 80523 ___ 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] Columns and itemize not showing up as expected
2015-03-21 14:33 GMT+01:00 Mikael P. Sundqvist mic...@gmail.com: \startitemize[columns] \item a \item b \item c \item d \item e \item f \stopitemize \stoptext This one works. Thank you! Is there a way to have other column count than 2? ___ 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] Columns and itemize not showing up as expected
On Sat, Mar 21, 2015 at 2:54 PM, Norbert Melzer timmel...@gmail.com wrote: This one works. Thank you! Is there a way to have other column count than 2? \startitemize[columns,three] seems to give three columns. /Mikael ___ 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] Columns and itemize not showing up as expected
The MWE at the end of this mail typesets something like this: * a * e * b * f * c * d But I'd expect something like this: * a * d * b * e * c * f How can I get expected output? ```tex \starttext \startcolumns[n=2] \startitemize \item a \item b \item c \item d \item e \item f \stopitemize \stopcolumns \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] Columns and itemize not showing up as expected
On Sat, Mar 21, 2015 at 1:38 PM, Norbert Melzer timmel...@gmail.com wrote: \startcolumns[n=2] \startitemize \item a \item b \item c \item d \item e \item f \stopitemize \stopcolumns Try \starttext \startcolumns[n=2] \startitemize \item a \item b \item c \item d \item e \item f \stopitemize \stopcolumns \startitemize[columns] \item a \item b \item c \item d \item e \item f \stopitemize \stoptext /Mikael ___ 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 images
Am 21.03.2015 um 12:01 schrieb Idris Samawi Hamid ادريس سماوي حامد isha...@colostate.edu: On Sat, 21 Mar 2015 02:55:08 -0600, Wolfgang Schuster schuster.wolfg...@gmail.com mailto:schuster.wolfg...@gmail.com wrote: Am 21.03.2015 um 03:09 schrieb Idris Samawi Hamid ادريس سماوي حامد isha...@colostate.edu: Dear gang, How do we get images in the export? Here is my sample (also attached): == \setupbackend[export=yes] \starttext \startalignment [middle] \dontleavehmode \externalfigure[mill.png] \stopalignment \stoptext == div output: == div div class=image id=image-1!--empty--/div /div == So it seems that \externalfigure[mill.png] is tagged in the output but the image itself is ignored. What am I missing here? pdf output is correct; I copied mill.png from the context sample folder /tex/texmf-context/tex/context/sample/mill.png Put mill.png in the images folder which should exist in the export folder. Thanks, Wolfgang! One more question on this: How can I setup the images so that I don't have to toggle, e.g. \externalfigure[basmalah.png][width=3in] % \externalfigure[basmalah.pdf][width=3in] Is there a way to tell the export to use the png option, while telling the pdf output to use the pdf? This is important when the image is made from a font (no needs scalability in the pdf). You can try to use the *export mode to use different images for the XML and PDF output. The first method is to drop the file extension and tell context to use the PNG files when the export is enabled. %\setupbackend[export=yes] % uncomment to enable *export mode \startmode[*export] \useexternalfigure[basmalah] [basmalah.png] \stopmode % possible but not necessary because ConTeXt prefers images in the PDF format % % \startnotmode[*export] % \useexternalfigure[basmalah] [basmalah.pdf] % \stopnotmode \starttext \externalfigure[basmalah] \stoptext The second method is to specify which image should be used when the export is disabled/enabled. %\setupbackend[export=yes] % uncomment to enable *export mode \starttext \doifmodeelse{*export} {\externalfigure[basmalah.png]} {\externalfigure[basmalah.pdf]} \stoptext The third method is to use two folders for the images in PDF and PNG format. %\setupbackend[export=yes] % uncomment to enable *export mode \doifmodeelse[*export] {\setupexternalfigures[directory=pngimages]} {\setupexternalfigures[directory=pdfimages]} \starttext \externalfigure[basmalah] \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] export images
On Sat, 21 Mar 2015 06:11:24 -0600, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Am 21.03.2015 um 12:01 schrieb Idris Samawi Hamid ادريس سماوي حامد isha...@colostate.edu: On Sat, 21 Mar 2015 02:55:08 -0600, Wolfgang Schuster schuster.wolfg...@gmail.com mailto:schuster.wolfg...@gmail.com wrote: Am 21.03.2015 um 03:09 schrieb Idris Samawi Hamid ادريس سماوي حامد isha...@colostate.edu: Dear gang, How do we get images in the export? Here is my sample (also attached): == \setupbackend[export=yes] \starttext \startalignment [middle] \dontleavehmode \externalfigure[mill.png] \stopalignment \stoptext == div output: == div div class=image id=image-1!--empty--/div /div == So it seems that \externalfigure[mill.png] is tagged in the output but the image itself is ignored. What am I missing here? pdf output is correct; I copied mill.png from the context sample folder /tex/texmf-context/tex/context/sample/mill.png Put mill.png in the images folder which should exist in the export folder. Thanks, Wolfgang! One more question on this: How can I setup the images so that I don't have to toggle, e.g. \externalfigure[basmalah.png][width=3in] % \externalfigure[basmalah.pdf][width=3in] Is there a way to tell the export to use the png option, while telling the pdf output to use the pdf? This is important when the image is made from a font (no needs scalability in the pdf). You can try to use the *export mode to use different images for the XML and PDF output. The first method is to drop the file extension and tell context to use the PNG files when the export is enabled. %\setupbackend[export=yes] % uncomment to enable *export mode \startmode[*export] \useexternalfigure[basmalah] [basmalah.png] \stopmode % possible but not necessary because ConTeXt prefers images in the PDF format % % \startnotmode[*export] % \useexternalfigure[basmalah] [basmalah.pdf] % \stopnotmode \starttext \externalfigure[basmalah] \stoptext The second method is to specify which image should be used when the export is disabled/enabled. %\setupbackend[export=yes] % uncomment to enable *export mode \starttext \doifmodeelse{*export} {\externalfigure[basmalah.png]} {\externalfigure[basmalah.pdf]} \stoptext The third method is to use two folders for the images in PDF and PNG format. %\setupbackend[export=yes] % uncomment to enable *export mode \doifmodeelse[*export] {\setupexternalfigures[directory=pngimages]} {\setupexternalfigures[directory=pdfimages]} \starttext \externalfigure[basmalah] \stoptext Thank you so much or the wisdom, Wolfgang; very much appreciated! Best wishes Idris -- Idris Samawi Hamid Professor of Philosophy Colorado State University Fort Collins, CO 80523 ___ 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] mkiv versus mkii: whitespace issues
On 20 Mar 2015, at 18:33, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Am 20.03.2015 um 14:43 schrieb Gerben Wierda gerben.wie...@rna.nl: Sorry to ask again, but is there no solution? Can you send a *working* minimal example! I don’t know how. It happens with my project. I can’t publish my entire project’s source code as it is for a book that is sold commercially. I’ll look into trying to make a minimal example. But so far I haven’t been able to. G 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] tabulate and header=repeat
On Sat, 21 Mar 2015 18:50:29 +0100 Wolfgang Schuster schuster.wolfg...@gmail.com wrote: in the table header this auto selection can be wrong because ConTeXt uses \ML while \LL should be used instead. To fix the double rule on the first page use \LL as last rule in the header. Thank you. I have modified the wiki as well. Alan ___ 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 interaction and TOC
Dear list, I have the following sample: \setupinteraction[state=start] \starttext \placelist[chapter] %~ \uppercasestring{context}\to\ascii %~ \chapter{\getvalue{\ascii}} \chapter{ConTeXt} \stoptext ConTeXt complains about an error in the first line. What am I doing wrong? (Sorry, but I wanted to test the commented lines, but I don’t know why the simplified example doesn’t work.) 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] problem with interaction and TOC
On 3/21/2015 10:49 PM, Pablo Rodriguez wrote: Dear list, I have the following sample: \setupinteraction[state=start] \starttext \placelist[chapter] %~ \uppercasestring{context}\to\ascii %~ \chapter{\getvalue{\ascii}} \chapter{ConTeXt} \stoptext ConTeXt complains about an error in the first line. What am I doing wrong? (Sorry, but I wanted to test the commented lines, but I don’t know why the simplified example doesn’t work.) \uppercasestring{context}\to\ascii \chapter{\meaning\ascii} % \getvalue{\ascii}} \chapter{\WORD{ConTeXt}} so, \ascii is made undefined at some time - 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 ___