reference (save it as main.tex):
\starttext
\dorecurse{15}
{\chapter[chap\recurselevel]{Chapter}}
\stoptext
You have the file that reads the references from main.tuc and generates
the inter-document links:
\setupinteraction[state=start]
\starttext
Links to each chapter using
If that could be what you might need, here is a sample.
First you have the destination file:
\setupinteraction[state=start,
focus=standard,
prefix=n_,]
\starttext
\dorecurse{50}
{a\footnote{b} }
\startluacode
luatex.wrapup(
function()
os.rename(tex.jobname ..
gt;
> fill ship xysized (10,5) shifted pos rotatedaround (pos, 15) withcolor red;
> \stopuseMPgraphic
>
> \defineoverlay[Waves][\useMPgraphic{Waves}]
>
> \setupbackgrounds[state=repeat]
> \setupbackgrounds[page][background={Waves}]
>
> \starttext
>
> \dorecurse{10}{\recur
= (0,10)---(70,10)...(60,0)---(10,0)...cycle;
fill ship xysized (10,5) shifted pos rotatedaround (pos, 15) withcolor red;
\stopuseMPgraphic
\defineoverlay[Waves][\useMPgraphic{Waves}]
\setupbackgrounds[state=repeat]
\setupbackgrounds[page][background={Waves}]
\starttext
\dorecurse{10}{\recurs
ode: 1
Here is the MWE:
\enabletrackers[paragraphs.passes=summary]
\setupalignpass[optional1]
\starttext
\dorecurse{10}{
\input ward
\input knuth
\input darwin
}
\stoptext
%%%
Using the latest version:
ConTeXt ver: 2023.07.09 19:38 LMTX fmt: 2023.7.
[layout.vz]
\setuplayout[width=middle,headerdistance=5mm,vz=no]
\clubpenalty 1
\widowpenalty 1
\dostepwiserecurse{0}{30}{1}{
\dorecurse{#1}{\strut dummy line ##1\par}
\dorecurse{4}{\samplefile{tufte}\par}
}
\stoptext
\stopbuffer
\startbuffer[vz-2]
\starttext
context --synctex=1 --result=output %S; cp output.log
> > > /compile/output.log;cp output.pdf /compile/output.pdf";
> > > $recorder=0;
> > > $pdf_mode=1;
> > I found back this link:
> >
> > https://davidcarlisle.github.io/latexcgi/testc
> >
> >
>
.pdf";
> > $recorder=0;
> > $pdf_mode=1;
> I found back this link:
>
> https://davidcarlisle.github.io/latexcgi/testc
>
>
> % !TEX mtxrun --script context
>
> \starttext
>
> \dorecurse{500}{\samplefile{tufte}\par}
>
> \stoptext
>
> Runs 113
=repeat]
\setupbackgrounds[footer][text][background=Blocks]
\starttext
\dorecurse{10}{\recurselevel\page}
\stoptext
Wolfgang
___
If your question is of interest to others as well, please add an entry to the
Wiki
tsquare xysized (800 * RealPageNumber/NOfPages, 50) withcolor blue;
\stopuseMPgraphic
\defineoverlay[Blocks][\useMPgraphic{Blocks}]
\setupbackgrounds[footer][background={Blocks}]
\starttext
\dorecurse{10}{\recurselevel\page}
\stopt
t; > $pdf_mode=1;
> I found back this link:
>
> https://davidcarlisle.github.io/latexcgi/testc
>
>
> % !TEX mtxrun --script context
>
> \starttext
>
> \dorecurse{500}{\samplefile{tufte}\par}
>
> \stoptext
>
> Runs 113 pages in 1.13 sec so
="context --synctex=1 --result=output %S; cp output.log
/compile/output.log;cp output.pdf /compile/output.pdf";
$recorder=0;
$pdf_mode=1;
I found back this link:
https://davidcarlisle.github.io/latexcgi/testc
% !TEX mtxrun --script context
\starttext
\dorecurse{500}{\samplefile{
l and he knows ConTeXt well. He's quite capable
> of figuring out how to use advanced features and I bet he likes the
> following variant of arrows in text. Next time we meet I'll show him some
> more adaptive tricks (although I bet he can figure them out himself).
>
> \sta
\egroup
\stopsetups
\dorecurse{5}{
\dostepwiserecurse{1}{150}{1}{%
this~#1.##1 is~#1.##1 test~#1.##1
{\adaptivebox[strut=yes,setups=adaptive:test]{\strut}}
}
\blank
}
\stoptext
(2) If someone wants a plain (or fot that matter latex) solution then
one can use
Am 19.06.23 um 21:59 schrieb Henning Hraban Ramm via ntg-context:
In a minimal example like this:
\setuppapersize[A5]
\definecolumnset[TwoColumns][n=2]
\starttext
\startcolumnset [TwoColumns]
\dorecurse{10}{\samplefile{knuth}}
\stopcolumnset
\stoptext
… many columns start one line too
In a minimal example like this:
\setuppapersize[A5]
\definecolumnset[TwoColumns][n=2]
\starttext
\startcolumnset [TwoColumns]
\dorecurse{10}{\samplefile{knuth}}
\stopcolumnset
\stoptext
… many columns start one line too low and overwrite their last line.
An extended example (nearly
[alternative={singlesided,doublesided}]
\starttext
\dorecurse{200}{
\dontleavehmode\signalrightpage
\doifelserightpage{RIGHT}{LEFT}
\doifelseoddpage {ODD }{EVEN}
\par
}
\stoptext
The rightpage check combined with putting a signal at the spot where
you
Am 27.05.23 um 23:54 schrieb Hans Hagen via ntg-context:
You never know when tex will break a page unless you are explicit so you
typeset the status too soon.
\setuppagenumbering[alternative=doublesided]
% \setuppagenumbering[alternative={singlesided,doublesided}]
\starttext
\dorecurse
\completecontent
\dorecurse{5}
{a\footnote{}}
\stoptext
LuaTeX generates fine hyperlinks for footnotes.
My guess is that the issue is in the LuaMetaTeX binary.
Could anyone confirm this issue?
i'll upload a fix later today (some sensitivity to an extra return value
of a helper)
Hans
\completecontent
\dorecurse{5}
{a\footnote{}}
\stoptext
LuaTeX generates fine hyperlinks for footnotes.
My guess is that the issue is in the LuaMetaTeX binary.
Could anyone confirm this issue?
i'll check it but (maybe side effect of some ref things Alan and I are
working on). The engine has
Dear list,
in the following sample, hyperlinks for footnotest don’t work with
current latest (2023.05.28 18:57) with current LMTX (20230528):
\setupinteraction
[state=start,
focus=standard]
\starttext
\completecontent
\dorecurse{5}
{a\footnote{}}
\stoptext
LuaTeX
what page I'm on?
Example:
\starttext
\dorecurse{70}{\doifelseoddpage{ODD \currentpage\par}{EVEN
\currentpage\par}}
\stoptext
My system:
context --version
mtx-context | ConTeXt Process Management 1.04
mtx-context |
mtx-context | main context file:
/home/berend
Dear all,
I need something like \doifelseoddpage, but this does not work as
expected. See below example. You will notice that on page two you
still get the ODD text, with page number 1.
What's going on? Is there a proper way to detect what page I'm on?
Example:
\starttext
\dorecurse{70
I found a MWE that shows the problem:
"""
\setuppapersize[C5]
\showframe
\starttext
\startplacefigure[location=page,title={Pagefloat}]
\framed[width=\textwidth,height=.75\textheight]{TEST}
\stopplacefigure
\dorecurse{4}{\section{Tufte \recurselevel}
\samplefile{tuf
it in a simple example like this:
"""
\starttext
\dorecurse{2}{\samplefile{tufte}}
\startplacefigure[location=page,title={Pagefloat}]
\framed[width=\textwidth,height=.5\textheight]{TEST}
\stopplacefigure
\dorecurse{5}{\samplefile{knuth}}
\stoptext
"""
What could
Hi,
in more than one of my books, I struggle with some lines of text below
page floats. They start below the regular text area (i.e. in the bottom)
and can even consist of a table float or a section title.
I can’t reproduce it in a simple example like this:
"""
\starttex
:)
>
> > \setupindenting[medium,yes]
> > \setupitemize[indentnext=auto]
>
> > \starttext
> > \startitemize
> > \item One
> > \stopitemize\indent%blank line
>
> > This paragraph should be indented - due to the blank line after
ect will speak up.
> \setupindenting[medium,yes]
> \setupitemize[indentnext=auto]
> \starttext
> \startitemize
> \item One
> \stopitemize\indent%blank line
> This paragraph should be indented - due to the blank line after
> \type{\stop
,yes]
\setupitemize[indentnext=auto]
\starttext
\startitemize
\item One
\stopitemize\indent%blank line
This paragraph should be indented - due to the blank line after
\type{\stopitemize}.
\startitemize
\item Two
\stopitemize
\noindent{\dorecurse{10}{\indent This paragraph should not be
BLE[row] [first] [topframe=on,bottomframe=on,style=bold]
\setupTABLE[row][2][topframe=on]
\setupTABLE[row][2][topframe=off,rightframe=on,leftframe=on,framecolor=lightgray]
\setupTABLE[row][3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22][frame=on,
framecolor=lightgray]
\setupTABLE[row] [last] [to
nicely on my android (12) phone (userland
ubuntu) and luametatex compiles nicely from source (as it's aarch64) in
about a minute. No decent editor to text real documents but who knows
what a properly dockable (linux supporting) phone can do in a few years.
A simple
\starttext \dorecurse{1000
On 3/9/23 13:18, Floris van Manen via ntg-context wrote:
> Can someone remind me as how to number the pages in a pdf of multiple
> \startTEXpage ... \stopTEXpage
Hi Floris,
I guess "pagestate=start" is what you might need:
\starttext
\dorecurse{25}
{\startTEXpage[offse
\setupbackgrounds[header][text] [background=color, backgroundcolor=red]
\setuppagenumbering[state=start,alternative=doublesided,location=footer]
\showlayout
\starttext
\showsetups
\dorecurse{10}{
Page \recurselevel
\page
}
\stoptext
__
\startinterview[title={My Interview}][
author={Jane Doe},
year={2022},
month={Decembre},
bio={\input ward}
]
\dorecurse{10}{\input ward \crlf}
\stopinterview
\stoptext
On 23 Feb 2023, at 10:21, Alex Leray via ntg-context wrote:
Hello,
I'm trying to figure out how to design a chapter
},
year={2022},
month={Decembre},
bio={\input ward}
]
\dorecurse{10}{\input ward \crlf}
\stopinterview
\stoptext
> On 23 Feb 2023, at 10:21, Alex Leray via ntg-context
> wrote:
>
> Hello,
>
> I'm trying to figure out how to design a chapter page for a cust
w][chapter]
\setuphead[interview][
page=right,
command=\MyChapter,
% insidesection={\page},
style={\tfa},
]
\starttext
\startinterview[title={My Interview}][
author={Jane Doe},
year={2022},
month={Decembre},
bio={\input ward}
]
\dorecurse{10}{\input ward \crlf}
\sto
gt; \starttext
> 口口\hspace[big]口口 % with \setscript[hanzi], the \hspace is ignored
>
> \dorecurse{100}{口} % without \setscript[hanzi], the line is not properly
> wrapped
> \stoptext
>
> Many thanks,
>
gt;> 口口\hspace[big]口口 % with \setscript[hanzi], the \hspace is ignored
>>
>> \dorecurse{100}{口} % without \setscript[hanzi], the line is not properly
>> wrapped
>> \stoptext
>>
>> Many thanks,
>> Sylvain
>>
>>
e][rm][notoserifcjkhk][]
> \setupbodyfont[mainface]
> \starttext
> 口口\hspace[big]口口 % with \setscript[hanzi], the \hspace is ignored
>
> \dorecurse{100}{口} % without \setscript[hanzi], the line is not properly
> wrapped
Dear list,
Does anyone know how to insert a horizontal space in a CJK document with
\setscript[hanzi]?
\setscript[hanzi]
\definefontfamily[mainface][rm][notoserifcjkhk][]
\setupbodyfont[mainface]
\starttext
口口\hspace[big]口口 % with \setscript[hanzi], the \hspace is ignored
\dorecurse{100}{口
On 05/02/2023 12:32, Pablo Rodriguez via ntg-context wrote:
Are we missing something or is this a bug?
If you add a \tt at the beginning, the lines have different length.
not sure why, but there is a reason to it...
\startTEXpage[offset=3em]
\tt
\setupalign[tolerant,stretch]
\dorecurse {10
\startformula
\sqrt{\frac{1}{2}}\dorecurse{15}{+\sqrt{\blackrule[width=10pt,height=#1pt,depth=#1pt,color=gray]}}
\stopformula
\startformula
\sqrt{\blackrule[width=10pt,height=100pt,depth=100pt,color=gray]}
\stopformula
\stoptext
It works in MKIV but it gives the following error in the latest LMTX
Dear list,
I have the following sample:
\showframe
\setuplayout[width=middle]
\definelayout[odd][reset]
\definelayout[even][reset]
\doiftext{\markedpages[zapf]}
{\doloopoverlist{\markedpages[zapf]}
{\definelayout[\recursestring][page]}}
\starttext
\dorecurse{50}{\input
Dear list,
I have the following sample:
\setupinteraction[state=start, focus=standard]
\starttext
\completecontent
\dorecurse{25}
{\section{Section}
a\footnote{b}}
\stoptext
Using current latest (from 2023.01.26 18:34), destinations for TOC are
pages (/D [ 7 0 R /Fit
> \define[2]\TitleCmd{#1} % number only
>
> \setuphead[Year,Month,Day][number=yes,page=no,command=\TitleCmd]
> \setuphead[Year][page=yes]
> %\setuphead[Month][]
> \setuphead[Day][style={\ss\bf}]
>
> \def\Dummycontent{
> \dorecurse{12}{
> \startMonth
>
\setuphead[Year,Month,Day][number=yes,page=no,command=\TitleCmd]
\setuphead[Year][page=yes]
%\setuphead[Month][]
\setuphead[Day][style={\ss\bf}]
\def\Dummycontent{
\dorecurse{12}{
\startMonth
New Month.
\dorecurse{5}{
\startDay
Another day.
\stopDay
][footerdistance=100mm, ]
\definelayout[odd][reset] % ??
\definelayout[even][reset]
\starttext
\dorecurse{3}{\input{knuth} } % change to \dorecurse{2} - it works properly
\definelayout[2][mypage]
\dorecurse{2}{\input{knuth} }
\placefigure [leftmargin]
{} {\externalfigure[greybox][width
et=1em, width=12em]
\dorecurse{20}
{\definefontfeature[\recurselevel]
[axis={wght={\the\numexpr\recurselevel * 50\relax}},
colr={\recurselevel}]
\definedfont[Nupuram-Color.colrv1.otf*\recurselevel]abcde }
\stopTEXpage
\stoptext
It works fine wit
opsetups
\setuphead[chapter]
[style=\tfa,
after={\blank\setups{chapter:headings}},
]
\starttext
\startchapter[title=Nothing special]
\dorecurse{10}{\input knuth\par}
\stopchapter
\startchapter[title=Something special][custom={Hi there!}]
\dorecur
eftmargin=40mm]
>
> \starttext
> \definelayout[even][reset]
> \definelayout[odd][reset]
> \definelayout[2][short]
> \definelayout[3][short]
> \dorecurse{10}{\input{knuth} }
> \stoptext
&g
ndistance=10mm,
leftmargin=40mm]
\starttext
\definelayout[even][reset]
\definelayout[odd][reset]
\definelayout[2][short]
\definelayout[3][short]
\dorecurse{10}{\input{knuth} }
\stoptext
It seems that you need to reset the layout in all other pages (where the
special layout isn’t a
]
\definelayout[short][backspace=80mm, width=100mm, topspace=50mm, header=0mm,
footer=0mm, height=80mm, margindistance=10mm, leftmargin=40mm]
\starttext
\definelayout[2][short]
\definelayout[3][short]
\dorecurse{10}{\input{knuth} }
\stoptext
=10mm, leftmargin=40mm]
\definelayout[short][backspace=80mm, width=100mm, topspace=50mm, header=0mm,
footer=0mm, height=80mm, margindistance=10mm, leftmargin=40mm]
\starttext
\definelayout[2][short]
\definelayout[3][short]
\dorecurse{10}{\input{knuth} }
\stoptext
end
end
}
\stoptexdefinition
\starttext
\LoadSectionsA{crap}{chapter:3}
\LoadSectionsB{crap}{chapter:2}
\stoptext
\starttext
\dorecurse{10}{
\startchapter[title=Chapter #1,reference=chapter:#1]
\dorecurse{10}{
\startsubject[title=S
uacode
\setupmathematics[hz=yes]
\startbuffer \showglyphs
\dorecurse{20}{\strut test $x + y/2 - w = 10$ }\unskip
\stopbuffer
\definecolor[tgreen][g=1,t=.5,a=1]
\definecolor[tred] [r=1,t=.5,a=1]
\startTEXpage[offset=5dk]
\startoverlay
{\ruledvbox to 5cm{\setupalign
[tolerant,stretch]\
appening in your first
> example.
>
> Hi Fabrice and Bruce,
>
> I agree that the source would be helpful to say what may be hard for
> ConTeXt.
>
> In any case, ConTeXt has a hard time with pagebreaks when you combine
> elements that need both horizontal and vertical
ause that was what was happening in your first example.
Hi Fabrice and Bruce,
I agree that the source would be helpful to say what may be hard for
ConTeXt.
In any case, ConTeXt has a hard time with pagebreaks when you combine
elements that need both horizontal and vertical calculation, such as in:
for the
>>>>> image
>>>>> > itself, and some extra space after it).
>>>>> >
>>>>> > Your layout for the first page only allows 43 lines and sample text
>>>>> ends
>>>>> > on line 37.
>>>>&
o the layout for the first page and the image
> > will fit in the first page.
> >
> > Just in case it might help,
>
> Or Pablo's answer shown another way... change the end of the example to:
>
> \starttext
> \dorecurse{11}{\input ward}
> \placerecipe{}{\externalfigu
irst page and the image
> will fit in the first page.
>
> Just in case it might help,
Or Pablo's answer shown another way... change the end of the example to:
\starttext
\dorecurse{11}{\input ward}
\placerecipe{}{\externalfigure[dum]}
\dorecurse{5}{\input ward} %% extra
\stoptext
]
\setupfloat
[recipe]
[default={right,none}]
\showframe
\starttext
\dorecurse{11}{\input ward}
\placerecipe{}{\externalfigure[dum]}
\stoptext
___
If your question is of interest to others as well, please add
Am 25.10.22 um 02:32 schrieb Joel via ntg-context:
I have code like this which randomly pulls a page from `comic2.pdf` and
displays it, scaled to fit \textwidth, then displays four more random
pages afterwares.
\starttext
\dorecurse{5}{
\placefigure[force,
none
I have code like this which randomly pulls a page from `comic2.pdf` and
displays it, scaled to fit \textwidth, then displays four more random pages
afterwares.
\starttext \dorecurse{5}{
\placefigure[force,
none]{}{\framed[frame=off]{\externalfigure[comic2.pdf][page
eat,
background={Ornament}]
\starttext
\dorecurse {10} {Test \page}
\stoptext
All best
Thomas
___
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist :
to restrict it to only apply the lines to some parts of the file,
> not every single paragraph?
Option 1:
\newif\ifprintlines
\EveryPar{%
\ifprintlines%
\vbox to 0pt{%
\dorecurse{3}{%
\rlap{%
\hskip\di
ree line paragraph
Four line paragraph \\
Four line paragraph \\
Four line paragraph \\
Four line paragraph
\samplefile{bryson}
\samplefile{knuth}
\stoptext
An \everypar solution:
\appendtoks%
\vbox to 0pt{%
\dorecurse{3}{%
rote:
>> Hello Max,
>> It is preferred if the solution is just three lines per paragraph,
>> rather than some content parallel to the text
> A Lua callback solution:
>
> [...]
>
> An \everypar solution:
>
> \appendtoks%
> \vbox to 0pt{%
> \dor
solution:
\appendtoks%
\vbox to 0pt{%
\dorecurse{3}{%
\rlap{%
\hskip\dimexpr\hsize+1em%
\vrule height 0.4pt width 3cm%
\relax%
}%
}%
}%
\to\everypar
You can use
e paragraph
Three line paragraph \\
Three line paragraph \\
Three line paragraph
Four line paragraph \\
Four line paragraph \\
Four line paragraph \\
Four line paragraph
\samplefile{bryson}
\samplefile{knuth}
\stoptext
An \
ppapersize
[label] [A4]
\setuplayout
[page]
\setuppaper
[nx=3,
ny=10,
dx=1mm,
dy=1mm]
\setuplayout
[horoffset=50mm,
veroffset=10mm]
\setuparranging
[XY]
\setupbackgrounds
[page]
[frame=on]
\starttext
\dorecurse{56}
{\startpagemakeup
\midalign
{\setuparranging[2UP]
\setupinteractionscreen[option={landscape, paper}]}
\starttext
\dorecurse{32}
{\input knuth\par}
\stoptext
In a copyshop I used to go (more than four years ago), they had a
printer that didn’t understand duplex printing when pages were in
landscape orientation.
On 8/25/22 19:41, Hans Hagen via ntg-context wrote:
> [...]
> you're missing an \egroup
>
> \starttext
> \doloopoverlist{\tf,\ss,\tt}
>{\bgroup
> \recursestring
> \doloopoverlist{\tf,\it,\bf,\bi,\sc}
>{\bgroup
>
\recursestring\dorecurse{26}
{\character{\recurselevel}̱ }\par}\egroup}
\stoptext
I get the following error:
mtx-context | fatal error: return code: 1
But when checking the sources, no error is found:
$ mtxrun --script check test-file.tex
no error
Just in case it helps
Hans,
using latest from today (and the previous one) with the following source:
\starttext
\doloopoverlist{\tf,\ss,\tt}
{\bgroup\recursestring%
\doloopoverlist{\tf,\it,\bf,\bi,\sc}
{\bgroup\recursestring\dorecurse{26}
{\character{\recurselevel}̱ }\par
a little too far to the left
I don’t know how ConTeXt handles it internally, but placement to main
character differs with each letter:
\starttext
\doloopoverlist{\tf,\ss,\tt}
{\bgroup\recursestring\doloopoverlist{\tf,\it,\bf,\bi,\sc}
{\bgroup\recursestring\dorecurse{26
r to the left
>>
>> I don’t know how ConTeXt handles it internally, but placement to main
>> character differs with each letter:
>>
>>\starttext
>> \doloopoverlist{\tf,\ss,\tt}
>>{\bgroup\recursestring\doloopoverlist{\tf,\it,\bf,\bi,\
(see p. 1).
(Number alignment to the right is required.)
Thanks in advance for some hints.
Tomáš
MWE:
\setupnotation[footnote][
alternative=left,
width=1em,
numbercommand={\hfill\high},
]
\starttext
\showframe[text][text]
\dorecurse{6}{This is a text.\footnote{\dorecurse{12}{Blah blah blah
with each letter:
\starttext
\doloopoverlist{\tf,\ss,\tt}
{\bgroup\recursestring\doloopoverlist{\tf,\it,\bf,\bi,\sc}
{\bgroup\recursestring\dorecurse{26}
{\character{\recurselevel}̱ }\par}\egroup}
\stoptext
just run the attached
t{\tf,\ss,\tt}
{\bgroup\recursestring\doloopoverlist{\tf,\it,\bf,\bi,\sc}
{\bgroup\recursestring\dorecurse{26}
{\character{\recurselevel}̱ }\par}\egroup}
\stoptext
Pablo
___
If your
ti-page-pdf/
>
> Hi Aditya,
>
> I wonder whether your final definition should be rewritten as:
>
> \unexpanded\def\includePDF[#1]%
> {\getfiguredimensions[#1]
> \dorecurse{\noffigurepages}
> {\startTEXpage
> \externalfigure[#1][page=\recurse
\unexpanded\def\includePDF[#1]%
{\getfiguredimensions[#1]
\dorecurse{\noffigurepages}
{\startTEXpage
\externalfigure[#1][page=\recurselevel]
\stopTEXpage}}
At least, otherwise it will only work with "talk.pdf".
Or am I missing something?
Many t
ier for me to reason in the lua side of things. This is what I
> > have at the moment:
>
> I think this might be what you intend:
>
> \setuplayout[page]
> \starttext
> \doloopoverlist{ass1,ass2,ass3,ass4,ass5,ass6,ass7,ass8}
> {\def\Doc{\recursestring.pdf}
>
I
> have at the moment:
I think this might be what you intend:
\setuplayout[page]
\starttext
\doloopoverlist{ass1,ass2,ass3,ass4,ass5,ass6,ass7,ass8}
{\def\Doc{\recursestring.pdf}
\getfiguredimensions[\Doc]
\dorecurse{\noffigurepages}
{\externalfigure[\Doc]
[page=\
) but I don’t know how to do this with the \clip command. Any
>> ideas? I already tried using \input but it gives some weird output in
>> some places. It doesn’t have to use this method as long as it does
>> what I need it to do.
>
> Hi Jethro,
>
> it works using
>> ideas? I already tried using \input but it gives some weird output in
>> some places. It doesn’t have to use this method as long as it does
>> what I need it to do.
>
> Hi Jethro,
>
> it works using \clip with \externalfigure inside a loop (\dorecurse).
>
> Wi
oesn’t have to use this method as long as it does
what I need it to do.
Hi Jethro,
it works using \clip with \externalfigure inside a loop (\dorecurse).
With \getfiguredimensions you get the number of pages of each PDF
document (\noffigurepages).
The following source both generates the source PD
me places. It doesn’t have to use this method as long as it does
> what I need it to do.
Hi Jethro,
it works using \clip with \externalfigure inside a loop (\dorecurse).
With \getfiguredimensions you get the number of pages of each PDF
document (\noffigurepages).
The following source bo
]
\chapter{通用规}
\placefigure
[left,none]
{汉字表}
{\framed
[width=4cm,
height=2\lineheight,
frame=off,
backgroundcolor=darkgreen,
foregroundcolor=white,
background=color]
{汉字表}}
\dorecurse{40}{%
通用规\ruby{范
offset 3pt{\strut #1}}
\setbox1000\hbox{\NotoCJK\startscript[hangul]\dorecurse{20}{通用规范汉字表
\stripe{test #1} }\stopscript}
\ctxlua{document.manipulate_one(1000)}
\ruledvbox orientation 1 to \textwidth \bgroup
\hsize \textheight
\unhbox1000
\vfill
\egroup
\page
\setbox1000\hbox{\N
the operators into the
new line:
\setupmathematics[setups=math:spacing:split]
\setupformulas[split=yes,align=flushleft]
\startformula
x\dorecurse{30}{ + #1x^{#1x}} = 10
\stopformula
Would it be possible to achieve this via a custom setup like
math:spacing:split to get an output like this?
푥 + 1푥1푥 + 2푥2푥
=math:spacing:split]
\setupformulas[split=yes,align=flushleft]
\startformula
x\dorecurse{30}{ + #1x^{#1x}} = 10
\stopformula
Would it be possible to achieve this via a custom setup like
math:spacing:split to get an output like this?
푥 + 1푥1푥 + 2푥2푥 + 3푥3푥 + 4푥4푥 + 5푥5푥 + 6푥6푥 + 7푥7푥 + 8푥8푥 +
9푥9푥 + 10푥10푥
]
[text=Proposition,
number=yes,
style=italic]
\starttext
\startchapter
[title={First chapter}]
\dorecurse{2}{
\startdefinition
\stopdefinition
\startproposition
\stopproposition}
\stopchapter
\stoptext
Bruce Horrocks via ntg-context schrieb am 16.08.2022 um 18:11:
Things start to go awry after about 5 or 6 iterations, 12 shows it up clearly
with three or so nearly blank (except for the subject) pages produced.
\setuppapersize [A5] [A5]
\starttext
\dorecurse{12}{
\subject{Some heading
Things start to go awry after about 5 or 6 iterations, 12 shows it up clearly
with three or so nearly blank (except for the subject) pages produced.
\setuppapersize [A5] [A5]
\starttext
\dorecurse{12}{
\subject{Some heading}
\placefigure[right] {} {\externalfigure[cow.pdf] [width=3cm]}
\input
:
>
> Dear list,
>
> adapting a the sample from mkxl/page-str.mkxl (and code from the list),
> I came with the following sample:
>
> \setuppapersize[A6]
> \showgrid
> %\setuplayout[grid=yes]
> \starttext
> \input tufte
> \startoutputstream[es]
> \do
Dear list,
adapting a the sample from mkxl/page-str.mkxl (and code from the list),
I came with the following sample:
\setuppapersize[A6]
\showgrid
%\setuplayout[grid=yes]
\starttext
\input tufte
\startoutputstream[es]
\dorecurse{25}
{\startlanguage[es]\input cervantes-es
=none,width=\textwidth,style={\setupwhitespace[medium]}]},
after={\stopframedtext\blank[medium]}]
\starttext
\input ward\
\startfootnote
\input knuth
\stopfootnote{}
\dorecurse{3}{\input ward\ }
\startfootnote
\input knuth
\stopfootnote{}
\dorecurse{2}{\input ward\ }
\startfootnote
\input knuth
pnote[footnote][split=verystrict, scope=text]
\starttext
\dorecurse{25}
{ab cd ef\footnote{\input{knuth}}}
\stoptext
I know that this depends from the publisher, but in these cases endnotes
are a way more viable option.
Just in case
[footnote][split=verystrict]
% \setupnotation[footnote][split=verystrict]
\starttext
\input ward\
\startfootnote
\input knuth
\stopfootnote{}
\dorecurse{3}{\input ward\ }
\startfootnote
\input knuth
\stopfootnote{}
\dorecurse{2}{\input ward\ }
\startfootnote
\input knuth
\stopfootnote{}
\dorecurse{3
]
\usebodyfont [mschinese,20pt]
\showframe
\starttext
\dorecurse{5}{“好?!;”“:,。”} % linebreak sutck
\dorecurse{30}{“我”} % linebreak sutck
\dorecurse{30}{我} % linebreak work
\dorecurse{30}{我。} % linebreak work
\stoptext
```
What I see between any two consecutive punctuations are
1
101 - 200 of 4177 matches
Mail list logo