Re: [NTG-context] Broken Nightly 2012.07.04
On Fri, Jul 6, 2012 at 4:56 AM, Kip Warner wrote: > On Thu, 2012-07-05 at 10:04 +0200, Hans Hagen wrote: > > \p_mathspacing => \p_math_spacing > > I patched math-arr.mkiv, but I am still getting the same error. I don't > know why since I replaced all instances of \p_mathspacing with > \p_math_spacing and deleted the cache in ~/.texmf-var/. > > Do you rebuild the format ? -- 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] Arbitrary font size
On Thu, Jul 05, 2012 at 06:34:40PM -0500, Troy Henderson wrote: > I would like to know if there is a command like \tfn{0.9} which would allow > the > user to specify an arbitrary font scale factor since the built-in \tfa, \tfb, > \ > tfc, \tfd, \tfx, and \tfxx are insufficient for one of my projects. For one time uses, I use \definedfont[Serif sa 5] etc. ___ 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] itemize behaviour
Am 05.07.2012 um 21:47 schrieb Meer, H. van der: > Thanks. Is the [joinedup] deprecated? Or has it another use? The “joinedup” option works as intended, the problem in your example is that the inner itemgroup acts different for the first item. When you use ”joinedup” context ignores the “before” value which is inserted before the first item but in the inner item group context uses the “inbetween” value of the previous/outer itemgroup and you have to use the “paragraph” keyword for the inner itemgroup to prevent this. 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] Arbitrary font size
Am 06.07.2012 um 01:34 schrieb Troy Henderson: > I would like to know if there is a command like \tfn{0.9} which would allow > the user to specify an arbitrary font scale factor since the built-in \tfa, > \tfb, \tfc, \tfd, \tfx, and \tfxx are insufficient for one of my projects. \definefontsize[n] \definebodyfontenvironment[default][n=0.9] \starttext Normal {\tfa Size A} {\tfb Size B} {\tfn Size N} \stoptext You can also change the scale values for \tfa, \tfb etc. with \setupbodyfontenvironment[default][a=…,b=…,…] 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] Broken Nightly 2012.07.04
On Thu, 2012-07-05 at 10:04 +0200, Hans Hagen wrote: > \p_mathspacing => \p_math_spacing I patched math-arr.mkiv, but I am still getting the same error. I don't know why since I replaced all instances of \p_mathspacing with \p_math_spacing and deleted the cache in ~/.texmf-var/. -- Kip Warner -- Software Engineer OpenPGP encrypted/signed mail preferred http://www.thevertigo.com signature.asc Description: This is a digitally signed message part ___ 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] Arbitrary font size
I would like to know if there is a command like \tfn{0.9} which would allow the user to specify an arbitrary font scale factor since the built-in \tfa, \tfb, \tfc, \tfd, \tfx, and \tfxx are insufficient for one of my projects. Troy Henderson ___ 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] itemize behaviour
Thanks. Is the [joinedup] deprecated? Or has it another use? Hans van der Meer On 5 jul. 2012, at 20:16, Wolfgang Schuster wrote: You need the “paragraph” option. \starttext \setupitemgroup[itemize][1][4,unpacked] \setupitemgroup[itemize][2][5,packed,paragraph] ___ 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] itemize behaviour
Am 03.07.2012 um 21:43 schrieb Meer, H. van der: > I do not understand the workings of the itemize. > What I want is two nested itemlists. The outer one unpacked, the inner one > packed. In the inner one the itemlist should be joinedup with the text before > it. > I do not get this working, see the examples. The inner list is separated from > the "Intro to inner list". It looks like the joinedup in the second example > has no effect, because deleting it makes no difference. Switching the > joinedup over to the outer itemize in the third example pulls everything > together and destroys the unpacked of the first list. > > How to achieve the following? > -- > - Intro to inner list > o one inner list > o two inner list > > - second outer item > -- You need the “paragraph” option. \starttext \setupitemgroup[itemize][1][4,unpacked] \setupitemgroup[itemize][2][5,packed,paragraph] \startitemize \startitem Intro to inner list. \startitemize \startitem one inner list \stopitem \startitem two inner list \stopitem \stopitemize \stopitem \startitem second outer item \stopitem \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] \stretched
On Thu, Jul 5, 2012 at 5:23 PM, Willi Egger wrote: > Hello! > > I just downloaded yesterday night's version of Context and tried the > example provided. - What is wrong with the first line with the \hbox? This > stretched text is as long as the second line and uses the whole text width. > The third line has a width of 10cm as it seems. > > \ruledhbox to 5cm{\stretched{to the limit}} means that the box has 5cm, but \stretched must use some horizontal size (i.e \hsize) to stretch the text. The twos are different lengths: it doesn't make much sense to strecth the text "to the limit" to its natural width (yes, it makes sense --- stretched is nil) try \ruledhbox to 5cm{\stretched{to the limit}} \ruledhbox to 5cm{\hsize=5cm\stretched{to the limit}} \ruledhbox to 5cm{\hsize=0cm\stretched{to the limit}} \ruledhbox{\stretched{to the limit}} \ruledhbox{\stretched[width=10cm]{to the limit}} -- 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] \stretched
Hello! I just downloaded yesterday night's version of Context and tried the example provided. - What is wrong with the first line with the \hbox? This stretched text is as long as the second line and uses the whole text width. The third line has a width of 10cm as it seems. Willi On Jun 28, 2012, at 9:30 AM, Hans Hagen wrote: > Hi, > > In the next version, the \stretched command has been replaced by a new one > using the character kerning feature. > > \hbox to 5cm{\stretched{to the limit}} > \stretched{to the limit} > \stretched[width=10cm]{to the limit} > > In addition one can set a style and color. > > 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 > ___ ___ 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] clutter with \start and \stop
On Jul 5, 2012, at 1:23 AM, luigi scarso wrote: On Thu, Jul 5, 2012 at 12:44 AM, Rogers, Michael K mailto:mrog...@emory.edu>> wrote: XML documents should form a tree, so a structure like \startA % \startB % \stopA % \stopB % won't translate to XML. Grouping in TeX follows the same restrictions, and \start... and \stop... behave like \begingroup and \endgroup. The \stop... is supposed to restore the state before the corresponding \start... (at least I assume so -- \endgroup works that way). One cannot stop A in the middle of B and return to the state before \startA without also stopping B. So one should put \stopB before \stopA, not after it. It depends. \starttext \long\def\startA#1\stopA{<\low{A}#1>\low{A}} \long\def\startB#1\stopB{<\low{B}#1>\low{B}} \startA textAA \startB textAB \stopA textBB \stopB \stoptext is ok (not the context way, btw: real code is more complex). The meaning of this can be content of \startA..\stopA = textAA ⋃ textAB content of \startB..\stopB = textAB ⋃ textBB \startA..\stopA ⋂ \startB..\stopB = textAB If we are describing programs, textAB can be the common code between the function A and B. -- luigi Again, I agree with what you write. Somewhere I must have expressed myself poorly and I apologize. It seems like a side issue (my issue with XML), and I did not mean to hijack the thread. Sorry. This e-mail message (including any attachments) is for the sole use of the intended recipient(s) and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message (including any attachments) is strictly prohibited. If you have received this message in error, please contact the sender by reply e-mail message and destroy all copies of the original message (including attachments). ___ 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] framed \\
Thank you very much. That completely clarifies it. Hans van der Meer On 5 jul. 2012, at 12:55, Aditya Mahajan wrote: On Thu, 5 Jul 2012, Meer, H. van der wrote: Indeed, the align does the trick. But what is the raison d'être of coupling the behaviour of \\ to the align parameter? I wouldn't have known out but for your reply. Is it something to add to the wiki on framed? (sorry, I am not apt at these things myself, too old ;-). Or can it be done generally? Without align={normal|middle|left|right}, \framed is equal to \hbox. You cannot have line breaks in a \hbox. With align=something, \framed is a \vbox, so you can have line breaks. Aditya ___ 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] framed \\
2012/7/5 Aditya Mahajan : > Without align={normal|middle|left|right}, \framed is equal to \hbox. You > cannot have line breaks in a \hbox. With align=something, \framed is a > \vbox, so you can have line breaks. Thank you, it’s wikified. (Command reference on \setupframed) Greetlings, Hraban ___ 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] framed \\
On Thu, 5 Jul 2012, Meer, H. van der wrote: Indeed, the align does the trick. But what is the raison d'être of coupling the behaviour of \\ to the align parameter? I wouldn't have known out but for your reply. Is it something to add to the wiki on framed? (sorry, I am not apt at these things myself, too old ;-). Or can it be done generally? Without align={normal|middle|left|right}, \framed is equal to \hbox. You cannot have line breaks in a \hbox. With align=something, \framed is a \vbox, so you can have line breaks. Aditya___ 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] framed \\
Thanks. Indeed, the align does the trick. But what is the raison d'être of coupling the behaviour of \\ to the align parameter? I wouldn't have known out but for your reply. Is it something to add to the wiki on framed? (sorry, I am not apt at these things myself, too old ;-). Or can it be done generally? Hans van der Meer On 5 jul. 2012, at 12:29, Wolfgang Schuster wrote: Am 05.07.2012 um 11:01 schrieb Meer, H. van der: Sorry, missed the inclusion of the output of the minimal example. In the ConTeXT manual I see that a construct \framed{A\\B\\C} should type set as three lines below each other: A B C But instead the \\'s disappear without a trace. Did I miss some change on the use of \\'s in \framed? Could it be a sideeffect of recent changes? The \\ is converted to a space as you can see in the output, you have to set a align value to break the input into lines. \starttext \framed[align=middle]{A\\B\\C} \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] framed \\
Am 05.07.2012 um 11:01 schrieb Meer, H. van der: > Sorry, missed the inclusion of the output of the minimal example. > > In the ConTeXT manual I see that a construct > \framed{A\\B\\C} should type set as three lines below each other: > > A > B > C > > But instead the \\'s disappear without a trace. > Did I miss some change on the use of \\'s in \framed? > Could it be a sideeffect of recent changes? The \\ is converted to a space as you can see in the output, you have to set a align value to break the input into lines. \starttext \framed[align=middle]{A\\B\\C} \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] framed \\
Sorry, missed the inclusion of the output of the minimal example. In the ConTeXT manual I see that a construct \framed{A\\B\\C} should type set as three lines below each other: A B C But instead the \\'s disappear without a trace. Did I miss some change on the use of \\'s in \framed? Could it be a sideeffect of recent changes? Hans van der Meer \starttext \framed{A\\B\\C} \stoptext test.pdf Description: test.pdf ___ 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] framed \\
In the ConTeXT manual I see that a construct \framed{A\\B\\C} should type set as three lines below each other: A B C But instead the \\'s disappear without a trace. Did I miss some change on the use of \\'s in \framed? Could it be a sideeffect of recent changes? Hans van der Meer ___ 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 in latest beta
On Jul 5, 2012, at 5:02 PM, Hans Hagen wrote: > On 5-7-2012 04:28, JIN Xiao-Yong wrote: >> I got the following error in the minimal example (which is all shown in the >> output below) >> >> system > tex > error on line 4 in file simpl.tex: Undefined >> control sequence ... > > you can try (in page-mul) > > \installcolumnbreakmethod \s!multicolumn \v!yes > {\par > \begingroup > \normaloffinterlineskip > \normalpenalty\plustenthousand > \vbox to \textheight{}% > \endgroup > \penalty-200 > \vskip-\textheight} It compiles then, but the first section is moved to the second column, which is not the intention. ___ 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] clutter with \start and \stop
On Thu, Jul 5, 2012 at 12:44 AM, Rogers, Michael K wrote: > On Jul 4, 2012, at 1:29 PM, Peter Münster wrote: > > On Wed, Jul 04 2012, Hans Hagen wrote: > > > >> no, mixing this way is asking for troubles, if not now, than maybe in > the > >> future > >> > >> just use \section > > > > Yes, but isn't \startsection the recommended method for the future and > > needed for XML output? > > XML documents should form a tree, so a structure like > > \startA % > \startB % > \stopA % > \stopB % > > won't translate to XML. > > Grouping in TeX follows the same restrictions, and \start... and \stop... > behave like \begingroup and \endgroup. The \stop... is supposed to restore > the state before the corresponding \start... (at least I assume so -- > \endgroup works that way). One cannot stop A in the middle of B and return > to the state before \startA without also stopping B. So one should put > \stopB before \stopA, not after it. > > It depends. \starttext \long\def\startA#1\stopA{<\low{A}#1>\low{A}} \long\def\startB#1\stopB{<\low{B}#1>\low{B}} \startA textAA \startB textAB \stopA textBB \stopB \stoptext is ok (not the context way, btw: real code is more complex). The meaning of this can be content of \startA..\stopA = textAA ⋃ textAB content of \startB..\stopB = textAB ⋃ textBB \startA..\stopA ⋂ \startB..\stopB = textAB If we are describing programs, textAB can be the common code between the function A and B. -- 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] Broken Nightly 2012.07.04
On 5-7-2012 03:12, Kip Warner wrote: Hey list, Nightly 2012.07.04 appears to break when compiling my book. I see the following: ! Undefined control sequence. \math_arrows_construct_single ...s \p_mathspacing \p_mathspacing => \p_math_spacing - 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] bug in latest beta
On 5-7-2012 04:28, JIN Xiao-Yong wrote: I got the following error in the minimal example (which is all shown in the output below) system > tex > error on line 4 in file simpl.tex: Undefined control sequence ... you can try (in page-mul) \installcolumnbreakmethod \s!multicolumn \v!yes {\par \begingroup \normaloffinterlineskip \normalpenalty\plustenthousand \vbox to \textheight{}% \endgroup \penalty-200 \vskip-\textheight} - 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] clutter with \start and \stop
On Jul 4, 2012, at 10:56 PM, luigi scarso wrote: On Thu, Jul 5, 2012 at 12:44 AM, Rogers, Michael K mailto:mrog...@emory.edu>> wrote: XML seems a nice way for machines to deal with data. But it's not a very human way to speak. I mean, if I write "\section{One}...\section{Two}" isn't it obvious that section One ends when section Two begins? Why should I have to write \endsection, when the machine can do the bookkeeping for me? The start/stop mechanism is nice as an option, if you plan to produce an XML document from ConTeXt. However the XML translator could implement 'if not first section then "" else ""' and add "if in_a_section then ""' when \stoptext is reached. Hm, consider this \section{One} \input knuth Text \section{Two} \input knuth and \startsection{One} \input knuth \stopsection Text \startsection{Two} \input knuth \stopsection In the last one it's clear that Text is not in the section One or in the section Two: In the first one, Text is in section One --- but how can I put Text so that is not in section One and not in section Two ? Most of the time section One ends where section Two begins, but it's not true that *always* section One ends where section Two begins : infact the last one is a legal example. I agree. When I said start/stop mechanisms are nice options, I had in mind they are useful, even indispensable, alternatives for certain sorts of structuring, as your example shows -- at the time of writing, I focused on XML. I could equally say \section is a nice option. Still, if I want to write a paper that consists of a sequence of sections, it's easier to just use \section, and an XML translator could be written to mark it up accordingly. This e-mail message (including any attachments) is for the sole use of the intended recipient(s) and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message (including any attachments) is strictly prohibited. If you have received this message in error, please contact the sender by reply e-mail message and destroy all copies of the original message (including attachments). ___ 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 ___