Re: [NTG-context] how to (re)set section numbers
Am 30.12.2014 um 20:01 schrieb j. van den hoff veedeeh...@googlemail.com: I have followed the recommendations how to include unnumbered sections in the table-of-content along the lines \setuphead[subject] [incrementnumber=yes,number=no] etc. this works OK if the unnumbered sections are at the end of the document. otherwise the enumeration of the actually (visibly) numbered sections is messed up (i.e. if a `subject' section goes, e.g. _before_ all actually enumerated sections, there counters are off by one). question: what is the best way of (re)setting the section counters? i.e. if the doucment structure is, e.g., \subject \section \subsection \section \subject I'd like to end up with the ToC containing entries for all subjects and sections but the numbered sections should occur (in ToC and document) as 1, 1.1, 2 rather than 2 2.1, 3 (in this example). I was not able to find a solution in the documenation/wiki. Can you send 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 ___
[NTG-context] Using Euler with simplefonts
Hi. I am trying to use the simplefonts approach to get Euler for math, along with TeX Gyre fonts for text. I've looked at some of the past list archives and I haven't yet been able to figure this out. I use TeXLive, and my context is 2014.05.21.20140528-1 (Debian version). Here is the font blurb: \definefontfamily [myfamily] [serif] [Linux Libertine O] \definefontfamily [myfamily] [math] [Tex Gyre Schola Math] Now, I have tried changing the TeX Gyre Schola Math to Neo Euler, Euler and some other variants, but it doesn't work. I do have the Euler VM fonts installed on my system. I have also tried the example program given in http://www.ntg.nl/maps/32/06.pdf \definetypeface[eulermath][mm][math][euler][euler][rscale=1] \setupbodyfont [eulermath] \starttext \showmathcharacters \stoptext This works with texexec, but with context, it chokes. Could you please provide me some pointers? Thanks. Kumar ___ 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] how to (re)set section numbers
On Thu, 01 Jan 2015 20:48:48 +0100, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: You need \setuphead[subject][incrementnumber=list] because when you write „incrementnumber=yes” you tell context to increment the counter for \subject which uses by default the \section counter. I see. thanks a lot. I took my 'wisdom' from http://wiki.contextgarden.net/Table_of_Contents#Including_unnumbered_heads_in_the_ToC which seems somewhat deficient. I'd try to augment that section. anyway, there seems no documentation of what `incrementnumber=list' is doing? is it only there to lead to listing/inclusion of the respective section type in the ToC? although you've solved my present problem perfectly: _is_ there a way to reset the (sub)section counters (or to set them to prescribed values)? joerg -- Using Opera's revolutionary email client: http://www.opera.com/mail/ ___ 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] Using Euler with simplefonts
On Jan 1, 2015, at 6:00 AM, Kumar Appaiah wrote: I am trying to use the simplefonts approach to get Euler for math, along with TeX Gyre fonts for text. Here is setup magic from Hans and Aditya from August 2013: \usetypescriptfile[euler] \starttypescript[myfamily] \definetypeface[myfamily][rm][serif][pagella][default] \definetypeface[myfamily][ss][sans] [dejavu][default] \definetypeface[myfamily][tt][mono] [inconsolata][default] \definetypeface[myfamily][mm][math] [pagellaovereuler][default] \stoptypescript \usetypescript[myfamily] \setupbodyfont[myfamily] \appendtoks \rm \to \everymathematics \setupmathematics [lcgreek=normal, ucgreek=normal] One can change the families, e.g. schola for pagella, etc., but I think the last [pagellaovereuler] and the rest has to stay. ___ 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] Using Euler with simplefonts
On Thu, Jan 01, 2015 at 03:52:53PM +0100, Wolfgang Schuster wrote: You don’t have the opentype version [1] of the euler math font on your system which is needed when you either the \definefontfamily command or the pagellaovereuler typescript. When you install the font on your system you can use it as shown in the following example. \definefontfamily [myfamily] [serif] [Linux Libertine O] \definefontfamily [myfamily] [math] [Neo Euler] \setupbodyfont [myfamily] \starttext \m{c^2 = a^2 + b^2} \stoptext [1] [2]https://github.com/khaledhosny/euler-otf Indeed, getting the OTF fixed all the issues. Thanks Wolfgang and John! Kumar -- Kumar Appaiah ___ 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] how to (re)set section numbers
You need \setuphead[subject][incrementnumber=list] because when you write „incrementnumber=yes” you tell context to increment the counter for \subject which uses by default the \section counter. Wolfgang FYI, I've tried to update the wiki accordingly: http://wiki.contextgarden.net/Table_of_Contents#Including_unnumbered_heads_in_the_ToC -- Using Opera's revolutionary email client: http://www.opera.com/mail/ ___ 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] Adjusting Kerning/Spacing between Letter
Hi, I am trying to typeset some strings in {\tt ...}, but they turn out to be pretty wide. So, I would like to compress those bits of text a little. Any hints on how I could do that locally, that is without adjusting the entire font. Thank you, Malte. ___ 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] Title and defineenumeration
Am 31.12.2014 um 20:26 schrieb Fabrice Couvreur fabrice1.couvr...@gmail.com: Dear list, Is it possible to remove the parentheses of the title ? \defineenumeration[…][titleleft=,titleright=,…] 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] filter module's inline command and supressed spacing
Hi Piotr, maybe you can try opening an issue in the code's repository: https://github.com/adityam/filter/issues On Tue, Dec 30, 2014 at 10:28 AM, Piotr Kopszak kops...@gmail.com wrote: P.S. Silly of me not to check ConTeXt version first. Anyway, the problem persists with most recent ConTeXt although different errors are produced. The space is supressed in 'Januszkiewicza)Notatki' and html entities are not interpreted properly when using \inlinepandoc. 2014-12-30 10:00 GMT+01:00 Piotr Kopszak kops...@gmail.com: Hello list, It looks like a bug in the filter module, but maybe I'm doing something wrong. Any help will be greatly appreciated. When using the \inlinepandoc command in the first paragraph below the space at the end of the paragraph in życiaA. Mickiewicza is supressed when it should be życia A. Mickiewicza. This does not happen when using pandoc environment. If you want to run the minimal example you have to make sure you got the recent pandoc which supports twiki input format and create the output subdirectory in your working directory. Best Piotr \usemodule[filter] \defineexternalfilter [pandoc] [ filter={pandoc -f \externalfilterparameter{format} -t context -o \externalfilteroutputfile}, format=twiki, directory=output, ] \starttext Inne tyt.: Wizyta pana Franciszka Grzymały, Exegi monumentum aere perennius Powst. Paryż, na autografie podpis: Paryż, 12 marca 1833. Wiersze natchnione wizytą Fr. Grzymały. Pdr: {\it Czas} 1859 nr nr 118 s. 2. (\inlinepandoc{w artykule L#42;#42;#42; (E. Januszkiewicza) Notatki wspomnień z życia A. Mickiewicza}). \startpandoc Inne tyt.: Wizyta pana Franciszka Grzymały, Exegi monumentum aere perennius Powst. Paryż, na autografie podpis: Paryż, 12 marca 1833. Wiersze natchnione wizytą Fr. Grzymały. Pdr: {\it Czas} 1859 nr nr 118 s. 2. (w artykule L#42;#42;#42; (E. Januszkiewicza) Notatki wspomnień z życia A. Mickiewicza). \stoppandoc \stoptext - -- http://okle.pl -- http://okle.pl ___ 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] how to (re)set section numbers
On Thu, 01 Jan 2015 20:00:00 +0100, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Am 30.12.2014 um 20:01 schrieb j. van den hoff veedeeh...@googlemail.com: I have followed the recommendations how to include unnumbered sections in the table-of-content along the lines \setuphead[subject] [incrementnumber=yes,number=no] etc. this works OK if the unnumbered sections are at the end of the document. otherwise the enumeration of the actually (visibly) numbered sections is messed up (i.e. if a `subject' section goes, e.g. _before_ all actually enumerated sections, there counters are off by one). question: what is the best way of (re)setting the section counters? i.e. if the doucment structure is, e.g., \subject \section \subsection \section \subject I'd like to end up with the ToC containing entries for all subjects and sections but the numbered sections should occur (in ToC and document) as 1, 1.1, 2 rather than 2 2.1, 3 (in this example). I was not able to find a solution in the documenation/wiki. Can you send a *working* minimal example. yes, of course (I presumed this to be not necessary here): \setuphead[subject] [incrementnumber=yes, number=no] \setuplist[section][width=1.5em] \setuplist[subsection][width=2.25em, margin=1.5em] %`margin' determines alignment \setuplist[subject][margin=1.5em] \setupcombinedlist[content] [list={chapter,section,subsection,subject,subsubject}] \starttext \completecontent \subject{this subject messes up the further enumeration of numbered sections} bla \section{this should be sec. 1} bla \subsection{this should be subsec. 1.1} bla \section{this should be sec. 2} bla \subject{this subject does no harm...} bla \stoptext In my real life example the first `subject', e.g., contains a Glossary of abbreviations and I want to start the actual enumeration with the body text proper (Introduction and onwards), while still listing the glossary in the ToC. and I did not find any other (general) solution in the docs, how to include unnumbered sections in the ToC... thx, joerg Wolfgang -- Using Opera's revolutionary email client: http://www.opera.com/mail/ ___ 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] Using Euler with simplefonts
On Thu, Jan 01, 2015 at 08:58:11AM -0500, John Kitzmiller wrote: On Jan 1, 2015, at 6:00 AM, Kumar Appaiah wrote: I am trying to use the simplefonts approach to get Euler for math, along with TeX Gyre fonts for text. Here is setup magic from Hans and Aditya from August 2013: \usetypescriptfile[euler] \starttypescript[myfamily] \definetypeface[myfamily][rm][serif][pagella][default] \definetypeface[myfamily][ss][sans] [dejavu][default] \definetypeface[myfamily][tt][mono] [inconsolata][default] \definetypeface[myfamily][mm][math] [pagellaovereuler][default] \stoptypescript \usetypescript[myfamily] \setupbodyfont[myfamily] \appendtoks \rm \to \everymathematics \setupmathematics [lcgreek=normal, ucgreek=normal] One can change the families, e.g. schola for pagella, etc., but I think the last [pagellaovereuler] and the rest has to stay. Sadly, I get this: INPUT FILE == \starttypescript[myfamily] \definetypeface[myfamily][rm][serif][pagella][default] \definetypeface[myfamily][ss][sans] [dejavu][default] \definetypeface[myfamily][tt][mono] [inconsolata][default] \definetypeface[myfamily][mm][math] [pagellaovereuler][default] \stoptypescript \usetypescript[myfamily] \setupbodyfont[myfamily] \appendtoks \rm \to \everymathematics \setupmathematics [lcgreek=normal, ucgreek=normal] \starttext \startformula x = y + z \stopformula \stoptext ERROR OUTPUT tex errorerror on line 18 in file /tmp/test.tex: ! Math error: parameter \Umathquad\displaystyle is not set \stopdisplaymath ...math \Ucheckedstopdisplaymath \par \ifvmode \ifcase \c_s... \strc_formulas_stop_formula ...native \v!formula } \dostoptagged \dostoptagge... l.18 \stopformula 8 9 \usetypescript[myfamily] 10 \setupbodyfont[myfamily] 11 \appendtoks \rm \to \everymathematics 12 \setupmathematics 13 [lcgreek=normal, ucgreek=normal] 14 15 \starttext 16 \startformula 17 x = y + z 18 \stopformula 19 \stoptext 20 What am I missing here? Thanks. Kumar -- Kumar Appaiah ___ 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] Using Euler with simplefonts
Am 01.01.2015 um 15:42 schrieb Kumar Appaiah a.ku...@alumni.iitm.ac.in: On Thu, Jan 01, 2015 at 08:58:11AM -0500, John Kitzmiller wrote: On Jan 1, 2015, at 6:00 AM, Kumar Appaiah wrote: I am trying to use the simplefonts approach to get Euler for math, along with TeX Gyre fonts for text. Here is setup magic from Hans and Aditya from August 2013: \usetypescriptfile[euler] \starttypescript[myfamily] \definetypeface[myfamily][rm][serif][pagella][default] \definetypeface[myfamily][ss][sans] [dejavu][default] \definetypeface[myfamily][tt][mono] [inconsolata][default] \definetypeface[myfamily][mm][math] [pagellaovereuler][default] \stoptypescript \usetypescript[myfamily] \setupbodyfont[myfamily] \appendtoks \rm \to \everymathematics \setupmathematics [lcgreek=normal, ucgreek=normal] One can change the families, e.g. schola for pagella, etc., but I think the last [pagellaovereuler] and the rest has to stay. Sadly, I get this: INPUT FILE == \starttypescript[myfamily] \definetypeface[myfamily][rm][serif][pagella][default] \definetypeface[myfamily][ss][sans] [dejavu][default] \definetypeface[myfamily][tt][mono] [inconsolata][default] \definetypeface[myfamily][mm][math] [pagellaovereuler][default] \stoptypescript \usetypescript[myfamily] \setupbodyfont[myfamily] \appendtoks \rm \to \everymathematics \setupmathematics [lcgreek=normal, ucgreek=normal] \starttext \startformula x = y + z \stopformula \stoptext ERROR OUTPUT tex errorerror on line 18 in file /tmp/test.tex: ! Math error: parameter \Umathquad\displaystyle is not set \stopdisplaymath ...math \Ucheckedstopdisplaymath \par \ifvmode \ifcase \c_s... \strc_formulas_stop_formula ...native \v!formula } \dostoptagged \dostoptagge... l.18 \stopformula 8 9 \usetypescript[myfamily] 10 \setupbodyfont[myfamily] 11 \appendtoks \rm \to \everymathematics 12 \setupmathematics 13 [lcgreek=normal, ucgreek=normal] 14 15 \starttext 16 \startformula 17 x = y + z 18 \stopformula 19 \stoptext 20 What am I missing here? You don’t have the opentype version [1] of the euler math font on your system which is needed when you either the \definefontfamily command or the pagellaovereuler typescript. When you install the font on your system you can use it as shown in the following example. \definefontfamily [myfamily] [serif] [Linux Libertine O] \definefontfamily [myfamily] [math] [Neo Euler] \setupbodyfont [myfamily] \starttext \m{c^2 = a^2 + b^2} \stoptext [1] https://github.com/khaledhosny/euler-otf https://github.com/khaledhosny/euler-otf 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] how to (re)set section numbers
Am 01.01.2015 um 20:16 schrieb j. van den hoff veedeeh...@googlemail.com: On Thu, 01 Jan 2015 20:00:00 +0100, Wolfgang Schuster schuster.wolfg...@gmail.com mailto:schuster.wolfg...@gmail.com wrote: Am 30.12.2014 um 20:01 schrieb j. van den hoff veedeeh...@googlemail.com: I have followed the recommendations how to include unnumbered sections in the table-of-content along the lines \setuphead[subject] [incrementnumber=yes,number=no] etc. this works OK if the unnumbered sections are at the end of the document. otherwise the enumeration of the actually (visibly) numbered sections is messed up (i.e. if a `subject' section goes, e.g. _before_ all actually enumerated sections, there counters are off by one). question: what is the best way of (re)setting the section counters? i.e. if the doucment structure is, e.g., \subject \section \subsection \section \subject I'd like to end up with the ToC containing entries for all subjects and sections but the numbered sections should occur (in ToC and document) as 1, 1.1, 2 rather than 2 2.1, 3 (in this example). I was not able to find a solution in the documenation/wiki. Can you send a *working* minimal example. yes, of course (I presumed this to be not necessary here): \setuphead[subject] [incrementnumber=yes, number=no] \setuplist[section][width=1.5em] \setuplist[subsection][width=2.25em, margin=1.5em] %`margin' determines alignment \setuplist[subject][margin=1.5em] \setupcombinedlist[content] [list={chapter,section,subsection,subject,subsubject}] \starttext \completecontent \subject{this subject messes up the further enumeration of numbered sections} bla \section{this should be sec. 1} bla \subsection{this should be subsec. 1.1} bla \section{this should be sec. 2} bla \subject{this subject does no harm...} bla \stoptext In my real life example the first `subject', e.g., contains a Glossary of abbreviations and I want to start the actual enumeration with the body text proper (Introduction and onwards), while still listing the glossary in the ToC. and I did not find any other (general) solution in the docs, how to include unnumbered sections in the ToC… You need \setuphead[subject][incrementnumber=list] because when you write „incrementnumber=yes” you tell context to increment the counter for \subject which uses by default the \section counter. 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 ___