]
\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
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
[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
]
\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
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
.
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
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
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
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]
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
n:
> > drawdot(0,i*u) shifted(t*u,0) withcolor \MPcolor{blue};
> >endfor
> >endgroup
> >enddef;
> > \stopMPcode
> > __ %horizontal
> line
> > % big unwanted w
% 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
) shifted(t*u,0) withcolor \MPcolor{blue};
endfor
endgroup
enddef;
\stopMPcode
__ %horizontal line
% big unwanted white space
\starttext
% \startex First exercise
\startlinecorrection[blank]
\startmidaligned
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
; 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
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
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
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
,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
s.randomizer.getrepeatableseed("MyRandomM")}\par
\dorecurse{10}{\MyRandom\par}
\startlinecorrection
\startMPcode
randomseed := repeatablerandom("MyRandom") ;
draw image (
for i=1 upto 1000 :
d
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,
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=
}
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
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
\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
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
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
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
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
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
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
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
=]
\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
\switchtobodyfont[11pt]},
framecolor=darkblue,
corner=round]
\definelines
[algorithm]
[space=on,
before=\startalgorithmframe,
after=\stopalgorithmframe]
\starttext
\startlinecorrection[blank]
\startmidaligned
\startalgorithm
{\blue def nom} (argument1
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
.7cm*dir 0) ;
\stopMPcode
\stopbuffer
\starttext
\startlinecorrection[blank]
\startmidaligned
\startxtable[align={middle,lohi},width=2.25cm]
\startxrow
\startxcell
[background=color,backgroundcolor=pal
startnarrower commands.
\startlinecorrection
\dontleavehmode \framed{testing}
\stoplinecorrection
\stopnarrower
\stoptext
for gradients, see metafun and example sin test suite
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 ?
>
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
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
.
\startlinecorrection
\startcombination [2*2]
...
\stopcombination
\stoplinecorrection
or
\startlinecorrection[blank]
\startcombination [2*2]
...
\stopcombination
\stoplinecorrection
Wolfgang
___
If your question
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
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({"
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
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
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
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},
][
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
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 %
>
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]{%
>
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,
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
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
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
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
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
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
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
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
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
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
\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
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
,
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
\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
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]
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
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
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
alize]
>>
>> \setupTABLE[start]
>>[align={middle,lohi},offset=0.5ex,width=1.5cm,
>> foregroundstyle={\switchtobodyfont[10pt]}]
>> \setupTABLE[1][2][background=Vertical]
>>
>> \stopsetups
>>
>> \starttext
>>
>
>\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
={\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
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
; \showgrid
>>
>> \setupcaptions[width=fit,align=last,headstyle={\ss\bfx},style={\ss\tfx}]
>>
>> \starttext
>> \subsection{Subsection title}
>> \input dawkins
>> \input dawkins
>>
>> %startlinecorrection
>> \startbaselinecorrection \
>
>\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
\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
\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
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
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}
=\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
ntpicture
enlarged 2mm ;
\stopuseMPgraphic
\defineoverlay
[MyFrame]
[\useMPgraphic{MyFrame}]
\starttext
\startlinecorrection[blank]
\startmidaligned
\startcombination[2*2]
{\startMyFr
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
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
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
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
[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
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
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
:
\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
) ;
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
\starttext
\startlinecorrection[blank]
\startMyText
\input knuth
\stopMyText
\stoplinecorrection
\startlinecorrection[blank]
\startMyText
\input knuth
\stopMyText
\stoplinecorrection
\stoptext
___
If your question
\MPcolor{myColor} ;
draw p withcolor white ;
\stopuseMPgraphic
\starttext
\startlinecorrection[blank]
\startMyText
\input knuth
\stopMyText
\stoplinecorrection
\startlinecorrection[blank]
\startMyText
\input knuth
\stopMyText
\stoplinecorrection
\stoptext
%\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
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
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
, 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
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
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
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
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 - 100 of 194 matches
Mail list logo