[NTG-context] Indenting in framed environments

2010-09-01 Thread Géry Ogam
Hi, How can I indent text within framedtext environments? I'm asking because my definitions/theorems/etc. commands are surrounded by startframed/stopframed and I want the text inside to be indented. Géry___ If

[NTG-context] Preventing caption stoppers from appearing in references

2013-11-01 Thread Géry Ogam
Hello Hans, I would like to prevent caption stoppers from appearing in references in ConTeXt. Here is a minimal example: \starttext \setupcaptions[numberstopper=.~---~, distance=0em] \placefigure[][cow]{A Cow}{\externalfigure[cow]} \in{Figure}[cow] shows a cow. \stoptext Aditya suggested that

[NTG-context] Space problem after formulas inside itemize environments

2013-11-04 Thread Géry Ogam
Hello, I think there is a space problem after formulas inside itemize environments. E.g.: \starttext \startitemize \item Eeny, meeny, miny, moe \placeformula \startformula \text{Numbered formula: the space after is correct.} \stopformula

[NTG-context] How to test the emptyness of a variable?

2013-11-04 Thread Géry Ogam
Hello, How to test if the current structure label is empty? The following example does not work because I don’t know how to expand the variable \currentstructurelabel. E.g.: \define \MyCommand{\doifempty{\currentstructurelabel}{Do something}} Best regards.

[NTG-context] Counter resetting

2013-11-04 Thread Géry Ogam
Hello, How to reset a counter bysection and bysubsection at the same time? The following example does not work. Hans, could you had the support of lists for the 'way' argument please? E.g.: \defineenumeration[cool][text=Cool, way={bysection, bysubsection}] \starttext \section{Cat}

[NTG-context] Counter resetting

2013-11-05 Thread Géry Ogam
You can use “way=byhead” to reset the counter with each section. Wolfgang It does not work (with ConTeXt ver: 2012.05.30): \defineenumeration[cool][text=Cool, way=byhead] \starttext \section{Cat} \subsection{Cat} \cool{} \cool{} \subsection{Cat} \cool{} \cool{} \section{Cat} \cool{}

[NTG-context] How to test the emptyness of a variable?

2013-11-05 Thread Géry Ogam
you can try \doifnothing\currentstructurelabel{Do something} It does not work in my case (even if the currenstructurelabel is empty it acts as if it not empty). In fact I asked that to get the following behaviour: — When there is a chapter label (\setuplabeltext[chapter=CHAPTER~]) I want

[NTG-context] How to test the emptyness of a variable?

2013-11-05 Thread Géry Ogam
Any idea for achieving this behaviour? - When there is a chapter label (\setuplabeltext[chapter=CHAPTER~]), display : CHAPTER ONE Cool CHAPTER 2 Cat CHAPTER 3 Mouse etc. - When there is no chapter label (\setuplabeltext[chapter=]), display: 1 Cool 2 Cat 3 Mouse etc. My try achieves the first

Re: [NTG-context] Preventing caption stoppers from appearing in references

2013-11-05 Thread Géry Ogam
What do you think about that Hans? Géry Ogam 2013/11/1 Géry Ogam maggy...@gmail.com Hello Hans, I would like to prevent caption stoppers from appearing in references in ConTeXt. Here is a minimal example: \starttext \setupcaptions[numberstopper=.~---~, distance=0em] \placefigure

[NTG-context] How to test the emptyness of a variable?

2013-11-07 Thread Géry Ogam
I'm sure there is also a cleaner TeX way, but I'm not experienced enough for that. I think you misunderstood my issue: your Lua way does the same thing than my TeX way: it displays: ONE Cool 2 Cat 3 Mouse but that is NOT what I want. What I want is: 1 Cool 2 Cat 3 Mouse So I need to check if

Re: [NTG-context] How to test the emptyness of a variable?

2013-11-10 Thread Géry Ogam
Thank you very much Aditya, now it works. As you said, the trick was to use \doiftextelse{}{}{} function as test of emptyness function, and \labeltext{chapter} instead of \currentstructurelabel as variable for the test because the latter was never found empty, even when it was. Thus the right

[NTG-context] Numberconversion problem in caption prefixes

2013-11-11 Thread Géry Ogam
Hello, There is a numberconversion problem in caption prefixes. For instance, if chapter numbers are set to Romannumerals, the conversion of the caption prefixes depends on the presence of a section Minimal example: \setuphead[chapter][conversion=Romannumerals] \setupcaption[way=bychapter,

[NTG-context] How to use local layout parameters (instead of global ones)?

2013-11-18 Thread Géry Ogam
Hello, Here is my problem: \setuplayout[% width=0.75\paperwidth, height=\dimexpr\paperheight-1.2\paperwidth+1.2\textwidth+26mm] \definelayout[luxury][% width=0.6667\paperwidth, height=\dimexpr\paperheight-1.2\paperwidth+1.2\textwidth+26mm] \starttext - textwidth:

Re: [NTG-context] How to use local layout parameters (instead of global ones)?

2013-11-19 Thread Géry Ogam
\definemeasure[h1][1.2\measured{w1}+26mm] \definemeasure[h2][1.2\measured{w2}+26mm] \measured gives me this error (*Undefined control sequence*): *\17h1 ^^@-1.2\measured* * {w1}+26mm* *\measure ...sname \csname \??measure #1\endcsname* *

Re: [NTG-context] How to use local layout parameters (instead of global ones)?

2013-11-19 Thread Géry Ogam
then use \dimexpr\measure{w2}\relax It works, thank you. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl /

Re: [NTG-context] Numberconversion problem in caption prefixes

2013-11-23 Thread Géry Ogam
Thanks again Wolfgang, with this setup everything is fine. But I wanted to bring to the attention of Hans the inconsistency of the prefix conversions by defaut, so that he can correct them: I A chapter [a figure] Figure I.1 % -- Here the conversion of the prefix to Romannumerals is done

Re: [NTG-context] Space problem after formulas inside itemize environments

2013-11-21 Thread Géry Ogam
Could you correct this space problem Hans? \startitemize \item Eeny, meeny, miny, moe \placeformula \startformula \text{Numbered formula: the space after is correct.} \stopformula \item Eeny, meeny, miny, moe \placeformula[-]

Re: [NTG-context] Space problem after formulas inside itemize environments

2013-11-21 Thread Géry Ogam
What’s wrong with the second formula, both have the same space before and after the content? Then maybe Hans has corrected it recently. I am using ConTeXt version 2013.04.20, and you? ___ If your question is of

Re: [NTG-context] Numberconversion problem in caption prefixes

2013-11-21 Thread Géry Ogam
Thank you Wolfgang, it does what I want. However, I realised after trying the following code inside environments (frontmatter, bodymatter, backmatter and appendices) that the default behaviour is WRONG because the conversions of prefixes are not always automatic. For instance, in the appendix

Re: [NTG-context] Numberconversion problem in caption prefixes

2013-11-21 Thread Géry Ogam
It should display: I Cool [figure] Figure 1.1 A cow % -- not: Figure I.1 A cow II Cat 2.1 Mouse 2.2 Dog [figure] Figure 2.1 A cow Could you look at this weird prefix conversion behaviour Hans? Géry Ogam 2013/11/12 Géry Ogam maggy...@gmail.com Hello, There is a numberconversion problem

[NTG-context] Command for the caption location inside \startplacefigure

2013-12-03 Thread Géry Ogam
Hello, What is the option to specify the CAPTION location in \startplacefigure (I already now that you can do it from \setupcaption)? I thought the first argument of 'location' was for the FIGURE location, and the second one for the CAPTION location, but the second one has no effect: