==
% ConTeXt ver: 2023.09.26 18:19 LMTX
\setupmarginrule[1][rulecolor=darkred]
\definesidebar[Sidebar][rulethickness=0.28pt,distance=3pt,rulecolor=darkgreen]
\setupsidebar[rulecolor=darkgreen]
\starttext
\startmarginrule[1]
\input ward
\stopmarginrule
\blank
\startsidebar[Sidebar]
\input zap
rule mechanisms.
> MWE:
>
> ==
> % ConTeXt ver: 2023.09.26 18:19 LMTX
>
> \setupmarginrule[1][rulecolor=darkred]
>
> \definesidebar[Sidebar][rulethickness=0.28pt,distance=3pt,rulecolor=darkgreen]
> \setupsidebar[rulecolor=darkgreen]
>
>
ebar[Sidebar][rulethickness=0.28pt,distance=3pt,rulecolor=darkgreen]
\setupsidebar[rulecolor=darkgreen]
\starttext
\startmarginrule[1]
\input ward
\stopmarginrule
\blank
\startsidebar[Sidebar]
\input zapf
\stopsidebar
\stoptext
==
In the output, either
i) the rules do not appear
arginrule not working
Dear gang,
The appears to be something wrong with the sidebar and marginrule mechanisms.
MWE:
==
% ConTeXt ver: 2023.09.26 18:19 LMTX
\setupmarginrule[1][rulecolor=darkred]
\definesidebar[Sidebar][rulethickness=0.28pt,distance=3pt,rulecolor=darkgreen]
\setupsidebar[
something wrong with the sidebar and marginrule mechanisms.
MWE:
==
% ConTeXt ver: 2023.09.26 18:19 LMTX
\setupmarginrule[1][rulecolor=darkred]
\definesidebar[Sidebar][rulethickness=0.28pt,distance=3pt,rulecolor=darkgreen]
\setupsidebar[rulecolor=darkgreen]
\starttext
=darkgreen]
\starttext
\startmarginrule[1]
\input ward
\stopmarginrule
\blank
\startsidebar[Sidebar]
\input zapf
\stopsidebar
\stoptext
==
In the output, either
i) the rules do not appear at all (most attempts); or
ii) the rules appear for a split-second then disappear (using sumatrapdf
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
Csikos Bela schrieb am 20.10.2023 um 14:53: > Hello: > > Protrusioin doesn't
work in framed environment. > > This is a short code: > >
\definefontfeature[default][default][expansion=quality,protrusion=quality] > >
\setupalign[hz,hanging] > > \showfram
I forgot to attach the pdf. Eredeti levél Hello:Protrusioin
doesn't work in framed environment.This is a short
code:\definefontfeature[default][default][expansion=quality,protrusion=quality]\setupalign[hz,hanging]\showframe\starttext\input
tufte\blank\framed[frame=off,location
Csikos Bela schrieb am 20.10.2023 um 14:53:
Hello:
Protrusioin doesn't work in framed environment.
This is a short code:
\definefontfeature[default][default][expansion=quality,protrusion=quality]
\setupalign[hz,hanging]
\showframe
\starttext
\input tufte
\blank
\framed[frame=off
Hello:Protrusioin doesn't work in framed environment.This is a short
code:\definefontfeature[default][default][expansion=quality,protrusion=quality]\setupalign[hz,hanging]\showframe\starttext\input
tufte\blank\framed[frame=off,location=top,align=normal,offset=0pt]{\input
tufte
}\blank
the below code but the 3 digit labels'
left sides go into the left > > margin. How can I fix it? > > > > Code: > > > >
\showframe > > \starttext > > \startitemize[n,broad][itemalign=flushright] > >
\dorecurse{250}{\item } > > \stopite
\NC \xmlatt{#1}{email} \NC \xmlatt{#1}{mobile} \NC\NR
\stopxmlsetups
\starttext
\xmlprocessfile{list}{stooges.xml}{}
\stoptext
stooges.pdf
Description: Adobe PDF document
___
If your question is of interest to others
right and the widest
> > label's left side located at the left margin.
> > I tried the below code but the 3 digit labels' left sides go into the left
> > margin. How can I fix it?
> >
> > Code:
> >
> > \showframe
> > \starttext
> > \start
but the 3 digit labels' left sides go into the
left margin. How can I fix it?
Code:
\showframe
\starttext
\startitemize[n,broad][itemalign=flushright]
\dorecurse{250}{\item }
\stopitemize
\stoptext
You can use the width-key to set a value for the number, below is a
example for method
tried the below code but the 3 digit labels' left sides go into the
> left margin. How can I fix it?
Hi Csikos,
width is the key, such as in:
\showframe\showgrid\showstruts
\starttext
\startitemize[n,broad][width=.125tw, itemalign=flushright]
\dorecurse{250}{\item }
\stopitemize
margin. How can
I fix
it?Code:\showframe\starttext\startitemize[n,broad][itemalign=flushright]\dorecurse{250}{\item
}\stopitemize\stoptextThe resulted pdf is attached as
context-itemize-label-alignment.pdf.Thank you in advance,bcsikos
context-itemize-label-alignment.pdf
Description: Adobe PDF
[references.border=darkblue]%
\goto{#1}[url(#1)]\stop}
\starttext
\startTEXpage[offset=1dk, align=middle]
\inone{one}\blank
\intwo{two}\blank
\inthree{three}\blank
\stopTEXpage
\chapter[one]{First chapter}
\chapter[two]{Second chapter}
\chapter
}
\starttext
\startTEXpage[offset=1dk, align=middle]
\inone{one}\blank
\intwo{two}\blank
\inthree{three}\blank
\stopTEXpage
\chapter[one]{First chapter}
\chapter[two]{Second chapter}
\chapter[three]{Second chapter}
\stoptext
I see that the directive for link
Hi,
I would like to obtain, if possible, a gray gradient like in the image. My
code uses Metapost but maybe this is possible with Metafun.
Thanks.
Fabrice
\starttext
\startMPcode
u=1.2cm;
interim ahangle := 30;
z0=(0,0);
z1=(3u,0
on it.
Is there a way of doing calculations on the coordinates for the draw using
ConTexT variables like \textheight?
Thank you,
Peter Hopcroft
--
\starttext
Some text
\startMPcode
pickup pensquare scaled 1pt;
draw (0mm,0mm)--(0mm,\textheight) withcolor red
\stopMPcode
More text
s.txt" to be created in the local directory containing
the lines:
one
two
three
begin
\setuplinenumbering[location=text,style=\small\tt]
\starttext
Location=text not working in main body
\typefile[numbering=line]{three_lines.txt}
But it does work if a custom typing environment
=> default tags by Adobe
\setupbackend[export=yes]
\setupstructure[state=start,method=auto]
\starttext
\chapter[chap:testing]{Testing}
\input knuth
\input tufte
\input knuth
\input tufte
\input knuth
\input tufte
\stoptext
What seems to be going wrong? Is the software looking for the *.i
On Tue, 3 Oct 2023 16:27:22 +0200
Marco Patzer wrote:
> What about:
>
> \unit{10 um}
> \unit{10 µm}
>
> Can I assign µ to mean micro (prefix)?
Found it:
\registerunit [prefix] [µ=micro]
\starttext
\unit{10 micro meter} \crlf
\unit{10 µm}
\stoptext
Should this be the d
Marco Patzer schrieb am 03.10.2023 um 12:31:
Hi!
I struggle using the unit Farad (unit of capacitance):
The unit "farad" exists.
\starttext
%% prints 10 10 ft
\unit{10 F}
\unit{20 ft}
\registerunit [F=Farad]
\setupunittext [Farad=F]
%% prints 10 F 20 F⋅t
\unit{10 F}
\
Hi!
I struggle using the unit Farad (unit of capacitance):
\starttext
%% prints 10 10 ft
\unit{10 F}
\unit{20 ft}
\registerunit [F=Farad]
\setupunittext [Farad=F]
%% prints 10 F 20 F⋅t
\unit{10 F}
\unit{20 ft}
\stoptext
When registering Farad as new unit it messes up feet. This looks
like
]
\definealternativestyle
[authorstyle]
[\rm\tfb]
[]
\definealternativestyle
[titlestyle]
[\rm\bfd]
[]
\starttext
\startmakeup
[frontpage]
\authorstyle
{The Author}
\blank
\titlestyle
{This is the Title}
\stopmakeup
\startmakeup
[titlepage]
\titlestyle
{This is the Title}
\stopmakeup
My example is setup as advised in the manual:
"""
%\mainlanguage[de]
\usebtxdataset[beispiel][bib_example.bib]
\setupbtx[dataset=beispiel]
%\usebtxdefinitions[apa]
\definebtxrendering[beispiel][apa][dataset=beispiel,group=beispiele]
\starttext
\placelistofpublications[b
Two column text that ends near the foot of a page can push the next line into
the footer rather than starting a new page.
MWE for ConTeXt ver: 2023.09.26 18:19 LMTX :-
\setuppapersize [A4]
\showframe
\starttext
Knuth in knolumns
\dorecurse{30}{\crlf}
\startcolumns
\input knuth
\stopcolumns
Hi,
On Thu, Sep 28, 2023 at 6:39 PM Aditya Mahajan wrote:
>
> Hi,
>
> The `align` parameter of `\setupformulas` is ignored in mathalign. Consider
> the following MWE:
>
> \setupformulas[align=flushleft,leftmargin=2em]
>
> \starttext
> \startformula
&
Hi,
The `align` parameter of `\setupformulas` is ignored in mathalign. Consider the
following MWE:
\setupformulas[align=flushleft,leftmargin=2em]
\starttext
\startformula
A = B
\stopformula
vs
\startformula \startalign
\NC A \NC B \NR
\NC A \NC B \NR
\stopalign \stopformula
\stoptext
:
\showframe\showgrid\showstruts
\setuppapersize[A6]
\setupitemgroup
[itemize][1]
[ before={\blank[quarterline]},
after={\blank[quarterline]\null}]
\starttext
one
\startblockquote
\startitemize
\item
\showframe\showgrid\showstruts
\setuppapersize[A6]
\setupitemgroup
[itemize][1]
[ before={\blank[quarterline]},
after={\blank[quarterline]\null}]
\starttext
one
\startblockquote
\startitemize
\item a.
\stopitemize
\sto
]
[ before={\blank[.125th]},
after={\blank[.125th]}]
\starttext
one
\startblockquote
\startitemize
\item a
\stopitemize
\stopblockquote
two
\stoptext
The blockquote disables the space after the list, but not before.
Have I hit a bug or am I missing something?
Many thanks for your help,
Pablo
Dear list,
I have the following sample:
\setuppapersize[A6]
\setupitemgroup
[itemize][1]
[ before={\blank[.125th]},
after={\blank[.125th]}]
\starttext
one
\startblockquote
\startitemize
\item a
\stopitemize
Am 25.09.23 um 17:52 schrieb Pablo Rodriguez:
Dear list,
I have the following sample (with current latest from 2023.09.18 21:13):
\setuppapersize[A6]
\starttext
\startsetups[forfootnote]
\setupitemgroup
[itemize][1]
[ before={\endgraf{\ttbf
Dear list,
I have the following sample (with current latest from 2023.09.18 21:13):
\setuppapersize[A6]
\starttext
\startsetups[forfootnote]
\setupitemgroup
[itemize][1]
[ before={\endgraf{\ttbf[before]}\endgraf},
after={\endgraf
2986: in
function <...ext/tex/texmf-context/tex/context/base/mkxl/math-noa.lmt:2984>
1 \setupbodyfont[pagella]
2
3 \starttext
4 \startformula
5 \delta_{ij} =
6 \startmathcases
7 \NC 1 \NC \text{if } i = j \NR
8 \NC 0 \NC \text{otherwise} \NR
9
x/texmf-context/tex/context/base/mkxl/math-noa.lmt:2984>
1 \setupbodyfont[pagella]
2
3 \starttext
4 \startformula
5 \delta_{ij} =
6 \startmathcases
7 \NC 1 \NC \text{if } i = j \NR
8 \NC 0 \NC \text{otherwise} \NR
9
xT. The problem seems to occur when using mathcases
> with some ConTeXt provided fonts, including pagella. This is a minimal not
> working example :
>
> \setupbodyfont[pagella]
>
> \starttext
> \startformula
> \delta_{ij} =
> \startmathcases
> \NC 1 \NC \text{if
Hello,
Since ConTexT last upgrade (ltmx 2023.09.18 21:13), I have a document that
won't compile with ConTexT. The problem seems to occur when using mathcases
with some ConTeXt provided fonts, including pagella. This is a minimal not
working example :
\setupbodyfont[pagella]
\starttext
d by mtxrun:
\mainlanguage[agr]
\definefontfamily[mainface][rm][gfsdidot]
\definefontfamily[mainface][ss][theanodidot]
\setupbodyfont[mainface]
\starttext
GFS Didot:
\doloopoverlist{\tf, \it, \bf, \bi}
{\recursestring\input aristotle-grc\par}
\ss
Theano Didot:
\input aristotle-grc
\stoptext
led
the fonts with the name returned by mtxrun:
\mainlanguage[agr]
\definefontfamily[mainface][rm][gfsdidot]
\definefontfamily[mainface][ss][theanodidot]
\setupbodyfont[mainface]
\starttext
GFS Didot:
\doloopoverlist{\tf, \it, \bf, \bi}
{\recursestring\input aristotle-grc\par}
\ss
Theano Didot:
\in
l.
I think this would do the trick. Compile the following source:
\mainlanguage[agr]
\definefontfamily[mainface][rm][GFS Didot]
\definefontfamily[mainface][ss][Theano Didot]
\setupbodyfont[mainface]
\starttext
\doloopoverlist{\tf, \it, \bf, \bi}
{\recursestring\input aristotle-grc\par}
t; >> \definemathstackers[topbin][top][mathclass=\mathbinarycode]
> >>
> >> \definemathextensible[toprel][frownedupon]["2322]
> >> \definemathextensible[topbin][frowned]["2322]
> >>
> >> \starttext
> >> $x \frownedupon{4}
I had no luck with page floats in columnsets; according to the manual
they should work.
Hraban
\setuppapersize[A5,landscape]
\useMPlibrary[dum]
\definecolumnset[Two][n=2]
\starttext
\startcolumnset[Two]
\dorecurse{5}{1\recurselevel\samplefile{lorem}\par}
\startplacefigure[location=page
hat doesn’t matter.
"location=inmargin": the symbol is at the edge of the text, but not in
the margin.
Hraban
\setupinteraction[
state=start,
]
\setupcomment[
author=Don,
location=inmargin,
]
\starttext
\samplefile{knuth}
\comment[author=Me
jbf schrieb am 21.09.2023 um 07:01:
However, Wolfgang, if I do, e.g.
\setuphead[chapter][textcommand={\setbar[underbar]}]
\starttext
\startchapter[title={My title}]
\input ward
\stopchapter
\stoptext
Then I do not get My Title with underline, which is what I want, and nor
is anything
;2322]
\definemathextensible[topbin][frowned]["2322]
\starttext
$x \frownedupon{4} y + \frowned{!} z = 10$
\stoptext
Interesting, but I think that the OP wanted to use \frown as an accent,
\definemathaccent[topfake][top][offset=auto]
\definemathtopaccent[topfake][frowned]["2322]
\st
topbin][frowned] ["2322]
>
> \starttext
> $x \frownedupon{4} y + \frowned{!} z = 10$
> \stoptext
Interesting, but I think that the OP wanted to use \frown as an accent,
Aditya
___
If you
]
\definemathextensible[toprel][frownedupon]["2322]
\definemathextensible[topbin][frowned]["2322]
\starttext
$x \frownedupon{4} y + \frowned{!} z = 10$
\stoptext
-
Hans Hagen |
However, Wolfgang, if I do, e.g.
\setuphead[chapter][textcommand={\setbar[underbar]}]
\starttext
\startchapter[title={My title}]
\input ward
\stopchapter
\stoptext
Then I do not get My Title with underline, which is what I want, and nor
is anything else underlined in 'Ward'.
Could
{text}}] but would prefer to achieve
this with \setuphead
\setuphead[chapter][textcommand={\setbar[underbar]}]
\starttext
\chapter{\samplefile{ward}}
\stoptext
Wolfgang
___
If your question is of interest to others
On 9/18/23 19:52, Rik Kabel wrote:
> (Running 2023.09.18 17:40 on Windows 11 x64)
>
> With
>
> \setupbodyfont[libertinus,11pt]
> \starttext
> Hello
> \stoptext
>
> I get no text output in the pdf and the following error reports:
Hi Rik,
I think cu
(Running 2023.09.18 17:40 on Windows 11 x64)
With
\setupbodyfont[libertinus,11pt]
\starttext
Hello
\stoptext
I get no text output in the pdf and the following error reports:
fonts > otf loading > loading
'G:/ConTeXt_LMTX/tex/texmf/fonts/data/public/libe
On 18/09/2023 17:07, Michael Loescher wrote:
\starttext
\type{hello}
\stoptext
here too (linux pop!os 22.04) something goes unexpected:
! Control sequence expected instead of undefined.
\buff_verbatim_type_normal
...chained \t!verbatim \currenttype \??type \clf_type
data
Am 18.09.2023 um 16:20 schrieb Hans Hagen:
On 9/18/2023 3:58 PM, Michael Loescher wrote:
There seems to be something wrong with the \type command.
MWE:
\starttext
\type{hello}
\stoptext
gives an error:
tex error > tex error on line 2 in file Z:/test.tex: Control sequence
expec
Hi,
works as expected here, with the latest.
/Mikael
On Mon, Sep 18, 2023 at 4:04 PM Michael Loescher wrote:
>
> There seems to be something wrong with the \type command.
>
> MWE:
> \starttext
> \type{hello}
> \stoptext
>
> gives an error:
> tex error &
On 9/18/2023 3:58 PM, Michael Loescher wrote:
There seems to be something wrong with the \type command.
MWE:
\starttext
\type{hello}
\stoptext
gives an error:
tex error > tex error on line 2 in file Z:/test.tex: Control
sequence expected instead of undefined
what platform?
looks l
There seems to be something wrong with the \type command.
MWE:
\starttext
\type{hello}
\stoptext
gives an error:
tex error > tex error on line 2 in file Z:/test.tex: Control sequence
expected instead of undefined
\buff_verbatim_type_normal
#1->\buff_verbatim_initialize_ty
yfont=11pt,
style={\tt}]
\defineenumeration
[Code]
[title=yes,
alternative=empty,
before=\startCountFramedText,
after=\stopCountFramedText,
left={\somenamedheadnumber{chapter}{current}.}]
\starttext
\startchapter
[title=first]
\startCode
[title={The First Title},
refer
CountFrame}
{}
\defineenumeration
[Counter]
[title=yes,
alternative=empty,
before=\startCountFramedText,
after=\stopCountFramedText]
\starttext
\startchapter
[title=first]
\startCounter
[title={The First Title},
reference={tit1}]
Some verbatim text
\stopCounter
\startCounte
Dear list,
I have the following sample:
\showgrid
\setuplayout[grid=yes]
\starttext
\startoutputstream[one]
\startcolor[red]
\dorecurse{4}{\input knuth\par\pushoutputstream}
\stopcolor
\stopoutputstream
\startoutputstream[two]
\startcolor
,frame=on,framecolor=\boxframecolor,]% }% \formattitle{#2}%}\def\boxfigure#1#2{% \externalfigure[#1]% [rulethickness=4pt,width=100pt,height=50pt,frame=on,framecolor=\boxframecolor,]% \formattitle{#2}%}\def\boxtitlecolor{blue}\def\boxframecolor{blue}\starttext\ConTeXt\ \contextversion\blankProblem
y shows the problem. I'm using ConTeXt
ver: 2023.09.04 19:15.
\starttext
\startoutputstream[one]
\startcolor[red]
\dorecurse{5}{\chapter{Stream One}
\dorecurse{10}{\input knuth\par}
}
\stopcolor
\stopoutputstream
\startoutputstream[two]
\startcolor[green]
\dorecurse{5}{\chapter{Stream Two}
> On 15 Sep 2023, at 13:56, Taco Hoekwater wrote:
>
> Like this?
>
> \definehead[mychapter][chapter]
> \setuphead[mychapter][page=no]
Taco beat me to it... a simple example:
\starttext
\chapter{First}
Some text
\chapter{Second}
More text
\chapter{Third}
More text
>> Either use
>>
>> \setupsectionblock[backpart][before={\setuphead[chapter][page=no]}]
>>
>> Or, nicer:
>>
>> \startsectionblockenvironment[backpart]
>> \setuphead[chapter][page=no]
>> \stopsectionblockenvironment
>>
>>
>>> Best,
>>> Denis
&g
ter headings
and it all looks fine to me[1] - the red text is all on the right hand side and
the greeen text is all on the left. If this doesn't help and you still have
problems then you'll need to post a sample that actually shows the problem. I'm
using ConTeXt ver: 2023.09.04 19:15.
\starttext
][page=yes]
\setupsectionblock[backmatter][setups={\setuphead[chapter][page=no]}]
\starttext
\chapter{One}
\input knuth
\chapter{Two}
\input ward
\startbackmatter
\chapter{Three}
\input knuth
\chapter{Four}
\input ward
\stopbackmatter
\stoptext
Von: Jeroen
Gesendet: Donnerstag, 14
s]
> \setupsectionblock[backmatter][setups={\setuphead[chapter][page=no]}]
> \starttext
> \chapter{One}
> \input knuth
> \chapter{Two}
> \input ward
> \startbackmatter
> \chapter{Three}
> \input knuth
> \chapter{Four}
> \input ward
> \stopbackmatter
> \stopte
=no]}]
\starttext
\chapter{One}
\input knuth
\chapter{Two}
\input ward
\startbackmatter
\chapter{Three}
\input knuth
\chapter{Four}
\input ward
\stopbackmatter
\stoptext
Von: Jeroen
Gesendet: Donnerstag, 14. September 2023 23:50
An: mailing list for ConTeXt users
Betreff: [NTG-context] Chapters without
.
\starttext
\startoutputstream[one]
\startcolor[red]
\dorecurse{5}{\chapter{Stream One}
\dorecurse{10}{\input knuth\par}
}
\stopcolor
\stopoutputstream
\startoutputstream[two]
\startcolor[green]
\dorecurse{5}{\chapter{Stream Two}
\dorecurse{10}{\input zapf\par
this doesn't help and you still have
problems then you'll need to post a sample that actually shows the problem. I'm
using ConTeXt ver: 2023.09.04 19:15.
\starttext
\startoutputstream[one]
\startcolor[red]
\dorecurse{5}{\chapter{Stream One}
\dorecurse{10}{\input knuth\par}
\protected
modifier when you create \Mycommand.
\starttext
\def\Mycommand#1{#1}% fails
%\protected\def\Mycommand#1{#1}% works
\edef\CheckMycommand{\Mycommand}
\ifempty\CheckMycommand
\tex{Mycommand} is empty
\else
\tex{Mycommand} has content
\fi
\stoptext
If just found the following in th
ault TIFF converters to the above function.
figures.converters.tif.pdf = convert
figures.converters.tif.jpg = convert
figures.converters.tif.default = convert
\stopluacode
\setfigureconversion[tif][jpg] % has no effect
\starttext
\externalfigure[test.tif][conver
]\\}\blackrule[color=black, height=0.05ex, width=4cm]
\starttext
\margintext{2.1.1}\
{Ach ist das schön, dass du da bist.}
\stoptext
Uschi
___
If your question is of interest to others as well, please add an entry
this one.
Julian
The original (Wolfgang) code is as follows:
\starttext
\startoutputstream[one]
\startcolor[red]
\dorecurse{10}{\input knuth\par}
\stopcolor
\stopoutputstream
\startoutputstream[two]
\startcolor[green]
\dorecurse{10}{\input zapf\par}
\stopcolor
% Test
% \blank
% #1\space#2
% \stoptexdefinition
\starttext
\myChapterCommand{1}{asdf}
\startchapter[title=First][author=First Author]
\input knuth
\stopchapter
\startchapter[title=Second][author=Second Author]
\input knuth
\stopchapter
\setuphead[chapter]
[
before=,after
nd #1 #2 % doesn't work either, but at
least blanks should work
% \structureuservariable{author}
% Test
% \blank
% #1\space#2
% \stoptexdefinition
\starttext
\myChapterCommand{1}{asdf}
\startchapter[title=First][author=First Author]
\input knuth
\stopchapter
\startchapter[title=Second][auth
{\structureuservariable{author}\blank #1\space#2} %
does not work
% \starttexdefinition myChapterCommand #1 #2 % doesn't work either, but at
least blanks should work
% \structureuservariable{author}
% Test
% \blank
% #1\space#2
% \stoptexdefinition
\starttext
\myChapterCommand{1}{asdf
after={After: \structureuservariable{author}\blank},
]
\def\myChapterCommand#1#2{\structureuservariable{author}\space\blank}
\define[2]\myChapterCommand{\structureuservariable{author}\blank #1\space#2}
%\def\myChapterCommand#1#2{\structureuservariable{author}\blank #1\space#2} %
does not work
\sta
Ursula Hermann schrieb am 12.09.2023 um 11:19:
Dear List,
I have done an little example with a \blackrule:
\setuppapersize[A8,landscape]
\setuplayout[leftmargin=2.5cm,
leftmargindistance=0.2cm,
backspace=2.9cm,
width=4cm]
\starttext
\margintext{\blackrule[color=black, height=0.05ex
Dear List,
I have done an little example with a \blackrule:
\setuppapersize[A8,landscape]
\setuplayout[leftmargin=2.5cm,
leftmargindistance=0.2cm,
backspace=2.9cm,
width=4cm]
\starttext
\margintext{\blackrule[color=black, height=0.05ex,
width=1cm]\\Me
, " ") .. " …"
> else res = t.dt[1]
> end
> context(res)
> end
> \stopluacode
> \startxmlsetups xml:chapter:title:marking
> \xmlfunction{#1}{getMarking}
> \stopxmlsetups
>
end
context(res)
end
\stopluacode
\startxmlsetups xml:chapter:title:marking
\xmlfunction{#1}{getMarking}
\stopxmlsetups
\startxmlsetups xml:chapter:title
\xmlflush{#1}
\stopxmlsetups
\setupheadertexts[chapter]
\starttext
\xmlp
]
\starttext
\bTABLE
\bTR
\bTD Cell 1:1 \eTD
\bTD Cell 1:2 \eTD
\bTD Cell 1:3 \eTD
\eTR
\bTR
\bTD Cell 2:1 \eTD
\bTD Cell 2:2 \eTD
\bTD Cell 2:3 \eTD
\eTR
\bTR
\bTD Cell 3:1 \eTD
\bTD Cell 3:2 \eTD
\bTD Cell 3:3 \eTD
\eTR
\eTABLE
at 21:38 (+0200), Lutz Haseloff wrote:
> Hi Jim,
> perhaps does this work for you?
>
> \setuplist[chapter][headnumber=no]
> \setuphead[chapter][number=no]
> \starttext
> \completecontent
> \page
> \chapter{Chapter one}
> \input knuth
> \chapter{Chapt
ctions are shown in the table of content
> because by default only the numbered sections are listed.
> begin example 1
> \setuphead [title] [incrementnumber=list]
> \setuphead [subject] [incrementnumber=list]
> \setuphead [subsubject] [incrementnumber=list]
> \definehead [conte
Hi Jim,
perhaps does this work for you?
\setuplist[chapter][headnumber=no]
\setuphead[chapter][number=no]
\starttext
\completecontent
\page
\chapter{Chapter one}
\input knuth
\chapter{Chapter two}
\input ward
\stoptext
Greetings Lutz
Am 9. September 2023 20:11:55 MESZ schrieb
ject] [incrementnumber=list]
\setuphead [subsubject] [incrementnumber=list]
\definehead [contentstitle] [title]
\setupcombinedlist [content]
[list={chapter,title,section,subject,subsection,subsubject}]
\starttext
\completecontent
\title{Title}
\subject{Subject}
\subsubject{Subsubject}
[listingbackground]},
after=%
{\stoptextbackground
\blank[4*medium]},
align={flushleft,verytolerant}]
\starttext
\startListing
this is a code example
\stopListing
\stoptext
%%
% MWE2
%%
\startuseMPgraphic{FunnyFrame}
picture p ; numeric w, h, o ;
p
]
[bodyfont=10pt,
margin=1em,
before=%
{\blank[3*medium]
\setupinterlinespace[line=2.4ex]
\starttextbackground[listingbackground]},
after=%
{\stoptextbackground
\blank[4*medium]}]
\protect
\starttext
\startListing
test test test test test test test test test test test
gives a pdf with two #'s instead of only one. Why is that?
> >
> > \starttext
> >
> > \startluacode
> > context.type("#")
> > \stopluacode
> >
> > \stoptext
> because by default tex loves to duplicate hashes when it serializes
>
On 9/7/2023 2:47 PM, Marcus Vinicius Mesquita wrote:
Dear List,
The MWE below gives a pdf with two #'s instead of only one. Why is that?
\starttext
\startluacode
context.type("#")
\stopluacode
\stoptext
because by default tex loves to duplicate hashes when it serializes
t
Dear List,
The MWE below gives a pdf with two #'s instead of only one. Why is that?
\starttext
\startluacode
context.type("#")
\stopluacode
\stoptext
--
Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o
corpo nem seus membros, por ser descanso da alma, pr
Hi,
You can use before, inbetween and after.
\setupitemgroup
[itemize]
[inbetween={\blank[1cm]},
before={\blank[2cm]},
after={\blank[3cm]}]
\starttext
\samplefile{ward}
\startitemize
\dorecurse{4}{
\startitem
\samplefile{knuthmath}
\stopitem
}
\stopitemize
\samplefile{ward}
\stoptext
related to XML):
\starttext
\externalfigure[test two spaces.pdf]
\externalfigure[test not two spaces.pdf]
\stoptext
I don‘t know whether this is intended or not.
That being said, more than one consecutive space in a file name (I would
say it) is rather an exception than the rule
On 9/6/23 12:28, denis.ma...@unibe.ch wrote:
> Hi,
>
> I have the example below that uses the three images in the attachment.
> For some reason multiple spaces encoded as %20 get merged into a single %20.
Hi Denis,
this is standard TeX behavior (not only related to XML):
701 - 800 of 31867 matches
Mail list logo