[NTG-context] Finding the position of an image on the page.

2023-10-01 Thread peter.hopcroft--- via ntg-context
Hello list, Can I find the position of an image on the page after I have placed the image with \externalfigure? For example, the top, left corner of the image might be 50 mm in from left side of page and 120 mm down from the top of the page. I know I can use \getfiguredimensions to find

[NTG-context] position in xmlfilter

2023-05-22 Thread Hans van der Meer via ntg-context
I do not understand the behaviour of certain function is xml processing. My problem is finding the position of the current node, for example with I would like to see the first resulting in 1 and the second in 2. The result of some experiments: return=[\xmlfilter{#1}{../tag

Re: [NTG-context] Meta(post)/(fun) macro with label position

2023-01-19 Thread Alexandre Christe via ntg-context
Thank you so much Alan, that was exactly what I was looking for. Le ven. 20 janv. 2023 à 01:56, Alan Braslau a écrit : > On Thu, 19 Jan 2023 22:40:13 +0100 > Alexandre Christe via ntg-context wrote: > > > def labelT(expr pos)(text t) = > > ... > > enddef; > > vardef labelT@#(text t) = >

Re: [NTG-context] Meta(post)/(fun) macro with label position

2023-01-19 Thread Alan Braslau via ntg-context
On Thu, 19 Jan 2023 22:40:13 +0100 Alexandre Christe via ntg-context wrote: > def labelT(expr pos)(text t) = > ... > enddef; vardef labelT@#(text t) = ... enddef ; Then you can pass on the "suffix" @# Alan ___

Re: [NTG-context] Meta(post)/(fun) macro with label position

2023-01-19 Thread Jeong Dal via ntg-context
Dear Alex, I don’t know what you want exactly. I hope that it may help. \startMPpage def myLabel(expr xpos, ypos)(text t) = dotlabel.top(textext(t),(xpos,ypos)); enddef; myLabel(1cm, 1cm, "Position"); \stoppage Good luck. Be

[NTG-context] Meta(post)/(fun) macro with label position

2023-01-19 Thread Alexandre Christe via ntg-context
Dear list, Is there a way in a Meta(post)/(fun) macro to specify the label position as an argument? def labelT(expr pos)(text t) = ... enddef; Thanks a lot in advance, Alex ___ If your question is of interest

[NTG-context] How to get line numbering to match block quote position?

2022-10-10 Thread Joel via ntg-context
I have some text that is a block quote, but also has line numbering:     \setuplinenumbering[step=3]    \starttext    \startblockquote             \startlinenumbering                 \input knuth             \stoplinenumbering         \stopblockquote \stoptext The line numbering is

Re: [NTG-context] process list items differently depending on position in list

2022-05-02 Thread Denis Maier via ntg-context
> -Ursprüngliche Nachricht- > Von: ntg-context Im Auftrag von Hans Hagen > via ntg-context > Gesendet: Montag, 2. Mai 2022 12:34 > An: Denis Maier via ntg-context > Cc: Hans Hagen > Betreff: Re: [NTG-context] process list items differently depending on > posi

Re: [NTG-context] process list items differently depending on position in list

2022-05-02 Thread Hans Hagen via ntg-context
On 5/2/2022 12:09 PM, Denis Maier via ntg-context wrote: But, it’d still love to hear whether there is a solution on the tex side. \processtokens {[before]} {[between]} {[after]} {[space]} {{one}{two}{three}} \def\whatever{a,b,c,d} \getcommacommandsize[\whatever] \scratchcounterone

Re: [NTG-context] process list items differently depending on position in list

2022-05-02 Thread Denis Maier via ntg-context
An: 'mailing list for ConTeXt users' Betreff: process list items differently depending on position in list Hi, I need to process a comma separated list, and adapt the formatting according to the position of an item in the list (example below). Expected output would be: {\bf foo }, {\em bar

[NTG-context] process list items differently depending on position in list

2022-05-02 Thread Denis Maier via ntg-context
Hi, I need to process a comma separated list, and adapt the formatting according to the position of an item in the list (example below). Expected output would be: {\bf foo }, {\em bar} and baz. Is that possible? Can I somehow get the position of an item in the list? (My understanding

Re: [NTG-context] vertical offset with "i" in position-command

2021-02-12 Thread Peter Münster
On Fri, Feb 12 2021, Wolfgang Schuster wrote: > 2. Add \strut, e.g. \position(1, 1){\strut i} Ah, thanks. So the anchor is not the baseline, but the top-left corner of the content. Since "\setuppositioning[before=\strut]" does not work, I use this workaround now: \def\myPosit

Re: [NTG-context] vertical offset with "i" in position-command

2021-02-12 Thread Wolfgang Schuster
Peter Münster schrieb am 12.02.2021 um 13:31: Hi, When I want to type an "i" in the position-command, there is some vertical offset: \starttext \startpositioning \position(1, 1){i} \position(2, 1){x} \position(1, 2){x} \position(2, 2){i} \position(1, 3){a} \position(2, 3){x} \positi

[NTG-context] vertical offset with "i" in position-command

2021-02-12 Thread Peter Münster
Hi, When I want to type an "i" in the position-command, there is some vertical offset: \starttext \startpositioning \position(1, 1){i} \position(2, 1){x} \position(1, 2){x} \position(2, 2){i} \position(1, 3){a} \position(2, 3){x} \position(1, 4){x} \position(2, 4){a} \stoppositioning

Re: [NTG-context] Position of image in tabulate

2018-09-25 Thread Floris van Manen
> On 22 Sep 2018, at 18:29, Hans Hagen wrote: > > On 9/22/2018 4:36 PM, Jan U. Hasecke wrote: >> Hi, >> with the following code >> \starttext >> \starttabulate[|w(.4\textwidth)|p|] >> \NC\externalfigure[cow.pdf][width=.3\textwidth] >> \NC \input ward\NC\NR >> \stoptabulate >> \stoptext >> the

Re: [NTG-context] Position of image in tabulate

2018-09-22 Thread Hans Hagen
On 9/22/2018 4:36 PM, Jan U. Hasecke wrote: Hi, with the following code \starttext \starttabulate[|w(.4\textwidth)|p|] \NC\externalfigure[cow.pdf][width=.3\textwidth] \NC \input ward\NC\NR \stoptabulate \stoptext the text input starts at the bottom edge of the image going further down. I

[NTG-context] Position of image in tabulate

2018-09-22 Thread Jan U. Hasecke
Hi, with the following code \starttext \starttabulate[|w(.4\textwidth)|p|] \NC\externalfigure[cow.pdf][width=.3\textwidth] \NC \input ward\NC\NR \stoptabulate \stoptext the text input starts at the bottom edge of the image going further down. I want the text to start at the top edge of the

Re: [NTG-context] Position of layer in foreground

2018-06-28 Thread Marcus Vinicius Mesquita
Thank you, Wolfgang. On Thu, Jun 28, 2018, 16:16 Wolfgang Schuster wrote: > > Marcus Vinicius Mesquita > 28. Juni 2018 um 01:23 > > Dear List, > > In the MWE below, I expected the numbers to appear above the cow figure. > What am I missing? > > > \definefont > [Title] > [SerifBold at 42pt] > >

Re: [NTG-context] Position of layer in foreground

2018-06-28 Thread Wolfgang Schuster
Marcus Vinicius Mesquita 28. Juni 2018 um 01:23 Dear List, In the MWE below, I expected the numbers to appear above the cow figure. What am I missing? \definefont [Title] [SerifBold at 42pt] \starttext \placefigure[][]{Cow}

[NTG-context] Position of layer in foreground

2018-06-27 Thread Marcus Vinicius Mesquita
Dear List, In the MWE below, I expected the numbers to appear above the cow figure. What am I missing? \definefont [Title] [SerifBold at 42pt] \starttext \placefigure[][]{Cow} {\externalfigure[cow][width=.5\textwidth]} \definelayer[myfigure][x=6cm,y=6cm,preset=middle]

Re: [NTG-context] Position of standard footnotes that are set-up in floats

2017-06-12 Thread Sebastian L.
Hi, thanks for your replies On 12/06/2017 16:08, Alan BRASLAU wrote: On Mon, 12 Jun 2017 15:46:06 +0200 Hans Hagen wrote: and create a footnote with the graphic's source, that I want to be placed as simple footnote at the bottom of the page. CTX, LuaTX do this just fine. ...

Re: [NTG-context] Position of standard footnotes that are set-up in floats

2017-06-12 Thread Alan BRASLAU
On Mon, 12 Jun 2017 15:46:06 +0200 Hans Hagen wrote: > > and create a footnote with the graphic's source, that I want to be > > placed as simple footnote at the bottom of the page. CTX, LuaTX do > > this just fine. ... > that's pretty hard to achieve (maybe some day) Are you

Re: [NTG-context] Position of standard footnotes that are set-up in floats

2017-06-12 Thread Hans Hagen
On 6/12/2017 1:38 PM, Sebastian L. wrote: Hello together, I have the following example: I place a simple float (a graphic) in the text within \startplacefigure...\stopplacefigure and create a footnote with the graphic's source, that I want to be placed as simple footnote at the bottom of

[NTG-context] Position of standard footnotes that are set-up in floats

2017-06-12 Thread Sebastian L.
Hello together, I have the following example: I place a simple float (a graphic) in the text within \startplacefigure...\stopplacefigure and create a footnote with the graphic's source, that I want to be placed as simple footnote at the bottom of the page. CTX, LuaTX do this just fine.

Re: [NTG-context] Position of prime for derivatives

2017-06-08 Thread Hans Hagen
On 6/8/2017 4:29 PM, Aditya Mahajan wrote: On Thu, 8 Jun 2017, Mikael P. Sundqvist wrote: And indeed, in luatex 1.05 the primes look fine again. The prime in the fraction is too low, but I take Hans' "Such is life" and use \over for the rare cases where I have primes inside fractions. I

Re: [NTG-context] Position of prime for derivatives

2017-06-08 Thread Aditya Mahajan
On Thu, 8 Jun 2017, Mikael P. Sundqvist wrote: And indeed, in luatex 1.05 the primes look fine again. The prime in the fraction is too low, but I take Hans' "Such is life" and use \over for the rare cases where I have primes inside fractions. I haven't followed the thread carefully, but there

Re: [NTG-context] Position of prime for derivatives

2017-06-08 Thread Mikael P. Sundqvist
On Thu, Jun 8, 2017 at 10:42 AM, luigi scarso wrote: > On Thu, Jun 8, 2017 at 10:39 AM, Mikael P. Sundqvist wrote: >> I get the same error with revision 6349 from >> https://serveur-svn.lri.fr/svn/modhel/luatex/branches/experimental/ , >> see below. But

Re: [NTG-context] Position of prime for derivatives

2017-06-08 Thread luigi scarso
On Thu, Jun 8, 2017 at 10:39 AM, Mikael P. Sundqvist wrote: > I get the same error with revision 6349 from > https://serveur-svn.lri.fr/svn/modhel/luatex/branches/experimental/ , > see below. But maybe we are OT on this list now, and should either go > to luatex list or private?

Re: [NTG-context] Position of prime for derivatives

2017-06-08 Thread Mikael P. Sundqvist
On Thu, Jun 8, 2017 at 10:28 AM, Mikael P. Sundqvist wrote: > On Thu, Jun 8, 2017 at 10:17 AM, luigi scarso wrote: >> On Thu, Jun 8, 2017 at 9:52 AM, Mikael P. Sundqvist wrote: >>> PS: the ./build.sh (Checked out revision 6287) runs

Re: [NTG-context] Position of prime for derivatives

2017-06-08 Thread Mikael P. Sundqvist
On Thu, Jun 8, 2017 at 10:17 AM, luigi scarso wrote: > On Thu, Jun 8, 2017 at 9:52 AM, Mikael P. Sundqvist wrote: >> PS: the ./build.sh (Checked out revision 6287) runs for a while, and >> then stops with an error like this (it is probably my fault): >>

Re: [NTG-context] Position of prime for derivatives

2017-06-08 Thread luigi scarso
On Thu, Jun 8, 2017 at 9:52 AM, Mikael P. Sundqvist wrote: > PS: the ./build.sh (Checked out revision 6287) runs for a while, and > then stops with an error like this (it is probably my fault): > > Makefile:368: recipe for target >

Re: [NTG-context] Position of prime for derivatives

2017-06-08 Thread Mikael P. Sundqvist
On Wed, Jun 7, 2017 at 11:03 PM, Hans Hagen wrote: > On 6/7/2017 9:57 PM, Mikael P. Sundqvist wrote: > >> In 2017.06.06 13:22 something is still not correct. > > i mentioned that you need a new engine (the garden has 1.0.5 binafies for > windows but other platforms need to be

Re: [NTG-context] Position of prime for derivatives

2017-06-07 Thread Hans Hagen
On 6/7/2017 9:57 PM, Mikael P. Sundqvist wrote: In 2017.06.06 13:22 something is still not correct. i mentioned that you need a new engine (the garden has 1.0.5 binafies for windows but other platforms need to be generated) Hans

Re: [NTG-context] Position of prime for derivatives

2017-06-07 Thread Mikael P. Sundqvist
observation is correct, but using \over instead of \frac >>> yields the correct behavior. Please try the following sample: >>> >>> %%% begin derivatives-prime-4.tex >>> \setupbodyfont[lucidaot] >>> >>> \starttext >>> >>> Compare th

Re: [NTG-context] Position of prime for derivatives

2017-06-07 Thread Mikael P. Sundqvist
ing sample: >> >> %%% begin derivatives-prime-4.tex >> \setupbodyfont[lucidaot] >> >> \starttext >> >> Compare the position of the prime sign in $f'/g$ in these two expressions: >> the first one using \type{{... \over ...}} >> \startformula &

Re: [NTG-context] Position of prime for derivatives

2017-06-05 Thread Hans Hagen
On 6/4/2017 11:06 PM, Otared Kavian wrote: Hi Mikael, Indeed your observation is correct, but using \over instead of \frac yields the correct behavior. Please try the following sample: %%% begin derivatives-prime-4.tex \setupbodyfont[lucidaot] \starttext Compare the position of the prime

Re: [NTG-context] Position of prime for derivatives

2017-06-04 Thread Otared Kavian
Hi Mikael, Indeed your observation is correct, but using \over instead of \frac yields the correct behavior. Please try the following sample: %%% begin derivatives-prime-4.tex \setupbodyfont[lucidaot] \starttext Compare the position of the prime sign in $f'/g$ in these two expressions

Re: [NTG-context] Position of prime for derivatives

2017-06-04 Thread Mikael P. Sundqvist
h] >>>>[file:STIX2Math.otf] >>>>[features=math\mathsizesuffix] >>>>\definefontsynonym [\s!MathRoman] [Stix2Math] >>>> [\s!features={\s!math\mathsizesuffix,mathextra,stixtwo-math-feature},\s!designsize=\s!auto] >>>>\

Re: [NTG-context] Position of prime for derivatives

2017-05-25 Thread Mathias Schickel
atures=math\mathsizesuffix] >>>\definefontsynonym [\s!MathRoman] [Stix2Math] >>> [\s!features={\s!math\mathsizesuffix,mathextra,stixtwo-math-feature},\s!designsize=\s!auto] >>>\stoptypescript >>> >>>\starttypescript [Stix2] >>>\define

Re: [NTG-context] Position of prime for derivatives

2017-05-25 Thread Mikael P. Sundqvist
!default] >> \definetypeface [\typescriptone] [\s!mm] [\s!math] [Stix2] >> [\s!default] >> \stoptypescript >> >> \stoptypescriptcollection >> >> \protect >> >> \setupbodyfont[Stix2] >> >> \starttext >> % >> Compare

Re: [NTG-context] Position of prime for derivatives

2017-05-23 Thread Mikael P. Sundqvist
> [\s!default] > \stoptypescript > > \stoptypescriptcollection > > \protect > > \setupbodyfont[Stix2] > > \starttext > % > Compare $f'$ to $(f')$ and to $f''$, $(f'')$, $f^{''}$ and $(f^{''})$. > % > \stoptext > %% end of example > > > &g

Re: [NTG-context] Position of prime for derivatives

2017-05-23 Thread Mathias Schickel
script \stoptypescriptcollection \protect \setupbodyfont[Stix2] \starttext % Compare $f'$ to $(f')$ and to $f''$, $(f'')$, $f^{''}$ and $(f^{''})$. % \stoptext %% end of example > Am 22.05.2017 um 09:50 schrieb Otared Kavian <ota...@gmail.com>: > > Hi Mikael, > > You are correct, the position o

Re: [NTG-context] Position of prime for derivatives

2017-05-22 Thread Otared Kavian
Hi Mikael, You are correct, the position of \prime depends on whether there is a next character or not after it, and it seems that this has an effect on its position for characters having a subscript as in $f_{1}''(x) \neq f''_{1}(x)$ $f'f''f'’'$ Best regards: OK > On 22

Re: [NTG-context] Position of prime for derivatives

2017-05-22 Thread Mikael P. Sundqvist
On Sun, May 21, 2017 at 10:29 PM, Otared Kavian wrote: > Hi Mikael, > > I agree with what you are reporting: the current behavior of the \prime > operator is not completely satisfying when using ConTeXt mkiv, while in mkii > it is the most satisfying (in my opinion…). > > The

Re: [NTG-context] Position of prime for derivatives

2017-05-21 Thread Otared Kavian
Hi Mikael, I agree with what you are reporting: the current behavior of the \prime operator is not completely satisfying when using ConTeXt mkiv, while in mkii it is the most satisfying (in my opinion…). The turn around consisting in using $f^{‘’}$ or $f^{\prime\prime}$, or even

Re: [NTG-context] Position of prime for derivatives

2017-05-21 Thread Mikael P. Sundqvist
On Sat, May 20, 2017 at 7:32 PM, Mikael P. Sundqvist wrote: > On Sat, May 20, 2017 at 3:33 PM, Mikael P. Sundqvist wrote: >> On Thu, May 18, 2017 at 9:50 AM, Mikael P. Sundqvist >> wrote: >>> Den 18 maj 2017 10:13 fm skrev "Otared Kavian"

Re: [NTG-context] Position of prime for derivatives

2017-05-20 Thread Mikael P. Sundqvist
On Sat, May 20, 2017 at 3:33 PM, Mikael P. Sundqvist wrote: > On Thu, May 18, 2017 at 9:50 AM, Mikael P. Sundqvist wrote: >> Den 18 maj 2017 10:13 fm skrev "Otared Kavian" : >> >> Hi Hans, >> >> Thanks for your explanations. >> When using

Re: [NTG-context] Position of prime for derivatives

2017-05-20 Thread Mikael P. Sundqvist
On Thu, May 18, 2017 at 9:50 AM, Mikael P. Sundqvist wrote: > Den 18 maj 2017 10:13 fm skrev "Otared Kavian" : > > Hi Hans, > > Thanks for your explanations. > When using constructions such as $f’’_2(x)$, I will adapt my input in order > to get what seems

Re: [NTG-context] Position of prime for derivatives

2017-05-18 Thread Mikael P. Sundqvist
Den 18 maj 2017 10:13 fm skrev "Otared Kavian" : Hi Hans, Thanks for your explanations. When using constructions such as $f’’_2(x)$, I will adapt my input in order to get what seems correct. Best regards: OK > On 17 May 2017, at 17:17, Hans Hagen wrote: > >

Re: [NTG-context] Position of prime for derivatives

2017-05-18 Thread Otared Kavian
Hi Hans, Thanks for your explanations. When using constructions such as $f’’_2(x)$, I will adapt my input in order to get what seems correct. Best regards: OK > On 17 May 2017, at 17:17, Hans Hagen wrote: > > On 5/17/2017 8:35 AM, Otared Kavian wrote: >> Hi Hans, >> >>

Re: [NTG-context] Position of prime for derivatives

2017-05-17 Thread Hans Hagen
On 5/17/2017 8:35 AM, Otared Kavian wrote: Hi Hans, Thanks for having fixed the behavior of the prime in the latest beta release (ConTeXt version 2017.05.15 21:48). However, as you may see in the two attached PDF files, the result is still incorrect when one types for example $f_2’’(x)$,

[NTG-context] Position of prime for derivatives

2017-05-17 Thread Otared Kavian
Hi Hans, Thanks for having fixed the behavior of the prime in the latest beta release (ConTeXt version 2017.05.15 21:48). However, as you may see in the two attached PDF files, the result is still incorrect when one types for example $f_2’’(x)$, which should give the same result as

Re: [NTG-context] position of linenumbering

2016-10-12 Thread Pablo Rodriguez
On 10/12/2016 06:03 PM, Wolfgang Schuster wrote: >> Pablo Rodriguez 12. Oktober 2016 um 16:38 >> [...] >> According to the description from page 301 in i-context.pdf, >> \startlinenumbering ... \stoplinenumbering inherit from >> \setuplinenumbering. > > I changed it, valid keys are continue,

Re: [NTG-context] position of linenumbering

2016-10-12 Thread Hans Hagen
On 10/12/2016 5:58 PM, Thomas A. Schmitz wrote: On 12.10.2016 16:38, Pablo Rodriguez wrote: Wolfgang, your approach is right, but hasn’t Thomas hit a bug? According to the description from page 301 in i-context.pdf, \startlinenumbering ... \stoplinenumbering inherit from \setuplinenumbering.

Re: [NTG-context] position of linenumbering

2016-10-12 Thread Wolfgang Schuster
Pablo Rodriguez 12. Oktober 2016 um 16:38 Wolfgang, your approach is right, but hasn’t Thomas hit a bug? It’s a limitation of the way how linenumbering works. The numbers are added before the shipout of the page but on the page where the numer end the local settings are

Re: [NTG-context] position of linenumbering

2016-10-12 Thread Thomas A. Schmitz
On 12.10.2016 16:38, Pablo Rodriguez wrote: Wolfgang, your approach is right, but hasn’t Thomas hit a bug? According to the description from page 301 in i-context.pdf, \startlinenumbering ... \stoplinenumbering inherit from \setuplinenumbering. Thanks Wolfgang, this solution works (I must

Re: [NTG-context] position of linenumbering

2016-10-12 Thread Pablo Rodriguez
On 10/12/2016 04:25 PM, Wolfgang Schuster wrote: >> Thomas A. Schmitz 12. Oktober 2016 um 16:18 >> >> Hi Otared, >> >> thanks for your suggestion, but it only shifts the problem elsewhere >> without solving it. New example (I need several different >> linenumbering setups in my real word document

Re: [NTG-context] position of linenumbering

2016-10-12 Thread Wolfgang Schuster
Thomas A. Schmitz 12. Oktober 2016 um 16:18 Hi Otared, thanks for your suggestion, but it only shifts the problem elsewhere without solving it. New example (I need several different linenumbering setups in my real word document so I can't put a general

Re: [NTG-context] position of linenumbering

2016-10-12 Thread Thomas A. Schmitz
On 12.10.2016 15:48, Otared Kavian wrote: Hi Thomas, It seems that if you use \setuplinenumbering the issue is fixed: please have a look here: \setuppapersize [A6] \setuplinenumbering[location=text,distance=0.5cm] \starttext \startlinenumbering \dorecurse{2}{\input tufte}

Re: [NTG-context] position of linenumbering

2016-10-12 Thread Otared Kavian
\input tufte} > > \stoplinenumbering > > dummy > > \stoptext > > on the second page, the position of the linenumbering changes and does not > follow the "distance" setting. Can this be fixed? And if yes, how? > > Thanks and best wishes > > Thomas > __

[NTG-context] position of linenumbering

2016-10-12 Thread Thomas A. Schmitz
Hi all, consider this example: \setuppapersize [A6] \starttext \startlinenumbering [location=text,distance=0.5cm] \dorecurse{2}{\input tufte} \stoplinenumbering dummy \stoptext on the second page, the position of the linenumbering changes and does not follow the "distance" se

Re: [NTG-context] after with fixed position

2016-05-01 Thread Pablo Rodriguez
On 05/01/2016 04:32 PM, Aditya Mahajan wrote: > On Sun, 1 May 2016, Pablo Rodriguez wrote: > >> For future reference (and replying to myself), the solution may read: > > OT, but ... > >>\define[2]\chapterframe{\framed[frame=off, height={10em}, >>align=high]{#2}} > > you can define

Re: [NTG-context] after with fixed position

2016-05-01 Thread Aditya Mahajan
On Sun, 1 May 2016, Pablo Rodriguez wrote: For future reference (and replying to myself), the solution may read: OT, but ... \define[2]\chapterframe{\framed[frame=off, height={10em}, align=high]{#2}} you can define a new frame using: \defineframed[chapterframe][frame=off,

Re: [NTG-context] after with fixed position

2016-05-01 Thread Pablo Rodriguez
On 03/16/2016 03:35 PM, Pablo Rodriguez wrote: > Dear list, > > I have the following sample: > > \showgrid > \setuphead[chapter][after={\blank[10*big]}] > \starttext > \chapter{Knuth} > \input knuth > \chapter{Zapf} > \input zapf > \chapter{Knuth\\\&\\Zapf} >

Re: [NTG-context] How to center \framed on a position?

2016-04-06 Thread Pablo Rodriguez
Lukáš, here you have the code: \setuplayout[page] \definelayer[mybg][position=middle, location=middle] \setlayer[mybg] [x=.5\paperwidth,y=.5\paperheight] {\framed [frame=on,offset=5mm,width=fit,rulewidth=2mm] {\setupbodyfont[10mm,sans]\bf Some text} } \se

[NTG-context] How to center \framed on a position?

2016-04-06 Thread Procházka Lukáš Ing .
Hello, how to center vertically and horizontally a \framed text at the layer origin? I'm not able to figure it out... Here's my code: \setuplayout[page] \definelayer[mybg] \setlayer[mybg] [x=\dimexpr.5\paperwidth\relax,y=\dimexpr.5\paperheight\relax,] {\framed

[NTG-context] after with fixed position

2016-03-19 Thread Pablo Rodriguez
Dear list, I have the following sample: \showgrid \setuphead[chapter][after={\blank[10*big]}] \starttext \chapter{Knuth} \input knuth \chapter{Zapf} \input zapf \chapter{Knuth\\\&\\Zapf} \input zapf\par\input zapf \stoptext How could I have the text after

Re: [NTG-context] Absolute position in table cell

2016-02-17 Thread Volker Mische
On 02/16/2016 10:49 PM, Hans Hagen wrote: > On 2/16/2016 10:29 PM, Volker Mische wrote: >> On 02/16/2016 05:40 PM, Wolfgang Schuster wrote: Volker Mische 16. Februar 2016 um 17:21 Thanks a lot that works. I've a follow up question. I'd

Re: [NTG-context] Absolute position in table cell

2016-02-16 Thread Hans Hagen
On 2/16/2016 10:29 PM, Volker Mische wrote: On 02/16/2016 05:40 PM, Wolfgang Schuster wrote: Volker Mische 16. Februar 2016 um 17:21 Thanks a lot that works. I've a follow up question. I'd like to wrap the `\setgvariable` in a a paragraph like thing. I found

Re: [NTG-context] Absolute position in table cell

2016-02-16 Thread Volker Mische
On 02/16/2016 05:40 PM, Wolfgang Schuster wrote: >> Volker Mische >> 16. Februar 2016 um 17:21 >> >> Thanks a lot that works. >> >> I've a follow up question. I'd like to wrap the `\setgvariable` in a a >> paragraph like thing. I found out about annotations, which

Re: [NTG-context] Absolute position in table cell

2016-02-16 Thread Wolfgang Schuster
Volker Mische 16. Februar 2016 um 17:21 Thanks a lot that works. I've a follow up question. I'd like to wrap the `\setgvariable` in a a paragraph like thing. I found out about annotations, which look like what I've after. Though sadly I get an error message (!

Re: [NTG-context] Absolute position in table cell

2016-02-16 Thread Volker Mische
On 02/15/2016 11:45 AM, Hans Hagen wrote: > On 2/15/2016 11:10 AM, Volker Mische wrote: >> On 02/15/2016 10:58 AM, Hans Hagen wrote: >>> On 2/15/2016 10:32 AM, Volker Mische wrote: >>>> Hi all, >>>> >>>> I'd like to position some text in a corn

Re: [NTG-context] Absolute position in table cell

2016-02-15 Thread Hans Hagen
On 2/15/2016 11:10 AM, Volker Mische wrote: On 02/15/2016 10:58 AM, Hans Hagen wrote: On 2/15/2016 10:32 AM, Volker Mische wrote: Hi all, I'd like to position some text in a corner of a natural table cell. I got as far as being able to put the same text on every cell (a "p" in t

Re: [NTG-context] Absolute position in table cell

2016-02-15 Thread Volker Mische
On 02/15/2016 10:58 AM, Hans Hagen wrote: > On 2/15/2016 10:32 AM, Volker Mische wrote: >> Hi all, >> >> I'd like to position some text in a corner of a natural table cell. I >> got as far as being able to put the same text on every cell (a "p" in >>

Re: [NTG-context] Absolute position in table cell

2016-02-15 Thread Hans Hagen
On 2/15/2016 10:32 AM, Volker Mische wrote: Hi all, I'd like to position some text in a corner of a natural table cell. I got as far as being able to put the same text on every cell (a "p" in the example). Now my problem is, how do I specify the contents of the overlay/layer on a per

[NTG-context] Absolute position in table cell

2016-02-15 Thread Volker Mische
Hi all, I'd like to position some text in a corner of a natural table cell. I got as far as being able to put the same text on every cell (a "p" in the example). Now my problem is, how do I specify the contents of the overlay/layer on a per cell basis? Best for me would be if I co

Re: [NTG-context] Weird position of equation numbers for long equations

2015-05-16 Thread Mojca Miklavec
On Fri, May 15, 2015 at 7:07 PM, luigi scarso wrote: a patch is available in trunk, rev. 5244 (not in TeXLive 2015) . Thank you, but something seems wrong. \starttext \hsize=2cm \dorecurse{10}{hi } $$a\eqno(a)$$ \placeformula \startformula a \stopformula $$a^2+b^2=c^2\eqno(b)$$

Re: [NTG-context] Weird position of equation numbers for long equations

2015-05-16 Thread Hans Hagen
On 5/16/2015 6:58 PM, Mojca Miklavec wrote: \hsize=2cm $$a^2+b^2=c^2\eqno(b)$$ It's what happens with a too wide formula + number (in context you see an extra shift as we also have some distance between the formula and number). It's sort of a side effect of lack of control over what

Re: [NTG-context] Weird position of equation numbers for long equations

2015-05-15 Thread luigi scarso
On Fri, May 15, 2015 at 12:06 AM, Hans Hagen pra...@wxs.nl wrote: On 5/14/2015 7:56 PM, luigi scarso wrote: Ah ok Following the link above for the tracker 807, I have made the patch if ((eqno_box != null) (eqno_w == 0) !l) { tail_append(new_penalty(inf_penalty));

[NTG-context] Weird position of equation numbers for long equations

2015-05-14 Thread Mojca Miklavec
Hi, I suspect that the equation numbering in attachment (eq-with-chapter.png) is wrong. Shouldnt't the number be positioned on the right (not on the left)? And in case that this positioning on the left is intentional: is there any way or setting to force the equation number to be moved to the

Re: [NTG-context] Weird position of equation numbers for long equations

2015-05-14 Thread Aditya Mahajan
On Thu, 14 May 2015, luigi scarso wrote: On Thu, May 14, 2015 at 5:45 PM, Aditya Mahajan adit...@umich.edu wrote: On Thu, 14 May 2015, Mojca Miklavec wrote: Hi, I suspect that the equation numbering in attachment (eq-with-chapter.png) is wrong. Shouldnt't the number be positioned on the

Re: [NTG-context] Weird position of equation numbers for long equations

2015-05-14 Thread luigi scarso
On Thu, May 14, 2015 at 5:45 PM, Aditya Mahajan adit...@umich.edu wrote: On Thu, 14 May 2015, Mojca Miklavec wrote: Hi, I suspect that the equation numbering in attachment (eq-with-chapter.png) is wrong. Shouldnt't the number be positioned on the right (not on the left)? And in case that

Re: [NTG-context] Weird position of equation numbers for long equations

2015-05-14 Thread luigi scarso
On Thu, May 14, 2015 at 7:28 PM, Aditya Mahajan adit...@umich.edu wrote: On Thu, 14 May 2015, luigi scarso wrote: On Thu, May 14, 2015 at 5:45 PM, Aditya Mahajan adit...@umich.edu wrote: On Thu, 14 May 2015, Mojca Miklavec wrote: Hi, I suspect that the equation numbering in

Re: [NTG-context] Weird position of equation numbers for long equations

2015-05-14 Thread Alan BRASLAU
. I'll just put \cite[luatex_807] next to the equation then to make my supervisor happy ;) @BUGREPORT{luatex_807, title = Bad position equation number Lualatex, journal = LuaTeX bug tracker, number = 807, year = 2013, month = feb, url = http://tracker.luatex.org

Re: [NTG-context] Weird position of equation numbers for long equations

2015-05-14 Thread Mojca Miklavec
{luatex_807, title = Bad position equation number Lualatex, journal = LuaTeX bug tracker, number = 807, year = 2013, month = feb, url = http://tracker.luatex.org/view.php?id=807;, } Mojca ___ If your

Re: [NTG-context] Weird position of equation numbers for long equations

2015-05-14 Thread Aditya Mahajan
On Thu, 14 May 2015, Mojca Miklavec wrote: Hi, I suspect that the equation numbering in attachment (eq-with-chapter.png) is wrong. Shouldnt't the number be positioned on the right (not on the left)? And in case that this positioning on the left is intentional: is there any way or setting to

Re: [NTG-context] Weird position of equation numbers for long equations

2015-05-14 Thread Alan BRASLAU
On Thu, 14 May 2015 15:54:16 +0200 Mojca Miklavec mojca.miklavec.li...@gmail.com wrote: Hi, I suspect that the equation numbering in attachment (eq-with-chapter.png) is wrong. Shouldnt't the number be positioned on the right (not on the left)? And in case that this positioning on the left

Re: [NTG-context] Weird position of equation numbers for long equations

2015-05-14 Thread Hans Hagen
On 5/14/2015 7:56 PM, luigi scarso wrote: Ah ok Following the link above for the tracker 807, I have made the patch if ((eqno_box != null) (eqno_w == 0) !l) { tail_append(new_penalty(inf_penalty)); shift_amount(eqno_box) = line_s + line_w - eqno_w;

[NTG-context] line numbers position

2015-04-16 Thread Pablo Rodriguez
Dear list, I have the following sample: \mainlanguage[es] \setuppapersize[A7] \setuppagenumbering[location=,] \starttext \startlinenumbering \input cervantes-es \stoplinenumbering \stoptext Compiled with latest beta, line numbers are partly off the page:

Re: [NTG-context] line numbers position

2015-04-16 Thread Hans Hagen
On 4/16/2015 7:14 PM, Pablo Rodriguez wrote: Dear list, I have the following sample: \mainlanguage[es] \setuppapersize[A7] \setuppagenumbering[location=,] \starttext \startlinenumbering \input cervantes-es \stoplinenumbering \stoptext Compiled with

Re: [NTG-context] line numbers position

2015-04-16 Thread Pablo Rodriguez
On 04/16/2015 10:50 PM, Hans Hagen wrote: On 4/16/2015 7:14 PM, Pablo Rodriguez wrote: [...] Compiled with latest beta, line numbers are partly off the page: http://www.ousia.tk/latestbeta-linenumbers.png. Compiled with beta from 2014.03.07 11:42, they fit in the page:

Re: [NTG-context] line numbers position

2015-04-16 Thread Hans Hagen
On 4/16/2015 11:32 PM, Pablo Rodriguez wrote: On 04/16/2015 10:50 PM, Hans Hagen wrote: On 4/16/2015 7:14 PM, Pablo Rodriguez wrote: [...] Compiled with latest beta, line numbers are partly off the page: http://www.ousia.tk/latestbeta-linenumbers.png. Compiled with beta from 2014.03.07 11:42,

Re: [NTG-context] position of qed symbol in proofs

2014-11-11 Thread Mikael P. Sundqvist
On Mon, Nov 10, 2014 at 11:22 AM, Otared Kavian ota...@gmail.com wrote: On 10 Nov 2014, at 10:58, Hans Hagen pra...@wxs.nl wrote: […] i'm not surprised: eqno only works in a formula and closecommand is not in the formula ... it would not align properly anyway Oh… I see. So there is not

Re: [NTG-context] position of qed symbol in proofs

2014-11-11 Thread Hans Hagen
On 11/11/2014 2:55 PM, Mikael P. Sundqvist wrote: On Mon, Nov 10, 2014 at 11:22 AM, Otared Kavian ota...@gmail.com wrote: On 10 Nov 2014, at 10:58, Hans Hagen pra...@wxs.nl wrote: […] i'm not surprised: eqno only works in a formula and closecommand is not in the formula ... it would not

Re: [NTG-context] position of qed symbol in proofs

2014-11-10 Thread Hans Hagen
On 11/10/2014 6:54 AM, Otared Kavian wrote: Hi Mikael, Actually I just tried your example with the ConTeXt version on TeX Live, as well as with a copy dating back to 2014-02-14, and both behaved in the same wrong way regarding the closesymbol and closecommand. So in \setupenumeration[proof]

Re: [NTG-context] position of qed symbol in proofs

2014-11-10 Thread Otared Kavian
Hi Hans, Thanks for your attention. However the following doesn’t result in what is expected: %% begin proof-qed.tex \defineenumeration [proof] [number=no, closesymbol=\mathematics{\square}, closecommand=\mathortext\eqno\wordright] \starttext \startproof This is a simple proof.

Re: [NTG-context] position of qed symbol in proofs

2014-11-10 Thread Hans Hagen
On 11/10/2014 10:31 AM, Otared Kavian wrote: Hi Hans, Thanks for your attention. However the following doesn’t result in what is expected: %% begin proof-qed.tex \defineenumeration [proof] [number=no, closesymbol=\mathematics{\square}, closecommand=\mathortext\eqno\wordright]

Re: [NTG-context] position of qed symbol in proofs

2014-11-10 Thread Otared Kavian
On 10 Nov 2014, at 10:58, Hans Hagen pra...@wxs.nl wrote: […] i'm not surprised: eqno only works in a formula and closecommand is not in the formula ... it would not align properly anyway Oh… I see. So there is not anymore the possibility to finish an enumeration (such as « proof » ine

Re: [NTG-context] position of qed symbol in proofs

2014-11-09 Thread Mikael P. Sundqvist
On Sat, Nov 8, 2014 at 5:43 PM, Otared Kavian ota...@gmail.com wrote: Hi Mikael, In my files I have the following which used to work, but it doesn’t work as expected anymore, as you point out \defineenumeration[proof][text=Proof.] \setupenumeration[proof] [number=no,

Re: [NTG-context] position of qed symbol in proofs

2014-11-09 Thread Otared Kavian
Hi Mikael, Actually I just tried your example with the ConTeXt version on TeX Live, as well as with a copy dating back to 2014-02-14, and both behaved in the same wrong way regarding the closesymbol and closecommand. So in \setupenumeration[proof] [number=no,

  1   2   >