[NTG-context] Wiki page : Mixed languages sample (French, Ancient Greek, Arabic, Chinese)

2024-03-01 Thread Jean-Pierre Delange
, width=max, height=fit, style=italic] \definelabel [Définition] [headstyle=\bf\smallcaps] \startuseMPgraphic{MyFrame} path b; picture p; %p := textext.rt("\white\Définition"); p := textext.rt("\white\framedtextparameter{Title}"); %p := textext.rt("\white\getva

Re: [NTG-context] Convertnumber with \ref[number] fails in MkIV, works in LMTX

2022-12-06 Thread Hans Hagen via ntg-context
On 12/6/2022 10:04 PM, Rik Kabel via ntg-context wrote: On 2022-12-06 15:32, Hans Hagen via ntg-context wrote: On 12/6/2022 9:06 PM, Rik Kabel via ntg-context wrote: \definelabel[X][text=] \startTEXpage[offset=1cm]    \X\X[a]\X[b]\X\par    \convertnumber{R}{\ref[number][a]}    \convertnumber

Re: [NTG-context] Convertnumber with \ref[number] fails in MkIV, works in LMTX

2022-12-06 Thread Rik Kabel via ntg-context
On 2022-12-06 15:32, Hans Hagen via ntg-context wrote: On 12/6/2022 9:06 PM, Rik Kabel via ntg-context wrote: \definelabel[X][text=] \startTEXpage[offset=1cm]    \X\X[a]\X[b]\X\par    \convertnumber{R}{\ref[number][a]}    \convertnumber{G}{\ref[number][b]} \stopTEXpage maybe like

Re: [NTG-context] Convertnumber with \ref[number] fails in MkIV, works in LMTX

2022-12-06 Thread Hans Hagen via ntg-context
On 12/6/2022 9:06 PM, Rik Kabel via ntg-context wrote: \definelabel[X][text=] \startTEXpage[offset=1cm]   \X\X[a]\X[b]\X\par   \convertnumber{R}{\ref[number][a]}   \convertnumber{G}{\ref[number][b]} \stopTEXpage maybe like this: \definelabel[X][text=] \startTEXpage[offset=1cm] (\X

Re: [NTG-context] Convertnumber with \ref[number] fails in MkIV, works in LMTX

2022-12-06 Thread Rik Kabel via ntg-context
On 2022-01-19 12:39, Rik Kabel via ntg-context wrote: This is still a problem with the current standalone. \definelabel[X][text=] \startTEXpage[offset=1cm]   \X\X[a]\X[b]\X\par   \convertnumber{R}{\ref[number][a]}   \convertnumber{G}{\ref[number][b]} \stopTEXpage

Re: [NTG-context] Convertnumber with \ref[number] fails in MkIV, works in LMTX

2022-01-19 Thread Rik Kabel via ntg-context
This is still a problem with the current standalone. \definelabel[X][text=] \startTEXpage[offset=1cm]   \X\X[a]\X[b]\X\par   \convertnumber{R}{\ref[number][a]}   \convertnumber{G}{\ref[number][b]} \stopTEXpage %% The above example fails to compile when there is no tuc

Re: [NTG-context] undefined control sequence c!symbolcolor in MkIV, was new upload

2022-01-19 Thread Adam Reviczky via ntg-context
On 2022-01-15 14:29, Hans Hagen wrote: > > On 1/15/2022 7:34 PM, Rik Kabel via ntg-context wrote: > >> MWE: > >> > >> \definelabel[xx][headcolor=red] > >> \starttext > >> ab\xx > >> \stoptext > >> > >> fails,

Re: [NTG-context] undefined control sequence c!symbolcolor in MkIV, was new upload

2022-01-19 Thread Rik Kabel via ntg-context
On 2022-01-15 14:29, Hans Hagen wrote: On 1/15/2022 7:34 PM, Rik Kabel via ntg-context wrote: MWE:     \definelabel[xx][headcolor=red]     \starttext     ab\xx     \stoptext fails, reporting in log:     tex error   > tex error on line 4 in file G:/Desktop/mwe.tex: !     Undefined cont

Re: [NTG-context] undefined control sequence c!symbolcolor in MkIV, was new upload

2022-01-15 Thread Hans Hagen via ntg-context
On 1/15/2022 7:34 PM, Rik Kabel via ntg-context wrote: MWE: \definelabel[xx][headcolor=red] \starttext ab\xx \stoptext fails, reporting in log: tex error   > tex error on line 4 in file G:/Desktop/mwe.tex: ! Undefined control sequence \c!symbolco

[NTG-context] undefined control sequence c!symbolcolor in MkIV, was new upload

2022-01-15 Thread Rik Kabel via ntg-context
MWE: \definelabel[xx][headcolor=red] \starttext ab\xx \stoptext fails, reporting in log: tex error   > tex error on line 4 in file G:/Desktop/mwe.tex: ! Undefined control sequence \c!symbolcolor \labelparameter #1->\csname \ifcsname \??labels \currentlab

Re: [NTG-context] Convertnumber with \ref[number] fails in MkIV, works in LMTX

2021-10-28 Thread Rik Kabel via ntg-context
ble glue units , pointing to the second \convertnumber line. \definelabel[XX]%[text=,before=,after=,alternative=inright]     \startTEXpage[offset=2em]      abc\XX[xx]\par      \ref[number][xx] ·      \convertnumber{r}{1} ·      \convertnumber{R}{\ref[number][xx]}     \stopTEXpage In this case I

Re: [NTG-context] Convertnumber with \ref[number] fails in MkIV, works in LMTX

2021-10-28 Thread Hans Hagen via ntg-context
ond \convertnumber line. \definelabel[XX]%[text=,before=,after=,alternative=inright] \startTEXpage[offset=2em]  abc\XX[xx]\par  \ref[number][xx] ·  \convertnumber{r}{1} ·  \convertnumber{R}{\ref[number][xx]} \stopTEXpage In this case I am trying to display with roman numer

Re: [NTG-context] Convertnumber with \ref[number] fails in MkIV, works in LMTX

2021-10-27 Thread Rik Kabel via ntg-context
, The following fails with ConTeXt  ver: 2021.10.24 21:45 MKIV but works with the companion LMTX. The error message is:tex error   > tex error on line 6 in file G:/TestConTeXt/convert.tex: ! Incompatible glue units , pointing to the second \convertnumber line. \definelabel[XX]%[text=,bef

[NTG-context] Convertnumber with \ref[number] fails in MkIV, works in LMTX

2021-10-27 Thread Rik Kabel via ntg-context
Hello list, The following fails with ConTeXt  ver: 2021.10.24 21:45 MKIV but works with the companion LMTX. The error message is:tex error   > tex error on line 6 in file G:/TestConTeXt/convert.tex: ! Incompatible glue units , pointing to the second \convertnumber line. \definela

Re: [NTG-context] definelabel and TEXpage

2021-05-21 Thread Rik Kabel
On 5/21/2021 00:16, Wolfgang Schuster wrote: Rik Kabel schrieb am 21.05.2021 um 04:31: In the following example:     \definelabel[BB][alternative=inright,headcolor=red,text=]     \startTEXpage     Where is the label?\BB     \stopTEXpage The label is not displayed if a TEXpage is used

Re: [NTG-context] definelabel and TEXpage

2021-05-20 Thread Wolfgang Schuster
Rik Kabel schrieb am 21.05.2021 um 04:31: In the following example: \definelabel[BB][alternative=inright,headcolor=red,text=] \startTEXpage Where is the label?\BB \stopTEXpage The label is not displayed if a TEXpage is used, but if the start/stop is changed to starttext

Re: [NTG-context] Color problem

2021-05-20 Thread Aditya Mahajan
On Thu, 20 May 2021, Rik Kabel wrote: > Consider the following example: > >\define \HighlightColor {red} Why not just use: \definecolor[HighlightColor][red] and then use color=HighlightColor, etc. >\definehighlight[RED][color=\HighlightColor] > \definelabel[

[NTG-context] Color problem

2021-05-20 Thread Rik Kabel
Consider the following example: \define \HighlightColor {red} \definehighlight[RED][color=\HighlightColor] \definelabel[AA][alternative=inright,headcolor=\HighlightColor,text=] \definelabel[BB][alternative=inright,headcolor=red,text=] \noheaderandfooterlines \starttext

[NTG-context] definelabel and TEXpage

2021-05-20 Thread Rik Kabel
In the following example: \definelabel[BB][alternative=inright,headcolor=red,text=] \startTEXpage Where is the label?\BB \stopTEXpage The label is not displayed if a TEXpage is used, but if the start/stop is changed to starttext/stoptext, all is well. Is this expected? -- Rik

Re: [NTG-context] Display reference number as Roman number

2021-01-06 Thread Rik Kabel
On 11/24/2020 22:09, Rik Kabel wrote: Hello all, What I thought should be a simple conversion escapes me. I have a reference (created originally via a label defined by \definelabel) that, when referenced as \in[label] or \ref[number][label] displays a number, and that is how I normally use

[NTG-context] Display reference number as Roman number

2020-11-24 Thread Rik Kabel
Hello all, What I thought should be a simple conversion escapes me. I have a reference (created originally via a label defined by \definelabel) that, when referenced as *\in[label]* or *\ref[number][label]* displays a number, and that is how I normally use it. However, I want to display

Re: [NTG-context] Use a counter in a reference?

2020-04-19 Thread Kevin Kenan
about this incorrectly? >> Thanks in advance! > > Are you looking for this: https://wiki.contextgarden.net/Command/definelabel > <https://wiki.contextgarden.net/Command/definelabel> ? > > HTH > > Thomas >

Re: [NTG-context] Use a counter in a reference?

2020-04-13 Thread Thomas A. Schmitz
[myTagCounter]} Doesn’t work. But perhaps I’m going about this incorrectly? Thanks in advance! Are you looking for this: https://wiki.contextgarden.net/Command/definelabel ? HTH Thomas ___ If your question is of interest

[NTG-context] definelabel not working as previously on ConTeXt ver: 2018.08.19 12:52

2018-08-19 Thread Rik Kabel
With the latest beta, labels do not work for me. With the following code: \definelabel[Q] \starttext Label: \Q[abc] Label: see \in[abc]. Reference: \reference[def]{2} Reference: see \in[def]. \stoptext I get: and the log states: references  > unknown refere

Re: [NTG-context] Strange behavior !

2018-07-16 Thread Otared Kavian
Frame, > width=\textwidth, > location=right] > > \defineoverlay >[MyFrame] >[\useMPgraphic{MyFrame}] > > \definelabel >[Définition] >[headstyle=\bf\smallcaps] > > > \startuseMPgraphic{MyFrame} > picture p ; > p := texte

Re: [NTG-context] Strange behavior !

2018-07-15 Thread Alan Braslau
ColorB][c=0.00, m=0.62, y=1.00, k=0.00] > \definecolor[MyColorA][.75(MyColorB,white)] > > \defineframedtext >[MyText] >[frame=off, > background=MyFrame, > width=\textwidth, > location=right] > > \defineoverlay >[MyFrame] >[\useMPgra

[NTG-context] Strange behavior !

2018-07-15 Thread Fabrice Couvreur
=\textwidth, location=right] \defineoverlay [MyFrame] [\useMPgraphic{MyFrame}] \definelabel [Définition] [headstyle=\bf\smallcaps] \startuseMPgraphic{MyFrame} picture p ; p := textext.rt(\MPstring{MyFrame}) ; p := p shifted (0,OverlayHeight-ypart center p

Re: [NTG-context] Disproportion in initializing user counters

2018-07-15 Thread Pablo Rodriguez
On 07/15/2018 07:54 PM, Rik wrote: > Easier than counters: > > \definelabel [QQ][text=,headcolor=red] > \starttext > \startxtable > \startxrow > \startxcell one \stopxcell > \startxcell two \QQ[there] \stopxcell > \

Re: [NTG-context] Disproportion in initializing user counters

2018-07-15 Thread Rik
with a minimal sample? I don‘t use labels and I don’t know how to use them with counters in xtables. Many thanks for your help, Pablo Easier than counters: \definelabel [QQ][text=,headcolor=red] \starttext \startxtable \startxrow \startxcell one \stopxcell \startxcell two

Re: [NTG-context] Epub broken

2018-07-06 Thread Hans Hagen
to make a request to put into the queue. Currently references (via \reference or \definelabel[xyz] ... \xyz, perhaps other mechanisms as well) do not generate ID attributes where they are created, and so references to them (which do generate href=#...) link to nothing. Even creating an empty div

Re: [NTG-context] Epub broken

2018-07-05 Thread Rik Kabel
. Currently references (via \reference or \definelabel[xyz] ... \xyz, perhaps other mechanisms as well) do not generate ID attributes where they are created, and so references to them (which do generate href=#...) link to nothing. Even creating an empty div with an appropriate class (labelname

Re: [NTG-context] space sectioning control

2018-06-26 Thread Procházka Lukáš Ing .
agraphs you can create a counter with \definelabel. \definelabel[Paragraph][text=,numberstopper={.},headcommand=\groupedcommand{}{ }] \starttext \startchapter[title={First},reference={}] \Paragraph\input ward \Paragraph\input ward \stopchapter \startchapter[title={Second},reference={}]

Re: [NTG-context] space sectioning control

2018-06-25 Thread Wolfgang Schuster
ter.wolfg...@gmail.com> 25. Juni 2018 um 13:41 To number paragraphs you can create a counter with \definelabel. \definelabel[Paragraph][text=,numberstopper={.},headcommand=\groupedcommand{}{ }] \starttext \startchapter[title={First},reference={}] \Paragraph\input ward \Paragraph\input ward

Re: [NTG-context] space sectioning control

2018-06-25 Thread Idris Samawi Hamid ادريس سماوي حامد
On Mon, 25 Jun 2018 05:41:15 -0600, Wolfgang Schuster wrote: To number paragraphs you can create a counter with \definelabel. Yes - and tested some paragraph options yesterday. Many thanks for the sample below. But this particular project is very large with countless cross-references

Re: [NTG-context] space sectioning control

2018-06-25 Thread Wolfgang Schuster
To number paragraphs you can create a counter with \definelabel. \definelabel[Paragraph][text=,numberstopper={.},headcommand=\groupedcommand{}{ }] \starttext \startchapter[title={First},reference={}] \Paragraph\input ward \Paragraph\input ward \stopchapter \startchapter[title={Second

Re: [NTG-context] Numbered, counted snippets in running text

2018-05-20 Thread Idris Samawi Hamid ادريس سماوي حامد
On Sun, 20 May 2018 08:02:46 -0600, Wolfgang Schuster <schuster.wolfg...@gmail.com> wrote: \definelabel[idris][text=,headstyle=,numberconversion=R] \defineframed [NUM] [width=fit, align=middle, frame=off, background=color, backgroundcolor=green, top={\idr

Re: [NTG-context] Numbered, counted snippets in running text

2018-05-20 Thread Wolfgang Schuster
\definelabel[idris][text=,headstyle=,numberconversion=R] \defineframed [NUM] [width=fit, align=middle, frame=off, background=color, backgroundcolor=green, top={\idris\par}, location=bottom] \starttext \dorecurse{5}{Unnumbered Text \NUM{Numbered Text} } \stoptext Wolfgang

Re: [NTG-context] Labels and Enumerations

2018-01-15 Thread Rik Kabel
} \defineenumeration   [Enu]   [alternative=mylabel,    display=no,    before=,    after=] \definelabel   [Lab]   [alternative=mylabel,    before=,    after=] \definenote   [endnote] \setupnotation   [endnote]   [way=bytext,    location=none

Re: [NTG-context] Labels and Enumerations

2018-01-15 Thread Hans Hagen
On 1/14/2018 9:37 PM, Rik Kabel wrote: On 2018-01-14 09:46, Hans Hagen wrote: On 1/13/2018 10:17 PM, Rik Kabel wrote: I would like to request the restoration of labels (\definelabel) to full citizenship in MKIV. While enumerations are more flexible in many ways, they cannot replace one

Re: [NTG-context] Labels and Enumerations

2018-01-14 Thread Rik Kabel
On 2018-01-14 09:46, Hans Hagen wrote: On 1/13/2018 10:17 PM, Rik Kabel wrote: I would like to request the restoration of labels (\definelabel) to full citizenship in MKIV. While enumerations are more flexible in many ways, they cannot replace one particular use of labels if find necessary

Re: [NTG-context] Labels and Enumerations

2018-01-14 Thread Hans Hagen
On 1/13/2018 10:17 PM, Rik Kabel wrote: I would like to request the restoration of labels (\definelabel) to full citizenship in MKIV. While enumerations are more flexible in many ways, they cannot replace one particular use of labels if find necessary. Enumerations are paragraph entities

Re: [NTG-context] Labels and Enumerations

2018-01-13 Thread Alan Braslau
How about: \setupitemize[each][text][before=] Alan On Sat, 13 Jan 2018 16:17:54 -0500 Rik Kabel <cont...@rik.users.panix.com> wrote: > I would like to request the restoration of labels (\definelabel) to > full citizenship in MKIV. While enumerations are more flexible in > many wa

[NTG-context] Labels and Enumerations

2018-01-13 Thread Rik Kabel
I would like to request the restoration of labels (\definelabel) to full citizenship in MKIV. While enumerations are more flexible in many ways, they cannot replace one particular use of labels if find necessary. Enumerations are paragraph entities, while labels are not so restricted. I use

Re: [NTG-context] Label problems with \definelabel and \defineenumeration, in and out of footnotes

2018-01-12 Thread Rik Kabel
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

Re: [NTG-context] Label problems with \definelabel and \defineenumeration, in and out of footnotes

2018-01-12 Thread Hans Hagen
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

Re: [NTG-context] Label problems with \definelabel and \defineenumeration, in and out of footnotes

2018-01-12 Thread Rik Kabel
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

Re: [NTG-context] Label problems with \definelabel and \defineenumeration, in and out of footnotes

2018-01-12 Thread Hans Hagen
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

Re: [NTG-context] Label problems with \definelabel and \defineenumeration, in and out of footnotes

2018-01-12 Thread Rik Kabel
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

Re: [NTG-context] Label problems with \definelabel and \defineenumeration, in and out of footnotes

2018-01-12 Thread Hans Hagen
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

Re: [NTG-context] Problem with definelabel and footnotes

2018-01-12 Thread Rik Kabel
Bump. On 2015-07-27 22:08, Rik Kabel wrote: I have a document with hundreds of labels generated by \definelabel. They are used to index quotations in the text. Some of these occur in notes. Previously I had all such notes at the end of the book, as endnotes, but an editor requested a version

Re: [NTG-context] Label problems with \definelabel and \defineenumeration, in and out of footnotes

2018-01-12 Thread Rik Kabel
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

Re: [NTG-context] framed with titles

2017-11-05 Thread Jean-Pierre Delange
ramed text \defineframedtext [MyFrame] [before={\blank[3*big]}, after={\blank[5*big]}, frame=off, background=MyFrame, %width=\textwidth, width=max, height=fit, style={\setupbodyfont[9pt]}] % Defining a label \definelabel [Definition]

Re: [NTG-context] framed with titles

2017-11-05 Thread Jean-Pierre Delange
nd=MyFrame, %width=\textwidth, width=max, height=fit, style={\setupbodyfont[9pt]}] % Defining a label \definelabel [Definition] [headstyle=\bf\smallcaps] \startuseMPgraphic{MyFrame} path b; picture p; %p := textext.rt("\white\Definition"); p := textext.rt("\

Re: [NTG-context] methods for numbered paragraphs

2017-08-06 Thread Idris Samawi Hamid ادريس سماوي حامد
Hi Wolfgang, On Sun, 06 Aug 2017 03:09:16 -0600, Wolfgang Schuster <schuster.wolfg...@gmail.com> wrote: \setupwhitespace[big] \definelabel[ParagraphNumber][text=Paragraph,closesymbol={\hspace[big]}] \setupparagraphintro[each][\ParagraphNumber] \starttext \section{Section} \input ward

Re: [NTG-context] methods for numbered paragraphs

2017-08-06 Thread Wolfgang Schuster
ce[big] \definelabel[ParagraphNumber][text=Paragraph,closesymbol={\hspace[big]}] \setupparagraphintro[each][\ParagraphNumber] \starttext \section{Section} \input ward \input ward \input ward \stoptext Wolfgang ___ I

Re: [NTG-context] Emacs24 + AucTeX + ConTeXt

2016-10-29 Thread Tobias Berndt
y=0.20, k=0.00] > > > \defineframedtext > [MyDefinition] > [before={\blank[line,halfline]}, >after={\blank}, >frame=off, >background=MyFrame, >width=\textwidth, >height=fit, >location=left, >style=italic] > > \defineoverlay &

Re: [NTG-context] Emacs24 + AucTeX + ConTeXt

2016-10-29 Thread Fabrice Couvreur
I make a C-c C-c, all I get is the text in italics, the macro is not >>> compiled. >>> Thanks, >>> Fabrice >>> >>> % macros=mkvi >>> >>> \setupcolors[state=start] >>> \definecolor[MyColorB][c=0.00, m=0.62, y=1.00, k=0.00] >&

Re: [NTG-context] Emacs24 + AucTeX + ConTeXt

2016-10-28 Thread Michael Eidenbenz
t; % macros=mkvi > > \setupcolors[state=start] > \definecolor[MyColorB][c=0.00, m=0.62, y=1.00, k=0.00] > \definecolor[MyColorA][c=0.00, m=0.10, y=0.20, k=0.00] > > > \defineframedtext > [MyDefinition] > [before={\blank[line,halfline]}, > after={\blank},

Re: [NTG-context] Emacs24 + AucTeX + ConTeXt

2016-10-28 Thread Mica Semrick
m=0.10, y=0.20, k=0.00] >>> >>> >>> \defineframedtext >>> [MyDefinition] >>> [before={\blank[line,halfline]}, >>>after={\blank}, >>>frame=off, >>>background=MyFrame, >>>width=\textwidth, &

Re: [NTG-context] Emacs24 + AucTeX + ConTeXt

2016-10-28 Thread Fabrice Couvreur
color[MyColorB][c=0.00, m=0.62, y=1.00, k=0.00] >> \definecolor[MyColorA][c=0.00, m=0.10, y=0.20, k=0.00] >> >> >> \defineframedtext >> [MyDefinition] >> [before={\blank[line,halfline]}, >> after={\blank}, >>frame=off, >&g

Re: [NTG-context] Emacs24 + AucTeX + ConTeXt

2016-10-28 Thread Mica Semrick
efore={\blank[line,halfline]}, > after={\blank}, > frame=off, > background=MyFrame, > width=\textwidth, > height=fit, > location=left, > style=italic] > >\defineoverlay > [MyFrame] > [\useMPgraphic{MyFrame}] > >\definelabel > [Définition] &

[NTG-context] Emacs24 + AucTeX + ConTeXt

2016-10-28 Thread Fabrice Couvreur
=\textwidth, height=fit, location=left, style=italic] \defineoverlay [MyFrame] [\useMPgraphic{MyFrame}] \definelabel [Définition] [headstyle=\bf\smallcaps] \startuseMPgraphic{MyFrame} path b ; picture p ; p := textext.rt("\white\Définition") ; p :=

Re: [NTG-context] Algorithmic, Floats and line numbers.

2016-10-27 Thread Wolfgang Schuster
Mohammad Hossein Bateni <mailto:bat...@gmail.com> 27. Oktober 2016 um 17:59 How does one reset the counter then? Normally one would like it to start from 1 within each algorithmic block. But definelabel seems to have bytext and bysection options only. You can use \resetc

Re: [NTG-context] Algorithmic, Floats and line numbers.

2016-10-27 Thread Mohammad Hossein Bateni
How does one reset the counter then? Normally one would like it to start from 1 within each algorithmic block. But definelabel seems to have bytext and bysection options only. On Wed, Oct 26, 2016 at 2:00 PM, Wolfgang Schuster < schuster.wolfg...@gmail.com> wrote: > Javier M Mora <

Re: [NTG-context] Algorithmic, Floats and line numbers.

2016-10-26 Thread Wolfgang Schuster
opplacealgorithm * In algorithms, I think it has more sense to number only "logical" lines. The second state is so long that wraps into another line. Is it possible to number only logical lines? Not with linenumbering, what you need is counter which is inserted at the begin of each line. \d

Re: [NTG-context] Strange behavior with \definelabel[][] in context standalone

2016-08-29 Thread Fabrice Couvreur
alize] > \setupTABLE[start] >[align={middle,lohi},width=0.12\textwidth,type=\tfx,offset=1ex] > \setupTABLE[column][first] >[align={middle,right},width=0.52\textwidth] > \setupTABLE[1][1][frame=off] > \stopsetups > > \definelabel[TableRow][text=,number

Re: [NTG-context] Strange behavior with \definelabel[][] in context standalone

2016-08-29 Thread Wolfgang Schuster
[align={middle,lohi},width=0.12\textwidth,type=\tfx,offset=1ex] \setupTABLE[column][first] [align={middle,right},width=0.52\textwidth] \setupTABLE[1][1][frame=off] \stopsetups \definelabel[TableRow][text=,numbercommand=\FRAME] \starttext \startmidaligned \bTABLE[setups=table:initial

[NTG-context] Strange behavior with \definelabel[][] in context standalone

2016-08-29 Thread Fabrice Couvreur
.12\textwidth,type=\tfx,offset=1ex] \setupTABLE[column][first] [align={middle,right},width=0.52\textwidth] \setupTABLE[1][1][frame=off] \stopsetups \definelabel[TableRow][text=,numbercommand=\FRAME] \starttext \startmidaligned \bTABLE[setups=table:initialize] \bTR \bTD \

[NTG-context] Bug with standalone ?

2016-08-26 Thread Fabrice Couvreur
e,lohi},width=0.12\textwidth,type=\tfx,offset=1ex] \setupTABLE[column][first] [align={middle,right},width=0.52\textwidth] \setupTABLE[1][1][frame=off] \stopsetups \definelabel[TableRow][text=,numbercommand=\FRAME] \starttext \startmidaligned \bTABLE[setups=table:initialize] \bTR \

Re: [NTG-context] space before/after colored framed text

2016-08-17 Thread Jean-Pierre Delange
ter={\blank}, frame=off, background=MyFrame, %width=\textwidth, width=max, height=fit] \definelabel [Definition] [headstyle=\bf\smallcaps] \startuseMPgraphic{MyFrame} path b; picture p; %p := textext.rt("\white\Definition"); p := textext.rt("\white\framedtextparameter{Title}"); %p :=

Re: [NTG-context] space before/after colored framed text

2016-08-17 Thread Pablo Rodriguez
autorisation.] %~ \setupsymbolset[text] % Début de la définition d'un texte encadré en rouge \defineframedtext [MyFrame] [before={\blank}, after={\blank}, frame=off, background=MyFrame, %width=\textwidth, width=max, height=fit] \definelabel [Definition] [headstyle=\bf\smallcaps] \startuseMPgraphic{My

Re: [NTG-context] space before/after colored framed text

2016-08-17 Thread Jean-Pierre Delange
=fit, style=regular] \definelabel [Definition] [headstyle=\bf\smallcaps] \startuseMPgraphic{MyFrame} path b; picture p; %p := textext.rt("\white\Definition"); p := textext.rt("\white\framedtextparameter{Title}"); %p := textext.rt("\white\getvariable{text}{

[NTG-context] space before/after colored framed text

2016-08-17 Thread Jean-Pierre Delange
text settings \defineframedtext [MyFrame] [before={\blank}, after={\blank}, frame=off, background=MyFrame, %width=\textwidth, width=max, height=fit, style=regular] \definelabel [Definition] [headstyle=\bf\smallcaps] \startuseMPgraphic{MyFrame} path b; picture p; %p := textext.rt

Re: [NTG-context] Optimize code to create a environnementt with Metafun ?

2016-07-28 Thread Jean-Pierre Delange
\blank}, frame=off, background=MyFrame, %width=\textwidth, width=max, height=fit, style=italic] \definelabel [Définition] [headstyle=\bf\smallcaps] \startuseMPgraphic{MyFrame} path b; picture p; %p := textext.rt("\white\Définition"); p := textext.rt("\white\framedtextpara

Re: [NTG-context] Optimize code to create a environnementt with Metafun ?

2016-07-28 Thread Wolfgang Schuster
lyoung %%% \setupbodyfont[pagella,11pt] \setupcolors[state=start] \defineframedtext [MyFrame] [before={\blank}, after={\blank}, frame=off, background=MyFrame, %width=\textwidth, width=max, height=fit, style=italic] \definelabel [Définition] [headstyle=\bf\smallcaps] \startuseMPgraphic{MyFrame}

Re: [NTG-context] Optimize code to create a environnementt with Metafun ?

2016-07-28 Thread Jeong Dal
] \defineframedtext [MyFrame] [before={\blank}, after={\blank}, frame=off, background=MyFrame, %width=\textwidth, width=max, height=fit, style=italic] \definelabel [Définition] [headstyle=\bf\smallcaps] \startuseMPgraphic{MyFrame} path b; picture p; %p := textext.rt("\white\Définition

Re: [NTG-context] Optimize code to create a environnementt with Metafun ?

2016-07-26 Thread Fabrice Couvreur
what sense ... >> >> speed? not much to gain >> >> correctness? mayhe use "lightgray" and "darkred" for consistency >> >> typography? sure, but more a discussion topic at the ctx meeting >> >> Thanks, >>

Re: [NTG-context] Optimize code to create a environnementt with Metafun ?

2016-07-26 Thread Hans Hagen
\setupcolors[state=start] \defineframedtext [MyDefinition] [before={\blank}, after={\blank}, frame=off, background=MyFrame, width=\textwidth, height=fit, style=italic] \definelabel

Re: [NTG-context] Optimize code to create a environnementt with Metafun ?

2016-07-26 Thread Fabrice Couvreur
[MyDefinition] >> [before={\blank}, >>after={\blank}, >>frame=off, >>background=MyFrame, >>width=\textwidth, >>height=fit, >>style=italic] >> >> \definelabel >> [Définition] >> [headstyle=\bf\smal

Re: [NTG-context] Optimize code to create a environnementt with Metafun ?

2016-07-26 Thread Fabrice Couvreur
=start] >> >> \defineframedtext >> [MyDefinition] >> [before={\blank}, >>after={\blank}, >>frame=off, >>background=MyFrame, >>width=\textwidth, >>height=fit, >>style=italic] >> >> \definelabel >

Re: [NTG-context] Optimize code to create a environnementt with Metafun ?

2016-07-26 Thread Hans Hagen
background=MyFrame, width=\textwidth, height=fit, style=italic] \definelabel [Définition] [headstyle=\bf\smallcaps] \startuseMPgraphic{MyFrame} path b; picture p; p := textext.rt("\white\Définition"); p := p shifted (2BodyFontSize,OverlayHeight-ypart center p+.25

[NTG-context] Optimize code to create a environnementt with Metafun ?

2016-07-26 Thread Fabrice Couvreur
] [before={\blank}, after={\blank}, frame=off, background=MyFrame, width=\textwidth, height=fit, style=italic] \definelabel [Définition] [headstyle=\bf\smallcaps] \startuseMPgraphic{MyFrame} path b; picture p; p := textext.rt("\white\Définition"); p := p shifted (2Bo

[NTG-context] Setting \textrules

2016-07-12 Thread Fabrice Couvreur
] [features=default] \definetypeface [mainface] [tt] [mono] [modern] [default] [features=default, rscale=1.1] \definetypeface [mainface] [mm] [math] [pagella] [default] [encoding=texnansi] \setupbodyfont[mainface,11pt] \definelabel [Propriété] [headstyle=bolditalic,way=bytext] \setuptextrules

[NTG-context] Regression with label inright placement

2015-10-25 Thread Rik Kabel
The following code, a slight addition to test suite descriptions/labels-003.tex, when using ConTeXt from 20150904 and earlier works properly. Between that release and 20151004 something changed, and it fails with the labels shifted to reflect the temporarily narrowed text. \definelabel

[NTG-context] Questions on registers, and on processors used with registers

2015-10-04 Thread Rik Kabel
ess with attempts. Can something other than page numbers be the indexed item? I have a book with many quotations, each identified by a number (generated by \definelabel). For an index of quotations, it would be more useful to point to that quotation number than the page number. Perhaps the l

Re: [NTG-context] Space between both environments

2015-09-08 Thread Fabrice Couvreur
0.3, m=0.00, y=0.00, k=0.05] > > \definecolor[MyColorD][c=0.6, m=0.00, y=0.00, k=0.10] > > > \defineframedtext > [MyDefinition] > [before={\blank}, >after={\blank}, >frame=off, >background=MyFrame, >width=\textwidth, > height=fit, >loca

[NTG-context] Space between both environments

2015-09-07 Thread Fabrice Couvreur
] \definecolor[MyColorD][c=0.6, m=0.00, y=0.00, k=0.10] \defineframedtext [MyDefinition] [before={\blank}, after={\blank}, frame=off, background=MyFrame, width=\textwidth, height=fit, location=left, style=italic] \defineoverlay [MyFrame] [\useMPgraphic{MyFrame}] \definelabel

Re: [NTG-context] Space between both environments

2015-09-07 Thread Otared Kavian
on] > [before={\blank}, >after={\blank}, >frame=off, >background=MyFrame, >width=\textwidth, >height=fit, >location=left, >style=italic] > > \defineoverlay > [MyFrame] > [\useMPgraphic{MyFrame}] > > \definelabel > [Défini

Re: [NTG-context] Space between both environments

2015-09-07 Thread Wolfgang Schuster
defineframedtext [MyDefinition] [before={\blank}, after={\blank}, frame=off, background=MyFrame, width=\textwidth, height=fit, location=left, style=italic] \defineoverlay [MyFrame] [\useMPgraphic{MyFrame}] \definelabel [Définition] [headstyle=\bf\smallcaps] \startuseM

Re: [NTG-context] footnote coloring

2015-09-06 Thread Meer, H. van der
Thanks. I would not have thought of that. In the reference manual headcolor occurs in 13.2 \setupdescriptions and in 13.5 \definelabel only. I did not connect that with footnotes. Is \setupnotation a special form of \setupdescriptions? By the way, is a separate call to \setupnote[footnote

[NTG-context] Bug with the command \blank ?

2015-08-30 Thread Fabrice Couvreur
[MyFrame] [\useMPgraphic{MyFrame}] \definelabel [Définition] [headstyle=\bf\smallcaps] \startuseMPgraphic{MyFrame} path b ; picture p ; p := textext.rt(\white\Définition) ; p := p shifted (2BodyFontSize,OverlayHeight-ypart center p+.25ExHeight) ; b := boundingbox p

Re: [NTG-context] Text around a figure in a framedtext

2015-08-14 Thread Fabrice Couvreur
] [\useMPgraphic{MyFrame}] \definelabel [Définition] [headstyle=\bf\smallcaps] \startuseMPgraphic{MyFrame} path b ; picture p ; p := textext.rt(\white\Définition) ; p := p shifted (2BodyFontSize,OverlayHeight-ypart center p+.25ExHeight) ; b := boundingbox p leftenlarged

Re: [NTG-context] Text around a figure in a framedtext

2015-08-13 Thread Fabrice Couvreur
[MyText] [frame=off, background=MyFrame, width=\textwidth, height=fit, location=left, style=italic] \defineoverlay [MyFrame] [\useMPgraphic{MyFrame}] \definelabel [Définition] [headstyle=\bf\smallcaps] \startuseMPgraphic{MyFrame} path b ; picture p ; p

Re: [NTG-context] Text around a figure in a framedtext

2015-08-13 Thread Fabrice Couvreur
] \defineoverlay [MyFrame] [\useMPgraphic{MyFrame}] \definelabel [Définition] [headstyle=\bf\smallcaps] \startuseMPgraphic{MyFrame} path b ; picture p ; p := textext.rt(\white\Définition) ; p := p shifted (2BodyFontSize,OverlayHeight-ypart center p+.25ExHeight

Re: [NTG-context] Text around a figure in a framedtext

2015-08-13 Thread Rik Kabel
[MyColorA][.75(MyColorB,white)] \defineframedtext [MyText] [frame=off, background=MyFrame, width=\textwidth, height=fit, location=left, style=italic] \defineoverlay [MyFrame] [\useMPgraphic{MyFrame}] \definelabel [Définition] [headstyle=\bf\smallcaps] \startuseMPgraphic

[NTG-context] Label problems with \definelabel and \defineenumeration, in and out of footnotes

2015-08-11 Thread Rik Kabel
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

Re: [NTG-context] Text around a figure in a framedtext

2015-08-08 Thread Fabrice Couvreur
)] \defineframedtext [MyText] [frame=off, background=MyFrame, width=\textwidth, location=right] \defineoverlay [MyFrame] [\useMPgraphic{MyFrame}] \definelabel [Définition] [headstyle=\bf\smallcaps] \startuseMPgraphic{MyFrame} path b ; picture p

[NTG-context] Text around a figure in a framedtext

2015-08-07 Thread Fabrice Couvreur
, location=right] \defineoverlay [MyFrame] [\useMPgraphic{MyFrame}] \definelabel [Définition] [headstyle=\bf\smallcaps] \startuseMPgraphic{MyFrame} path b ; picture p ; p := textext.rt(\white\Définition) ; p := p shifted (2BodyFontSize,OverlayHeight-ypart center p+.25ExHeight

Re: [NTG-context] Some questions about an environment (Metafun)

2015-08-07 Thread Fabrice Couvreur
] [\useMPgraphic{MyFrame}] \definelabel [Définition] [headstyle=\bf\smallcaps] \startuseMPgraphic{MyFrame} path b ; picture p ; p := textext.rt(\white\Définition) ; % some day textext might handle it okay p := p shifted (2BodyFontSize,OverlayHeight-ypart center p

Re: [NTG-context] Some questions about an environment (Metafun)

2015-08-07 Thread Hans Hagen
] \defineoverlay [MyFrame] [\useMPgraphic{MyFrame}] \definelabel [Définition] [headstyle=\bf\smallcaps] \startuseMPgraphic{MyFrame} path b ; picture p ; p := textext.rt(\white\Définition) ; % some day textext might handle it okay p := p shifted (2BodyFontSize,OverlayHeight

  1   2   >