Re: [NTG-context] font switching commands
On 19/07/19 11:45 AM, Atsuhito Kohda wrote: > Hi all > "Manuals-ConTeXt wiki" provides us very important and useful > information and we find cont-eni.pdf in "overview". In the manual, > font switching commands \vi, \vii, \viii, \ix, \x, \xi, \xii are > explained in p.113 but it seems they don't work except \vi and \xi. > From my simple test with ConTeXt, \xi produces a greek letter "ξ" > as in traditional TeX and \vi seems to do nothing. This manual is for MKII (it is dated 2001). The new font size switches are \tfa, \tfb, \tfc, and so on (or \bfa for bold etc.). Generally, you want to use them very sparingly and only in setup code. Your document content should not contain any explicit size switches. Cheers, Henri > Is the above explanation obsolete or is additional setup necessary? > I'd like to know what is the real situation of these commands. > Thanks in advance. > Best regards, > Atsuhito Kohda > > > ___ > 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://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] font switching commands
Hi all "Manuals-ConTeXt wiki" provides us very important and useful information and we find cont-eni.pdf in "overview". In the manual, font switching commands \vi, \vii, \viii, \ix, \x, \xi, \xii are explained in p.113 but it seems they don't work except \vi and \xi. >From my simple test with ConTeXt, \xi produces a greek letter "ξ" as in traditional TeX and \vi seems to do nothing. Is the above explanation obsolete or is additional setup necessary? I'd like to know what is the real situation of these commands. Thanks in advance. Best regards, Atsuhito Kohda ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Side figure bug in mkiv?
On 19/07/19 9:36 AM, Duncan Hothersall wrote: > On Thu, 18 Jul 2019 at 22:30, Henri Menke wrote: > >> >> Your formatting obscures the problem because compiling this example >> works fine. I think you are starting a new paragraph before {\bf ...}. >> That is a well-known problem and there are posts about it on the mailing >> list every once in a while. The sidefigure mechanism uses \parshape to >> make the paragraph flow around the figure. >> > > Very many thanks Henri for your patient explanation, and my apologies for > inadvertently asking a FAQ. I had thought the effect hasn't happened with > the same content in mkii but it must have been a happenstance of different > formatting. It is maybe an FAQ but I don't think it has been documented anywhere properly. I added my explanation to the Wiki page about unexpected behaviour. https://wiki.contextgarden.net/Unexpected_behavior#The_.E2.80.9Cparagraph_in_a_group.E2.80.9D_problem Cheers, Henri > > Thanks again for the clear solution. > > Duncan > > > ___ > 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://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Side figure bug in mkiv?
On Thu, 18 Jul 2019 at 22:30, Henri Menke wrote: > > Your formatting obscures the problem because compiling this example > works fine. I think you are starting a new paragraph before {\bf ...}. > That is a well-known problem and there are posts about it on the mailing > list every once in a while. The sidefigure mechanism uses \parshape to > make the paragraph flow around the figure. > Very many thanks Henri for your patient explanation, and my apologies for inadvertently asking a FAQ. I had thought the effect hasn't happened with the same content in mkii but it must have been a happenstance of different formatting. Thanks again for the clear solution. Duncan ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Side figure bug in mkiv?
On 19/07/19 3:18 AM, Duncan Hothersall wrote: > I think I have identified a bug in the side figure mechanism which is > demonstrated by the minimal example below. The {\bf …} construct causes the > para in which it appears to stop behaving properly with the side figure, and > the text overflows. The preceding and following paras which don't have {\bf > …} do behave properly. > > I wondered if emphasis like \bf should be done differently (with a start/stop > mechanism?) in mkiv, but I found nothing to suggest it. > > \starttext > Blah blah. > \placefigure[right,none]{}{\externalfigure[cow][width=0.30\makeupwidth]} > Blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah > blah blah blah blah blah blah blah blah blah blah blah. Blah blah blah blah > blah blah blah blah. > {\bf Blah blah} blah blah blah blah blah blah blah blah blah blah blah blah > blah blah blah blah blah blah. > Blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah > blah blah blah blah blah blah. > \stoptext Your formatting obscures the problem because compiling this example works fine. I think you are starting a new paragraph before {\bf ...}. That is a well-known problem and there are posts about it on the mailing list every once in a while. The sidefigure mechanism uses \parshape to make the paragraph flow around the figure. The \parshape primitive only applies to a single paragraph, so ConTeXt communicates the current \parshape settings to the next paragraph using \everypar. However, when a new paragraph starts in a group, i.e. blah blah blah ... {\bf Blah blah} blah ... TeX inserts the \everypar tokens inside that group because only the first letter starts the paragraph. That is to say is effectively looks like this \everypar inserted inside the group ~| v {\bf \the\everypar Blah blah} blah ... ^ | Setting of \everypar are discarded again when leaving the group and \parshape is lost. You have to explicitly start a new paragraph before opening a group. The easiest way to do this is \dontleavehmode{\bf Blah blah} blah ... Now the \everypar tokens are inserted directly after \dontleavehmode outside the group and the problem goes away. For what it's worth, the MKIV way to switch to bold face is \bold{text} instead of {\bf text} but it also doesn't fix your problem because neither of the two start a new paragraph before the first letter and therefore \the\everypar is still inside a group. Cheers, Henri > > Thanks for any help. > > Duncan > > ___ > 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://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Using \currentreferencenumber triggers “has a hidden number” in log file
Hi, I use \enabletrackers [structures.referencing.empty] to catch references by number to sections without a number. The log file contains “has a hidden number…” in that case. I have a command that uses \currentreferencenumber which triggers the “has a hidden number…” warning in the log file. But that command takes care not to output the contents of that variable. But merely using it in an \doif\currentreferencenumber is sufficient to trigger the log message. Example: \enabletrackers [structures.referencing.empty] \def\foo[#1]{%% \doifreferencefoundelse{#1}{%% \doifelse\currentreferencenumber\emptyreference {Foo}{Bar}}%% } \setuphead [section] [number=no] \starttext \startsection [title=Foo, reference=sec:foo] \samplefile{knuth} \stopsection \foo[sec:foo] \stoptext Then check the log file for “has a hidden number”. 1) How to not trigger the log message when checking \currentreferencenumber? Or alternatively 2) Is there a better way to find invisible references? 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Side figure bug in mkiv?
I think I have identified a bug in the side figure mechanism which is demonstrated by the minimal example below. The {\bf …} construct causes the para in which it appears to stop behaving properly with the side figure, and the text overflows. The preceding and following paras which don't have {\bf …} do behave properly. I wondered if emphasis like \bf should be done differently (with a start/stop mechanism?) in mkiv, but I found nothing to suggest it. \starttext Blah blah. \placefigure[right,none]{}{\externalfigure[cow][width=0.30\makeupwidth]} Blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah. Blah blah blah blah blah blah blah blah. {\bf Blah blah} blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah. Blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah. \stoptext Thanks for any help. Duncan ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Column spacing in MathML in mkiv
Hi all. If I want to set the space between columns in a MathML , how do I do it? Minimal non-working example below (set the attribute columnspacing to anything you like and it seems to be ignored). Is this a bug or is there a feature I've missed? \usemodule[mathml] \starttext \xmlprocessdata{}{ ab = cd ef = gh }{} \stoptext Many thanks. Duncan ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] [OT] veraPDF v1.14
https://www.pdfa.org/verapdf-1-14-released/ -- 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___