[NTG-context] Re: Error with vskip and interaction in 20250813

2025-08-15 Thread Rik Kabel
=] \definelabel[Qi][text={\hbox to 15pt}, alternative=inright] \startbuffer[fn] \Qi \stopbuffer \starttext \Qi Between here\par aaa\endnote{xxx\getbuffer[fn]}\Qi and here \placenotes[endnote] \stoptext -- Rik

[NTG-context] Re: Error with vskip and interaction in 20250813

2025-08-14 Thread Rik Kabel
On 2025-08-14 02:56, Hans Hagen via ntg-context wrote: On 8/14/2025 1:01 AM, Rik Kabel wrote: With the latest (2025-08-13) I get an error from the following:     \setupinteraction   [state=stop]     \definelabel[Qi]   [text={\hbox to \dimexpr +15pt\relax{}},    alternative

[NTG-context] Re: Error with vskip and interaction in 20250813

2025-08-13 Thread Hans Hagen via ntg-context
On 8/14/2025 1:01 AM, Rik Kabel wrote: With the latest (2025-08-13) I get an error from the following: \setupinteraction   [state=stop] \definelabel[Qi]   [text={\hbox to \dimexpr +15pt\relax{}},    alternative=inright,    way=bytext,    headstyle=small

[NTG-context] Re: Error with vskip and interaction in 20250813

2025-08-13 Thread Rik Kabel
Sorry, the initial condition to show the error is \setupinteraction[state=start] . On August 13, 2025 7:01:41 PM EDT, Rik Kabel wrote: >With the latest (2025-08-13) I get an error from the following: > > \setupinteraction >  [state=stop] > > \definelabel[Qi] >

[NTG-context] Error with vskip and interaction in 20250813

2025-08-13 Thread Rik Kabel
With the latest (2025-08-13) I get an error from the following: \setupinteraction   [state=stop] \definelabel[Qi]   [text={\hbox to \dimexpr +15pt\relax{}},    alternative=inright,    way=bytext,    headstyle=small,    before=,after

[NTG-context] Re: upload

2025-06-12 Thread Rik Kabel
.     \definelabel [X]     % [alternative=intext]     [alternative=inmargin]     \definemakeup [mkup]     [doublesided=no]     \starttext     \startmakeup [mkup]     abc\X[abc]\par     \ref[number][abc]\par     \stopmakeup     def\X[def]\par     \ref[number][def]\par     \Context\ version\par

[NTG-context] Re: upload

2025-06-12 Thread Wolfgang Schuster
Am 12.06.2025 um 22:08 schrieb Rik Kabel: The following example fails to generate a label in the makeup page. With 20250428 it does generate the label. With alternative=intext, all is as expected. The counter is incremented in all cases. \definelabel [X] % [alternative=intext

[NTG-context] Re: upload

2025-06-12 Thread Rik Kabel
. With alternative=intext, all is as expected. The counter is incremented in all cases. \definelabel [X] % [alternative=intext] [alternative=inmargin] \definemakeup [mkup] [doublesided=no] \starttext \startmakeup [mkup] abc\X[abc]\par \ref[number][abc]\par \stopmake

[NTG-context] Re: margn text on makeup page -- how?

2025-02-27 Thread Rik Kabel
label placed in that margin. Updated example:     *\definelabel[Test]     [text=,alternative=inright,headcolor=red,before=,after=]     \showframe     \starttext     \startmakeup     \Test[]This is makeup page     \stopmakeup     \Test[]This is not a makeup page     \stoptext* Below is

[NTG-context] Re: margn text on makeup page -- how?

2025-02-27 Thread Wolfgang Schuster
: *\definelabel[Test] [text=,alternative=inright,headcolor=red,before=,after=] \showframe \starttext \startmakeup \Test[]This is makeup page \stopmakeup \Test[]This is not a makeup page \stoptext* Below is simplified example, the problem is: 1. The makeup

[NTG-context] Re: margn text on makeup page -- how?

2025-02-26 Thread Rik Kabel
, results in no margin text in the makeup with either luatex or lmtx. \inmargin[scope=local]{...} Thank you. That works for the question I asked. Now, the question I should have asked: Is there a way to get a label placed in that margin. Updated example: *\definelabel[Test][text=,alternative

[NTG-context] Inmargin labels fail to be placed on makeup pages

2024-09-11 Thread Rik Kabel
Hello all, As the subject says, labels (\definelabel) with alternative=inmargin are not placed on makeup pages. (Left and right placement works.) The following example demonstrates this. (ConTeXt  ver: 2024.08.16 15:49 LMTX  fmt: 2024.8.16  int: english/english) \showframe

[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 this

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-27 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
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, but if

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 it

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
nd=MyFrame, > width=\textwidth, > location=right] > > \defineoverlay >[MyFrame] >[\useMPgraphic{MyFrame}] > > \definelabel >[Définition] >[headstyle=\bf\smallcaps] > > > \startuseMPgraphic{MyFrame} > picture p ; > p :=

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
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
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 with

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 .
mber 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},refe

Re: [NTG-context] space sectioning control

2018-06-25 Thread Wolfgang Schuster
ilto:schuster.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\in

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 wrote: \definelabel[idris][text=,headstyle=,numberconversion=R] \defineframed [NUM] [width=fit, align=middle, frame=off, background=color, backgroundcolor=green, top={\idris\par}, location=bottom

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 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 parti

[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 te

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 of

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 of

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 the

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 with

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
[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] [headstyle=\bf\smallcaps

Re: [NTG-context] framed with titles

2017-11-05 Thread Jean-Pierre Delange
background=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 := tex

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 wrote: \setupwhitespace[big] \definelabel[ParagraphNumber][text=Paragraph,closesymbol={\hspace[big]}] \setupparagraphintro[each][\ParagraphNumber] \starttext \section{Section} \input ward \input ward \input ward \stoptext

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
inition] > [before={\blank[line,halfline]}, >after={\blank}, >frame=off, >background=MyFrame, >width=\textwidth, >height=fit, >location=left, >style=italic] > > \defineoverlay > [MyFrame] > [\useMPgraphic{MyFrame}] > > \definelabel >

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

2016-10-29 Thread Fabrice Couvreur
e 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] >>> \definecolor[MyColorA][c=0.00, m=0.1

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

2016-10-28 Thread Michael Eidenbenz
olorB][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, >background=MyFrame, >width=\textwidth, >

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

2016-10-28 Thread Mica Semrick
;> compiled. >>> Thanks, >>> Fabrice >>> >>> % 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] >

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

2016-10-28 Thread Fabrice Couvreur
olorB][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, >>background=MyF

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

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

[NTG-context] Emacs24 + AucTeX + ConTeXt

2016-10-28 Thread Fabrice Couvreur
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 := textext.rt("\white\Définition") ;

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 M

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

2016-10-26 Thread Wolfgang Schuster
t \stopplacealgorithm * 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

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

2016-08-29 Thread Fabrice Couvreur
idth=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[se

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
[before={\blank}, after={\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{

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] \startuseMPgraph

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

2016-08-17 Thread Jean-Pierre Delange
width=max, height=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("\whit

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

2016-08-17 Thread Jean-Pierre Delange
the sample code : % Begin framed 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} pa

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

2016-07-28 Thread Jean-Pierre Delange
ter={\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\framedtex

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
ot much to gain >> >> correctness? mayhe use "lightgray" and "darkred" for consistency >> >> typography? sure, but more a discussion topic at the ctx meeting >> >> Thanks, >> Fabrice >> >> \setu

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

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

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

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

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

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

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
ith 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

[NTG-context] Center text in an image (Metafun)

2015-09-13 Thread Fabrice Couvreur
phic{Funny}] \definelabel [MÉTHODE] [headstyle=\bf\smallcaps] \startuseMPgraphic{Funny} interim linejoin := mitered ; interim linecap := squared ; path b ; picture p ; picture pic ; pic := textext.rt("\darkgreen Calculer les coordonnées d'un milieu")

Re: [NTG-context] Space between both environments

2015-09-08 Thread Fabrice Couvreur
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]

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

  1   2   >