Re: [NTG-context] \os
On 2014-08-02, 22:36, Procházka Lukáš wrote: OK, thanks for explanation. This means that one has to switch to \os only when a number is to be printed. So when I want all numbers in the document to be old-style (and also ligatures etc. be kept), I have to: 1) switch to {\os } when writing a number manually, 2) define old-style-making-commands wherever numbers are generated automatically, i.e. e.g.: Just do it the way Wolfgang said, using features: \definefontfeature [default] [default] [lnum=yes, onum=no] \definefontfamily [latinmodern] [serif] [Latin Modern Roman] \setupbodyfont[latinmodern, 12pt] \definefontfeature[oldstyle][lnum=no, onum=yes] \starttext Regular figures: 0123456789 {\addfeature[oldstyle] Local oldstyle figures: 0123456789} \stoptext This way, lining figures are enabled by default, and you can change to oldstyle figures locally. if you wna tit the other way round, just change the default feature to onum=yes, lnum=no and create a new feature for local lining figures with onum=no, lnum=yes. Kind regards, Joshua ___ 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 the integration with tikz
Hi Günter, Your minimal example gives the expected result with with the latest mkiv (ConTeXt ver: 2014.07.25 12:57 MKIV beta fmt: 2014.7.25 int: english/english), as well with the stable version included in TeXLive 2014. Best regards: OK On 02 Aug 2014, at 17:05, Günter Kolousek guenter.kolou...@gmail.com wrote: A minimal example is: \usemodule[tikz] \usetikzlibrary[graphs] \usetikzlibrary[graphdrawing] \starttext \starttikzpicture \graph { a - {b, c} - d }; \stoptikzpicture \stoptext Günter ___ 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] \os
Am 02.08.2014 um 22:36 schrieb Procházka Lukáš l...@pontex.cz: Hello, On Sat, 02 Aug 2014 19:07:43 +0200, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Don’t use the \os command this way because the command is only meant to be used on the form {\os 1234} where you put braces around the numbers you want to change. When you use the \os command as shown above you get problems because ligatures, kerning etc. are disabled by the command. OK, thanks for explanation. This means that one has to switch to \os only when a number is to be printed. So when I want all numbers in the document to be old-style (and also ligatures etc. be kept), I have to: 1) switch to {\os } when writing a number manually, 2) define old-style-making-commands wherever numbers are generated automatically, i.e. e.g.: - head commands (sections, chapters...), - enumerator commands (which use numbers), - page numbering commands, - href commands (which generate texts like see section 1.2.3 on page 123). It seems to me be a little labor of Sisyphus at the moment. (But it's clear one would have to enclose manually entered numbers to {\os } or similar structure anyway.) No, this is wrong and I’m not sure what you try to achieve because first you talk about disabling old style figures and now your talking about enabling them. When you *want* your document to use old style figures for the body font you have to enable the onum feature in the default feature set which can be done with \definefontfeature[default][default][onum=yes] before you set the font with the \setupbodyfont command. To change the numbers for certain parts of your document you can use the \feature command, e.g. \setupcaption[figure][style={\feature[+][f:lnum]}] enables lining figures for the caption of your figures. The \os command itself should only be used when you have a few numbers which should appear in a different layout from the global setup. 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] Bug with the integration with tikz
On 08/03/2014 08:09 PM, Otared Kavian wrote: Hi Günter, Your minimal example gives the expected result with with the latest mkiv (ConTeXt ver: 2014.07.25 12:57 MKIV beta fmt: 2014.7.25 int: english/english), as well with the stable version included in TeXLive 2014. Otared, I think there is a newer beta (ConTeXt ver: 2014.07.30 10:31 MKIV beta fmt: 2014.7.30 int: english/english). I don’t know whether this newer beta would give a different result, since I don’t have tikz/pgf installed. 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 ___
Re: [NTG-context] Bug with the integration with tikz
Hi OK, thanks for your prompt reply. I just updated to 2014.07.30 10:31 MKIV beta fmt: 2014.8.3 int: english/english but I get the same error message as before. It worked in the spring this year. Do you have a hint where can I search for? Maybe I should be a little bit more concrete. Yes, I get the expected results but also the cited error messages which I have to confirm. Any ideas? Best regards Günter Am Sun, 3 Aug 2014 20:09:02 +0200 schrieb Otared Kavian ota...@gmail.com: Hi Günter, Your minimal example gives the expected result with with the latest mkiv (ConTeXt ver: 2014.07.25 12:57 MKIV beta fmt: 2014.7.25 int: english/english), as well with the stable version included in TeXLive 2014. Best regards: OK On 02 Aug 2014, at 17:05, Günter Kolousek guenter.kolou...@gmail.com wrote: A minimal example is: \usemodule[tikz] \usetikzlibrary[graphs] \usetikzlibrary[graphdrawing] \starttext \starttikzpicture \graph { a - {b, c} - d }; \stoptikzpicture \stoptext Günter ___ 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] Bug with the integration with tikz
Am 03.08.2014 22:22, schrieb Günter Kolousek: I just updated to 2014.07.30 10:31 MKIV beta fmt: 2014.8.3 int: english/english but I get the same error message as before. It worked in the spring this year. Do you have a hint where can I search for? Maybe I should be a little bit more concrete. Yes, I get the expected results but also the cited error messages which I have to confirm. Any ideas? I have the same problem with the current beta ... Herbert ___ 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] \os
Hello, thanks, Wolfgang, it's clear now completely. On Sun, 03 Aug 2014 20:48:11 +0200, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: When you *want* your document to use old style figures for the body font you have to enable the onum feature in the default feature set which can be done with \definefontfeature[default][default][onum=yes] BEFORE you set the font with the \setupbodyfont command. That was the point! I'm getting now what I was trying to achieve... Best regards, Lukas To change the numbers for certain parts of your document you can use the \feature command, e.g. \setupcaption[figure][style={\feature[+][f:lnum]}] enables lining figures for the caption of your figures. The \os command itself should only be used when you have a few numbers which should appear in a different layout from the global setup. 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] Bug with the integration with tikz
Hi Günter, I updated to ConTeXt ver: 2014.07.30 10:31 MKIV beta fmt: 2014.8.4 int: english/english and tested again your minimal example: it is typeset correctly without any error message nor warnings from ConTeXt mkiv. I am sorry I cannot give you any help regarding the origin of the problem on your side. The only observation would be that on your side ConTeXt seems to look for files outside the stand alone ConTeXt directory, while on my side everything happens inside it (see below). Best regards: OK PS: here is part of the log file I get: […] resolversmodules 'tikz' is loaded open source 3 4 /context-minimal/tex/texmf-modules/tex/context/pgf/frontendlayer/t-tikz.tex loading ConTeXt User Module / tikz open source 4 5 /context-minimal/tex/texmf-modules/tex/context/pgf/basiclayer/t-pgf.tex loading ConTeXt User Module / pgf open source 5 6 /context-minimal/tex/texmf-modules/tex/context/pgf/basiclayer/t-pgfcor.tex loading ConTeXt User Module / pgfcor open source 6 7 /context-minimal/tex/texmf-modules/tex/context/pgf/systemlayer/t-pgfsys.tex loading ConTeXt User Module / pgfsys open source 7 8 /context-minimal/tex/texmf-modules/tex/context/pgf/utilities/t-pgfrcs.tex loading ConTeXt User Module / pgfrcs open source 8 9 /context-minimal/tex/texmf-modules/tex/context/pgf/utilities/t-pgfmod.tex loading ConTeXt User Module / pgfmodules close source 8 9 /context-minimal/tex/texmf-modules/tex/context/pgf/utilities/t-pgfmod.tex open source 8 10 /context-minimal/tex/texmf-modules/tex/generic/pgf/utilities/pgfutil-common.tex open source 9 11 /context-minimal/tex/texmf-modules/tex/generic/pgf/utilities/pgfutil-common-lists.tex close source 9 11 /context-minimal/tex/texmf-modules/tex/generic/pgf/utilities/pgfutil-common-lists.tex close source 8 11 /context-minimal/tex/texmf-modules/tex/generic/pgf/utilities/pgfutil-common.tex open source 8 12 /context-minimal/tex/texmf-modules/tex/generic/pgf/utilities/pgfutil-context.def close source 8 12 /context-minimal/tex/texmf-modules/tex/generic/pgf/utilities/pgfutil-context.def open source 8 13 /context-minimal/tex/texmf-modules/tex/generic/pgf/utilities/pgfrcs.code.tex close source 8 13 /context-minimal/tex/texmf-modules/tex/generic/pgf/utilities/pgfrcs.code.tex close source 7 13 /context-minimal/tex/texmf-modules/tex/context/pgf/utilities/t-pgfrcs.tex open source 7 14 /context-minimal/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsys.code.tex open source 8 15 /context-minimal/tex/texmf-modules/tex/generic/pgf/utilities/pgfkeys.code.tex open source 9 16 /context-minimal/tex/texmf-modules/tex/generic/pgf/utilities/pgfkeysfiltered.code.tex close source 9 16 /context-minimal/tex/texmf-modules/tex/generic/pgf/utilities/pgfkeysfiltered.code.tex close source 8 16 /context-minimal/tex/texmf-modules/tex/generic/pgf/utilities/pgfkeys.code.tex open source 8 17 /context-minimal/tex/texmf-modules/tex/generic/pgf/systemlayer/pgf.cfg close source 8 17 /context-minimal/tex/texmf-modules/tex/generic/pgf/systemlayer/pgf.cfg open source 8 18 /context-minimal/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsys-pdftex.def open source 9 19 /context-minimal/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsys-common-pdf.def close source 9 19 /context-minimal/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsys-common-pdf.def close source 8 19 /context-minimal/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsys-pdftex.def close source 7 19 /context-minimal/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsys.code.tex open source 7 20 /context-minimal/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsyssoftpath.code.tex close source 7 20 /context-minimal/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsyssoftpath.code.tex open source 7 21 /context-minimal/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsysprotocol.code.tex close source 7 21 /context-minimal/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsysprotocol.code.tex close source 6 21 /context-minimal/tex/texmf-modules/tex/context/pgf/systemlayer/t-pgfsys.tex open source 6 22 /context-minimal/tex/texmf-modules/tex/generic/pgf/basiclayer/pgfcore.code.tex open source 7 23 /context-minimal/tex/texmf-modules/tex/generic/pgf/math/pgfmath.code.tex open source 8 24 /context-minimal/tex/texmf-modules/tex/generic/pgf/math/pgfmathcalc.code.tex open source 9 25 /context-minimal/tex/texmf-modules/tex/generic/pgf/math/pgfmathutil.code.tex […] mkiv lua stats lua properties: engine: lua, used memory: 79 MB (ctx: 79 MB), hash type: lua, hash chars: min(64,40), symbol mask: utf (τεχ) mkiv lua stats runtime: 0.927 seconds, 1 processed pages, 1 shipped pages, 1.079 pages/second SyncTeX