Re: [NTG-context] \inpu
Am 01.01.2012 um 08:00 schrieb luigi scarso: On Sun, Jan 1, 2012 at 4:28 AM, Michael Talbot-Wilson m...@view.net.au wrote: I thought I'd see if I could use ConTeXt. Here is my first try, hello.tex. \starttext \input header Hello, World!\startlua a = 1.5 b = 1.8 c = a * b tex.print(c) \stoplua plus1. \stoptext Didn't work because the file header.tex could not be found, even though kpsewhich can find it. I'm not sure that mkiv uses kpsewhich…. No, MkIV use a different system to find files. You should use mtxrun --locate, i.e. mtxrun --locate --all knuth The file list is updated with “mtxrun --generate” or “context --generate” (which will then run mtxrun). 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] Center (horizontal + vertical) an image in \setframed
Am 31.12.2011 um 15:33 schrieb Jan Heinen: Hello I want to center (horizontal and vertical) an image in a frame. 2. This is a complete example. I used a second \setframed to show the area in which the cow should be centered and middled: \definelayer[Kontaktdaten] [x=0mm, y=0mm, width=\paperwidth, height=\paperheight] \setupbackgrounds [paper] Do you know the difference between “paper” and “page”? [ background=Kontaktdaten, state=start ]% \starttext \setlayerframed [Kontaktdaten] [ width=120mm, height=120mm, hoffset=50mm, voffset=50mm ] [strut=no,offset=overlay,frame=on] {\framed [width=120mm, height=120mm]{~}}% \setlayerframed [Kontaktdaten] [ width=120mm, height=120mm, hoffset=50mm, voffset=50mm ] [strut=no,offset=overlay,frame=on] {\externalfigure[cow][width=100mm,height=100mm]}% test \page \stoptext \definelayer[Kontaktdaten][width=\paperwidth, height=\paperheight] \setupbackgrounds[page][background=Kontaktdaten] \starttext \setlayerframed [Kontaktdaten] [hoffset=50mm, voffset=50mm] [width=120mm, height=120mm, strut=no, frame=on] {\externalfigure[cow][width=100mm,height=100mm,frame=on]}% \dontleavehmode\page \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] indenting \startlines... \stoplines
Am 31.12.2011 um 20:33 schrieb Pablo Rodríguez: Hi there, I want to be a \startlines... \stoplines environment to be 10cm away from the left margin. I know this is a basic question, but I have no idea how to do it. As the lines environment has no margin keys you need the narrower environment to increase the left margin. \definenarrower[narrowlines][left=10cm] \setuplines [before={\startnarrowlines[left]}, after=\stopnarrowlines] \starttext \showframe \startlines One Two Three \stoplines \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] new beta
Am 01.01.2012 um 03:39 schrieb Li Yanrui (李延瑞): 2011/12/31 Hans Hagen pra...@wxs.nl: Hi, I uploaded a new beta. As I'm still in cleaning-up mode, the usual problems could show up as quite some code was adapted (moved around). For those interested there is a file 'status-mkiv' that can be run to get an overview of where we stand. One big change has been the way alignments are initialized. There were two methods (one for \setupalign and one for align keywords) and these have been merged into one. A side effect is that an alignment change is twice as fast as before which might make a difference in excessive usage of \framed and some table mechanisms. The indentation is broken. Please see this example: \setupindenting[first,2em,always] \starttext \input knuth \stoptext The result is that the first line of a paragraph is not indented but the other lines are indented. In mult-dim.mkvi there is a unwanted “-” in front of “#value”. -\setvalue{\??dimensionnormal\s!unknown}#value#dimension#small#medium#big{#dimension=-#value\relax} +\setvalue{\??dimensionnormal\s!unknown}#value#dimension#small#medium#big{#dimension=#value\relax} 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] xml processing
On 31-12-2011 21:55, Meer, H. van der wrote: Is there a macro to retrieve the name of the file when inside a call to \xmlprocessfile? no, there isn't -- - 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] indenting \startlines... \stoplines
On 01/01/2012 10:30 AM, Wolfgang Schuster wrote: Am 31.12.2011 um 20:33 schrieb Pablo Rodríguez: Hi there, I want to be a \startlines... \stoplines environment to be 10cm away from the left margin. I know this is a basic question, but I have no idea how to do it. As the lines environment has no margin keys you need the narrower environment to increase the left margin. Many thanks for your help, Wolfgang. 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 ___
[NTG-context] escaping % in urls
Hi there, I have the following sample: \define[1]\url{\goto{\hyphenatedurl{#1}}[url(#1)]} \starttext \url{http://buscon.rae.es/dpdI/SrvltGUIBusDPD?lema=puntos\%20suspensivos} \stoptext in which I try to escape %, but using the above approach I also get the \ printed. Which is the proper way to do it? (Not replacing %20 with a blank space.) 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] escaping % in urls
On Sun, Jan 01, 2012 at 02:26:39PM +0100, Pablo Rodríguez wrote: Hi there, I have the following sample: \define[1]\url{\goto{\hyphenatedurl{#1}}[url(#1)]} \starttext \url{http://buscon.rae.es/dpdI/SrvltGUIBusDPD?lema=puntos\%20suspensivos} \stoptext in which I try to escape %, but using the above approach I also get the \ printed. Which is the proper way to do it? (Not replacing %20 with a blank space.) I use \asciimode which leaves only 3 special characters \ { }, and the rest (including # and %) can be used normally. But then, your \define should be before \asciimode or moved to environment file. %% can be used as comment char. Regards, Khaled ___ 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] escaping % in urls
On Sun, Jan 01 2012, Pablo Rodríguez wrote: Which is the proper way to do it? (Not replacing %20 with a blank space.) This works (I don't know, if proper way or not...): \startasciimode \url{http://buscon.rae.es/dpdI/SrvltGUIBusDPD?lema=puntos%20suspensivos} \stopasciimode or \url{http://buscon.rae.es/dpdI/SrvltGUIBusDPD?lema=puntos\letterpercent20suspensivos} -- 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] escaping % in urls
On 01/01/2012 02:46 PM, Khaled Hosny wrote: On Sun, Jan 01, 2012 at 02:26:39PM +0100, Pablo Rodríguez wrote: Hi there, I have the following sample: \define[1]\url{\goto{\hyphenatedurl{#1}}[url(#1)]} \starttext \url{http://buscon.rae.es/dpdI/SrvltGUIBusDPD?lema=puntos\%20suspensivos} \stoptext in which I try to escape %, but using the above approach I also get the \ printed. Which is the proper way to do it? (Not replacing %20 with a blank space.) I use \asciimode which leaves only 3 special characters \ { }, and the rest (including # and %) can be used normally. But then, your \define should be before \asciimode or moved to environment file. %% can be used as comment char. Thanks for your reply, Kahled. Typing \asciimode after \starttext does the job. Thank again, 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] escaping % in urls
On 01/01/2012 02:48 PM, Peter Münster wrote: On Sun, Jan 01 2012, Pablo Rodríguez wrote: Which is the proper way to do it? (Not replacing %20 with a blank space.) This works (I don't know, if proper way or not...): \startasciimode \url{http://buscon.rae.es/dpdI/SrvltGUIBusDPD?lema=puntos%20suspensivos} \stopasciimode or \url{http://buscon.rae.es/dpdI/SrvltGUIBusDPD?lema=puntos\letterpercent20suspensivos} Thanks for your help, Peter. 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 ___
[NTG-context] strip space in xml
I have the following problem with xml processing. Spurious space is typeset, annoyingly visible when nearly equivalent structures are typeset one under another. Take the following node structure where the text node is the one intended to contribute to the typeset material, whereas anothernode is not. root node anothernode../anothernode text .. /text /node /root Doing in the root-node: \xmlstripnolines{#1}{/node}\xmlall{#1}{/node} removes some of the unwanted spaces but not all. Especially the space between /anothernode and text does not completely disappear (seen with \xmlstrippednolines). This also occurs when /anothernode and text are on the same line separated by a number of spaces. The space disappears when /anothernodetext are put next to another. However, this destroys the neat typography of the xml. The manual tells me that \xmlstripnolines ..collapses embedded spaces from nodes under node.. That seems correct in that obviously the code leaves one space from the intervening spaces/newlines. But this gains me nothing! Why leaving a single space between node and next-node? For me this defeats the purpose of xmlstripnolines. Can this be remedied? Hans van der Meer ___ 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] Pagereferences to more than one page
Happy New Year! I want to reference to more than one page. In the exampe above only page 2 is referenced - how to get 2,4 ? \starttext You can find red vehicles on \at{page:}[red] Here I want to see: You can find red vehicles on page 2,4 (only page 2 is wrong) \page \pagereference[red]Here is a red car. \page \pagereference[green]Here is a green car. \page \pagereference[red]Here is a red bus. \page \pagereference[green]Here is a green car. \page \stoptext Regards Jannis ___ 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] Custom chapter footer
Hi Hans, the following used to work. Has the syntax changed? \definetext[chapter][footer][pagenumber] \setuphead [chapter][footer=chapter] \starttext \chapter{test} \stoptext ! Undefined control sequence. Regards Andreas ___ 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] Custom chapter footer
Am 01.01.2012 um 22:39 schrieb Andreas Harder: Hi Hans, the following used to work. Has the syntax changed? This has to be changed in page-txt.mkvi: \def\resetlayouttextlines % public {\csname\??layouttextsreset\v!top \endcsname \csname\??layouttextsreset\v!header\endcsname \csname\??layouttextsreset\v!text \endcsname \csname\??layouttextsreset\v!footer\endcsname \csname\??layouttextsreset\v!bottom\endcsname \ifconditional\resyncaftertextline \calculateglobalvsizes %\recalculatebackgrounds \page_backgrounds_recalculate \global\setfalse\resyncaftertextline \fi} The user interface hasn’t changed but Hans is changing the names of all internal commands. 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 ___