Re: [NTG-context] Place figure here; jumping over sections
Thank you, Wolfgang! Hi Wolfgang, \startplacefigure[location=force] … \stopplacefigure Marvelous! How to set this globally? \setupplacefigure[location=force] is unrecognized. > \setupfloat[figure][default=force] -- Best Regards, Vyatcheslav Yatskovsky ___ 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] pagecolormodel
Am 04.12.2012 17:52, schrieb Peter Rolf: > Hi, > > using '\setupcolor[pagecolormodel=auto]' (or any other setting) gives ^^^ s Mh, strange. Haven't seen that. ;-) > > [..] > colors > defining > unknown: library 'pagecolormodel=auto' > {R:/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map} > fonts > preloading latin modern fonts (second stage) > fonts > typescripts > unknown: library 'loc' > {R:/tex/texmf/fonts/map/dvips/lm/lm-math.map}{R:/tex/texmf/fonts/map/dvips/lm/lm-rm.map} > fonts > fallback modern rm 12pt is loaded > [..] > > Mh, strange. Using the latest beta and binaries. > > > Peter > ___ > 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] \not\in doesn't work properly
On 4 déc. 2012, at 17:38, Hans Hagen wrote: > > concerning the bug reports … Hi Hans, Thank you for the fixes and adding the commands \notin and \imply: I did some testing with your examples and others of my own, and it seems that some of the issues are fixed. However with \enablemode[lmmath] the command \notin does not work as expected, while when the above command is commented out it does. Another issue is that the size of integrals when using palatino, times or termes is the almost the same as the ones in inline maths, and I think that this is not the correct behaviour. The examples I tested are essentially yours: %% %\enablemode[lmmath] %\setupbodyfont[xits] %\setupbodyfont[palatino] %\setupbodyfont[dejavu] %\setupbodyfont[times] %\setupbodyfont[termes] \starttext \startformula \hbox{not = :} \not= \stopformula \startformula \hbox{notin :} \notin \stopformula \startformula \hbox{Longrightarrow :} \Longrightarrow \stopformula \startformula \hbox{not in :} \not\in \stopformula \startformula \hbox{iff:} \iff\stopformula \startformula \hbox{mapsto :} \mapsto \stopformula \startformula \hbox{int :} \int_{0}^\pi f(x)dx \stopformula \startformula \hbox{iint :} \iint_{\Omega} f(x)dx \stopformula \startformula \hbox{iiint :} \iiint_{{\Bbb R}^3} f(x)dx \stopformula \stoptext Best regards: OK ___ 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] Place figure here; jumping over sections
Am 04.12.2012 um 19:29 schrieb Vyatcheslav Yatskovsky : > Hi Wolfgang, > >> \startplacefigure[location=force] >> … >> \stopplacefigure > > Marvelous! How to set this globally? > > \setupplacefigure[location=force] is unrecognized. \setupfloat[figure][default=force] 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] Place figure here; jumping over sections
Hi Wolfgang, \startplacefigure[location=force] … \stopplacefigure Marvelous! How to set this globally? \setupplacefigure[location=force] is unrecognized. -- Best Regards, Vyatcheslav Yatskovsky ___ 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] Wrong float numbering with default=top
2012-12-04 Hans Hagen: Hi Hans, > As an experiment I've added some trickery. But keep in mind that messing > with numbers is never 100% foolproof. So, for the moment you can say > > \ctxlua{structures.lists.autoreorder = true} > > till we're sure about what level of control is needed. Beta later today. Thank you for the quick fix. It works for the minimal example, but it fails in my document. Defining custom float types seems to break the auto reordering. \useMPlibrary [dum] \setupfloat [figure] [default=top] \definefloat [newfigure] [newfigures] [figure] \ctxlua{structures.lists.autoreorder = true} \starttext \input knuth \startplacefigure \externalfigure [dummy] \stopplacefigure \startplacenewfigure \externalfigure [dummy] [width=10cm, height=16cm] \stopplacenewfigure \startplacefigure \externalfigure [dummy] \stopplacefigure \stoptext Marco ___ 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] Place figure here; jumping over sections
Am 04.12.2012 um 18:54 schrieb Vyatcheslav Yatskovsky : > Hi, > > How to specify that I prefer to place figure "here" in the following code? > > \startplacefigure > \externalfigure[settings_window.png][scale=1000] > \stopplacefigure \startplacefigure[location=force] … \stopplacefigure 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] Place figure here; jumping over sections
Hi, How to specify that I prefer to place figure "here" in the following code? \startplacefigure \externalfigure[settings_window.png][scale=1000] \stopplacefigure I don't understand, why figures are encouraged to jump across sections and subsections? It makes no sense. Is there a way to prohibit this (e.g., flush all figures at section end, possibly for the cost of white space at page bottom)? At least I could see where problems are, instead of keeping an eye whether figures still belong to their sections. Regards, Vyactheslav ___ 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] pagecolormodel
Hi, using '\setupcolor[pagecolormodel=auto]' (or any other setting) gives [..] colors > defining > unknown: library 'pagecolormodel=auto' {R:/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map} fonts > preloading latin modern fonts (second stage) fonts > typescripts > unknown: library 'loc' {R:/tex/texmf/fonts/map/dvips/lm/lm-math.map}{R:/tex/texmf/fonts/map/dvips/lm/lm-rm.map} fonts > fallback modern rm 12pt is loaded [..] Mh, strange. Using the latest beta and binaries. Peter ___ 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] \not\in doesn't work properly
On 12/4/2012 4:18 PM, Khaled Hosny wrote: The main issue here is that \not in was largely a hack in CM fonts, the glyph was specially crafted so that it overlays the next symbol by having zero width and -ve right side bearing and it was centered over equal and similar symbols, anything with different width would not look good. ok, so officially it has zero width This can't be relied on with OpenType fonts mainly because we don't control all the fonts and since U+0338 is a combining mark it tends to have -ve left side bearing (the opposite of CM). ah, ok Previously I thought it should be handled as special math accent that don't get shifted above, but this didn't work because accent noads do not inherit the spacing of their nuclei, and changing this is not simple AFAICT. When I checked Word it had no notion of negations either, you can only use pre-composed negated symbols (but accents respect the spacing of its accentee, BTW). The solution currently used by unicode-math package is to look ahead and see if the next symbol after \not has a precomposed negated form and use it (such a list can be obtained by checking Unicode characters that decompose to something + U+0338), else just output U+0338. This probably can be even enhanced by inserting a kern between \not and the next symbol that would center their bounding boxes together, to handle cases why no precomposed symbol exists. My be we need a new primitive \Unegation that would do this in the engine? we already have some mechanisms that deal with such issues so some kind of support is doable (if really needed) concerning the bug reports ... % \setupbodyfont[dejavu] % uses xits \enablemode[lmmath] \starttext % \imply : undefined % \notin : no virtual char \startformula \hbox{not = :} \not= \stopformula \startformula \hbox{notin :} \notin \stopformula \startformula \hbox{longrightarrow :} \Longrightarrow \stopformula \startformula \hbox{not in :} \not\in \stopformula \startformula \hbox{iff:} \iff\stopformula \startformula \hbox{mapsto :} \mapsto \stopformula \stoptext afaik \imply was never defined to start with; \notin needs a virtual glyph in the lm definitions; the rest seems to work ok I'll add a vf \notin and also \imply 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] \not\in doesn't work properly
On 12/4/2012 4:33 PM, luigi scarso wrote: If I recall correctly, a glyph with zero width give an invalid pdf/a-1. yes, and we took (take) care of that - 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] Wrong float numbering with default=top
On 12/4/2012 1:21 PM, Marco Patzer wrote: Hi, The setting \setupfloat [figure] [default=top] not only places the figures at the top of the page, but also messes up the float numbering (the float placement is fine). In the following example “Figure 2” comes after “Figure 3”. How to fix that? \useMPlibrary [dum] \setupfloat [figure] [default=top] \starttext \input knuth \startplacefigure \externalfigure [dummy] \stopplacefigure \startplacefigure \externalfigure [dummy] [width=10cm, height=16cm] \stopplacefigure \startplacefigure \externalfigure [dummy] \stopplacefigure \stoptext In MKII we had a mechanism that took care of that (out of line flushing of floats) but it never made it into mkiv (if only because some folks didn't like it). As an experiment I've added some trickery. But keep in mind that messing with numbers is never 100% foolproof. So, for the moment you can say \ctxlua{structures.lists.autoreorder = true} till we're sure about what level of control is needed. Beta later today. - 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] \not\in doesn't work properly
On Tue, Dec 4, 2012 at 4:18 PM, Khaled Hosny wrote: > On Mon, Dec 03, 2012 at 09:07:43PM +0100, Hans Hagen wrote: >> On 11/30/2012 10:26 AM, Jeong Dal wrote: >> >Hi, >> > >> >After updating ConTeXt, math command '\not\in' is not shown properly. >> > >> >For example, >> > >> >$a \not\eq b$ is good. >> > >> >but $a \not\in A$ shows two symbols separately. >> > >> > >> >I am using Mac OS X 10.8 and the versions of LuaTex and ConTeXt are >> > >> >This is LuaTeX, Version beta-0.70.2-2012052309 (TeX Live 2012) >> >ConTeXt ver: 2012.11.23 17:35 MKIV fmt: 2012.11.26 int: english/english >> >> I assume that you use lm ... before I start looking into it I'd like >> to know Khaleds point of view on this. > > The main issue here is that \not in was largely a hack in CM fonts, the > glyph was specially crafted so that it overlays the next symbol by > having zero width and -ve right side bearing and it was centered over > equal and similar symbols, anything with different width would not look > good. If I recall correctly, a glyph with zero width give an invalid pdf/a-1. -- luigi ___ 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] \not\in doesn't work properly
On Mon, Dec 03, 2012 at 09:07:43PM +0100, Hans Hagen wrote: > On 11/30/2012 10:26 AM, Jeong Dal wrote: > >Hi, > > > >After updating ConTeXt, math command '\not\in' is not shown properly. > > > >For example, > > > >$a \not\eq b$ is good. > > > >but $a \not\in A$ shows two symbols separately. > > > > > >I am using Mac OS X 10.8 and the versions of LuaTex and ConTeXt are > > > >This is LuaTeX, Version beta-0.70.2-2012052309 (TeX Live 2012) > >ConTeXt ver: 2012.11.23 17:35 MKIV fmt: 2012.11.26 int: english/english > > I assume that you use lm ... before I start looking into it I'd like > to know Khaleds point of view on this. The main issue here is that \not in was largely a hack in CM fonts, the glyph was specially crafted so that it overlays the next symbol by having zero width and -ve right side bearing and it was centered over equal and similar symbols, anything with different width would not look good. This can't be relied on with OpenType fonts mainly because we don't control all the fonts and since U+0338 is a combining mark it tends to have -ve left side bearing (the opposite of CM). Previously I thought it should be handled as special math accent that don't get shifted above, but this didn't work because accent noads do not inherit the spacing of their nuclei, and changing this is not simple AFAICT. When I checked Word it had no notion of negations either, you can only use pre-composed negated symbols (but accents respect the spacing of its accentee, BTW). The solution currently used by unicode-math package is to look ahead and see if the next symbol after \not has a precomposed negated form and use it (such a list can be obtained by checking Unicode characters that decompose to something + U+0338), else just output U+0338. This probably can be even enhanced by inserting a kern between \not and the next symbol that would center their bounding boxes together, to handle cases why no precomposed symbol exists. My be we need a new primitive \Unegation that would do this in the engine? Regards, Khaled ___ 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] A problem with autopunctuation
Hi, all, Hans has done some work on autopunctuation which made it into yesterday's beta (2012.12.03 11:33). This includes a 'set it like I type it' mode people have been asking for. There are now three options to \setupmathematics[autopunctuation=...]: * autopunctuation=no — default TeX behaviour. Commas get a thin space, periods get nothing. * autopunctuation=yes — manual control for commas. Commas followed by a space get a thin space; periods, and commas followed by something else, do not. * autopunctuation=all — like `yes`; and periods, too, get a thin space unless suppressed Example code below, example output attached, and the behaviour is documented at http://wiki.contextgarden.net/Command/setupmathematics Cheers, Sietse \defineparagraphs[asdf][n=3] \startTEXpage[offset=2mm] \startasdf \setupmathematics[autopunctuation=no] autopunctuation=no \starttabulate[] \NC input \NC desired \NC output \NC \NR \NC 2,5 \NC 2, 5 \NC $2,5$ \NC \NR \NC 2, 5 \NC 2, 5 \NC $2, 5$ \NC \NR \NC 2.5 \NC 2.5 \NC $2.5$ \NC \NR \NC 2. 5 \NC 2.5 \NC $2. 5$ \NC \NR \stoptabulate \asdf \setupmathematics[autopunctuation=yes] autopunctuation=yes \starttabulate[] \NC input \NC desired \NC output \NC \NR \NC 2,5 \NC 2,5 \NC $2,5$ \NC \NR \NC 2, 5 \NC 2, 5 \NC $2, 5$ \NC \NR \NC 2.5 \NC 2.5 \NC $2.5$ \NC \NR \NC 2. 5 \NC 2.5 \NC $2.5$ \NC \NR \stoptabulate \asdf \setupmathematics[autopunctuation=all] autopunctuation=all \starttabulate[] \NC input \NC desired \NC output \NC \NR \NC 2,5 \NC 2,5 \NC $2,5$ \NC \NR \NC 2, 5 \NC 2, 5 \NC $2, 5$ \NC \NR \NC 2.5 \NC 2.5 \NC $2.5$ \NC \NR \NC 2. 5 \NC 2. 5 \NC $2. 5$ \NC \NR \stoptabulate \stopasdf \stopTEXpage punctuation-001.pdf Description: Adobe PDF document ___ 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] Wrong float numbering with default=top
Hi, The setting \setupfloat [figure] [default=top] not only places the figures at the top of the page, but also messes up the float numbering (the float placement is fine). In the following example “Figure 2” comes after “Figure 3”. How to fix that? \useMPlibrary [dum] \setupfloat [figure] [default=top] \starttext \input knuth \startplacefigure \externalfigure [dummy] \stopplacefigure \startplacefigure \externalfigure [dummy] [width=10cm, height=16cm] \stopplacefigure \startplacefigure \externalfigure [dummy] \stopplacefigure \stoptext Marco ___ 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 ___