Re: [NTG-context] Three questions about descriptions
Am 26.07.2014 um 02:02 schrieb Matthias Weber matwe...@indiana.edu: Thanks Rik, that does exactly what I want. When you want more control about the spacing before and after the description entries the following modification can help: \definedescription [outline] [style=normal, width=fit, distance=1ex, before=, % before=\endgraf after=, headcommand=\groupedcommand{}{:}] \definestartstop [outlines] [before={\blank[line]}, after={\blank[line]}] \starttext \input ward \startoutlines \outline{Welcome} Tea \outline{Introduction} Tufte or Knuth? and more and more and more and more to see what hanging does. \outline{Snack} Chocolate Cake \outline{Discussion} Knuth or Tufte? \outline{Open End} Bear and wine \stopoutlines \input weisman \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] Leave out reference to page if on the same page?
On 7/25/2014 4:31 PM, Gerben Wierda wrote: Thanks all for the discussion. As a simple user, I think I must pass. All this complexity in my document text and setup is too much trouble and it seems risky (wjhat am I going to break?). Far less work to do a small check at the end. Well, that kind of decisions demand injecting a node so there could be potential interference (as with more mechanisms that carry status info around for a second pass). Anyway, maybe someone else benefits from the extension. What I was looking for was something simple that made for instance \at{page][foo] conditional, e.g. \conditionalat[when]{page}[foo] with ‘when’ is something like always onpage offpage onspread offspread never Typing \conditionalat instead of \at is what I as a simpleton user can handle… \unprotect \unexpanded\def\strc_references_conditional#1#2[#3]#4[#5]% {text}[condition][reference] {\doifcheckedpagestate{#5}% {\doifelse{#3}\v!precedingpage{#1{#2}[#5]}\ignorespaces}% {\doifelse{#3}\v!hencefore{#1{#2}[#5]}\ignorespaces}% {\doifelse{#3}\v!current {#1{#2}[#5]}\ignorespaces}% {\doifelse{#3}\v!hereafter{#1{#2}[#5]}\ignorespaces}% {\doifelse{#3}\v!followingpage{#1{#2}[#5]}\ignorespaces}% {}} \unexpanded\def\conditionalat {\strc_references_conditional\at} \unexpanded\def\conditionalin {\strc_references_conditional\in} \unexpanded\def\conditionalabout{\strc_references_conditional\about} \protect But I'll not enable it to the code as it's not used anyway (maybe sometime a module). G On 25 Jul 2014, at 13:06, Hans Hagen pra...@wxs.nl wrote: On 7/24/2014 2:03 PM, Otared Kavian wrote: Hi, Thanks for your attention, Wolfgang: indeed removing \analyzecurrentreference from your example allows mkiv to typeset correctly and obtain the expected result. yet another sparsely documented feature ... in beta: % tests/mkiv/pagestate-001.tex \useMPlibrary[dum] \setuppagenumbering [alternative=doublesided] % new: \setupreferencing[doublesided=no] % old: \somewhere{backward}{foreward}[label] % new: \someplace{preceding}{backward}{current}{foreward}{following}[label] % old: \atpage[#label] % new: \doifcheckedpagestate{label}{preceding}{backward}{current}{foreward}{following}{otherwise} \starttext \dorecurse {20} { \placefigure [here] [fig:#1] {} {\externalfigure[dummy]} \dorecurse {20} { ##1: \atpage[fig:##1] / \doifcheckedpagestate{fig:##1} {preceding} {backward} {current} {foreward} {following} {otherwise} } } \stoptext if okay, then it's something to wikify ... should \setupreferencing[doublesided=no] be default? (currently yes i.e. spread aware) keep in mind that this kind of functionality once it kicks in (is used) can result in a few more runs to get thing right and that there's always the danger of oscillation as the text injected is dependent on the situation 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 ___ -- - 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
[NTG-context] project structure
Hi, There is a new experimental feature (one of the side effects of discussions with Alan about bibliographies and using distributed files in a project structure). Say that you have this: test1.tex : uses \component one/test2 one/test2.tex : uses \component two/test3 etc. There can be resources under one/two that test3 needs and one way out is to add this path to the used paths. Doing that automatically can result in side effects when multiple resources with the same name are used. However, we now have a concept of the local job path, so when test2 is read the jobfile: prefix will use path one, and when reading test3, that prefix will trigger one/two usage. For this to work, one has to say: \usepath[jobfile:] \setupexternalfigures[directory=jobfile:] To what extent this all works out well is to be tested. Hans ps. file loading related code is somewhat complex because we also need to support tds/kpse like searching; normally such more direct lookups kick in early (there are more prefixes and urls are also kind of special) - 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] setups
On 7/14/2014 8:49 PM, Herbert Voss wrote: Do I get the up-to-date setups of commands when running for example: \starttext \usemodule[set-11] \loadsetups \setup{setupfillinrules} \stoptext hopefully ... if you notice missing key/values just let us oknow an dwe will adapt the cont-en.xml file 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] \textreference
On 7/13/2014 7:59 PM, Herbert Voss wrote: I thought that \textreference will print its text (Foo) in difference to \reference. With current minimal I can see no difference between both. \starttext \textreference[foo]{Foo} \reference[bar]{Bar} \about[foo] and \about[bar] \atpage[bar] \stoptext \starttext \textreference[foo]{Foo} \reference[bar]{Bar} about foo: \about[foo] \par about bar: \about[bar] \par in foo: \in{in}[foo] \par in bar: \in{in}[bar] \par at page foo: \at{page}[foo] \par at page bar: \at{page}[bar] \par \stoptext (\atpage doesn't show a page when on the same page) The distinction between \pagereference, \textreference and \reference is sort of historical and relates to efficiency (in mkii): \pagereference : only stores the pagenumber \textreference : only stores the text \reference : stores pagenumber and text In mkiv the last two are the same now but they still can have different rendering (currently the rendering is aliased). Maybe we should just alias \reference to \textreference by now as I don't see that part change (the distinction was kept when mkiv was still new). So in fact we have just two commands now. (\setreference[label][...] is a new one .. it reminds me that i should start checking for left-over experiments and kind of freeze the low level implementation ... these were among the first mechanisms redone) 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] issue with doublesided
Dear list, using the doublesided alternative such as in: \setuppagenumbering[alternative=doublesided] \starttext \dorecurse{15}{\input zapf\par} \stoptext I always get a final even page, either empty or not. I don’t have access to a printer, so I have to rely on copy-shops. And sometimes I forgot that the printing should leave the final blank page. Is there any way to have doublesided pages and avoid the final blank page? 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] issue with doublesided
On 7/26/2014 1:01 PM, Pablo Rodriguez wrote: Dear list, using the doublesided alternative such as in: \setuppagenumbering[alternative=doublesided] \starttext \dorecurse{15}{\input zapf\par} \stoptext I always get a final even page, either empty or not. I don’t have access to a printer, so I have to rely on copy-shops. And sometimes I forgot that the printing should leave the final blank page. Is there any way to have doublesided pages and avoid the final blank page? \setuppagenumbering[alternative=doublesided,page=] \starttext \dorecurse{15}{\input zapf\par} \stoptext - 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] issue with doublesided
On 07/26/2014 01:26 PM, Hans Hagen wrote: On 7/26/2014 1:01 PM, Pablo Rodriguez wrote: [...] Is there any way to have doublesided pages and avoid the final blank page? \setuppagenumbering[alternative=doublesided,page=] \starttext \dorecurse{15}{\input zapf\par} \stoptext Many thanks for your fast reply and your help, Hans. 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] system Linux armv7l is not supported yet
On Sat, 26 Jul, 2014 at 10:43 AM, Mojca Miklavec wrote: You can try: svn co http://svn.contextgarden.net/suite-bin/tex/armel-linux cd armel-linux/luatex ./luatex --version I succeeded in the first two steps, but the third one did not work; it said: sytse@MINIX_UBUNTU:~/context/armel-linux/luatex$ ./luatex --version bash: ./luatex: No such file or directory For TeX Live you could try: svn co svn://tug.org/texlive/trunk/Master/bin/armhf-linux cd armhf-linux ./luatex --version (or do some sparse checkouts to save bandwidth) This one resulted in: sytse@MINIX_UBUNTU:~/context/armhf-linux$ ./luatex --version This is LuaTeX, Version beta-0.79.1 (TeX Live 2014) (rev 4971) Execute 'luatex --credits' for credits and version details. There is NO warranty. Redistribution of this software is covered by the terms of the GNU General Public License, version 2 or (at your option) any later version. For more information about these matters, see the file named COPYING and the LuaTeX source. Copyright 2014 Taco Hoekwater, the LuaTeX Team. I hope this helps you in finding out what is the correct flavour. Sytse ___ 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] system Linux armv7l is not supported yet
On Sat, Jul 26, 2014 at 3:29 PM, Sytse Knypstra wrote: On Sat, 26 Jul, 2014 at 10:43 AM, Mojca Miklavec wrote: You can try: svn co http://svn.contextgarden.net/suite-bin/tex/armel-linux cd armel-linux/luatex ./luatex --version I succeeded in the first two steps, but the third one did not work; it said: sytse@MINIX_UBUNTU:~/context/armel-linux/luatex$ ./luatex --version bash: ./luatex: No such file or directory For TeX Live you could try: svn co svn://tug.org/texlive/trunk/Master/bin/armhf-linux cd armhf-linux ./luatex --version (or do some sparse checkouts to save bandwidth) This one resulted in: sytse@MINIX_UBUNTU:~/context/armhf-linux$ ./luatex --version This is LuaTeX, Version beta-0.79.1 (TeX Live 2014) (rev 4971) Execute 'luatex --credits' for credits and version details. There is NO warranty. Redistribution of this software is covered by the terms of the GNU General Public License, version 2 or (at your option) any later version. For more information about these matters, see the file named COPYING and the LuaTeX source. Copyright 2014 Taco Hoekwater, the LuaTeX Team. I hope this helps you in finding out what is the correct flavour. Apparently you need armhf-linux. I added the binaries, but I'm still not sure how to distinguish between armel and armhf. Can you please fetch first-setup.sh and try again? Once the download succeeds (if it succeeds), try to set the PATH to tex/texmf-linux-armhf/bin manually and check if it works at all. We probably need to fix mtxrun and setuptex as well. 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] setuphead interlinespace
Hello, From command/setuphead http://wiki.contextgarden.net/Command/setuphead I inferred this should work to set linespace to 1.5 within the chapter/section but it doesn't. Should it? I read on \setupinterlinespace and it's resetting mechanic but thought the parameter in setuphead would work. Also, I checked and this parameter is not mentioned in the manual, so maybe it does not exist. \setuphead[chapter][interlinespace=big] \starttext \chapter{Some title} Lines with 1.5 space? \input tufte \startchapter[title={Some title}] Try again? \input tufte \stopchapter \startchapter[title={Some title}] \setupinterlinespace[big] Now it works. \input tufte \stopchapter \startchapter[title={Some title}] But it leaks out of the previous start-stopchapter. \input tufte \stopchapter \stoptext Thank you for your attention, YT ___ 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 ___