Re: [NTG-context] Defineenumeration head offset
Alexandre Christe via ntg-context schrieb am 07.11.2022 um 21:04: Dear list, Is there a trick to not apply the leftoffset to the header of a defineenumeration? MWE: [...] You can use \offset to shift the enumeration title. \defineframed [ExampleHeadFrame] [location=low, background=color, backgroundcolor=darkgreen, width=\textwidth] \define[1]\ExampleHeadCommand {\offset[leftoffset=-2.25ex]{\ExampleHeadFrame{#1}}} \defineenumeration [example] [..., headcommand=\ExampleHeadCommand, ...] Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Defineenumeration head offset
Dear list, Is there a trick to not apply the leftoffset to the header of a defineenumeration? MWE: \definetextbackground [textFrameEx] [ frame=off, framecolor=darkgreen, rulethickness=2ex, background=, location=paragraph, leftoffset=2.25ex, rightoffset=2.25ex, after={\hrule} ] \defineenumeration [example] [ text=Example, headalign=middle, headcolor=white, headcommand={\inframed[background=color,backgroundcolor=darkgreen,width=\textwidth]}, number=no, before={% \starttextbackground[textFrameEx] }, after={% \stoptextbackground% }, ] \starttext \startexample Blablabla \stopexample \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] placelist created by defineenumeration fails in numbered headings
That pretty much sums it up: if I change \title to \chapter, for example, the list is generated only if I set the option criterium=chapter, for example. Is criterium really necessary in this case? ``` \defineenumeration [Exercício] [alternative=top, before=\blank, after=\blank, between=\blank] \defineenumeration [Título] [alternative=left, headcolor=darkcyan, width=2cm, text={Título}, before=\blank, after=\blank, between=\blank] \setuplabeltext[Exercise=Exercício~,Título=Título~] \setuplist[Exercício][width=6em] \starttext \title{defineenumeration} \subject{Lista de exercícios} \placelist[Exercício][label=Exercise] \subject{Lista de títulos} \placelist[Título][label=Título] \Exercício[title=Título do exercício] Um exercício O mesmo exercício. \Exercício Outro exercício com {\tt start ... stop} \subExercício Um subexercício. \startExercício Um exercício. \stopExercício \startsubExercício Um subexercício. \stopsubExercício \Título Título 1 \Título Título 2 \subTítulo sub-Título 1 \subTítulo sub-Título 2 \startTítulo Agora vai. \stopTítulo \stoptext ``` ___ 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] Bad interaction between \setupinteraction and \defineenumeration
Thanks Wolfgang! Your patch seems to fix also another issue with the cross references in ConTeXt at least on MacOS and TeXShop. In principle a document typeset with TeXShop, in the resulting PDF when the pointer hovers above a link to a reference, TeXShop shows a small pop-up window where the reference is shown (for instance with the example sent by Jairo the text of Proposición is shown). This works fine with LaTeX documents typeset with TeXShop, but it didn't work at all with ConTeXt documents. After applying your patch and making the format, the feature works with some ConTeXt documents, such as the example sent by Jairo (but unfortunately the feature does not work in a large document where I tested it). Best regards: Otared K. > On 6 Jul 2020, at 20:48, Wolfgang Schuster > wrote: > […] > > I'm not Hans but this fixed the problem for me (strc-con.mkiv): > > \def\strc_constructions_register_yes[#1][#2]% #1=optional user data > #2=interfaced-settings > {\begingroup % similar to structure so we might > generalize this > ... > \clf_setinternalreference > - prefix{\referenceprefix}% > + prefix{\currentconstructionreferenceprefix}% > reference {\currentconstructionreference}% > internal \locationcount > view {\interactionparameter\c!focus}% > \relax > ... > \fi} > > 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Bad interaction between \setupinteraction and \defineenumeration
Now it works! Thank you so much, Wolfgang! Jairo :) El lun., 6 de jul. de 2020 a la(s) 13:48, Wolfgang Schuster ( wolfgang.schuster.li...@gmail.com) escribió: > Pablo Rodriguez schrieb am 06.07.2020 um 20:04: > > On 7/6/20 3:58 PM, Jairo A. del Rio wrote: > >> So, cannot I use focus=standard and cross-references together? Hmm. I > >> think it should be fixed... But maybe it's an intended feature. Thanks, > >> Otared. > > > > Hi Jairo, > > > > "focus=standard" works fine with footnotes. > > > > \setupinteraction[state=start,focus=standard,color=,contrastcolor=] > > \defineenumeration[proposition][referenceprefix=prop] > > \starttext > > \startproposition[1] > > \input ward\footnote{Only a footnote} > > \stopproposition > > \in[prop:1] > > \stoptext > > > > Your sample doesn’t work, because of the reference prefix. Right now, > > the /Names reads in the PDF code: > > > > /Names [ (1) 5 0 R ] > > > > It seems that "referenceprefix" is forgotten there, which should read > > with the sample code from above: > > > > /Names [ (prop:1) 5 0 R ] > > > > Hans, could you check this? (I’m afraid it doesn’t work with current > > latest [2020.07.06 19:30])? > > > I'm not Hans but this fixed the problem for me (strc-con.mkiv): > > \def\strc_constructions_register_yes[#1][#2]% #1=optional user data > #2=interfaced-settings >{\begingroup % similar to structure so > we might generalize this > ... > \clf_setinternalreference > - prefix{\referenceprefix}% > + prefix{\currentconstructionreferenceprefix}% > reference {\currentconstructionreference}% > internal \locationcount > view {\interactionparameter\c!focus}% > \relax > ... > \fi} > > 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://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] Bad interaction between \setupinteraction and \defineenumeration
On 7/6/20 8:48 PM, Wolfgang Schuster wrote: > Pablo Rodriguez schrieb am 06.07.2020 um 20:04: >> [...] >> Hans, could you check this? (I’m afraid it doesn’t work with current >> latest [2020.07.06 19:30])? > > I'm not Hans but this fixed the problem for me (strc-con.mkiv): > > \def\strc_constructions_register_yes[#1][#2]% #1=optional user data > #2=interfaced-settings >{\begingroup % similar to structure so > we might generalize this > ... > \clf_setinternalreference > - prefix{\referenceprefix}% > + prefix{\currentconstructionreferenceprefix}% > reference {\currentconstructionreference}% > internal \locationcount > view {\interactionparameter\c!focus}% > \relax > ... > \fi} Many thanks for your the fix, Wolfgang. It works perfectly fine here too. 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Bad interaction between \setupinteraction and \defineenumeration
On 7/6/2020 8:48 PM, Wolfgang Schuster wrote: Pablo Rodriguez schrieb am 06.07.2020 um 20:04: On 7/6/20 3:58 PM, Jairo A. del Rio wrote: So, cannot I use focus=standard and cross-references together? Hmm. I think it should be fixed... But maybe it's an intended feature. Thanks, Otared. Hi Jairo, "focus=standard" works fine with footnotes. \setupinteraction[state=start,focus=standard,color=,contrastcolor=] \defineenumeration[proposition][referenceprefix=prop] \starttext \startproposition[1] \input ward\footnote{Only a footnote} \stopproposition \in[prop:1] \stoptext Your sample doesn’t work, because of the reference prefix. Right now, the /Names reads in the PDF code: /Names [ (1) 5 0 R ] It seems that "referenceprefix" is forgotten there, which should read with the sample code from above: /Names [ (prop:1) 5 0 R ] Hans, could you check this? (I’m afraid it doesn’t work with current latest [2020.07.06 19:30])? I'm not Hans but this fixed the problem for me (strc-con.mkiv): \def\strc_constructions_register_yes[#1][#2]% #1=optional user data #2=interfaced-settings {\begingroup % similar to structure so we might generalize this ... \clf_setinternalreference - prefix {\referenceprefix}% + prefix {\currentconstructionreferenceprefix}% reference {\currentconstructionreference}% internal \locationcount view {\interactionparameter\c!focus}% \relax ... \fi} Wolfgang But because you're Wolfgang I can apply that patch without checking ... (no upload today, already done one0 Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Bad interaction between \setupinteraction and \defineenumeration
Pablo Rodriguez schrieb am 06.07.2020 um 20:04: On 7/6/20 3:58 PM, Jairo A. del Rio wrote: So, cannot I use focus=standard and cross-references together? Hmm. I think it should be fixed... But maybe it's an intended feature. Thanks, Otared. Hi Jairo, "focus=standard" works fine with footnotes. \setupinteraction[state=start,focus=standard,color=,contrastcolor=] \defineenumeration[proposition][referenceprefix=prop] \starttext \startproposition[1] \input ward\footnote{Only a footnote} \stopproposition \in[prop:1] \stoptext Your sample doesn’t work, because of the reference prefix. Right now, the /Names reads in the PDF code: /Names [ (1) 5 0 R ] It seems that "referenceprefix" is forgotten there, which should read with the sample code from above: /Names [ (prop:1) 5 0 R ] Hans, could you check this? (I’m afraid it doesn’t work with current latest [2020.07.06 19:30])? I'm not Hans but this fixed the problem for me (strc-con.mkiv): \def\strc_constructions_register_yes[#1][#2]% #1=optional user data #2=interfaced-settings {\begingroup % similar to structure so we might generalize this ... \clf_setinternalreference - prefix{\referenceprefix}% + prefix{\currentconstructionreferenceprefix}% reference {\currentconstructionreference}% internal \locationcount view {\interactionparameter\c!focus}% \relax ... \fi} 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Bad interaction between \setupinteraction and \defineenumeration
On 7/6/20 3:58 PM, Jairo A. del Rio wrote: > So, cannot I use focus=standard and cross-references together? Hmm. I > think it should be fixed... But maybe it's an intended feature. Thanks, > Otared. Hi Jairo, "focus=standard" works fine with footnotes. \setupinteraction[state=start,focus=standard,color=,contrastcolor=] \defineenumeration[proposition][referenceprefix=prop] \starttext \startproposition[1] \input ward\footnote{Only a footnote} \stopproposition \in[prop:1] \stoptext Your sample doesn’t work, because of the reference prefix. Right now, the /Names reads in the PDF code: /Names [ (1) 5 0 R ] It seems that "referenceprefix" is forgotten there, which should read with the sample code from above: /Names [ (prop:1) 5 0 R ] Hans, could you check this? (I’m afraid it doesn’t work with current latest [2020.07.06 19:30])? Many thanks for your help, 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Bad interaction between \setupinteraction and \defineenumeration
So, cannot I use focus=standard and cross-references together? Hmm. I think it should be fixed... But maybe it's an intended feature. Thanks, Otared. Jairo :) El lun., 6 de jul. de 2020 4:31 a. m., Otared Kavian escribió: > Hi Jairo, > > If you remove > focus=standard > the interaction works fine. > > Best regards: Otared K. > > > On 6 Jul 2020, at 01:15, Jairo A. del Rio > wrote: > > > > The following: > > > > > \setupinteraction[state=start,focus=standard,color=black,contrastcolor=black] > > > \defineenumeration[proposition][alternative=top,text=Proposición,headalign=middle,numberconversion=R,headstyle=\WORDS,style=\emph,referenceprefix=prop] > > \starttext > > \startproposition[1] > > \dorecurse{10}{\input ward} > > \stopproposition > > \in[prop:1] > > \stoptext > > > > works almost perfectly. However, the cross-reference does not work, even > if the number of the enumeration is displayed correctly. The example fails > both in LuaTeX and LuaMetaTeX. As I remember, the problem appeared as early > as 2019, so not a matter of a bad installation. Any ideas? > > > > Cordially, > > > > Jairo :) > > > > > ___ > > 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 > > ___ > ___ 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] Bad interaction between \setupinteraction and \defineenumeration
Hi Jairo, If you remove focus=standard the interaction works fine. Best regards: Otared K. > On 6 Jul 2020, at 01:15, Jairo A. del Rio wrote: > > The following: > > \setupinteraction[state=start,focus=standard,color=black,contrastcolor=black] > \defineenumeration[proposition][alternative=top,text=Proposición,headalign=middle,numberconversion=R,headstyle=\WORDS,style=\emph,referenceprefix=prop] > \starttext > \startproposition[1] > \dorecurse{10}{\input ward} > \stopproposition > \in[prop:1] > \stoptext > > works almost perfectly. However, the cross-reference does not work, even if > the number of the enumeration is displayed correctly. The example fails both > in LuaTeX and LuaMetaTeX. As I remember, the problem appeared as early as > 2019, so not a matter of a bad installation. Any ideas? > > Cordially, > > Jairo :) > > ___ > 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] Bad interaction between \setupinteraction and \defineenumeration
The following: \setupinteraction[state=start,focus=standard,color=black,contrastcolor=black] \defineenumeration[proposition][alternative=top,text=Proposición,headalign=middle,numberconversion=R,headstyle=\WORDS,style=\emph,referenceprefix=prop] \starttext \startproposition[1] \dorecurse{10}{\input ward} \stopproposition \in[prop:1] \stoptext works almost perfectly. However, the cross-reference does not work, even if the number of the enumeration is displayed correctly. The example fails both in LuaTeX and LuaMetaTeX. As I remember, the problem appeared as early as 2019, so not a matter of a bad installation. Any ideas? Cordially, Jairo :) ___ 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] Label problems with \definelabel and \defineenumeration, in and out of footnotes
On 2018-01-12 17:46, Hans Hagen wrote: On 1/12/2018 10:31 PM, Rik Kabel wrote: maybe putting a \dontleavehmode in front helps Indeed. Thank you. Adding it to the before key of \defineenumeration appears to have no unwanted side effects. Can you think of a reason not to do that? something tex ... one starts a group at the start of a paragraph while not yet in par/hmode .. \dontleavehmode forces hmode (a paragraph) Understood. I was just wondering if there is a downside to using it everwhere one places an enumeration by putting it into the before key. -- Rik ___ 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] Label problems with \definelabel and \defineenumeration, in and out of footnotes
On 1/12/2018 10:31 PM, Rik Kabel wrote: maybe putting a \dontleavehmode in front helps Indeed. Thank you. Adding it to the before key of \defineenumeration appears to have no unwanted side effects. Can you think of a reason not to do that? something tex ... one starts a group at the start of a paragraph while not yet in par/hmode .. \dontleavehmode forces hmode (a paragraph) - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Label problems with \definelabel and \defineenumeration, in and out of footnotes
On 2018-01-12 15:50, Hans Hagen wrote: On 1/12/2018 8:24 PM, Rik Kabel wrote: On 2018-01-12 13:27, Hans Hagen wrote: On 1/12/2018 6:58 PM, Rik Kabel wrote: Bump. On 2015-08-11 14:45, Rik Kabel wrote: The example below documents the problems. In short, \definelabel suppresses paragraph indent when the label is at the beginning of a paragraph and fails to print the label or generate references with alternative=inmargin (or inright, or inleft) when in a footnote. \defineenumeration fails to work in a footnote. use \ID ... \par as it has to know where it ends which is a paragraph end or use \startID ... \stopID \setupindenting[yes,small] \definelabel [ID][ %\defineenumeration[ID][ text=, after=, before=, headcolor=red, alternative=inright, ] \starttext \starttitle[title={Label testing}] \startsubject[title={Problems with \tex{definelabel}}] This is a test. It is only a test. \ID[id1]This paragraph should be indented, with an ID number in the margin. When \tex{ID} is placed at the beginning of the paragraph, as it is here, the paragraph is not indented. This paragraph has a footnote.\footnote{% \ID[id2]The ID number is not printed in the margin with {\tt alternative=inright}, {\tt alternative=inmargin}, or {\tt alternative=inleft}. Without any {\tt alternative} the ID number is printed where the macro appears. The positioning is unsatisfactory using {\tt alternative=right}.% } The footnote has an ID number which should be printed in the right margin. This \ID[id3]paragraph has an ID, but it is not at the beginning of the paragraph and the paragraph is properly indented. The value of the ID number indicates that \tex{ID} in the footnote of the previous paragraph incremented the associated counter, but the failure of the references (\tex{in} and \tex{at}) to id2 suggests that there are other problems. \dorecurse{3}{ ID id#1 is \in[id#1] and is on page \at[id#1].\par} References for footnotes are generated without \tt{alternative=}. \stopsubject \startsubject[title={Problems with \tex{defineenumeration}}] When \tex{definelabel} is changed to \tex{defineenumeration}, the example fails to compile. It does not properly handle the \tex{ID} in the footnote, complaining of an extra \} or forgotten \tex{endgroup}. \stopsubject \stoptitle \stoptext -- Rik Thank you Hans. With \defineenumeration, adding an explicit \par for the footnote allows the index to print in the margin, and it works as well with multi-paragraph footnotes using \epar and \bpar. However, this does not address the failure to indent when the ID starts a paragraph. maybe putting a \dontleavehmode in front helps Indeed. Thank you. Adding it to the before key of \defineenumeration appears to have no unwanted side effects. Can you think of a reason not to do that? -- Rik ___ 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] Label problems with \definelabel and \defineenumeration, in and out of footnotes
On 1/12/2018 8:24 PM, Rik Kabel wrote: On 2018-01-12 13:27, Hans Hagen wrote: On 1/12/2018 6:58 PM, Rik Kabel wrote: Bump. On 2015-08-11 14:45, Rik Kabel wrote: The example below documents the problems. In short, \definelabel suppresses paragraph indent when the label is at the beginning of a paragraph and fails to print the label or generate references with alternative=inmargin (or inright, or inleft) when in a footnote. \defineenumeration fails to work in a footnote. use \ID ... \par as it has to know where it ends which is a paragraph end or use \startID ... \stopID \setupindenting[yes,small] \definelabel [ID][ %\defineenumeration[ID][ text=, after=, before=, headcolor=red, alternative=inright, ] \starttext \starttitle[title={Label testing}] \startsubject[title={Problems with \tex{definelabel}}] This is a test. It is only a test. \ID[id1]This paragraph should be indented, with an ID number in the margin. When \tex{ID} is placed at the beginning of the paragraph, as it is here, the paragraph is not indented. This paragraph has a footnote.\footnote{% \ID[id2]The ID number is not printed in the margin with {\tt alternative=inright}, {\tt alternative=inmargin}, or {\tt alternative=inleft}. Without any {\tt alternative} the ID number is printed where the macro appears. The positioning is unsatisfactory using {\tt alternative=right}.% } The footnote has an ID number which should be printed in the right margin. This \ID[id3]paragraph has an ID, but it is not at the beginning of the paragraph and the paragraph is properly indented. The value of the ID number indicates that \tex{ID} in the footnote of the previous paragraph incremented the associated counter, but the failure of the references (\tex{in} and \tex{at}) to id2 suggests that there are other problems. \dorecurse{3}{ ID id#1 is \in[id#1] and is on page \at[id#1].\par} References for footnotes are generated without \tt{alternative=}. \stopsubject \startsubject[title={Problems with \tex{defineenumeration}}] When \tex{definelabel} is changed to \tex{defineenumeration}, the example fails to compile. It does not properly handle the \tex{ID} in the footnote, complaining of an extra \} or forgotten \tex{endgroup}. \stopsubject \stoptitle \stoptext -- Rik Thank you Hans. With \defineenumeration, adding an explicit \par for the footnote allows the index to print in the margin, and it works as well with multi-paragraph footnotes using \epar and \bpar. However, this does not address the failure to indent when the ID starts a paragraph. maybe putting a \dontleavehmode in front helps This does nothing to address the issues with \definelabel, but \defineenumeration, together with "don't do that" for paragraph starts, may now suffice. -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Label problems with \definelabel and \defineenumeration, in and out of footnotes
On 2018-01-12 13:27, Hans Hagen wrote: On 1/12/2018 6:58 PM, Rik Kabel wrote: Bump. On 2015-08-11 14:45, Rik Kabel wrote: The example below documents the problems. In short, \definelabel suppresses paragraph indent when the label is at the beginning of a paragraph and fails to print the label or generate references with alternative=inmargin (or inright, or inleft) when in a footnote. \defineenumeration fails to work in a footnote. use \ID ... \par as it has to know where it ends which is a paragraph end or use \startID ... \stopID \setupindenting[yes,small] \definelabel [ID][ %\defineenumeration[ID][ text=, after=, before=, headcolor=red, alternative=inright, ] \starttext \starttitle[title={Label testing}] \startsubject[title={Problems with \tex{definelabel}}] This is a test. It is only a test. \ID[id1]This paragraph should be indented, with an ID number in the margin. When \tex{ID} is placed at the beginning of the paragraph, as it is here, the paragraph is not indented. This paragraph has a footnote.\footnote{% \ID[id2]The ID number is not printed in the margin with {\tt alternative=inright}, {\tt alternative=inmargin}, or {\tt alternative=inleft}. Without any {\tt alternative} the ID number is printed where the macro appears. The positioning is unsatisfactory using {\tt alternative=right}.% } The footnote has an ID number which should be printed in the right margin. This \ID[id3]paragraph has an ID, but it is not at the beginning of the paragraph and the paragraph is properly indented. The value of the ID number indicates that \tex{ID} in the footnote of the previous paragraph incremented the associated counter, but the failure of the references (\tex{in} and \tex{at}) to id2 suggests that there are other problems. \dorecurse{3}{ ID id#1 is \in[id#1] and is on page \at[id#1].\par} References for footnotes are generated without \tt{alternative=}. \stopsubject \startsubject[title={Problems with \tex{defineenumeration}}] When \tex{definelabel} is changed to \tex{defineenumeration}, the example fails to compile. It does not properly handle the \tex{ID} in the footnote, complaining of an extra \} or forgotten \tex{endgroup}. \stopsubject \stoptitle \stoptext -- Rik Thank you Hans. With \defineenumeration, adding an explicit \par for the footnote allows the index to print in the margin, and it works as well with multi-paragraph footnotes using \epar and \bpar. However, this does not address the failure to indent when the ID starts a paragraph. This does nothing to address the issues with \definelabel, but \defineenumeration, together with "don't do that" for paragraph starts, may now suffice. -- Rik ___ 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] Label problems with \definelabel and \defineenumeration, in and out of footnotes
On 1/12/2018 6:58 PM, Rik Kabel wrote: Bump. On 2015-08-11 14:45, Rik Kabel wrote: The example below documents the problems. In short, \definelabel suppresses paragraph indent when the label is at the beginning of a paragraph and fails to print the label or generate references with alternative=inmargin (or inright, or inleft) when in a footnote. \defineenumeration fails to work in a footnote. use \ID ... \par as it has to know where it ends which is a paragraph end or use \startID ... \stopID \setupindenting[yes,small] \definelabel [ID][ %\defineenumeration[ID][ text=, after=, before=, headcolor=red, alternative=inright, ] \starttext \starttitle[title={Label testing}] \startsubject[title={Problems with \tex{definelabel}}] This is a test. It is only a test. \ID[id1]This paragraph should be indented, with an ID number in the margin. When \tex{ID} is placed at the beginning of the paragraph, as it is here, the paragraph is not indented. This paragraph has a footnote.\footnote{% \ID[id2]The ID number is not printed in the margin with {\tt alternative=inright}, {\tt alternative=inmargin}, or {\tt alternative=inleft}. Without any {\tt alternative} the ID number is printed where the macro appears. The positioning is unsatisfactory using {\tt alternative=right}.% } The footnote has an ID number which should be printed in the right margin. This \ID[id3]paragraph has an ID, but it is not at the beginning of the paragraph and the paragraph is properly indented. The value of the ID number indicates that \tex{ID} in the footnote of the previous paragraph incremented the associated counter, but the failure of the references (\tex{in} and \tex{at}) to id2 suggests that there are other problems. \dorecurse{3}{ ID id#1 is \in[id#1] and is on page \at[id#1].\par} References for footnotes are generated without \tt{alternative=}. \stopsubject \startsubject[title={Problems with \tex{defineenumeration}}] When \tex{definelabel} is changed to \tex{defineenumeration}, the example fails to compile. It does not properly handle the \tex{ID} in the footnote, complaining of an extra \} or forgotten \tex{endgroup}. \stopsubject \stoptitle \stoptext -- Rik ___ 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 ___ -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Label problems with \definelabel and \defineenumeration, in and out of footnotes
Bump. On 2015-08-11 14:45, Rik Kabel wrote: The example below documents the problems. In short, \definelabel suppresses paragraph indent when the label is at the beginning of a paragraph and fails to print the label or generate references with alternative=inmargin (or inright, or inleft) when in a footnote. \defineenumeration fails to work in a footnote. \setupindenting[yes,small] \definelabel [ID][ %\defineenumeration[ID][ text=, after=, before=, headcolor=red, alternative=inright, ] \starttext \starttitle[title={Label testing}] \startsubject[title={Problems with \tex{definelabel}}] This is a test. It is only a test. \ID[id1]This paragraph should be indented, with an ID number in the margin. When \tex{ID} is placed at the beginning of the paragraph, as it is here, the paragraph is not indented. This paragraph has a footnote.\footnote{% \ID[id2]The ID number is not printed in the margin with {\tt alternative=inright}, {\tt alternative=inmargin}, or {\tt alternative=inleft}. Without any {\tt alternative} the ID number is printed where the macro appears. The positioning is unsatisfactory using {\tt alternative=right}.% } The footnote has an ID number which should be printed in the right margin. This \ID[id3]paragraph has an ID, but it is not at the beginning of the paragraph and the paragraph is properly indented. The value of the ID number indicates that \tex{ID} in the footnote of the previous paragraph incremented the associated counter, but the failure of the references (\tex{in} and \tex{at}) to id2 suggests that there are other problems. \dorecurse{3}{ ID id#1 is \in[id#1] and is on page \at[id#1].\par} References for footnotes are generated without \tt{alternative=}. \stopsubject \startsubject[title={Problems with \tex{defineenumeration}}] When \tex{definelabel} is changed to \tex{defineenumeration}, the example fails to compile. It does not properly handle the \tex{ID} in the footnote, complaining of an extra \} or forgotten \tex{endgroup}. \stopsubject \stoptitle \stoptext -- Rik ___ 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] about \inframed[] in \defineenumeration
Dear Hans, Thank you for the solution which works well. After adding a line “ text={\translate[en=Example, kr=예제]},” for Korean text, it works fine too. I understand the meaning of headcommand, numbercommand, and titlecommnad from your code more clearly. Thanks again for a quick solution. Best regards, Dalyoung > you need "numbercommand": > > \defineenumeration >[Example] >[headcommand={\framed[background=color,backgroundcolor=red]}, > > numbercommand={\inframed[height=2ex,background=color,backgroundcolor=green]}, > > titlecommand={\inframed[height=2ex,background=color,backgroundcolor=blue]}, > title=yes, > alternative=left, > before={\blank[big]}, > after=\blank] > > \starttext > \chapter{first} > \startExample{foo} > This is a test for enumeration. > \stopExample > \startExample > This is a test for enumeration. > \stopExample > \stoptext > > > - > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands >tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl > - > > > -- > > Subject: Digest Footer > > ___ > 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 : https://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ___ > > -- > > End of ntg-context Digest, Vol 162, Issue 8 > *** ___ 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] about \inframed[] in \defineenumeration
On 12/4/2017 11:51 PM, Jeong Dal wrote: Hi, I run the old code which was fine 3 years ago, but now, it doesn’t work as before. At that time, I had “Example 1.1” inside the frame . Now I got text “Example 1.1” only without frame at all. Would you please tell me what should I change? Thank you for reading. Best regards, Dalyoung %%% minimal example %%% \setupcolors[state=start] \definecolor[dGreen] [r=0,g=.375,b=.0] \defineenumeration[Example] [command={\inframed[corner=round, background=color, backgroundcolor=darkgreen,height=1.3em]}, text=Example, prefix=yes, prefixsegments=chapter, way=bychapter, number=yes, alternative=left, before={\blank[big]}, after=\blank] \starttext \chapter{first} \startExample This is a test for enumeration. \stopExample \startExample This is a test for enumeration. \stopExample \stoptext you need "numbercommand": \defineenumeration [Example] [headcommand={\framed[background=color,backgroundcolor=red]}, numbercommand={\inframed[height=2ex,background=color,backgroundcolor=green]}, titlecommand={\inframed[height=2ex,background=color,backgroundcolor=blue]}, title=yes, alternative=left, before={\blank[big]}, after=\blank] \starttext \chapter{first} \startExample{foo} This is a test for enumeration. \stopExample \startExample This is a test for enumeration. \stopExample \stoptext - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] about \inframed[] in \defineenumeration
Hi, I run the old code which was fine 3 years ago, but now, it doesn’t work as before. At that time, I had “Example 1.1” inside the frame . Now I got text “Example 1.1” only without frame at all. Would you please tell me what should I change? Thank you for reading. Best regards, Dalyoung %%% minimal example %%% \setupcolors[state=start] \definecolor[dGreen] [r=0,g=.375,b=.0] \defineenumeration[Example] [command={\inframed[corner=round, background=color, backgroundcolor=darkgreen,height=1.3em]}, text=Example, prefix=yes, prefixsegments=chapter, way=bychapter, number=yes, alternative=left, before={\blank[big]}, after=\blank] \starttext \chapter{first} \startExample This is a test for enumeration. \stopExample \startExample This is a test for enumeration. \stopExample \stoptext > 2017. 12. 3. 오후 11:42, Jeong Dal <hak...@me.com> 작성: > > Dear Pablo, > > I also think that it is good to collect styles for math people in the wiki. > However, I have no experience to add something to the wiki, so I don’t know > how. > I may try first and if I can’t, I’ll may ask your help. > > I should mention again that these examples are not possible without > Wolfgang’s solution. > > Thank you. > > Best regards, > > Dalyoung > >> >> would it be possible that you add both samples to the wiki? >> >> This is the best way to have a reference for future needs. >> ___ 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] Label problems with \definelabel and \defineenumeration, in and out of footnotes
The example below documents the problems. In short, \definelabel suppresses paragraph indent when the label is at the beginning of a paragraph and fails to print the label or generate references with alternative=inmargin (or inright, or inleft) when in a footnote. \defineenumeration fails to work in a footnote. \setupindenting[yes,small] \definelabel [ID][ %\defineenumeration[ID][ text=, after=, before=, headcolor=red, alternative=inright, ] \starttext \starttitle[title={Label testing}] \startsubject[title={Problems with \tex{definelabel}}] This is a test. It is only a test. \ID[id1]This paragraph should be indented, with an ID number in the margin. When \tex{ID} is placed at the beginning of the paragraph, as it is here, the paragraph is not indented. This paragraph has a footnote.\footnote{% \ID[id2]The ID number is not printed in the margin with {\tt alternative=inright}, {\tt alternative=inmargin}, or {\tt alternative=inleft}. Without any {\tt alternative} the ID number is printed where the macro appears. The positioning is unsatisfactory using {\tt alternative=right}.% } The footnote has an ID number which should be printed in the right margin. This \ID[id3]paragraph has an ID, but it is not at the beginning of the paragraph and the paragraph is properly indented. The value of the ID number indicates that \tex{ID} in the footnote of the previous paragraph incremented the associated counter, but the failure of the references (\tex{in} and \tex{at}) to id2 suggests that there are other problems. \dorecurse{3}{ ID id#1 is \in[id#1] and is on page \at[id#1].\par} References for footnotes are generated without \tt{alternative=}. \stopsubject \startsubject[title={Problems with \tex{defineenumeration}}] When \tex{definelabel} is changed to \tex{defineenumeration}, the example fails to compile. It does not properly handle the \tex{ID} in the footnote, complaining of an extra \} or forgotten \tex{endgroup}. \stopsubject \stoptitle \stoptext -- Rik ___ 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
Hi Wolfgang, Thank you and Happy New Year 2015 to all members. Fabrice ___ 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 ___
[NTG-context] Title and defineenumeration
Dear list, Is it possible to remove the parentheses of the title ? Best regards, Fabrice \defineframed [ACFRAME] [frame=off, width=fit, align=flushleft, location=low, background=color, backgroundcolor=lightgray] \defineenumeration [ac] [text={Activité}, headstyle={\bf\feature[+][f:smallcaps]}, headcommand=\ACFRAME, numberconversionset=ACCONVERSION, width=fit, alternative=top, title=yes, ] \defineprocessor[ACPROCESSOR][color=red,command=\groupedcommand{}{.}] \defineconversionset[ACCONVERSION][][ACPROCESSOR-n] \starttext \startac{En Bretagne, il fait beau\unknown plusieurs fois par jour !} \stopac \stoptext ___ 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] Too much space between the text and the beginning of the paragraph with the command \defineenumeration
Hi, I find that there is too much space between the text and the beginning of the paragraph. \defineenumeration[ex] [text={\sc\bf Exercice}, location=left, stopper={\bf.}] For example, I use the \topset with LuaLaTeX order. Thank you. ___ 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] Too much space between the text and the beginning of the paragraph with the command \defineenumeration
On Tue, Feb 25 2014, Fabrice Couvreur wrote: I find that there is too much space between the text and the beginning of the paragraph. \defineenumeration[ex] [text={\sc\bf Exercice}, location=left, stopper={\bf.}] stopper={\bf.}, inbetween=] For example, I use the \topset with LuaLaTeX order. ??? -- 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] Too much space between the text and the beginning of the paragraph with the command \defineenumeration
Am 25.02.2014 um 19:41 schrieb Fabrice Couvreur fabrice1.couvr...@gmail.com: Hi, I find that there is too much space between the text and the beginning of the paragraph. \defineenumeration[ex] [text={\sc\bf Exercice}, location=left, stopper={\bf.}] \defineenumeration [ex] [text={Exercice}, headstyle={\bf\feature[+][f:smallcaps]}, width=fit, %distance=2em, alternative=left, stopper={.}] \setupbodyfont[pagella] \starttext \startex \input knuth \stopex \stoptext For example, I use the \topset with LuaLaTeX order. ??? 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] Too much space between the text and the beginning of the paragraph with the command \defineenumeration
Sorry, but my question is unclear. In fact, I created a new environment with the package amsthm in LuaLaTeX like this : \newtheoremstyle{exa} {\topsep}{\topsep} {} {0pt} {\strut\bfseries} {} {\newline} {\rule[0pt]{1mm}{1mm} \thmname{#1}\thmnumber{ \textup {#2}}\thmnote{ \textnormal{(#3)}}} \theoremstyle{exa} \newtheorem{ex}{Exercice} I try to do the same with ConteXt. correctiondm7_seconde.pdfhttps://docs.google.com/file/d/0B-mkD83s36jbYTJhVFpUdGw3SjQ/edit?usp=drive_web @Wolfgang The paragraph should find the following line, and not on the same line of text. @Peter I do not see what changes adding inbetween = . Thank you. ___ 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] Too much space between the text and the beginning of the paragraph with the command \defineenumeration
Am 25.02.2014 um 23:48 schrieb Fabrice Couvreur fabrice1.couvr...@gmail.com: Sorry, but my question is unclear. In fact, I created a new environment with the package amsthm in LuaLaTeX like this : \newtheoremstyle{exa} {\topsep}{\topsep} {} {0pt} {\strut\bfseries} {} {\newline} {\rule[0pt]{1mm}{1mm} \thmname{#1}\thmnumber{ \textup {#2}}\thmnote{ \textnormal{(#3)}}} \theoremstyle{exa} \newtheorem{ex}{Exercice} I try to do the same with ConteXt. correctiondm7_seconde.pdf @Wolfgang The paragraph should find the following line, and not on the same line of text. And why had you “location=left” in your code snippet. @Peter I do not see what changes adding inbetween = „. To avoid such problems it is always recommended to make a minimal example which demonstrates the problem. \defineenumeration [ex] [text={Exercice}, headstyle={\bf\feature[+][f:smallcaps]}, inbetween={\blank[small]}, stopper={.}] \setupbodyfont[pagella] \starttext \startex \input knuth \stopex \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 ___
[NTG-context] Too much space between the text and the beginning of the paragraph with the command \defineenumeration
Because I'm really starting with ConteXt, and if I compile with location = left or not, the result is the same (with minimal ConteXt). For cons, I understand better the role of the option alternative = left, right or top. ___ 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] [***SPAM***] \defineenumeration options?
Hi, I have two enumerations: \defineenumeration [exercici] [alternative=serried,text={\startcolor[middlecyan]Exercici\stopcolor},stopper={.\space},left={\bgroup},right={\egroup},width=fit,headstyle=\ss] \defineenumeration [exercicivora] [alternative=serried,text={\startcolor[middlecyan]Exercici\stopcolor},stopper={.\space},left={\bgroup\startframedtext[background=screen,frame=off,width=broad]},right={\stopframedtext\egroup},width=fit,headstyle=\ss] I just want to join into one: when I do \startexercici ... \stopexercici ConTeXt do the first, and when I pass \startexercici[vora] ... \stopexercici then do the second. That is, 'vora' as optional argument. How can I achieve that? I use MKIV. Thanks in advance, Xan. PS: Please CCme ___ 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] [***SPAM***] \defineenumeration options?
Am 21.05.2013 um 17:41 schrieb Xan dxpubl...@telefonica.net: Hi, I have two enumerations: \defineenumeration [exercici] You need a different name for the normal enumeration environment, e.g. exercicidefault [alternative=serried,text={\startcolor[middlecyan]Exercici\stopcolor},stopper={.\space},left={\bgroup},right={\egroup},width=fit,headstyle=\ss] \defineenumeration [exercicivora] [alternative=serried,text={\startcolor[middlecyan]Exercici\stopcolor},stopper={.\space},left={\bgroup\startframedtext[background=screen,frame=off,width=broad]},right={\stopframedtext\egroup},width=fit,headstyle=\ss] I just want to join into one: when I do \startexercici ... \stopexercici ConTeXt do the first, and when I pass \startexercici[vora] ... \stopexercici then do the second. That is, 'vora' as optional argument. How can I achieve that? You have to write you own version of the exercise environment which chooses one the two enumerations dependent on the argument. \def\startexercici {\dosingleempty\dostartexercici} \def\dostartexercici[#1]% {\edef\currentexercici{#1}% \doifelse{\currentexercici}{vora} \startexercicivora \startexercicidefault} \def\stopexercici {\doifelse{\currentexercici}{vora} \stopexercicivora \stopexercicidefault} 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] [***SPAM***] \defineenumeration options?
Al 21/05/13 18:41, En/na Wolfgang Schuster ha escrit: Am 21.05.2013 um 17:41 schrieb Xan dxpubl...@telefonica.net mailto:dxpubl...@telefonica.net: Hi, I have two enumerations: \defineenumeration [exercici] You need a different name for the normal enumeration environment, e.g. exercicidefault [alternative=serried,text={\startcolor[middlecyan]Exercici\stopcolor},stopper={.\space},left={\bgroup},right={\egroup},width=fit,headstyle=\ss] \defineenumeration [exercicivora] [alternative=serried,text={\startcolor[middlecyan]Exercici\stopcolor},stopper={.\space},left={\bgroup\startframedtext[background=screen,frame=off,width=broad]},right={\stopframedtext\egroup},width=fit,headstyle=\ss] I just want to join into one: when I do \startexercici ... \stopexercici ConTeXt do the first, and when I pass \startexercici[vora] ... \stopexercici then do the second. That is, 'vora' as optional argument. How can I achieve that? You have to write you own version of the exercise environment which chooses one the two enumerations dependent on the argument. \def\startexercici {\dosingleempty\dostartexercici} \def\dostartexercici[#1]% {\edef\currentexercici{#1}% \doifelse{\currentexercici}{vora} \startexercicivora \startexercicidefault} \def\stopexercici {\doifelse{\currentexercici}{vora} \stopexercicivora \stopexercicidefault} Wolfgang Thanks Wolfgang. I note this is a little bit complicated than LaTeX define command (by me). But, thanks a lot, Xan. ___ 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] about \hangaround, defineenumeration
Dear all, I defined enumerations Theorem, Proof, and Example as in the sample code. It works fine, but I'd like to arrange it in better shape. 1. Theorem 1 and it's proof look good. 2. The proof of Theorem 2 i) when I use \startitemize it starts from the next line not immediately after Proof. Q: How to start the sentence right after Proof? ii) after \stopitemize, it changes the line and put blacksquare at the end. So, there is a blank line always. Q: How to place blacksquare at the end of the last line of the sentence? iii) leading symbol of itemize, b is inside the figure. Q: How to correct this or is it possible to place the figure at the right side? 3. I'd like to put Example and it's number in a frame, but I couldn't. Is there a way of doing that? Should I make a new command to do that? Thank you for reading. Best regards, Dalyoung ___ 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] \setupenumeration(s) was: defineenumeration does not work with MKIV
Am 05.01.2010 um 05:08 schrieb Vladimir Lomov: 2010/1/5 Wolfgang Schuster schuster.wolfg...@googlemail.com: Sorry to hijack your post and since we're already there, why are \setupenumerations and \setupdescriptions written in the plural form. \setupenumerations[problem][stopper=)] When I would follow the system from other setup commands in context i expect as correct names \setupenumeration and \setupdescription. If I understand context manual correctly (I not checked this) (cont-enp.pdf, pp. 181,183) I could use more than one name in \setupenumerations (\setupdescriptions), e.g. \setupenumerations[problem,remark][stopper=)] so name of commands are correct (in some sense one is a limit of several :). You could also use more names in \setuphead, \setupblock etc. but these command names are singular. Changing \setupenumerations/descriptions is no option but one can do this: \let\setupdescription\setupdescriptions \let\setupenumeration\setupenumerations 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] defineenumeration does not work with MKIV. Works with MKII
Vladimir, I am not sure that the settings are incorrect. Why does it work with MKII then? Also it worked with MKIV before. It broke only recently. Can someone please throw light on this? Is the disapperance of the numbers, as Vladimir suggests, expected behavior of the minimal example in MKIV. On Mon, Jan 4, 2010 at 11:03 PM, Vladimir Lomov lomov...@gmail.com wrote: Hi. I'm newbie with ConTeXt but have experience with LaTeX. 2010/1/5 Curiouslearn curiousle...@gmail.com: Minimal example \setuppapersize[letter][letter] \starttext \defineenumeration[problem][text= ,location=inleft] \setupenumerations[problem][stopper=)] \problem problem 1 \problem problem 2 \stoptext In MKIV there are numbers do not appear. Thanks. This is because of your settings. Try change location. In order to understand what's wrong with your settings see output for this example (I tried with context minimals): \setuppapersize[A5][A4] \setuplayout[location=middle] \starttext \defineenumeration[problem][text= ,location=inleft] \setupenumerations[problem][stopper=)] \problem problem 1 \problem problem 2 \stoptext In okular (or Adobe Reader) you see that enumeration numbers are out of page and you don't see them. ___ 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] defineenumeration does not work with MKIV. Works with MKII
Am 05.01.2010 um 14:22 schrieb Curiouslearn: Vladimir, I am not sure that the settings are incorrect. Why does it work with MKII then? Also it worked with MKIV before. It broke only recently. Add 'headalign=flushright'. 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] defineenumeration does not work with MKIV. Works with MKII
Thanks! That worked great. On Tue, Jan 5, 2010 at 8:52 AM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 05.01.2010 um 14:22 schrieb Curiouslearn: Vladimir, I am not sure that the settings are incorrect. Why does it work with MKII then? Also it worked with MKIV before. It broke only recently. Add 'headalign=flushright'. 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 ___ ___ 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] defineenumeration does not work with MKIV. Works with MKII
Hello. 2010/1/5 Curiouslearn curiousle...@gmail.com: Vladimir, I am not sure that the settings are incorrect. Why does it work with MKII then? Also it worked with MKIV before. It broke only recently. Sorry, I didn't try to check texexec (MKII) also I just checked context (MKIV). Can someone please throw light on this? Is the disapperance of the numbers, as Vladimir suggests, expected behavior of the minimal example in MKIV. I also notice the difference between resulted pdf files produced by MKII and MKIV: MKIV gives labels _below_ line respect to item entry but MKII gives labels on the same line as item entry (also MKIV moves labels much more to left edge). This is what I figured out, sorry I too novice with ConTeXt and can't give more information on topic. 2010/1/5 Wolfgang Schuster schuster.wolfg...@googlemail.com: Am 05.01.2010 um 14:22 schrieb Curiouslearn: Vladimir, I am not sure that the settings are incorrect. Why does it work with MKII then? Also it worked with MKIV before. It broke only recently. Add 'headalign=flushright'. Hm, this gives more unpleasant result for MKIV format but reveals the problem of disappearing :) --- WBR, Vladimir Lomov ___ 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] defineenumeration does not work with MKIV. Works with MKII
Am 05.01.2010 um 14:56 schrieb Vladimir Lomov: Vladimir, I am not sure that the settings are incorrect. Why does it work with MKII then? Also it worked with MKIV before. It broke only recently. Add 'headalign=flushright'. Hm, this gives more unpleasant result for MKIV format but reveals the problem of disappearing :) It's side effect of the new 'headalign' key, you can correct by setting the correct width for the number box. \defineenumeration [problem] [text=, location=inleft, headalign=flushright, stopper=), width=\leftmarginwidth] 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] defineenumeration does not work with MKIV. Works with MKII
Hi. 2010/1/5 Wolfgang Schuster schuster.wolfg...@googlemail.com: Am 05.01.2010 um 14:56 schrieb Vladimir Lomov: Vladimir, I am not sure that the settings are incorrect. Why does it work with MKII then? Also it worked with MKIV before. It broke only recently. Add 'headalign=flushright'. Hm, this gives more unpleasant result for MKIV format but reveals the problem of disappearing :) It's side effect of the new 'headalign' key, you can correct by setting the correct width for the number box. \defineenumeration [problem] [text=, location=inleft, headalign=flushright, stopper=), width=\leftmarginwidth] Yes, this works like a charm (checked in both TL2009 and context-minimals for MKII and MKIV formats). --- WBR, Vladimir Lomov ___ 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] defineenumeration does not work with MKIV. Works with MKII
Minimal example \setuppapersize[letter][letter] \starttext \defineenumeration[problem][text= ,location=inleft] \setupenumerations[problem][stopper=)] \problem problem 1 \problem problem 2 \stoptext In MKIV there are numbers do not appear. Thanks. ___ 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] \setupenumeration(s) was: defineenumeration does not work with MKIV
Sorry to hijack your post and since we're already there, why are \setupenumerations and \setupdescriptions written in the plural form. \setupenumerations[problem][stopper=)] When I would follow the system from other setup commands in context i expect as correct names \setupenumeration and \setupdescription. 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] defineenumeration does not work with MKIV. Works with MKII
Hi. I'm newbie with ConTeXt but have experience with LaTeX. 2010/1/5 Curiouslearn curiousle...@gmail.com: Minimal example \setuppapersize[letter][letter] \starttext \defineenumeration[problem][text= ,location=inleft] \setupenumerations[problem][stopper=)] \problem problem 1 \problem problem 2 \stoptext In MKIV there are numbers do not appear. Thanks. This is because of your settings. Try change location. In order to understand what's wrong with your settings see output for this example (I tried with context minimals): \setuppapersize[A5][A4] \setuplayout[location=middle] \starttext \defineenumeration[problem][text= ,location=inleft] \setupenumerations[problem][stopper=)] \problem problem 1 \problem problem 2 \stoptext In okular (or Adobe Reader) you see that enumeration numbers are out of page and you don't see them. ___ 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] \setupenumeration(s) was: defineenumeration does not work with MKIV
Hi. 2010/1/5 Wolfgang Schuster schuster.wolfg...@googlemail.com: Sorry to hijack your post and since we're already there, why are \setupenumerations and \setupdescriptions written in the plural form. \setupenumerations[problem][stopper=)] When I would follow the system from other setup commands in context i expect as correct names \setupenumeration and \setupdescription. If I understand context manual correctly (I not checked this) (cont-enp.pdf, pp. 181,183) I could use more than one name in \setupenumerations (\setupdescriptions), e.g. \setupenumerations[problem,remark][stopper=)] so name of commands are correct (in some sense one is a limit of several :). ___ 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] Bugs in defineenumeration
Hi all, The example below shows: lemma 1 (lemmatitle ) Problems: - the word lemma is repeated before the title : (lemmatitle - spaces after the title: title ) Example: %MTXrun | current version: 2009.09.23 10:07 %linux-32, current beta \defineenumeration[lemma][title=yes] \starttext \startlemma{title} \stoplemma \stoptext Kind regards, Bernard ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] defineenumeration and LuaTeX
Hi all, \in[ref] does not work with LuaTeX, Version beta-0.43.0-2009081911 ConTeXt ver: 2009.08.30 12:25 MKIV fmt: 2009.9.7 int: english/english % --- snip % \defineenumeration[frage][location=inleft,text=,stopper=.,headstyle=bold] % % \starttext % Anzahl der Aufgaben: \in[last] \blank \startfrage[1] \dorecurse{3}{text text text \dots} \stopfrage % \startfrage[2] \dorecurse{3}{text text text \dots} \stopfrage % \startfrage[last] \dorecurse{3}{text text text \dots} \stopfrage % \stoptext % % snip with: pdfTeX, Version 3.1415926-1.40.10 (Web2C 2009) ConTeXt ver: 2009.08.30 12:25 MKII fmt: 2009.9.7 int: english/english \in[ref] works like accepted. Thanks for help Bernd ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] defineenumeration and LuaTeX
On Mon, Sep 7, 2009 at 4:44 PM, Bernd Militzerbe...@militzer.net wrote: Hi all, \in[ref] does not work with LuaTeX, Version beta-0.43.0-2009081911 ConTeXt ver: 2009.08.30 12:25 MKIV fmt: 2009.9.7 int: english/english % --- snip % \defineenumeration[frage][location=inleft,text=,stopper=.,headstyle=bold] % % \starttext % Anzahl der Aufgaben: \in[last] \blank \startfrage[1] \dorecurse{3}{text text text \dots} \stopfrage % \startfrage[2] \dorecurse{3}{text text text \dots} \stopfrage % \startfrage[last] \dorecurse{3}{text text text \dots} \stopfrage % \stoptext % % snip with: pdfTeX, Version 3.1415926-1.40.10 (Web2C 2009) ConTeXt ver: 2009.08.30 12:25 MKII fmt: 2009.9.7 int: english/english \in[ref] works like accepted. I see Anzahl der Aufgaben: 3 (see att. it's small enough) ConTeXt ver: 2009.08.13 13:13 MKIV fmt: 2009.8.19 int: english/english This is LuaTeX, Version beta-0.43.0-2009081911 -- luigi bernard.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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] defineenumeration and LuaTeX
On Mon, Sep 7, 2009 at 5:16 PM, Bernd Militzerbe...@militzer.net wrote: Thanks luigi, LuaTeX, Version beta-0.43.0-2009081911 ConTeXt ver: 2009.08.30 12:25 MKIV fmt: 2009.9.7 int: english/english ConTeXt ver: 2009.08.13 13:13 MKIV fmt: 2009.8.19 int: english/english This is LuaTeX, Version beta-0.43.0-2009081911 but I have no idea, what to do. If my pdf is ok, then you can try to update to last current, instead of beta; ie, the last lines of first-setup.sh should be # download or update the distribution # you may remove the --context=beta switch mtxrun --verbose --script ./bin/mtx-update.lua --update --make --force --engine=all --texroot=$PWD/tex $@ It's better if you have minimals-current apart from minimals-beta ASAP I shall check latest beta -- 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] defineenumeration and LuaTeX
Thanks Luigi, the minimals-current works like accepted. Regards, Bernd ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] boldstyle for numbers in defineenumeration
Aditya Mahajan wrote: On Thu, 5 Mar 2009, Wolfgang Schuster wrote: Am 05.03.2009 um 20:19 schrieb Aditya Mahajan: On Thu, 5 Mar 2009, Wolfgang Schuster wrote: Am 05.03.2009 um 19:48 schrieb Aditya Mahajan: The textcolor does not work. I have to put in in text field. The example that works is: Hans: does it make sense to add text(style|color|command) and number(style|color|command) keys to enumerations? I could patch core-des.tex with these keys. Hi Aditya, if you do this, can you also integrate the headalign key which is mentioned in core-des? What should headalign do? It should control the alignment of the headtext. \setuplayout [backspace=5cm, leftmargin=4cm, width=12cm] \definedescription [description] [location=margin, width=\leftmarginwidth] \showframe \starttext \description{text} bla bla bla \description{longer text} bla bla bla %\setupdescriptions[description][headalign=flushright] \setupdescriptions[description][text=\hfill] \description{text} bla bla bla \description{longer text} bla bla bla \stoptext Thanks. I first guess was \defineframed [framehead] [location=low,width=\leftmarginwidth,align=flushright,frame=off] \setupdescriptions[description][text=,location=command,headcommand=\framehead] but this does not work. You can also use, but it will be nice to have a headalign key. \setupdescriptions[description][command=\framehead] \description{text} bla bla bla \description{longer text} bla bla bla My only trouble with core-des is that it is ugly. It is an old module, and lot of features have been added in an ad-hoc manner with time. I hope that at some stage it will be rewritten in the new strc-* style. sure, it's already different in strc but such 'upgrades' are rather gradual since we want to keep compatibilitiy - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] boldstyle for numbers in defineenumeration
En/na Aditya Mahajan ha escrit: My only trouble with core-des is that it is ugly. It is an old module, and lot of features have been added in an ad-hoc manner with time. I hope that at some stage it will be rewritten in the new strc-* style. Aditya Good news if you implement this functionality and better if it serves to debug code... I'm happy this question serves for (all of) you revise the code ,-) Regards, Xan. ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] boldstyle for numbers in defineenumeration
En/na Xan ha escrit: Hi, Is it possible to put numerstyle=boldstyle in this enumeration?: \defineenumeration [exercici] [text={\startcolor[middlecyan]Exercici\stopcolor},headstyle=bold,between=\blank,titledistance=0em,textdistance=1em, stopper={.\space},location=serried,titleleft=(,titleright=),width=fit,headstyle=\ss] For the other hand, is it possible to make it's a framed? Thanks a lot, Xan. Aditya, numberstyle=bold does not work for me. The exact code I have is: \defineenumeration [exercici] [text={\startcolor[middlecyan]Exercici\stopcolor},headstyle=bold,between=\blank,titledistance=0em,textdistance=1em, stopper={.\space},location=serried,titleleft=(,titleright=),width=fit,headstyle=\ss,numberstyle=bold] What happens? Possibly old ConTeXt version? I have ConTeXt ver: 2007.09.28 16:52 MKII fmt: 2009.2.17 int: english/english Regards, Xan. ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] boldstyle for numbers in defineenumeration
On Thu, 5 Mar 2009, Xan wrote: En/na Xan ha escrit: Hi, Is it possible to put numerstyle=boldstyle in this enumeration?: \defineenumeration [exercici] [text={\startcolor[middlecyan]Exercici\stopcolor},headstyle=bold,between=\blank,titledistance=0em,textdistance=1em, stopper={.\space},location=serried,titleleft=(,titleright=),width=fit,headstyle=\ss] For the other hand, is it possible to make it's a framed? Thanks a lot, Xan. Aditya, numberstyle=bold does not work for me. Sorry. I should have checked. Enumerations do not have a numberstyle key. It should. You can abuse the left and right keys to get a bold number, eg. \defineenumeration [exercici] [textcolor=middlecyan, text=Exercici, headstyle=sans, left={\bgroup\bf},right={\egroup}] Hans, do you plan to rework on core-des anytime soon? It could definitely use some cleanup. 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] boldstyle for numbers in defineenumeration
En/na Aditya Mahajan ha escrit: On Thu, 5 Mar 2009, Xan wrote: En/na Xan ha escrit: Hi, Is it possible to put numerstyle=boldstyle in this enumeration?: \defineenumeration [exercici] [text={\startcolor[middlecyan]Exercici\stopcolor},headstyle=bold,between=\blank,titledistance=0em,textdistance=1em, stopper={.\space},location=serried,titleleft=(,titleright=),width=fit,headstyle=\ss] For the other hand, is it possible to make it's a framed? Thanks a lot, Xan. Aditya, numberstyle=bold does not work for me. Sorry. I should have checked. Enumerations do not have a numberstyle key. It should. You can abuse the left and right keys to get a bold number, eg. \defineenumeration [exercici] [textcolor=middlecyan, text=Exercici, headstyle=sans, left={\bgroup\bf},right={\egroup}] Hans, do you plan to rework on core-des anytime soon? It could definitely use some cleanup. 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ Thanks. The textcolor does not work. I have to put in in text field. The example that works is: \defineenumeration [exercici] [text={\startcolor[middlecyan]Exercici\stopcolor},headstyle=bold,between=\blank,titledistance=0em,textdistance=1em, stopper={.\space},location=serried,left={\bgroup\bf},right={\egroup},width=fit,headstyle=\ss] Xan. ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] boldstyle for numbers in defineenumeration
On Thu, 5 Mar 2009, Xan wrote: numberstyle=bold does not work for me. The textcolor does not work. I have to put in in text field. The example that works is: Hans: does it make sense to add text(style|color|command) and number(style|color|command) keys to enumerations? I could patch core-des.tex with these keys. 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] boldstyle for numbers in defineenumeration
Am 05.03.2009 um 19:48 schrieb Aditya Mahajan: The textcolor does not work. I have to put in in text field. The example that works is: Hans: does it make sense to add text(style|color|command) and number(style|color|command) keys to enumerations? I could patch core- des.tex with these keys. Hi Aditya, if you do this, can you also integrate the headalign key which is mentioned in core-des? 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] boldstyle for numbers in defineenumeration
On Thu, 5 Mar 2009, Wolfgang Schuster wrote: Am 05.03.2009 um 19:48 schrieb Aditya Mahajan: The textcolor does not work. I have to put in in text field. The example that works is: Hans: does it make sense to add text(style|color|command) and number(style|color|command) keys to enumerations? I could patch core-des.tex with these keys. Hi Aditya, if you do this, can you also integrate the headalign key which is mentioned in core-des? What should headalign do? 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] boldstyle for numbers in defineenumeration
Am 05.03.2009 um 20:19 schrieb Aditya Mahajan: On Thu, 5 Mar 2009, Wolfgang Schuster wrote: Am 05.03.2009 um 19:48 schrieb Aditya Mahajan: The textcolor does not work. I have to put in in text field. The example that works is: Hans: does it make sense to add text(style|color|command) and number(style|color|command) keys to enumerations? I could patch core-des.tex with these keys. Hi Aditya, if you do this, can you also integrate the headalign key which is mentioned in core-des? What should headalign do? It should control the alignment of the headtext. \setuplayout [backspace=5cm, leftmargin=4cm, width=12cm] \definedescription [description] [location=margin, width=\leftmarginwidth] \showframe \starttext \description{text} bla bla bla \description{longer text} bla bla bla %\setupdescriptions[description][headalign=flushright] \setupdescriptions[description][text=\hfill] \description{text} bla bla bla \description{longer text} bla bla bla \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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] boldstyle for numbers in defineenumeration
On Thu, 5 Mar 2009, Wolfgang Schuster wrote: Am 05.03.2009 um 20:19 schrieb Aditya Mahajan: On Thu, 5 Mar 2009, Wolfgang Schuster wrote: Am 05.03.2009 um 19:48 schrieb Aditya Mahajan: The textcolor does not work. I have to put in in text field. The example that works is: Hans: does it make sense to add text(style|color|command) and number(style|color|command) keys to enumerations? I could patch core-des.tex with these keys. Hi Aditya, if you do this, can you also integrate the headalign key which is mentioned in core-des? What should headalign do? It should control the alignment of the headtext. \setuplayout [backspace=5cm, leftmargin=4cm, width=12cm] \definedescription [description] [location=margin, width=\leftmarginwidth] \showframe \starttext \description{text} bla bla bla \description{longer text} bla bla bla %\setupdescriptions[description][headalign=flushright] \setupdescriptions[description][text=\hfill] \description{text} bla bla bla \description{longer text} bla bla bla \stoptext Thanks. I first guess was \defineframed [framehead] [location=low,width=\leftmarginwidth,align=flushright,frame=off] \setupdescriptions[description][text=,location=command,headcommand=\framehead] but this does not work. You can also use, but it will be nice to have a headalign key. \setupdescriptions[description][command=\framehead] \description{text} bla bla bla \description{longer text} bla bla bla My only trouble with core-des is that it is ugly. It is an old module, and lot of features have been added in an ad-hoc manner with time. I hope that at some stage it will be rewritten in the new strc-* style. 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] boldstyle for numbers in defineenumeration
Hi, Is it possible to put numerstyle=boldstyle in this enumeration?: \defineenumeration [exercici] [text={\startcolor[middlecyan]Exercici\stopcolor},headstyle=bold,between=\blank,titledistance=0em,textdistance=1em, stopper={.\space},location=serried,titleleft=(,titleright=),width=fit,headstyle=\ss] For the other hand, is it possible to make it's a framed? Thanks a lot, Xan. ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] defineenumeration
Dear Sirs, I need to define a enumeration with the text label = Remark. For that I define \defineenumeration[Remark][text=Remark]. The label for the subRemark should be subRemark. Is there a easy way to do that? The subRemark is a son of Remark and the numeration expected is: Remark 1 subRemark 1.1 subRemark 1.2 Remark 2 subRemark 2.1 thanks Have a nice day ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] defineenumeration
\setupenumerations[subRemark][text=subRemark] On Sun, Feb 22, 2009 at 11:42:41AM +, batela wrote: Dear Sirs, I need to define a enumeration with the text label = Remark. For that I define \defineenumeration[Remark][text=Remark]. The label for the subRemark should be subRemark. Is there a easy way to do that? The subRemark is a son of Remark and the numeration expected is: Remark 1 subRemark 1.1 subRemark 1.2 Remark 2 subRemark 2.1 thanks Have a nice day ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- Longmin Wang longminw...@gmail.com Math. Dept., Nankai Univ., China http://math.nankai.edu.cn/~wanglm/ GnuPG-Key ID: 1024D/2A5CFA5C Fingerprint: 8587 1246 3AAD C185 D419 ADF1 B620 D8B8 2A5C FA5C ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] defineenumeration and setupenumeration
WN wrote: I am a bit confused, the example setups the enumaration *remark* and specifies the location=top But on page 224 the command \setupenumerations is shown where one can also specify the location among others. What is the difference, reason or usage for doing this ? Much of the functionality of the \define and \setup commands is using shared code (for efficiency and QA). What is the proper Context way, should I define the location with \defineenumeration or with \setupenumerations ? Where ConTeXt provides both, the use of \setup version depends on your input file. I've had documents where the location changed based on the placement of the enumeration in the overall document (chapters with different layout styles), so I clearly needed a \setup version for that. If you do not need that, I suggest you just put it in the \define. Otherwise you have two macros where one is enough, and at one point you may become confused when a change somewhere in your environment does not work at all. Cheers, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] defineenumeration and setupenumeration
Hi, I have a question (probably a dumb question) relating to some of the define/setup commands. One in particular, but it may relate to the other define/setup commands as well. Looking at the defineenumeration and setupenumerations command in the Context manual page 223 and page 224 an example is given how to use these commands. I am a bit confused, the example setups the enumaration remark and specifies the location=top \defineenumeration [remark] [location=top, text=Remark, between=\blank, before=\blank, after=\blank] But on page 224 the command \setupenumerations is shown where one can also specify the location among others. What is the difference, reason or usage for doing this ? What is the proper Context way, should I define the location with \defineenumeration or with \setupenumerations ? Kind regards Wim ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Problem with defineenumeration [number=no]
Hello, if I'm not mistaken as usual, the number=no option of \ defineenumeration is broken in ConTeXt ver: 2005.06.08 fmt: 2005.6.13: \mainlanguage [en] \defineenumeration [test] [text=Test, number=no, location=hanging] \starttext \starttest What's that? \stoptext produces ommandTest instead of just Test. Please advise. Matthias ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Problem with defineenumeration [number=no]
Hi, There is a missing \noexpand in core-des.tex. Attached is a fixed version of the affected macro. Taco Matthias Weber wrote: Hello, if I'm not mistaken as usual, the number=no option of \ defineenumeration is broken in ConTeXt ver: 2005.06.08 fmt: 2005.6.13: \mainlanguage[en] \defineenumeration [test] [text=Test, number=no, location=hanging] \starttext \starttest What's that? \stoptext produces ommandTest instead of just Test. Please advise. Matthias ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context deftest.tex Description: TeX document ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Problem with defineenumeration [number=no]
Thanks Taco, this works fine. Matthias On Jun 13, 2005, at 10:45 AM, Taco Hoekwater wrote: Hi, There is a missing \noexpand in core-des.tex. Attached is a fixed version of the affected macro. Taco Matthias Weber wrote: Hello, if I'm not mistaken as usual, the number=no option of \ defineenumeration is broken in ConTeXt ver: 2005.06.08 fmt: 2005.6.13: \mainlanguage[en] \defineenumeration [test] [text=Test, number=no, location=hanging] \starttext \starttest What's that? \stoptext produces ommandTest instead of just Test. Please advise. Matthias ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context deftest.tex___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Problem with defineenumeration [number=no]
Taco Hoekwater wrote: Hi, There is a missing \noexpand in core-des.tex. Attached is a fixed version of the affected macro. ah, fixed, thanks! Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] \defineenumeration broken in alpha
Hans, either \defineenumeration is broken in , or I always used it incorrectly: \defineenumeration[definition] [sectionnumber=chapter, text=Definition, location=hanging, way=bychapter] \starttext \startdefinition Test \stopdefinition \stoptext I get definition[]Definition 0 Test but used to get Definition 1 Test regards, Christopher Creutzig ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \defineenumeration broken in alpha
Christopher Creutzig wrote: Hans, either \defineenumeration is broken in , or I always used it incorrectly: \defineenumeration[definition] [sectionnumber=chapter, text=Definition, location=hanging, way=bychapter] \starttext \startdefinition Test \stopdefinition \stoptext I get definition[]Definition 0 Test but used to get Definition 1 Test regards, Christopher Creutzig ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \defineenumeration
At 11:19 20/09/2003 +0200, you wrote: Hi, Thanks Hans for the patch concerning enumerations. - Certain things now work as I thought they should, others don't . :-( In the meantime I downloaded and installed the latest (yesterdays) CONTeXT. 1. Numbering starts at 2, and the following items get numberd 4,6, oeps, i need to take care of that in the preroll; i'll upload a fresh archive Hans - Hans Hagen | PRAGMA ADE | [EMAIL PROTECTED] Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com - information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf - ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] \defineenumeration
Hi, Thanks Hans for the patch concerning enumerations. - Certain things now work as I thought they should, others don't . :-( In the meantime I downloaded and installed the latest (yesterdays) CONTeXT. 1. Numbering starts at 2, and the following items get numberd 4,6, 2. I detected, that the option style=command, I used style=\em, does not give the desired result. The first item would be slanted, the second would be regular and the third again slanted. - Hoewer using style=slanted makes all items slanted. Please find attached a minimal test file (probe.tex) Cheers Willi probe.tex Description: Binary data
Re: [NTG-context] Probelm with \defineenumeration
Beste Willi, Attached PDF shows my version context does it right. Karel. Hi everybody, While trying to setup a simple literature reference list I encounter the following problem: I have defined an enumeration. After typesetting the enumerated list I get on the first line the enumeration text and lost and alone in front of the second line the enumeration number. Is this something I do in a wrong way or is there a bug? Please try the minimal example below Kind regards Willi \setupoutput[pdftex] \defineenumeration [Literatur] [location={left,serried}, style=\em, width=broad, distance=12pt, headstyle=\tfx, text=\em, left={[}, right={]}, inbetween={\blank[small]}, after={\blank[small]}] \starttext \Literatur[Wiese1964] F. Wiese. Buchbinden. 1964. \Literatur[Goddijn1994] P.Goddijn. Het restaureren van boeken. Koninglijke Bibliotheek, Den Haag.1994. \stoptext ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context The following section of this message contains a file attachment prepared for transmission using the Internet MIME message format. If you are using Pegasus Mail, or any another MIME-compliant system, you should be able to save it or view it from within your mailer. If you cannot, please ask your system administrator for assistance. File information --- File: egger.pdf Date: 19 Sep 2003, 8:40 Size: 20848 bytes. Type: Unknown egger.pdf Description: Binary data
[NTG-context] Re: Probelm with \defineenumeration
Willi Egger [EMAIL PROTECTED] writes: Hello Willi, Is this something I do in a wrong way or is there a bug? I did not look into it yet, but I can confirm that I get the same error with the latest ConTeXt version. So I think that there must be some bug. Patrick -- Silent is the goldfish in its bowl ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Probelm with \defineenumeration
Willi Egger [EMAIL PROTECTED] writes: Hi everybody, While trying to setup a simple literature reference list I encounter the following problem: I have defined an enumeration. After typesetting the enumerated list I get on the first line the enumeration text and lost and alone in front of the second line the enumeration number. Is this something I do in a wrong way or is there a bug? K.H. Wesseling [EMAIL PROTECTED] writes: Beste Willi, Attached PDF shows my version context does it right. Karel. Patrick Gundlach [EMAIL PROTECTED] writes: I did not look into it yet, but I can confirm that I get the same error with the latest ConTeXt version. So I think that there must be some bug. Dear Willi, Karel and Patrick, I tried your example and got the same misaligned result as yourself and Patrick. However when I made text=, it aligned properly but your number, of course, is not in italics. This may help people who are in a position to know what is going on. Charlie Doherty ConTeXt ver: 2003.8.8 fmt: 2003.8.18 int: english mes: english \defineenumeration [Literatur] [location={left,serried}, style=\em, width=broad, distance=12pt, headstyle=\tfx, text=, left={[}, right={]}, inbetween={\blank[small]}, after={\blank[small]}] \starttext \Literatur[Wiese1964] F. Wiese. Buchbinden. 1964. \Literatur[Goddijn1994] P.Goddijn. Het restaureren van boeken. Koninglijke Bibliotheek, Den Haag.1994. \stoptext pastedGraphic1.pdf Description: Adobe PDF document Best wishes, Charlie Doherty ** Charles Doherty, Department of Early Irish History, University College Dublin, Belfield, Dublin 4 Ireland Telephone +353 1 7168381
Re: [NTG-context] Probelm with \defineenumeration
At 20:13 18/09/2003 +0200, you wrote: I have defined an enumeration. After typesetting the enumerated list I get on the first line the enumeration text and lost and alone in front of the second line the enumeration number. Is this something I do in a wrong way or is there a bug? hm, this is due to the fact that the [ ] are not taken into the width calculations. This problem was introduced some time ago when i made a slightly more advanced width multiline calculator. In your case it's also triggered by text=\em which should be textstyle=\em (now an extra space is added between the text and number) The next alternative fixes the width calculation. \def\@@dostartdefinitie#1[#2]#3% {\getvalue{\??dd#1\c!voor}% \begingroup \doadaptleftskip{\getvalue{\??dd#1\c!marge}}% \showcomposition \!!widthb\getvalue{\??dd#1\c!afstand}\relax \ifdim\!!widthb=\zeropoint\relax \doifvalue{\??dd#1\c!breedte}\v!ruim{\!!widthb=1em}% \fi % temp hack, we need to avoid this kind of preprocessing \setbox\@@definitiebox\hbox % preroll {\forgetall \trialtypesettingtrue \mindermeldingen \def\\{\crcr}% \@@definitiewoord{#1}[#2]{#3}% {\begstrut\getvalue{\??dd#1\c!tekst}\ignorespaces#3\endstrut}}% % so far \assignwidth {\!!widtha} {\getvalue{\??dd#1\c!breedte}} {\doifelsevaluenothing{\??dd#1\c!monster} {% preroll can move here (test first) \ifhbox\@@definitiebox\unhcopy\else\copy\fi \@@definitiebox} {\@@definitiewoord{#1}[#2]{#3}% {\getvalue{\??dd#1\c!tekst}\getvalue{\??dd#1\c!monster {\!!widthb}% \setbox\@@definitiebox\hbox {\forgetall \mindermeldingen \let\\\endgraf \doifelsevalue{\??dd#1\c!plaats}\v!aanelkaar {\@@definitiewoord{#1}[#2]{#3}% {\begstrut\getvalue{\??dd#1\c!tekst}#3\endstrut}} {\@@definitiewoord{#1}[#2]{#3}% {\vtop{\hsize\!!widtha\advance\hsize-\!!widthb \begstrut\getvalue{\??dd#1\c!tekst}\ignorespaces#3\endstrut% \doifelsevalue{\??dd#1\c!titeluitlijnen}\v!nee {\edef\@@leftdefinitieskip {\the\leftskip }% \edef\@@rightdefinitieskip{\the\rightskip}} {\ifcase\insidedefinition \edef\@@leftdefinitieskip {\the\leftskip }% \edef\@@rightdefinitieskip{\the\rightskip}% \fi}% \expanded{\inspringen[\getvalue{\??dd#1\c!inspringen}]}% \ifcase\insidedefinition % better a system mode \chardef\insidedefinition\plusone \or \chardef\insidedefinition\plustwo \fi} % now happens elsewhere : \noindent\ignorespaces - Hans Hagen | PRAGMA ADE | [EMAIL PROTECTED] Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com - information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf - ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Probelm with \defineenumeration
At 11:21 19/09/2003 +0100, you wrote: I tried your example and got the same misaligned result as yourself and Patrick. However when I made text=, it aligned properly but your number, of course, is not in italics. This may help people who are in a position to know what is going on. text= is for a label and willy used it for a style switch (textstyle=..) so a space was introduced; this makes the text too wide and wrap (resulting in a linebreak) Hans - Hans Hagen | PRAGMA ADE | [EMAIL PROTECTED] Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com - information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf - ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Probelm with \defineenumeration
Hoi Karel, Thanks, I see in your version it works. I have to say, that I copied this definition from an other project, where it used to work as in your file! On the other hand I use the latest beta version, may be that there were changes Nederlands blijft een moelijke taal om te schrijven. De buitenlander heeft er steeds last van. Bedankt voor de correctie! Kind regards Willi - Original Message - From: K.H. Wesseling [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, September 19, 2003 8:43 AM Subject: Re: [NTG-context] Probelm with \defineenumeration Beste Willi, Attached PDF shows my version context does it right. Karel. Hi everybody, While trying to setup a simple literature reference list I encounter the following problem: I have defined an enumeration. After typesetting the enumerated list I get on the first line the enumeration text and lost and alone in front of the second line the enumeration number. Is this something I do in a wrong way or is there a bug? Please try the minimal example below Kind regards Willi \setupoutput[pdftex] \defineenumeration [Literatur] [location={left,serried}, style=\em, width=broad, distance=12pt, headstyle=\tfx, text=\em, left={[}, right={]}, inbetween={\blank[small]}, after={\blank[small]}] \starttext \Literatur[Wiese1964] F. Wiese. Buchbinden. 1964. \Literatur[Goddijn1994] P.Goddijn. Het restaureren van boeken. Koninglijke Bibliotheek, Den Haag.1994. \stoptext ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context The following section of this message contains a file attachment prepared for transmission using the Internet MIME message format. If you are using Pegasus Mail, or any another MIME-compliant system, you should be able to save it or view it from within your mailer. If you cannot, please ask your system administrator for assistance. File information --- File: egger.pdf Date: 19 Sep 2003, 8:40 Size: 20848 bytes. Type: Unknown ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Probelm with \defineenumeration
Hi everybody, While trying to setup a simple literature reference list I encounter the following problem: I have defined an enumeration. After typesetting the enumerated list I get on the first line the enumeration text and lost and alone in front of the second line the enumeration number. Is this something I do in a wrong way or is there a bug? Please try the minimal example below Kind regards Willi \setupoutput[pdftex] \defineenumeration [Literatur] [location={left,serried}, style=\em, width=broad, distance=12pt, headstyle=\tfx, text=\em, left={[}, right={]}, inbetween={\blank[small]}, after={\blank[small]}] \starttext \Literatur[Wiese1964] F. Wiese. Buchbinden. 1964. \Literatur[Goddijn1994] P.Goddijn. Het restaureren van boeken. Koninglijke Bibliotheek, Den Haag.1994. \stoptext ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context