Re: [NTG-context] Unexpected results...
Hello Wolfgang, thank you for your explanation. - Sometimes it is difficult to remember all the changes that have taken place. Specially when one works again on older projects which were setup for MKII … Thanks! Willi > On 3 apr. 2015, at 19:24, Wolfgang Schuster > wrote: > > >> Am 03.04.2015 um 12:56 schrieb Willi Egger : >> >> Good afternoon, >> >> I downloaded the latest beta: current version: 2015.04.01 12:00 >> >> What i detect is not related to the latest version, but I think it is good >> to test with it… >> >> 1. When using the command \starthead..\stophead in an itemize with head >> style set to bold, not only the head gets bold but the whole item. On the >> other hand if using \head then it works ok. > > The \starthead command takes the head text as argument, e.g. \starthead{Head > A} > >> 2. I use a lot \Milli\Meter. When loading the module with \usemodule[units] >> it works fine. But in the log there is a message that this is an obsolete >> module. - This is unfortunately not true, because when not loading the >> module the compilation stops with an error of an undefined control sequence. > > > The built-in unit mechanism uses a different syntax and has more options than > the old units module. > > \starttext > > \startitemize > \starthead{Units} > \unit{1000 milli meter} > \stophead > \stopitemize > > \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 > ___ ___ 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] Different renderings of cross references
Hi all, as explained in the example below, I would like to setup the referencing mechanism so that a cross reference within a given chapter gives only the number of the section and that of an equation, while if the same reference is used in another chapter then the number of the chapter is also included. Is this possible with mkiv? Best regards: OK Here is a minimal example of what I would like to obtain: % begin prefix-reference.tex \setupinteraction[state=start] \setupformulas[prefix=yes,prefixsegments=chapter:section,way=bysection,location=left] \def\eqref#1{(\in[eq:#1])} \starttext \startchapter[title=Introduction to sequences of numbers] \startsection[title=On sequences,reference=sec:Sequences] \placeformula[eq:Number-e] \startformula a_{n} := \sum_{k=0}^n {1 \over n!} \stopformula \stopsection The sequence defined in equation \eqref{Number-e} cannot converge to a rational number. (Here I would like to have (1.1) instead of (1.1.1)). \startsection[title=Cauchy sequences] The sequence defined in \eqref{Number-e} satisfies $a_{n} < a_{n+1} < 3$ but it does not converge to a rational number. (Here I would like to have (1.1) instead of (1.1.1)). \stopsection \stopchapter \startchapter[title=What is a real number] \startsection[title=Limits of Cauchy sequences] We proved in \in{section}[sec:Sequences] that the sequence defined in equation \eqref{Number-e} cannot converge to a rational number. (Here I would like to have section 1.1, and equation (1.1.1)). \stopsection \stopchapter \stoptext % begin prefix-reference.tex ___ 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] Latest beta : command that no longer works
Sorry for the mistake. Fabrice ___ 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] tagging heads and empty output
Hi Hans, On Sat, 28 Mar 2015 16:17:33 -0600, Hans Hagen wrote: On 3/28/2015 10:12 PM, Idris Samawi Hamid ادريس سماوي حامد wrote: On Sat, 28 Mar 2015 07:34:32 -0600, Idris Samawi Hamid ادريس سماوي حامد wrote: Dear gang, Two issues: 1. What is the proper way to tag heads in itemize? I do the next beta will provide === 1. Head 1 class="break"> Test 3 2. Head 2 class="break"> Test 4 === Ok, but 'Head 1' and 'Head 2' are still not tagged, so we can't translate the actual head, e.g., \setupitemize[each][headstyle=bold] into css, while leaving the paragraph after the break unaffected. Current workaround: == \definestartstop[heading][style=] \startitemize[n] \starthead {\startheading Head 1 \stopheading} Test 1 \stophead \starthead {\startheading Head 2 \stopheading} Test 2 \stophead \stopitemize = 1. Head 1 Test 1 2. Head 2 Test 2 === 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] Latest beta : command that no longer works
On 4/3/2015 8:02 PM, Fabrice Couvreur wrote: 1 \definefiller[dots][left=\dontleavehmode, right=\hskip\ZeroPoint\par] 2 \starttext 3 >> \dorecurse{4}{\filler[dots]} 4 \stoptext 5 %%% Local Variables: 6 %%% Mode: context 7 %%% End: \zeropoint (no Z P) you were probably luck previous times - 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] Latest beta : command that no longer works
> Am 03.04.2015 um 20:02 schrieb Fabrice Couvreur : > > With the latest version of Context Standalone, this command \filler[dots] no > longer works. > Best regards, > Fabrice > > \definefiller[dots][left=\dontleavehmode, right=\hskip\ZeroPoint\par] > \starttext > \dorecurse{4}{\filler[dots]} > \stoptext You use the undefined command \ZeroPoint in your definition but you want \zeropoint. 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] Latest beta : command that no longer works
With the latest version of Context Standalone, this command \filler[dots] no longer works. Best regards, Fabrice \definefiller[dots][left=\dontleavehmode, right=\hskip\ZeroPoint\par] \starttext \dorecurse{4}{\filler[dots]} \stoptext fab@debian:~$ source context/tex/setuptex Setting "/home/fab/context/tex" as ConTeXt root. fab@debian:~$ context ntg19.tex resolvers | trees | analyzing 'home:texmf' mtx-context | run 1: luatex --fmt="/home/fab/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en" --jobname="ntg19" --lua="/home/fab/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui" --no-parse-first-line --c:currentrun=1 --c:fulljobname="./ntg19.tex" --c:input="./ntg19.tex" --c:kindofrun=1 --c:maxnofruns=8 "cont-yes.mkiv" This is LuaTeX, Version beta-0.80.0 (TeX Live 2015/dev) (rev 5195) \write18 enabled. resolvers > trees > analyzing 'home:texmf' open source > 1 > 1 > /home/fab/context/tex/texmf-context/tex/context/base/cont-yes.mkiv ConTeXt ver: 2015.04.01 12:00 MKIV beta fmt: 2015.4.3 int: english/english system > 'cont-new.mkiv' loaded open source > 2 > 2 > /home/fab/context/tex/texmf-context/tex/context/base/cont-new.mkiv close source> 2 > 2 > /home/fab/context/tex/texmf-context/tex/context/base/cont-new.mkiv system > files > jobname 'ntg19', input './ntg19', result 'ntg19' fonts > latin modern fonts are not preloaded languages > language 'en' is active open source > 2 > 3 > /home/fab/ntg19.tex fonts > preloading latin modern fonts (second stage) fonts > 'fallback modern-designsize rm 12pt' is loaded tex error > error on line 3 in file /home/fab/ntg19.tex: ! Undefined control sequence \166>dots:right ->\hskip \ZeroPoint \par \spac_fillers_indeed ...\fillerparameter \c!right \relax \scratchdimen \fill... \syst_helpers_recurse_indeed_yes ...curse_content \syst_helpers_recurse_indeed { 2 \syst_helpers_recurse_indeed ...the \innerrecurse }{#2} l.3 \dorecurse{4}{\filler[dots]} 1 \definefiller[dots][left=\dontleavehmode, right=\hskip\ZeroPoint\par] 2 \starttext 3 >> \dorecurse{4}{\filler[dots]} 4 \stoptext 5 %%% Local Variables: 6 %%% Mode: context 7 %%% End: 8 ? ___ 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] Unexpected results...
> Am 03.04.2015 um 12:56 schrieb Willi Egger : > > Good afternoon, > > I downloaded the latest beta: current version: 2015.04.01 12:00 > > What i detect is not related to the latest version, but I think it is good to > test with it… > > 1. When using the command \starthead..\stophead in an itemize with head style > set to bold, not only the head gets bold but the whole item. On the other > hand if using \head then it works ok. The \starthead command takes the head text as argument, e.g. \starthead{Head A} > 2. I use a lot \Milli\Meter. When loading the module with \usemodule[units] > it works fine. But in the log there is a message that this is an obsolete > module. - This is unfortunately not true, because when not loading the module > the compilation stops with an error of an undefined control sequence. The built-in unit mechanism uses a different syntax and has more options than the old units module. \starttext \startitemize \starthead{Units} \unit{1000 milli meter} \stophead \stopitemize \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] Non-shortened month name in \date
On 4/3/2015 1:44 PM, Procházka Lukáš Ing. - Pontex s. r. o. wrote: Hello, \mainlanguage[cz] \starttext \date[d=1,m=3,y=2000][d,~,m,~,y]\par \date[d=1,m=3,y=2000][d,~,mm,~,y]\par \date[d=1,m=3,y=2000][d,~,month,~,y]\par \stoptext gives: " 1 břez. 2000 1 03 2000 1 břez. 2000 " Is there a way to get non-shortened month name, i.e. "března" instead "břez."? Kind regards, \starttext \date[d=1,m=3,y=2000][d,~,m,~,y]\par \date[d=1,m=3,y=2000][d,~,mm,~,y]\par \date[d=1,m=3,y=2000][d,~,month,~,y]\par \date[d=1,m=3,y=2000][d,~,month:mnem,~,y]\par \stoptext buglet: patch core-con.lua: elseif tag == v_month or tag == "m" then if currentlanguage == false then context(months[month] or "unknown") elseif mnemonic then context.labeltext(monthmnem(month)) else context.labeltext(monthname(month)) end - 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] Non-shortened month name in \date
Hello, \mainlanguage[cz] \starttext \date[d=1,m=3,y=2000][d,~,m,~,y]\par \date[d=1,m=3,y=2000][d,~,mm,~,y]\par \date[d=1,m=3,y=2000][d,~,month,~,y]\par \stoptext gives: " 1 břez. 2000 1 03 2000 1 břez. 2000 " Is there a way to get non-shortened month name, i.e. "března" instead "břez."? Kind 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 ___
[NTG-context] Wiki / sample
Hello, the "Sample 2" on http://wiki.contextgarden.net/Command/definedescription compiles well on my computer (one of the latest Ctx version) but not on wiki. (It happens to me time to time when I want to add a sample, mostly a snip from the mailing list.) IMHO, there is still a Ctx version mismatch between "latest Ctx Beta" (or another "stable Ctx version") and that on wiki. It would be nice: - to know which Ctx version compiles wiki samples (Ctx, Lua & MP "stamp" - automatically generated on each Ctx renewal - would be useful to appear (on the initial?) wiki page), - I guess wiki Ctx should renew more often (to prevent difference between the latest Ctx and that on wiki enlarges). 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 ___
[NTG-context] Unexpected results...
Good afternoon, I downloaded the latest beta: current version: 2015.04.01 12:00 What i detect is not related to the latest version, but I think it is good to test with it… 1. When using the command \starthead..\stophead in an itemize with head style set to bold, not only the head gets bold but the whole item. On the other hand if using \head then it works ok. 2. I use a lot \Milli\Meter. When loading the module with \usemodule[units] it works fine. But in the log there is a message that this is an obsolete module. - This is unfortunately not true, because when not loading the module the compilation stops with an error of an undefined control sequence. I would be glad if this could be checked. Thank you so much. Kind regards Willi test.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] slightly offtopic: disabling autoresizing of adobe reader window when opening pdf document
On 04/03/2015 07:09 AM, Henning Hraban Ramm wrote: > Am 2015-04-02 um 22:36 schrieb Csikos Bela: > >> I use Adobe Reader (acroread) 9.5.5 linux version. Frequently, when I open a >> context >> related document, eg NaturalTables.pdf downloaded from contextgarden >> (http://dl.contextgarden.net/myway/NaturalTables.pdf), the document triggers >> resizing >> of adobe reader main window. This is very annoying, especially if I have >> several other >> documents open in separate tabs; all these tabs are resized as well and I >> have to adjust >> back the window size manually. I tried different settings in preferences but >> couldn't find a >> way to disable this behavior. How could I block autoresizing? >> >> I also googled but could not find any answer to this (though others have the >> same >> problem as well, eg https://forums.adobe.com/thread/793230). >> >> I write here since for me only context documents triggers this, so I guess >> context users >> know about this more. > > It’s a setting that every PDF can trigger, if it’s configured that > way. Normally you would do that only in Acrobat Pro for interactive > documents. Hi Csikos, I’m afraid you can’t block autoresizing. As Hraban noted, the document has the following information: /ViewerPreferences << /FitWindow true>>> According to the PDF specification, this means: /FitWindow: A flag specifying whether to resize the document’s window to fit the size of the first displayed page. Adobe doesn’t ignore the flag when it is set to true. If you are on Linux, evince may do what you want. Just in case it helps, 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 ___