Re: [NTG-context] parsing in child attribute
Hello, On Mon, 04 May 2015 00:09:38 +0200, Pablo Rodriguez oi...@gmx.es wrote: And chapter 7 is especially cryptic to me, In fact, I tried \xmlattribute {#1} {../div} {id} before and it didn’t worked. Now I don’t understand why. I must confirm Pablo's experience with myself - chapter Example paths just tell me there are great possibilities with x-paths but I'm not able to assemble them successfully. E.g. there is (pg. 38): pattern: answer/test/child: 1 axis auto-descendent-or-self 2 nodes *:answer 3 axis auto-child 4 nodes *:test 5 axis child How to understand this? What does axis / node mean? What numbers 1 ... 5 mean? Some basic explanation of such pattern would be nice... Best regards, Lukas -- Ing. Lukáš Procházka | mailto:l...@pontex.cz Pontex s. r. o. | mailto:pon...@pontex.cz | http://www.pontex.cz Bezová 1658 147 14 Praha 4 Tel: +420 241 096 751 Fax: +420 244 461 038 ___ 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] bug with \writebetweenlist and bookmarks?
On 5/2/2015 10:16 PM, Pablo Rodriguez wrote: Dear list, I have the following sample: \setupinteraction[state=start] \placebookmarks[chapter] \startsectionblockenvironment[bodypart] \writebetweenlist[chapter]{{\blank[3*halfline]}} \stopsectionblockenvironment \startsectionblockenvironment[backpart] \writebetweenlist[chapter]{{\blank[3*halfline]}} \stopsectionblockenvironment \starttext \chapter{Introduction} \startbodymatter \chapter{First Chapter} \stopbodymatter \startbackmatter \chapter{Conclusions} \stopbackmatter \stoptext For some strange reason, the \writebetweenlist commands also add bookmarks with a question mark to the PDF bookmarks in the PDF file. Is this a bug or am I missing something? line 147 in strc-bkm.lua: elseif second then titledata = { title = second } else -- ignoring (command and so) end Many thanks for your help, Pablo -- - 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] Removing a single ligature and using swash alternates
On 5/1/2015 4:18 PM, Manuel Blanco wrote: Hello, I'm using Minion Pro, and I would like to remove the Th ligature (but only that one). Also, I'm trying to define a \swash command that uses swash from Minion Pro Italic. Any help? \usemodule [simplefonts] [size=11pt] \setmainfont [Minion Pro] [expansion=quality, protrusion=quality] \setupalign [hz,hanging] \noligature{Th}anks Thanks! ___ 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 ___ -- - 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] Bleeding pictures as floats?
Hi, I hope BachoTeX was a success! Is it possible to use the float placing mechanisms for pictures that go beyond the type area or even beyond the page? In the book I’m typesetting, most pictures need to fill the whole width of the page (i.e. plus 3mm bleed), but not all cover a full page. I don’t know how to tell \externalfigure or \placefloat a negative offset. Or can I use layers with floats? Of course the text should flow around the pictures. BTW, what does the „object“ key of \setupexternalfigures do? Greetlings, Hraban --- http://www.fiee.net 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 ___
Re: [NTG-context] Bleeding pictures as floats?
Am 04.05.2015 um 12:53 schrieb Henning Hraban Ramm te...@fiee.net: Hi, I hope BachoTeX was a success! Is it possible to use the float placing mechanisms for pictures that go beyond the type area or even beyond the page? In the book I’m typesetting, most pictures need to fill the whole width of the page (i.e. plus 3mm bleed), but not all cover a full page. I don’t know how to tell \externalfigure or \placefloat a negative offset. Or can I use layers with floats? Of course the text should flow around the pictures. Does the details manual [1] answer your questions? [1] http://pragma-ade.com/show-man-27.htm http://pragma-ade.com/show-man-27.htm 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] Bleeding pictures as floats?
Am 2015-05-04 um 17:10 schrieb Wolfgang Schuster schuster.wolfg...@gmail.com: Is it possible to use the float placing mechanisms for pictures that go beyond the type area or even beyond the page? In the book I’m typesetting, most pictures need to fill the whole width of the page (i.e. plus 3mm bleed), but not all cover a full page. I don’t know how to tell \externalfigure or \placefloat a negative offset. Or can I use layers with floats? Of course the text should flow around the pictures. Does the details manual [1] answer your questions? [1] http://pragma-ade.com/show-man-27.htm Thank you, that helped, but not enough. I have now: \def\bleed{3mm} \def\maxWidth{\dimexpr(\paperwidth+\bleed)} \definefloat[bleedfigure][figure] \setupfloat[bleedfigure] [ outermargindistance=-\bleed, % does that exist? leftmargindistance=-\bleed, rightmargindistance=-\bleed, default={cutspace,none}, maxwidth=\maxWidth ] \def\topfig#1#2{\placebleedfigure[top]{#1}{\offset[topoffset=\dimexpr(-\topspace-\bleed)]{\externalfigure[#2][width=\maxWidth]}}} With that my pictures start at 0,-3mm, but they should start at -3mm,-3mm on a left page. Their maximum width is only \paperwidth, without bleed. Where’s my mistake? Greetlings, Hraban --- http://www.fiee.net 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 ___
Re: [NTG-context] updating ConTeXt minimals to latest version
Thanks, Hans. All is working as it should now. Alan On Sun, May 3, 2015 at 3:08 PM, Hans Hagen pra...@wxs.nl wrote: On 5/3/2015 5:09 PM, Mojca Miklavec wrote: On Sun, May 3, 2015 at 1:26 PM, Alan Bowen wrote: Though version 2015-05-01 is now available, running first-setup.sh retrieves only version 2015-04-18. Are we waiting for the latest minimal files to migrate or is the problem at my end? The problem is that we are fetching files from rsync and judging from the past experience Hans is usually unable to access his servers while at BachoTeX, so most likely he updated the website, but not the rsync server. i need to vpn into the pragma network and the dmz is only accessible when i'm on the inside (which means jumping through several loops and the connection from bt is often overloaded and slow i'll make a beta asap (back home now) 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 ___ ___ 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] Newbie needs help getting started
Hi, I'm trying to get ConTeXt to run on my Windows machine (Windows 7 SP1). I already had MiKTeX installed on the machine. Here is what I did: 1. I downloaded context-setup-mswin.zip. 2. I unzipped and copied the folder to C:/context 3. I ran the command first-setup.bat --context=current --modules=all 4. I added C:\context\tex\texmf-win64\bin to my PATH variable 5. I opened up the example file at http://wiki.contextgarden.net/Hello_world in TeXWorks 6. I selected ConTeXt(LuaTeX) 7. I compiled the file The compilation failed. The log says: mtx-context | warning: synctex is enabled mtx-context | run 1: luatex --fmt=C:/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en --jobname=HelloWorld --lua=C:/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui --no-parse-first-line --synctex=1 --c:currentrun=1 --c:fulljobname=./HelloWorld.tex --c:input=./HelloWorld.tex --c:kindofrun=1 --c:maxnofruns=8 --c:synctex cont-yes.mkiv This is LuaTeX, Version beta-0.76.0-2013062820 (rev 4627) \write18 enabled. (Fatal format file error; I'm stymied) mtx-context | fatal error: return code: 1 What am I doing wrong? Thank you, Johan Råde ___ 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] Removing a single ligature and using swash alternates
The problem is that it's a 500 page document, I would like a general way to deactivate the Th ligature. If there's no “semiautomated system” (like feature files) to remove ligatures, I guess it could be possible to do a general replacement in the document, altough I don't remember the command, I think I might have seen something like \definereplacement [Th] [\noligature{Th}] that would, in a hackish way, deactivate it. What's the exact interface in that case? No idea about the Swashes? I thought that this would work \definefontfeature [swash] [swsh=yes] \setmainfont [Minion Pro] [features=swash, expansion=quality, protrusion=quality] but it doesn't. \noligature{Th}anks! :) 2015-05-04 11:00 GMT+02:00 Hans Hagen pra...@wxs.nl: On 5/1/2015 4:18 PM, Manuel Blanco wrote: Hello, I'm using Minion Pro, and I would like to remove the Th ligature (but only that one). Also, I'm trying to define a \swash command that uses swash from Minion Pro Italic. Any help? \usemodule [simplefonts] [size=11pt] \setmainfont [Minion Pro] [expansion=quality, protrusion=quality] \setupalign [hz,hanging] \noligature{Th}anks Thanks! ___ 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 ___ -- - 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 ___ ___ 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] alternative numerical \cite command
Hello list members: For inserting citations ConTeXt offers several \cite command alternatives. If I understand correctly citations can be inserted like: \cite[key], when the document's default cite type is used, or: \cite[authoryear][key], \cite[author][key] etc., where the citation style is set by the first option. These citation styles are predefined in context. What I would like to do is inserting alternative numerical citations: normal superscript citations, like this^1, and occasionally inline citations in brackets, like this one [2]. How could I define alternative numerical citation style, e.g. \cite[inum][key] on the analogy of author, authoryear etc. styles? Thanks, bcsikos ___ 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] alternative numerical \cite command
On Mon, 4 May 2015 15:10:06 +0200 Csikos Bela bcsikos...@freemail.hu wrote: These citation styles are predefined in context. What I would like to do is inserting alternative numerical citations: normal superscript citations, like this^1, and occasionally inline citations in brackets, like this one [2]. How could I define alternative numerical citation style, e.g. \cite[inum][key] on the analogy of author, authoryear etc. styles? mkiv-bibliographies (not the mkii publications module). The citation styles can be tuned through parameters, i.e. \setupbtx [cite:numbering:num] [left=, right=, command={\high}] but in the latest beta, this way of switching to superscript citations is currently broken, I noticed, (and will be fixed). Let me understand, though. Do you want to mix\high{1} citations with [1] citations? That would be rather strange, stylistically. There is a predefined second num cite variant \cite[textnum][tag]. It's use is intended to produce something like ref. 1, to be used syntactically in a sentence, in conjunction with standard num references. [1] This is just num setup with [left={ref.\nbsp},right=]. 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 ___
Re: [NTG-context] alternative numerical \cite command
Hi Alan, Excuse-me to jump over a discussion related to the new bibliography features of mkiv, but is it now reasonably stable to swithch completely from mkii to mkiv (I still have some files in mkii which I use only because of the bibliography features I have set up on purpose). And where can one find an elementary introduction to the new bibliography features? Thanks in advance, and best regards: OK On 04 May 2015, at 15:51, Alan BRASLAU alan.bras...@cea.fr wrote: On Mon, 4 May 2015 15:10:06 +0200 Csikos Bela bcsikos...@freemail.hu wrote: These citation styles are predefined in context. What I would like to do is inserting alternative numerical citations: normal superscript citations, like this^1, and occasionally inline citations in brackets, like this one [2]. How could I define alternative numerical citation style, e.g. \cite[inum][key] on the analogy of author, authoryear etc. styles? mkiv-bibliographies (not the mkii publications module). The citation styles can be tuned through parameters, i.e. \setupbtx [cite:numbering:num] [left=, right=, command={\high}] but in the latest beta, this way of switching to superscript citations is currently broken, I noticed, (and will be fixed). Let me understand, though. Do you want to mix\high{1} citations with [1] citations? That would be rather strange, stylistically. There is a predefined second num cite variant \cite[textnum][tag]. It's use is intended to produce something like ref. 1, to be used syntactically in a sentence, in conjunction with standard num references. [1] This is just num setup with [left={ref.\nbsp},right=]. 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 ___ ___ 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] Newbie needs help getting started
On 05/04/2015 02:49 PM, Johan Råde wrote: Hi, I'm trying to get ConTeXt to run on my Windows machine (Windows 7 SP1). I already had MiKTeX installed on the machine. Here is what I did: 1. I downloaded context-setup-mswin.zip. 2. I unzipped and copied the folder to C:/context 3. I ran the command first-setup.bat --context=current --modules=all 4. I added C:\context\tex\texmf-win64\bin to my PATH variable 5. I opened up the example file at http://wiki.contextgarden.net/Hello_world in TeXWorks 6. I selected ConTeXt(LuaTeX) 7. I compiled the file The compilation failed. Hi Johan, I wonder whether both paths (from MikTeX and the ConTeXt Suite) don’t clash. My guess is that you should run: c:\context\tex\setuptex mtxrun --generate context --make --all And compile the file you want from the command line, if compilation from TeXworks fails. I hope it might 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] bug with \writebetweenlist and bookmarks?
On 05/04/2015 10:47 AM, Hans Hagen wrote: On 5/2/2015 10:16 PM, Pablo Rodriguez wrote: [...] For some strange reason, the \writebetweenlist commands also add bookmarks with a question mark to the PDF bookmarks in the PDF file. Is this a bug or am I missing something? line 147 in strc-bkm.lua: elseif second then titledata = { title = second } else -- ignoring (command and so) end Hi Hans, many thanks for your fix. It works perfect now. BTW, will the presentations from BachoTeX be available to download? I’m (and I guess we all are) interested in them. 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] Newbie needs help getting started
On Mon, May 4, 2015 at 2:49 PM, Johan Råde johan.r...@gmail.com wrote: Hi, I'm trying to get ConTeXt to run on my Windows machine (Windows 7 SP1). I already had MiKTeX installed on the machine. Here is what I did: 1. I downloaded context-setup-mswin.zip. 2. I unzipped and copied the folder to C:/context 3. I ran the command first-setup.bat --context=current --modules=all 4. I added C:\context\tex\texmf-win64\bin to my PATH variable 5. I opened up the example file at http://wiki.contextgarden.net/Hello_world in TeXWorks 6. I selected ConTeXt(LuaTeX) 7. I compiled the file The compilation failed. The log says: mtx-context | warning: synctex is enabled mtx-context | run 1: luatex --fmt=C:/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en --jobname=HelloWorld --lua=C:/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui --no-parse-first-line --synctex=1 --c:currentrun=1 --c:fulljobname=./HelloWorld.tex --c:input=./HelloWorld.tex --c:kindofrun=1 --c:maxnofruns=8 --c:synctex cont-yes.mkiv This is LuaTeX, Version beta-0.76.0-2013062820 (rev 4627) \write18 enabled. (Fatal format file error; I'm stymied) mtx-context | fatal error: return code: 1 What am I doing wrong? That's weird. Try running first-setup.bat without --context=current. And then try to stay in the command line, run setuptex.bat (I forgot the details) or change the PATH variable manually and try running context --make --all. (Due to the criticism of releasing the current all too often, Hans started releasing betas. But then he stopped releasing stable versions and as a consequence very often current doesn't even work with the luatex version shipped with the distribution. I would bet that --context=current is broken, but I didn't try it. You should get beta by default.) But the weird thing is that Fatal format file error; I'm stymied error was common with pdfTeX. With ConTeXt MkIV the formats are usually regenerated automatically. Mojca ___ 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] Help with \numexpr
Colleagues I've written some code which should extract photos from a directory and a add couple of lines of description to each photo. I'm using a variable (\numberText) as a counter which I was hoping to use with \getfromcommalist[string1, string2,...][\numberText] to add one line of text. However when I try to increment the variable using \numexpr (\numberText=\numberText+1) \relax I get the error You can't use `\numexpr' in vertical mode. I'm not familiar with \numexpr and there does not seem to be much on the wiki on how to use it. Any suggestions would be helpfull. Here is the code \setupexternalfigures [directory={/Path/to/the/Photos}] \defineexternalfigure[photo][maxheight=0.4\textheight] \define \numberText{1} \starttext \dostepwiserecurse{141}{146}{1}/% //\recurselevel is part of photo filename. See below./ { \externalfigure[sam_0\recurselevel.jpg][photo] \par /% //\recurselevel is part of photo filename/ File Name /Path/to/the/Photos/sam_0\recurselevel.jpg\par \getfromcommalist[some text,another text,even more text,much better text,even better text,the ultimate text][\numberText] \commalistelement\par \numexpr (\numberText=\numberText+1) \relax \par \numberText \par } \stoptext Thanks Keith ___ 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] two questions on lpaths
Dear list, I have the following sample: \startbuffer[demo] div h1 id=myspecialidFirst Title/h1 pA paragraph/p p/p h1Second Title/h1 pA paragraph refered to a href=#myspecialidthe previous section/a/p p/p /div \stopbuffer \startxmlsetups xml:initialize \xmlsetsetup{#1}{div|h1|p|a}{xml:*} \stopxmlsetups \xmlregistersetup{xml:initialize} \startxmlsetups xml:div \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:h1 \section[\xmlatt{#1}{id}]{\xmlflush{#1}} \stopxmlsetups \startxmlsetups xml:p \xmlflush{#1}\par \stopxmlsetups \startxmlsetups xml:a \about[\xmlatt{#1}{href}] \stopxmlsetups \starttext \xmlprocessbuffer{main}{demo}{} \stoptext The only way to make the link work in XML is to remove the '#' char from \xmlatt{#1}{href}. How could I achieve it without modifying the XML source? Related to this issue, I also have the following lpath: [contains(text()='#')] Well, how could I make that the text begins (and not only contains) with the regular expression #[a-z]? 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] alternative numerical \cite command
Alan BRASLAU írta: On Mon, 4 May 2015 15:10:06 +0200 Csikos Bela wrote: These citation styles are predefined in context. What I would like to do is inserting alternative numerical citations: normal superscript citations, like this^1, and occasionally inline citations in brackets, like this one [2]. How could I define alternative numerical citation style, e.g. \cite[inum][key] on the analogy of author, authoryear etc. styles? mkiv-bibliographies (not the mkii publications module). The citation styles can be tuned through parameters, i.e. \setupbtx [cite:numbering:num] [left=, right=, command={\high}] but in the latest beta, this way of switching to superscript citations is currently broken, I noticed, (and will be fixed). My context version is: ConTeXt ver: 2014.01.03 00:40 MKIV current fmt: 2015.4.1 int: english/english I could set up superscript citation for numerical citation based on contextgarden bibliography page example. Let me understand, though. Do you want to mix\high{1} citations with [1] citations? That would be rather strange, stylistically. Yes, but in tables I don't want to put superscript citations. There is a predefined second num cite variant \cite[textnum][tag]. It's use is intended to produce something like ref. 1, to be used syntactically in a sentence, in conjunction with standard num references. [1] This is just num setup with [left={ref.\nbsp},right=]. I guess this command would fit my needs after some editing. Unfortunately my context version doesn't have this command. Using \cite[textnum][tag] simply outputs [tag]. Either I should update my context to newer (beta?), which I don't know how to do, or define the command in the document. I'd prefer the latter one, if feasible. Thanks, bcsikos ___ 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] alternative numerical \cite command
On Mon, 4 May 2015 17:54:31 +0200 Csikos Bela bcsikos...@freemail.hu wrote: I could set up superscript citation for numerical citation based on contextgarden bibliography page example. A MKII hack... Let me understand, though. Do you want to mix\high{1} citations with [1] citations? That would be rather strange, stylistically. Yes, but in tables I don't want to put superscript citations. OK, thanks for explaining this use. There is a predefined second num cite variant \cite[textnum][tag]. It's use is intended to produce something like ref. 1, to be used syntactically in a sentence, in conjunction with standard num references. [1] This is just num setup with [left={ref.\nbsp},right=]. I guess this command would fit my needs after some editing. Unfortunately my context version doesn't have this command. Using \cite[textnum][tag] simply outputs [tag]. Either I should update my context to newer (beta?), which I don't know how to do, or define the command in the document. I'd prefer the latter one, if feasible. You are using the MKII code. It takes the syntax \cite[alternative]{key} which is very intolerant of spacing and the newer module has abandoned this LaTeX style in favor of \cite[key] and \cite[alternative][key] I recommend that you stick with the MKII module/code for now as we have not yet entirely stabilized the new dataset code. 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 ___
Re: [NTG-context] alternative numerical \cite command
On 05/04/2015 06:14 PM, Alan BRASLAU wrote: You are using the MKII code. It takes the syntax \cite[alternative]{key} which is very intolerant of spacing and the newer module has abandoned this LaTeX style in favor of \cite[key] and \cite[alternative][key] No, that's not quite right, the syntax has always been \cite[alternative][key]. For the rest: what Alan said! The new code is not quite production ready, and if you're using mkii, switching in the midst of a project is a bit risky, to say the least. 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] simplefonts vs typescripts
I have been trying for weeks to set up the Google Noto fonts for ConTeXt. I have tried (but do not understand all the syntax and parameters of) typescripts and simplefonts. It seems that I probably should gravitate towards typescripts because the typescripts seem to be what comes with the distribution of other fonts. Is there detailed documentation describing all the parameters in detail and giving examples? All I found is some vague examples without any explanations in the contextgarden.net wiki. Is there a tool that I can use to look at the .ttf or .otf file and discern the values I need to put into the typescripts? Is there a tool to generate typescripts from the .ttf and/or .otf files or would one be easy for me to write in say Korn, Perl, or Python? Please advise! Thanks. David Boerschlein (214) 412-3275 home office land (585) 278-4687 cell www.linkedin.com/in/davidboerschlein Forget the iPhone 6 1 little-known Apple supplier holds wealth-changing growth potential. http://thirdpartyoffers.juno.com/TGL3141/55479dd6d67bc1dd66582st03duc ___ 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] Newbie needs help getting started
On 5/4/2015 5:14 PM, Mojca Miklavec wrote: But the weird thing is that Fatal format file error; I'm stymied error was common with pdfTeX. With ConTeXt MkIV the formats are usually regenerated automatically. It's not that weird: pdftex etc have no check on the format so if for instance a new primitive an old format will crash the new tex. For that reason we added a compatibility version number to luatex (starting at asciisum(DEK) to test to luatex format loading that will quit when that number jumped .. we're now one version further down the line. So ... a quit instead of a crash. So, if pdftex would add a primitive it doesn't give that message but either crashes or runs on with the wrong mem undump. 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] simplefonts vs typescripts
On 5/4/2015 6:26 PM, david.boerschl...@juno.com wrote: I have been trying for weeks to set up the Google Noto fonts for ConTeXt. I have tried (but do not understand all the syntax and parameters of) typescripts and simplefonts. It seems that I probably should gravitate towards typescripts because the typescripts seem to be what comes with the distribution of other fonts. Is there detailed documentation describing all the parameters in detail and giving examples? All I found is some vague examples without any explanations in the contextgarden.net wiki. Is there a tool that I can use to look at the .ttf or .otf file and discern the values I need to put into the typescripts? Is there a tool to generate typescripts from the .ttf and/or .otf files or would one be easy for me to write in say Korn, Perl, or Python? Please advise! - if you know the names of the fonts simplefonts is the way for a fast setup - otherwise you can look at e.g. type-imp-mscore and make a typescript (in mkiv normally only a few lines so having that scripted is (1) overkill and (2) duplicates simplefonts) typescripts used with filenames are a robust way to be future proof as fonts can change (for the same reason even system fonts can be be copied to tex/texmf-fonts/fonts/data) 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] bug with \writebetweenlist and bookmarks?
On 5/4/2015 4:36 PM, Pablo Rodriguez wrote: BTW, will the presentations from BachoTeX be available to download? I’m (and I guess we all are) interested in them. you will have to come to the context meeting ... 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] Removing a single ligature and using swash alternates
On 5/4/2015 3:05 PM, Manuel Blanco wrote: The problem is that it's a 500 page document, I would like a general way to deactivate the Th ligature. If there's no “semiautomated system” (like feature files) to remove ligatures, I guess it could be possible to do a general replacement in the document, altough I don't remember the command, I think I might have seen something like \definereplacement [Th] [\noligature{Th}] that would, in a hackish way, deactivate it. What's the exact interface in that case? No idea about the Swashes? I thought that this would work \definefontfeature [swash] [swsh=yes] \setmainfont [Minion Pro] [features=swash, expansion=quality, protrusion=quality] but it doesn't. \definefontfeature [swash][default][swsh=yes] \noligature{Th}anks! :) 2015-05-04 11:00 GMT+02:00 Hans Hagen pra...@wxs.nl: On 5/1/2015 4:18 PM, Manuel Blanco wrote: Hello, I'm using Minion Pro, and I would like to remove the Th ligature (but only that one). Also, I'm trying to define a \swash command that uses swash from Minion Pro Italic. Any help? \usemodule [simplefonts] [size=11pt] \setmainfont [Minion Pro] [expansion=quality, protrusion=quality] \setupalign [hz,hanging] \noligature{Th}anks Thanks! ___ 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 ___ -- - 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 ___ ___ 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 ___ -- - 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] alternative numerical \cite command
Thanks to remarks by Mojca and Alan, I did some testing with mkiv and my old setups for bibliography under mkii, and magically it works also with the new bibliography features of mkiv, that is without saying \usemodule[bib]. However somehow I couldn’t find an equivalent for the command \placepublications[criterirum=all] when one needs to give another title to the section containing the bibliography (as in the attached file). As I understand from Alan’s and Thomas Schmitz’ answers, the new bibliography features are not yet completely « production ready » for those people who need complex requirements (this is not my case…). However it would be nice if the new commands were made known somewhere, even without having a detailed manual (some people use quite elementary features and probably those may be obtained in less than ten commands…). Best regards: OK test-biblio-for-mkiv.pdf Description: Adobe PDF document test-biblio-for-mkiv.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 ___
Re: [NTG-context] Help with \numexpr
On 5/4/2015 5:21 PM, Keith McKay wrote: Colleagues I've written some code which should extract photos from a directory and a add couple of lines of description to each photo. I'm using a variable (\numberText) as a counter which I was hoping to use with \getfromcommalist[string1, string2,...][\numberText] to add one line of text. However when I try to increment the variable using \numexpr (\numberText=\numberText+1) \relax I get the error You can't use `\numexpr' in vertical mode. I'm not familiar with \numexpr and there does not seem to be much on the wiki on how to use it. Any suggestions would be helpfull. Here is the code \setupexternalfigures [directory={/Path/to/the/Photos}] \defineexternalfigure[photo][maxheight=0.4\textheight] \define \numberText{1} \starttext \dostepwiserecurse{141}{146}{1}/% //\recurselevel is part of photo filename. See below./ { \externalfigure[sam_0\recurselevel.jpg][photo] \par /% //\recurselevel is part of photo filename/ File Name /Path/to/the/Photos/sam_0\recurselevel.jpg\par \getfromcommalist[some text,another text,even more text,much better text,even better text,the ultimate text][\numberText] \commalistelement\par \numexpr (\numberText=\numberText+1) \relax \par \numberText \par } \stoptext \newcount\FooCounter \FooCounter=\numexpr\FooCounter+1\relax or just \advance\FooCounter\plusone - 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] alternative numerical \cite command
On 05/04/2015 07:03 PM, Otared Kavian wrote: Thanks to remarks by Mojca and Alan, I did some testing with mkiv and my old setups for bibliography under mkii, and magically it works also with the new bibliography features of mkiv, that is without saying \usemodule[bib]. However somehow I couldn’t find an equivalent for the command \placepublications[criterirum=all] when one needs to give another title to the section containing the bibliography (as in the attached file). As I understand from Alan’s and Thomas Schmitz’ answers, the new bibliography features are not yet completely « production ready » for those people who need complex requirements (this is not my case…). However it would be nice if the new commands were made known somewhere, even without having a detailed manual (some people use quite elementary features and probably those may be obtained in less than ten commands…). Best regards: OK The example you provide is with an intermediate state: at one point, Hans simply ported (most of) the functionality of the bib module to mkiv. The new commands have \btx in their names; they are written from scratch and use lua instead of bibtex. And please take my word for it: the user interface really isn't stable enough yet, even for some quite elementary cases. When things have settled down, it will be announced. (If you're really impatient, you cam have a look at the publ-imp-* files in the latest betas). 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 ___
Re: [NTG-context] Help with \numexpr
Thanks Hans! With your suggestion and initializing \numberText=1, it workes just the way I wanted. I now have a quick and easy of cataloging my photos. Thanks again Keith On 04/05/2015 18:38, Hans Hagen wrote: On 5/4/2015 5:21 PM, Keith McKay wrote: Colleagues I've written some code which should extract photos from a directory and a add couple of lines of description to each photo. I'm using a variable (\numberText) as a counter which I was hoping to use with \getfromcommalist[string1, string2,...][\numberText] to add one line of text. However when I try to increment the variable using \numexpr (\numberText=\numberText+1) \relax I get the error You can't use `\numexpr' in vertical mode. I'm not familiar with \numexpr and there does not seem to be much on the wiki on how to use it. Any suggestions would be helpfull. Here is the code \setupexternalfigures [directory={/Path/to/the/Photos}] \defineexternalfigure[photo][maxheight=0.4\textheight] \define \numberText{1} \starttext \dostepwiserecurse{141}{146}{1}/% //\recurselevel is part of photo filename. See below./ { \externalfigure[sam_0\recurselevel.jpg][photo] \par /% //\recurselevel is part of photo filename/ File Name /Path/to/the/Photos/sam_0\recurselevel.jpg\par \getfromcommalist[some text,another text,even more text,much better text,even better text,the ultimate text][\numberText] \commalistelement\par \numexpr (\numberText=\numberText+1) \relax \par \numberText \par } \stoptext \newcount\FooCounter \FooCounter=\numexpr\FooCounter+1\relax or just \advance\FooCounter\plusone - 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 ___ ___ 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] Bleeding pictures as floats?
Am 04.05.2015 um 13:54 schrieb Henning Hraban Ramm te...@fiee.net: Am 2015-05-04 um 17:10 schrieb Wolfgang Schuster schuster.wolfg...@gmail.com: Is it possible to use the float placing mechanisms for pictures that go beyond the type area or even beyond the page? In the book I’m typesetting, most pictures need to fill the whole width of the page (i.e. plus 3mm bleed), but not all cover a full page. I don’t know how to tell \externalfigure or \placefloat a negative offset. Or can I use layers with floats? Of course the text should flow around the pictures. Does the details manual [1] answer your questions? [1] http://pragma-ade.com/show-man-27.htm Thank you, that helped, but not enough. I have now: \def\bleed{3mm} \def\maxWidth{\dimexpr(\paperwidth+\bleed)} Use \definemeasure and \measure to set your own dimensions. It is also bad style to redefine the \bleed command. \definefloat[bleedfigure][figure] \setupfloat[bleedfigure] [ outermargindistance=-\bleed, % does that exist? leftmargindistance=-\bleed, rightmargindistance=-\bleed, default={cutspace,none}, maxwidth=\maxWidth ] \def\topfig#1#2{\placebleedfigure[top]{#1}{\offset[topoffset=\dimexpr(-\topspace-\bleed)]{\externalfigure[#2][width=\maxWidth]}}} With that my pictures start at 0,-3mm, but they should start at -3mm,-3mm on a left page. Their maximum width is only \paperwidth, without bleed. Where’s my mistake? Can you make a working minimal example. 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 ___