[NTG-context] Re: blank line and \placefigure

2024-04-06 Thread Thomas Meyer
] \starttext \input{knuth} \startlinecorrection \placefigure[left, none] []{}\externalfigure[cow.pdf][width=40mm] \input{knuth} \stoplinecorrection \stoptext Thomas Am 06.04.24 um 13:43 schrieb Wolfgang Schuster: Henning Hraban Ramm schrieb am 06.04.2024 um 12:56: Am 06.04.24 um 12:48 schrieb Thomas

[NTG-context] Re: what about "textdisplay"?

2024-04-02 Thread Hans Hagen via ntg-context
a similar effect as \starttextdisplay. \usemodule[visual] \setupfloat[figure][location=left] \starttext \fakewords{10}{20} \startlinecorrection \fakeimage{4cm}{3cm}{6cm}{4cm} \stoplinecorrection \fakewords{10}{20} \blank[2*line] \fakewords{10}{20} \startplacefigure[location={force,none}] \fakeimage

[NTG-context] Re: what about "textdisplay"?

2024-04-01 Thread Henning Hraban Ramm
[visual] \setupfloat[figure][location=left] \starttext \fakewords{10}{20} \startlinecorrection \fakeimage{4cm}{3cm}{6cm}{4cm} \stoplinecorrection \fakewords{10}{20} \blank[2*line] \fakewords{10}{20} \startplacefigure[location={force,none}] \fakeimage{4cm}{3cm}{6cm}{4cm} \stopplacefigure \fakewords

[NTG-context] Re: what about "textdisplay"?

2024-04-01 Thread Wolfgang Schuster
] \starttext \fakewords{10}{20} \startlinecorrection \fakeimage{4cm}{3cm}{6cm}{4cm} \stoplinecorrection \fakewords{10}{20} \blank[2*line] \fakewords{10}{20} \startplacefigure[location={force,none}] \fakeimage{4cm}{3cm}{6cm}{4cm} \stopplacefigure \fakewords{10}{20} \blank[2*line] \fakewords{10}{20

[NTG-context] Re: context version 20240118 ("Registerhaltigkeit")

2024-01-23 Thread Thomas Meyer
paragraph is not on grid in the new and the old version (and comma). Grid is not as easy as it looks first. Low level tricks like fills or skips can mess it up. Maybe \startlinecorrection helps… (No, it doesn’t.) It also doesn’t help to add a \blank or \par after \vfill. I know it, i

[NTG-context] Re: context version 20240118 ("Registerhaltigkeit")

2024-01-22 Thread Wolfgang Schuster
. Maybe \startlinecorrection helps… (No, it doesn’t.) It also doesn’t help to add a \blank or \par after \vfill. I know it, i tried it. And I tried \snaptogrid \vbox {}, it doesn't work too. Only counting empty rows and set the number in \blank[ *big] works! You need a fixed space

[NTG-context] Re: context version 20240118 ("Registerhaltigkeit")

2024-01-22 Thread Thomas Meyer
and mood of the few who can answer your questions. So the problem is still \hfill that the last paragraph is not on grid in the new and the old version (and comma). Grid is not as easy as it looks first. Low level tricks like fills or skips can mess it up. Maybe \startlinecorrection helps

[NTG-context] Re: context version 20240118 ("Registerhaltigkeit")

2024-01-22 Thread Henning Hraban Ramm
the problem is still \hfill that the last paragraph is not on grid in the new and the old version (and comma). Grid is not as easy as it looks first. Low level tricks like fills or skips can mess it up. Maybe \startlinecorrection helps… (No, it doesn’t.) It also doesn’t help to add a \blank

[NTG-context] Suggestions and problems of the manuals

2024-01-17 Thread Gerion Entrup
rmation. 362 Here are some differences in rendering. In \OPENTYPE\ the super- and subscript of 363 an integral are moved right and left half of the italic correction. 364 365 \startlinecorrection 366 \startcombination[6*1]

[NTG-context] Re: learning about the grid

2023-11-19 Thread Pablo Rodriguez via ntg-context
ff inside: \startlinecorrection ... \stoplinecorrection The problem is that your interline space is too small to prevent line collapsing. ex is the height of the lowercase 'x'. Are you sure that your school doesn’t require 1.3em (height of capital 'M') as interline space instead? You can get

[NTG-context] Re: Large unwanted white space

2023-10-22 Thread Fabrice Couvreur
n: > > drawdot(0,i*u) shifted(t*u,0) withcolor \MPcolor{blue}; > >endfor > >endgroup > >enddef; > > \stopMPcode > > __ %horizontal > line > > % big unwanted w

[NTG-context] Re: Large unwanted white space

2023-10-21 Thread Hans Hagen
% big unwanted white space \starttext % \startex First exercise \startlinecorrection[blank] \startmidaligned \startcombination[1*2] {\startMPcode Suite(2,0); cross(1,1); Suite(4,4); cross(2,6

[NTG-context] Large unwanted white space

2023-10-21 Thread Fabrice Couvreur
) shifted(t*u,0) withcolor \MPcolor{blue}; endfor endgroup enddef; \stopMPcode __ %horizontal line % big unwanted white space \starttext % \startex First exercise \startlinecorrection[blank] \startmidaligned

Re: [NTG-context] Page break with placement of a figure at the bottom of the page

2022-11-13 Thread Fabrice Couvreur via ntg-context
a Les termes de cette suite sont itérés par la fonction \m{f\,\colon x \longmapsto \sqrt{x+3}} qui est définie sur \intervalfo{-3}{+\infty}, et dont la représentation graphique \m{C_f} est donnée ci-après. \startlinecorrection[blank] \startmidaligned \externalfigure[spirale.pd

Re: [NTG-context] About macro numberstriped ()

2022-10-02 Thread Fabrice Couvreur via ntg-context
; On Sat, Oct 1, 2022 at 7:43 PM Fabrice Couvreur via ntg-context > wrote: > > > > Hi Hans, > > When the rectangles are not identical, how to have the same type of > hatching in both ? > > Thanks. > > Fabrice > > > > > > \starttext > > \st

Re: [NTG-context] About macro numberstriped ()

2022-10-01 Thread Mikael Sundqvist via ntg-context
Hi, Is this what you are looking for? On Sat, Oct 1, 2022 at 7:43 PM Fabrice Couvreur via ntg-context wrote: > > Hi Hans, > When the rectangles are not identical, how to have the same type of hatching > in both ? > Thanks. > Fabrice > > > \starttext &g

Re: [NTG-context] About macro numberstriped ()

2022-10-01 Thread Fabrice Couvreur via ntg-context
Hi Hans, When the rectangles are not identical, how to have the same type of hatching in both ? Thanks. Fabrice \starttext \startlinecorrection[blank] \startmidaligned \switchtobodyfont[9pt] \startMPcode path p, q, r, b ; p := unitsquare xyscaled (4cm,4cm) ; z[0

Re: [NTG-context] Space before/after combinations + centring

2021-11-17 Thread Hans Hagen via ntg-context
are really just a way to package things, not meant for direct usage in the page flow \startlinecorrection[blank] ... \stoplinecorrection is one way to use them, or in floats; the same is true for natural tables Hans

Re: [NTG-context] upload

2021-10-22 Thread Hans Hagen via ntg-context
,width=\textheight]}} } \stoptext irr it's actually shown somewhere in a manual but the source also has this % \dostepwiserecurse{0}{360}{10} % {\startlinecorrection[blank] %\hbox % {\expanded{\setuprotate[rotation=\recurselevel]}% % \traceboxplacementtrue % \hbox to .2

[NTG-context] new upload

2021-08-24 Thread Hans Hagen via ntg-context
s.randomizer.getrepeatableseed("MyRandomM")}\par \dorecurse{10}{\MyRandom\par} \startlinecorrection \startMPcode randomseed := repeatablerandom("MyRandom") ; draw image ( for i=1 upto 1000 : d

[NTG-context] space before section titles sometimes disappears in grid mode

2021-08-12 Thread Henning Hraban Ramm via ntg-context
to the previous paragraph. If I include \startlinecorrection in "before" of \setuphead[section], in front of the \blank, the space is only reduced by 1 line, but I get the space also at the top of a column (or at the start of the article). If I put \startlinecorrection after \blank,

Re: [NTG-context] Add items to list with arbitrary page number

2021-03-18 Thread denis.maier
urelistprocessor{chapter:userdata} {\startlinecorrection[blank] \hfill \inframed{you really need to look at \structurelistuservariable{pagenumber}}% \stoplinecorrection} \placelist[chapter] \chapter{one} \writebetweenlist[chapter][location=here]{\blank page 4\blank} \writedatatolist[chapter][location=

Re: [NTG-context] Add items to list with arbitrary page number

2021-03-17 Thread Hans Hagen
} But how can you add an arbitrary page number ? It all depends on what you want to do \starttext \installstructurelistprocessor{chapter:userdata} {\startlinecorrection[blank] \hfill \inframed{you really need to look at \structurelistuservariable{pagenumber}}% \stoplinecorrection

Re: [NTG-context] Piecewise margin line

2020-11-20 Thread Johann Birnick
er to the line > height, so that the bar ends a line height before its default. > > That way you could keep > >  > \defineenumeration[Theorem][before=\startsidebar, after=stopsidebar] > > or, better: > > \definesidebar[Theorem][bottomoffset=...] > \defi

[NTG-context] Background color of a framedtext that covers floats

2020-04-08 Thread Fabrice Couvreur
\startframedtext [frame=off,width=\textwidth, background=color,backgroundcolor=fondpaille] \input tufte \startlinecorrection[blank] \startmidaligned \startxtable [align={lohi,middle}, option={stretch},framecolor=cyan, offset=0.8ex,background=color,backgroundcolor

Re: [NTG-context] Compile a file embedding modules with the lmtx engine

2020-04-03 Thread Hans Hagen
to use only lmtx which seems to be the future of ConteXt, but how do I do that ? Thank you. Fabrice \usemodule[tikz] \usetikzlibrary[calc] \starttext \startlinecorrection[blank]   \startmidaligned     \starttikzpicture        \draw[fill=orange!30e,draw=orange] (0,0) rectangle (5,5

[NTG-context] Compile a file embedding modules with the lmtx engine

2020-04-03 Thread Fabrice Couvreur
of ConteXt, but how do I do that ? Thank you. Fabrice \usemodule[tikz] \usetikzlibrary[calc] \starttext \startlinecorrection[blank] \startmidaligned \starttikzpicture \draw[fill=orange!30e,draw=orange] (0,0) rectangle (5,5); \stoptikzpicture \stopmidaligned \stoplinecorrection

Re: [NTG-context] macro that does not work (Metapost)

2020-02-11 Thread Fabrice Couvreur
d of () >>> >>> > ! Extra tokens will be flushed. >>> > >>> > { >>> > <*> suite{ >>> > 1,0}; suite(2,1); ; >>> > I've just read as much of that statement as I could fathom, >>> > so a semicolon s

Re: [NTG-context] macro that does not work (Metapost)

2020-02-11 Thread Mikael P. Sundqvist
t; so a semicolon should have been next. It's very puzzling... >> > but I'll try to get myself back together, by ignoring >> > everything up to the next `;'. Please insert a semicolon >> > now in front of anything that you don't want me to delete. >> > (See Chapter 27 of The

Re: [NTG-context] macro that does not work (Metapost)

2020-02-11 Thread Fabrice Couvreur
hom, > > so a semicolon should have been next. It's very puzzling... > > but I'll try to get myself back together, by ignoring > > everything up to the next `;'. Please insert a semicolon > > now in front of anything that you don't want me to delete. > > (See Chapte

Re: [NTG-context] macro that does not work (Metapost)

2020-02-11 Thread Hans Hagen
emicolon now in front of anything that you don't want me to delete. (See Chapter 27 of The METAFONTbook for an example.) [1] 13       enddef; 14     \stopMPcode 15     \starttext 16      On présente ci-dessous deux suites de dessins. 17           \startlinecorrection[blank] 18          

[NTG-context] macro that does not work (Metapost)

2020-02-11 Thread Fabrice Couvreur
lete. (See Chapter 27 of The METAFONTbook for an example.) [1] 13 enddef; 14 \stopMPcode 15 \starttext 16 On présente ci-dessous deux suites de dessins. 17 \startlinecorrection[blank] 18 \startmidaligned 19 \startcombination[2*1] 20

[NTG-context] page break

2020-02-09 Thread Fabrice Couvreur
=] \starttext \startitemize[n] \startitem {\it Pour tout événement \m{E}, on note \m{\overline{E}} l'évènement contraire de \m{E}.} \blank On considère l'arbre pondéré suivant : \startlinecorrection[blank] \startmidaligned

[NTG-context] A question about an algorithm environment

2019-10-28 Thread Fabrice Couvreur
\switchtobodyfont[11pt]}, framecolor=darkblue, corner=round] \definelines [algorithm] [space=on, before=\startalgorithmframe, after=\stopalgorithmframe] \starttext \startlinecorrection[blank] \startmidaligned \startalgorithm {\blue def nom} (argument1

Re: [NTG-context] columns and footnotes

2019-10-21 Thread Hans Hagen
Hi, just a remark: \startlinecorrection \stoplinecorrection is meant for stuff like \startlinecorrection \framed{} \stoplinecorrection \startlinecorrection \externalfigure[...] \stoplinecorrection \startlinecorrection \startMPcode ... \stopMPcode \stoplinecorrection in the main text

[NTG-context] Size of the font (Metapost + xtable)

2019-09-23 Thread Fabrice Couvreur
.7cm*dir 0) ; \stopMPcode \stopbuffer \starttext \startlinecorrection[blank] \startmidaligned \startxtable[align={middle,lohi},width=2.25cm] \startxrow \startxcell [background=color,backgroundcolor=pal

Re: [NTG-context] startnarrower and framed?

2019-08-21 Thread Hans Hagen
startnarrower commands. \startlinecorrection \dontleavehmode \framed{testing} \stoplinecorrection \stopnarrower \stoptext for gradients, see metafun and example sin test suite

Re: [NTG-context] grid+formulas: bug or expected behavior?

2019-07-26 Thread Luca Donetti
ils.pdf" manual: in all cases I've > > tried the text below the formula doesn't "sit" on the grid. > > Looking through my unread ML mails, I saw nobody answered to you. > > Did you try enclosing your formulae in \startlinecorrection ... > \stoplinecorrection ? >

Re: [NTG-context] grid+formulas: bug or expected behavior?

2019-07-24 Thread Henning Hraban Ramm
ot; manual: in all cases I've tried the text below the formula doesn't "sit" on the grid. Looking through my unread ML mails, I saw nobody answered to you. Did you try enclosing your formulae in \startlinecorrection ... \stoplinecorrection ? AFAIK that should do the job. Greetlin

Re: [NTG-context] Spacing after combination

2019-07-16 Thread Marco Patzer
On Tue, 16 Jul 2019 21:09:15 +0200 Wolfgang Schuster wrote: > A alternative to using floats is to put the combination in a > linecorrection environment, i.e. > > \startlinecorrection >   \startcombination [2*2] >   ... >   \stopcombination

Re: [NTG-context] Spacing after combination

2019-07-16 Thread Wolfgang Schuster
. \startlinecorrection   \startcombination [2*2]   ...   \stopcombination \stoplinecorrection or \startlinecorrection[blank]   \startcombination [2*2]   ...   \stopcombination \stoplinecorrection Wolfgang ___ If your question

Re: [NTG-context] Table, xtable and lua

2018-11-11 Thread Fabrice Couvreur
gt; > > > On 11/11/18 12:33 PM, Fabrice Couvreur wrote: > >> Hi, > >> I can not complete the first line of the table with the letters of the > >> alphabet. > >> Thank you. > >> Fabrice > >> > >> \starttext > >> \startlin

Re: [NTG-context] Table, xtable and lua

2018-11-11 Thread Wolfgang Schuster
Henri Menke schrieb am 11.11.18 um 01:25: On 11/11/18 12:33 PM, Fabrice Couvreur wrote: Hi, I can not complete the first line of the table with the letters of the alphabet. Thank you. Fabrice \starttext \startlinecorrection[blank] \startmidaligned \startluacode context.startxtable({"

Re: [NTG-context] Table, xtable and lua

2018-11-10 Thread Henri Menke
On 11/11/18 12:33 PM, Fabrice Couvreur wrote: > Hi, > I can not complete the first line of the table with the letters of the > alphabet. > Thank you. > Fabrice > > \starttext > \startlinecorrection[blank] > \startmidaligned > \startluacode > context.startxt

Re: [NTG-context] Table, xtable and lua

2018-11-10 Thread Henri Menke
On 11/11/18 12:33 PM, Fabrice Couvreur wrote: > Hi, > I can not complete the first line of the table with the letters of the > alphabet. > Thank you. > Fabrice > > \starttext > \startlinecorrection[blank] > \startmidaligned > \startluacode > context.startxt

[NTG-context] Table, xtable and lua

2018-11-10 Thread Fabrice Couvreur
Hi, I can not complete the first line of the table with the letters of the alphabet. Thank you. Fabrice \starttext \startlinecorrection[blank] \startmidaligned \startluacode context.startxtable({"align=middle, width=1.25cm"}) context.startxrow() context.startxcell({"width=0

Re: [NTG-context] avoiding space on top of a page

2018-02-11 Thread Wolfgang Schuster
right combination of \blank options... \setuplayout[grid=yes] \setuphead[section][ page=no, style={\bf}, before={\testpage[4]\startlinecorrection\blank[medium,back]}, after={\blank[small,max]\stoplinecorrection}, ] \setuphead [...] [before={\testpage[5]\blank[...]\startlinecorrection},

[NTG-context] avoiding space on top of a page

2018-02-11 Thread Henning Hraban Ramm
][ page=no, style={\bf}, before={\testpage[4]\startlinecorrection\blank[medium,back]}, after={\blank[small,max]\stoplinecorrection}, ] (Please find working example attached.) Greetlings, Hraban --- http://www.fiee.net http://wiki.contextgarden.net GPG Key ID 1C9B22FD sectiontest.tex

Re: [NTG-context] chapter setup with subtitle in margin

2018-01-24 Thread Mikael P. Sundqvist
has this indent. :-( > > > > Untested, but you have two spurious spaces in your code > > > > \define[2]\ChapterCmd{% > > \inouter{\framed[frame=off,align=flushleft]{% > >%\startlinecorrection > >\switchtobodyfont[rm,12pt] % <-- Here. Remove space before % >

Re: [NTG-context] chapter setup with subtitle in margin

2018-01-24 Thread Henning Hraban Ramm
ing. >> >> I could solve the subtitle placement with layers. >> >> But the chapter title still has this indent. :-( > > Untested, but you have two spurious spaces in your code > > \define[2]\ChapterCmd{% > \inouter{\framed[frame=off,align=flushleft]{% >

Re: [NTG-context] chapter setup with subtitle in margin

2018-01-24 Thread Aditya Mahajan
terCmd{% \inouter{\framed[frame=off,align=flushleft]{% %\startlinecorrection \switchtobodyfont[rm,12pt] % <-- Here. Remove space before % \structureuservariable{subtitle}}% %\stoplinecorrection }% << HERE: % was missing \framed[width=\textwidth,frame=off,

Re: [NTG-context] Risposta: line correction

2017-09-29 Thread Hans Hagen
On 9/29/2017 11:30 AM, MF wrote: Il giorno gio, 28/09/2017 alle 23.19 -0400, Rik Kabel ha scritto: Massi and list, There is one issue with \startlinecorrection of which you should be aware. The text is set in a vbox. If the block quotation it encloses (or whatever text it encloses) does

[NTG-context] Risposta: line correction

2017-09-29 Thread MF
Il giorno gio, 28/09/2017 alle 23.19 -0400, Rik Kabel ha scritto: > Massi and list, > > There is one issue with \startlinecorrection of which you should be > aware. The text is set in a vbox. If the block quotation it encloses > (or > whatever text it encloses) does not fit o

Re: [NTG-context] line correction

2017-09-29 Thread Hans Hagen
On 9/29/2017 12:35 AM, mf wrote: Thank you Henri, a slightly modified version of your solution works! This is what I wanted to achieve: \setuplayout[grid=both] \setupquotation[before={\switchtobodyfont[9pt]}] \starttext \showgrid \input knuth \startlinecorrection[halfline] \startquotation

Re: [NTG-context] line correction

2017-09-29 Thread Hans Hagen
knuth \startlinecorrection[halfline] \startquotation \input sapolsky \stopquotation \stoplinecorrection \input knuth $\displaystyle{\frac{1}{a + b}}$ \input knuth \stoptext --- Now the text snaps to the grid after the quotation, but the tall formula inside the text ov

Re: [NTG-context] line correction

2017-09-28 Thread Rik Kabel
Massi and list, There is one issue with \startlinecorrection  of which you should be aware. The text is set in a vbox. If the block quotation it encloses (or whatever text it encloses) does not fit on the current page, a page break will be generated. This makes it useless with quotes near

Re: [NTG-context] line correction

2017-09-28 Thread mf
Thank you Henri, a slightly modified version of your solution works! This is what I wanted to achieve: \setuplayout[grid=both] \setupquotation[before={\switchtobodyfont[9pt]}] \starttext \showgrid \input knuth \startlinecorrection[halfline] \startquotation   \input sapolsky \stopquotation

Re: [NTG-context] line correction

2017-09-28 Thread Henri
On Thu, 2017-09-28 at 23:30 +0200, mf wrote: > Thank you Henri. > > Now consider this: > --- > \setuplayout[grid=both] > \setupquotation[before={\switchtobodyfont[9pt]}] > > \starttext > \showgrid > > \input knuth > > \startlin

Re: [NTG-context] line correction

2017-09-28 Thread Henri
On Thu, 2017-09-28 at 23:30 +0200, mf wrote: > Thank you Henri. > > Now consider this: > --- > \setuplayout[grid=both] > \setupquotation[before={\switchtobodyfont[9pt]}] > > \starttext > \showgrid > > \input knuth > > \startlin

Re: [NTG-context] line correction

2017-09-28 Thread luigi scarso
On Thu, Sep 28, 2017 at 11:30 PM, mf <mass...@fastwebnet.it> wrote: > Thank you Henri. > > Now consider this: > --- > \setuplayout[grid=both] > \setupquotation[before={\switchtobodyfont[9pt]}] > > \starttext > \showgrid > > \input

Re: [NTG-context] line correction

2017-09-28 Thread mf
Thank you Henri. Now consider this: --- \setuplayout[grid=both] \setupquotation[before={\switchtobodyfont[9pt]}] \starttext \showgrid \input knuth \startlinecorrection[halfline] \startquotation   \input sapolsky \stopquotation \stoplinecorrection \input knuth

Re: [NTG-context] line correction

2017-09-28 Thread Henri
\showgrid > > \input knuth > > \startlinecorrection[halfline] > \startquotation >   \input sapolsky > \stopquotation > \stoplinecorrection > > \input knuth > > \stoptext > -- > > If I prepend a \setuplayout[grid=yes], it works, but grid snapping > introd

[NTG-context] line correction

2017-09-28 Thread MF
Hello list, I would like ConTeXt to snap normal text to grid after a quotation. This example does not work: -- \setupquotation[before={\switchtobodyfont[9pt]}] \starttext \showgrid \input knuth \startlinecorrection[halfline] \startquotation \input sapolsky \stopquotation

[NTG-context] Centering an algorithm

2017-09-23 Thread Fabrice Couvreur
, framecolor=darkblue, corner=round] \definelines [algorithm] [space=on, before=\startalgorithmframe, after=\stopalgorithmframe] \starttext \startlinecorrection[blank] \startmidaligned \startalgorithm Variables : \math{V} est un réel \math{N} est un entier naturel Début

Re: [NTG-context] Real number with Lua

2017-04-19 Thread Herbert Voss
\stopluacode \starttext \startlinecorrection[blank] \startmidaligned \bTABLE[width=2cm,offset=0.8ex,align={lohi,middle}] \bTR \bTD \math{P} \eTD \bTD \math{m} \eTD \bTD \math{g_M} \eTD \eTR \bTR \bTD \math{1.6} \eTD \bTD \math{0.4} \eTD \bTD \startluacode context(round(1.6/0.4,1))\stopluacode \eTD \eTR

Re: [NTG-context] Real number with Lua

2017-04-19 Thread Procházka Lukáš Ing .
stopluacode Best regards, Lukas On Wed, 19 Apr 2017 15:25:07 +0200, Fabrice Couvreur <fabrice1.couvr...@gmail.com> wrote: Hello, I do not know Lua but I'll learn later. How to display only 3 digits after the decimal point ? thank you, Fabrice \starttext \startlinecorrection[blank]

Re: [NTG-context] Real number with Lua

2017-04-19 Thread Otared Kavian
later. How to display only 3 digits after > the decimal point ? > thank you, > Fabrice > > \starttext > \startlinecorrection[blank] > \startmidaligned > \bTABLE[width=2cm,offset=0.8ex,align={lohi,middle}] > \bTR > \bTD \math{P} \eTD &g

[NTG-context] Real number with Lua

2017-04-19 Thread Fabrice Couvreur
Hello, I do not know Lua but I'll learn later. How to display only 3 digits after the decimal point ? thank you, Fabrice \starttext \startlinecorrection[blank] \startmidaligned \bTABLE[width=2cm,offset=0.8ex,align={lohi,middle}] \bTR \bTD \math{P} \eTD \bTD

[NTG-context] Align an item with the top of a picture

2017-04-17 Thread Fabrice Couvreur
Hello, How to align item a. With the top of the picture? Thank you Fabrice \useMPlibrary[dum] \starttext \startlinecorrection[blank] \startmidaligned \startcombination[2*1] {\externalfigure[dummy][height=6cm]}{} {\framedtext[location=hang,width=5cm,frame=off]{\startitemize[a] \item \item \item

Re: [NTG-context] Customize a table with Metafun

2017-02-15 Thread Fabrice Couvreur
alize] >> >> \setupTABLE[start] >>[align={middle,lohi},offset=0.5ex,width=1.5cm, >> foregroundstyle={\switchtobodyfont[10pt]}] >> \setupTABLE[1][2][background=Vertical] >> >> \stopsetups >> >> \starttext >>

Re: [NTG-context] Customize a table with Metafun

2017-02-14 Thread Lutz Haseloff
> >\defineoverlay[Vertical][\uniqueMPgraphic{Vertical}] > >\startsetups[table:initialize] > >\setupTABLE[start] > [align={middle,lohi},offset=0.5ex,width=1.5cm, >foregroundstyle={\switchtobodyfont[10pt]}] >\setupTABLE[1][2][background=Vertical] > >\stopse

[NTG-context] Customize a table with Metafun

2017-02-14 Thread Fabrice Couvreur
={\switchtobodyfont[10pt]}] \setupTABLE[1][2][background=Vertical] \stopsetups \starttext \startlinecorrection[blank] \startmidaligned \bTABLE[setups=table:initialize] \bTR \bTD \math{\red 0 {\rm (A)}} \eTD \bTD \math{+\infty} \eTD \eTR \bTR \bTD

Re: [NTG-context] grid snapping problem

2016-12-07 Thread Csikos Bela
text lines >>> should be aligned to grid lines but figure caption text should not. >>> >>> I have this code: >>> >>> \setuplayout[grid=yes] >>> \showgrid >>> >>> \setupcaptions[width=fit,align=last,headstyle={\ss\bfx},style={\ss\t

Re: [NTG-context] grid snapping problem

2016-12-06 Thread Henri Menke
; \showgrid >> >> \setupcaptions[width=fit,align=last,headstyle={\ss\bfx},style={\ss\tfx}] >> >> \starttext >> \subsection{Subsection title} >> \input dawkins >> \input dawkins >> >> %startlinecorrection >> \startbaselinecorrection \

Re: [NTG-context] grid snapping problem

2016-12-06 Thread Csikos Bela
> >\starttext >\subsection{Subsection title} >\input dawkins >\input dawkins > >%startlinecorrection >\startbaselinecorrection \setuplocalinterlinespace[line=2.2ex] >\placefigure[][]{\input zapf >}{\framed[width=0.6\textwidth,height=10ex]{figure}} >\stopbaselinecor

[NTG-context] grid snapping problem

2016-12-02 Thread Csikos Bela
\subsection{Subsection title} \input dawkins \input dawkins %startlinecorrection \startbaselinecorrection \setuplocalinterlinespace[line=2.2ex] \placefigure[][]{\input zapf }{\framed[width=0.6\textwidth,height=10ex]{figure}} \stopbaselinecorrection %stoplinecorrection \subsection{Subsection title

[NTG-context] Question about natural tables

2016-10-09 Thread Fabrice Couvreur
\textwidth] \setupTABLE[column][first][width=1.5cm] \setupTABLE[1][1,2,3][frame=off] \stopsetups \starttext \startlinecorrection[blank] \startmidaligned \bTABLE[setups=table:initialize] \bTR \bTD\eTD \bTD Algébriquement \eTD \bTD [nc=2] Graphiquement \eTD \eTR \bTR \bTD

Re: [NTG-context] Center a framedtext

2016-09-27 Thread Fabrice Couvreur
math{n} \math{u} prend la valeur \math{u\times 1,008} \math{S} prend la valeur \math{S +u} Fin Pour Sortie : Afficher \math{S} \stopalgorithm \stopmakeup \startlinecorrection[blank] \startmidaligned \externalfigure[cow.pdf] \stopmidaligned \stoplinecorrection \st

Re: [NTG-context] Center a framedtext

2016-09-25 Thread Wolfgang Schuster
ecolor=darkred, corner=round] \definelines [algorithm] [space=on, before=\startalgorithmframe, after=\stopalgorithmframe] \starttext \startlinecorrection[blank] \startmidaligned Replace these two lines with \startmakeup[standard][align=middle] \startalgorithm Initialisation : \math{u}

[NTG-context] Center a framedtext

2016-09-23 Thread Fabrice Couvreur
=\startalgorithmframe, after=\stopalgorithmframe] \starttext \startlinecorrection[blank] \startmidaligned \startalgorithm Initialisation : \math{u} prend la valeur 2\,000 \math{S} prend la valeur 2\,000 Traitement : Pour \math{i} allant de 2 à \math{n} \math{u} prend la valeur \math{u\times

Re: [NTG-context] Question about \startcombination \stopcombination

2016-08-18 Thread Hans Hagen
ntpicture enlarged 2mm ; \stopuseMPgraphic \defineoverlay [MyFrame] [\useMPgraphic{MyFrame}] \starttext \startlinecorrection[blank] \startmidaligned \startcombination[2*2] {\startMyFr

Re: [NTG-context] Question about \startcombination \stopcombination

2016-08-18 Thread Mohammad Hossein Bateni
shifted (2BodyFontSize,OverlayHeight-ypart center >>> p+.25ExHeight); >>> b := boundingbox p leftenlarged .5EmWidth rightenlarged .5EmWidth ; >>> fill OverlayBox withcolor \MPcolor{MyColorA}; >>> fill b withcolor darkred ; >>> draw p; >>> se

Re: [NTG-context] Question about \startcombination \stopcombination

2016-08-18 Thread Fabrice Couvreur
itle}"); >> p := p shifted (2BodyFontSize,OverlayHeight-ypart center p+.25ExHeight); >> b := boundingbox p leftenlarged .5EmWidth rightenlarged .5EmWidth ; >> fill OverlayBox withcolor \MPcolor{MyColorA}; >> fill b withcolor darkred ; >> draw p; >> setbounds

Re: [NTG-context] Question about \startcombination \stopcombination

2016-08-18 Thread Hans Hagen
eMPgraphic \defineoverlay [MyFrame] [\useMPgraphic{MyFrame}] \starttext \startlinecorrection[blank] \startmidaligned \startcombination[2*2] {\startMyFrame[Title=ALGO A] One \stopMyFrame}{} {\startMyFrame[Title=ALGO B] Two \stopMyFrame}{} {\startMyFrame[Title=ALGO C] Three \stopMyFrame}{} {\st

[NTG-context] Question about \startcombination \stopcombination

2016-08-18 Thread Fabrice Couvreur
ic{MyFrame}] \starttext \startlinecorrection[blank] \startmidaligned \startcombination[2*2] {\startMyFrame[Title=ALGO A] One \stopMyFrame}{} {\startMyFrame[Title=ALGO B] Two \stopMyFrame}{} {\startMyFrame[Title=ALGO C] Three \stopMyFrame}{} {\startMyFrame[Title=ALGO D] Four \stopMyFrame}{} \stopc

[NTG-context] alignment problem in a table

2016-07-19 Thread Fabrice Couvreur
[offset=0.8ex,width=0.25\textwidth] \setupTABLE[row][first] [background=color,backgroundcolor=lightgray] \setupTABLE[start][align={middle,lohi}] \stopsetups \starttext {\bf Matrices particulières} \startlinecorrection[blank] \startmidaligned \switchtobodyfont[10pt] \bTABLE[setups

Re: [NTG-context] Problem with Enumerations

2016-02-19 Thread Fabrice Couvreur
Hi Hans, By removing \startlinecorrection[blank] the problem persists with the following code. Thank you. Fabrice \starttext \startitemize[n][stopper={.},style=bold] \item La suite \m{\left(U_n\right)} est géométrique de premier terme \m{U_0 = 10} et de raison \m{q = 3 }, alors

Re: [NTG-context] Problem with Enumerations

2016-02-18 Thread Hans Hagen
de raison \m{q = 3 }, alors : \startlinecorrection[blank] \startitemize[a,columns,joinedup,pack,2*broad,three][stopper={.},style=bold] \item \math{U_4 = 22} \item \math{U_4 = 810} \item \math{U_4 = 10 \times 3^3} \item \math{U_4 = 10 + 3 \times 4} \stopitemize \stoplinecorrection

[NTG-context] Problem with Enumerations

2016-02-18 Thread Fabrice Couvreur
: \startlinecorrection[blank] \startitemize[a,columns,joinedup,pack,2*broad,three][stopper={.},style=bold] \item \math{U_4 = 22} \item \math{U_4 = 810} \item \math{U_4 = 10 \times 3^3} \item \math{U_4 = 10 + 3 \times 4} \stopitemize \stoplinecorrection \stopitemize \stoptext

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

2015-08-04 Thread Fabrice Couvreur
) ; a := unitsquare xyscaled(OverlayWidth,OverlayHeight) ; fill a withcolor \MPcolor{MyColor} ; b := boundingbox p ; fill b withcolor \MPcolor{myColor} ; draw p withcolor white ; \stopuseMPgraphic \starttext \startlinecorrection[blank] \startMyText \input knuth \stopMyText \stoplinecorrection \startlinecorrection

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

2015-08-04 Thread Hans Hagen
\starttext \startlinecorrection[blank] \startMyText \input knuth \stopMyText \stoplinecorrection \startlinecorrection[blank] \startMyText \input knuth \stopMyText \stoplinecorrection \stoptext ___ If your question

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

2015-08-04 Thread Fabrice Couvreur
\MPcolor{myColor} ; draw p withcolor white ; \stopuseMPgraphic \starttext \startlinecorrection[blank] \startMyText \input knuth \stopMyText \stoplinecorrection \startlinecorrection[blank] \startMyText \input knuth \stopMyText \stoplinecorrection \stoptext

[NTG-context] keep on grid

2014-11-27 Thread Emil Stein
%\definestartstop[citaat] %[before={\startlinecorrection\vskip3pt\setupnarrower[left=5mm,right=0pt]\startnarrower[left,right]\switchtobodyfont[8pt]\setupinterlinespace[line=10pt]}, %after={\stopnarrower\vskip3pt\stoplinecorrection}] \definestartstop[citaat] [before={\vskip3pt\setupnarrower[left=5mm,right=0pt

Re: [NTG-context] Bussproofs or derivation trees

2014-09-05 Thread Trond Thorbjørnsen
Hello again, Temporary I am using a combination of framed and align, see code under. Not a good solution, but solves my current need. Is there an easy way to make an inline baseline shift? I want to make a label for each line, shifted down half a line. -Trond \startlinecorrection \def\borderdt

Re: [NTG-context] Linespacing in TOC

2014-02-11 Thread Jan Tosovsky
cannot manage even that (startlinecorrection doesn't work here). Any idea? When you have characters with big ascenders/descenders you have to increase the interlinespace or change the height/depth ration of a strut. 1. Change the interlinespace value with \setupinterlinespace[line

Re: [NTG-context] Linespacing in TOC

2014-02-10 Thread Jan Tosovsky
, I am getting almost desired output. But when the grid is switched on (by uncommenting the first line), it again produces extra lines after every TOC line... %\setuplayout[grid=yes] \showgrid %\showmakeup \starttext %\placeongrid{\startlinecorrection %\start \setupinterlinespace[0] % looks like

Re: [NTG-context] Linespacing in TOC

2014-02-10 Thread Wolfgang Schuster
Am 10.02.2014 um 22:49 schrieb Jan Tosovsky j.tosov...@email.cz: I still prefer placing lines on the grid. But if the grid could be switched off just for ToC, I could use the above code ensuring lines in the 'grid' positions. It is fake, but I cannot manage even that (startlinecorrection

[NTG-context] Linecorrection and distances

2013-07-18 Thread H. Özoguz
I use grid-setting, but have elements, which should not be set on the grid (because it is impossible, because of different interlinespaces, bigger fonts, or whatever). For these elements I use \startlinecorrection Elements \stoplinecorrection After these elements the normal text is continued

Re: [NTG-context] Linecorrection and distances

2013-07-18 Thread Hans Hagen
On 7/18/2013 9:36 AM, H. Özoguz wrote: I use grid-setting, but have elements, which should not be set on the grid (because it is impossible, because of different interlinespaces, bigger fonts, or whatever). For these elements I use \startlinecorrection Elements \stoplinecorrection After

Re: [NTG-context] Linecorrection and distances

2013-07-18 Thread H. Özoguz
it always depends on the content you can influence it with options ... see teststuite for examples (in spacing path) Sorry, I did not get you. Which options, to influence this behaviour? (I could not find any options, parameters, for startlinecorrection). And to which testsuite do you refer

  1   2   >