Hi,
trying to work with variable fonts, I am stuck at the very beginning.
I can't see any effect of weight parameter.
Using adobevariablefontprototypebold and adobevariablefontprototypelight is
working.
\starttext
\definefontfeature[whatever][axis={weight:150}]%
\definedfont
> >
> this is my MWE:
> \definefontfeature [arabis]
> [mode=node,language=dflt,script=arab,
> init=yes,medi=yes,fina=yes,isol=yes,
> liga=yes,dlig=yes,rlig=yes,clig=yes,
> mark=yes,mkmk=yes,kern=yes,curs=yes]
> \definefont [Ahang] [file:Ahang-Regular.otf*arabis at 18pt]
> \setupal
flt,script=arab,
init=yes,medi=yes,fina=yes,isol=yes,
liga=yes,dlig=yes,rlig=yes,clig=yes,
mark=yes,mkmk=yes,kern=yes,curs=yes]
\definefont [Ahang] [file:Ahang-Regular.otf*arabis at 18pt]
\setupalign[r2l]
\starttext
{\Ahang تَشْكِيل كَسْرَة}
\stoptext
\definefont [Ahang] [file:Ahang-Regular.otf*arabic at 1
rs=yes]
\definefont [Ahang] [file:Ahang-Regular.otf*arabis at 18pt]
\setupalign[r2l]
\starttext
{\Ahang تَشْكِيل كَسْرَة}
\stoptext
\definefont [Ahang] [file:Ahang-Regular.otf*arabic at 18pt]
but there is an issue with widths, ill send you a patch to test
The provided "*arabic" featurese
e.com/file/d/1hCcv6wqWjd-5GEKnaowh8E8YVbTgGqQr/view?usp=sharing>
this is my MWE:
\definefontfeature [arabis]
[mode=node,language=dflt,script=arab,
init=yes,medi=yes,fina=yes,isol=yes,
liga=yes,dlig=yes,rlig=yes,clig=yes,
mark=yes,mkmk=yes,kern=yes,curs=yes]
\definefont [Ahang] [file:Ahang-Regular.otf*ar
-Regular.otf*arabis at 18pt]
\setupalign[r2l]
\starttext
{\Ahang تَشْكِيل كَسْرَة}
\stoptext
\definefont [Ahang] [file:Ahang-Regular.otf*arabic at 18pt]
but there is an issue with widths, ill send you a patch to test
Hans
this is my MWE:
\definefontfeature [arabis]
[mode=node,language=dflt,script=arab,
init=yes,medi=yes,fina=yes,isol=yes,
liga=yes,dlig=yes,rlig=yes,clig=yes,
mark=yes,mkmk=yes,kern=yes,curs=yes]
\definefont [Ahang] [file:Ahang-Regular.otf*arabis at 18pt]
\setupalign[r2l]
\starttext
{\Ahang
te counter with the third
(optional) argument.
\def\IndexPageCommand#1%
{#1\doifsomething
{\currentregisterpageuserdata{footnote}}
{\high{\currentregisterpageuserdata{footnote
\setupregister[index][pagecommand=\IndexPageCommand]
\starttext
\dorecurse{200}
{\samplefile{lorem
ligatures?
I’m interested in not disabling hz and hanging.
\typebuffer disables automatic \endash and \emdash with the
\nohyphencollapsing command
but the command isn't used for \typeinlinebuffer.
\starttext
\type{--} = --
\nohyphencollapsing
\type{--} = --
\dohyphencollapsing
\type
Dear list,
I have the following sample:
\definefontfamily[mainface][tt][TeX Gyre Termes]
\setupbodyfont[mainface]
\starttext
\startbuffer
context --purgeall
\stopbuffer
inline \typeinlinebuffer
block:
\typebuffer
\stoptext
As long as there is no defined font family for mono
fairly obvious format.
\definecolor [wolley] [\colorcomponents{yellow},t=0.5,a=1]
\starttext
%\showcolorcomponents [yellow]
\framed[background=color,backgroundcolor=darkblue,foregroundcolor=yellow]{yellow}
\framed[background=color,backgroundcolor=darkblue,foregroundcolor=wolley]{wolley}
\st
Mikael Sundqvist schrieb am 05.05.2024 um 16:45:
Hi
On Sun, May 5, 2024 at 4:40 PM Joel via ntg-context wrote:
\definedescription[latexdesc][headstyle=bold, style=normal, align=flushleft,
alternative=hanging, width=broad, margin=1cm]
\starttext
\latexdesc{1540} some event happened
Hi
On Sun, May 5, 2024 at 4:40 PM Joel via ntg-context wrote:
>
>
> \definedescription[latexdesc][headstyle=bold, style=normal, align=flushleft,
> alternative=hanging, width=broad, margin=1cm]
>
> \starttext
>
> \latexdesc{1540} some event happened
> \latex
\definedescription[latexdesc][headstyle=bold, style=normal, align=flushleft,
alternative=hanging, width=broad, margin=1cm]
\starttext
\latexdesc{1540} some event happened
\latexdesc{1541} some other event happened
\latexdesc{1542} some event happened quite different
\stoptext
I
=Theorem,
style=italic,
headstyle=bold,
headcommand=\groupedcommand{}{.},
]
\starttext
Did you try:
text=,
stopper={ Theorem},
?
There are so many parameters in
https://wiki.contextgarden.net/Command/setupenumeration and
https://wiki.contextgarden.net/Command/setupcounter
…
Hraban
,
headcommand=\groupedcommand{}{.},
]
\starttext
\chapter{}
\section{}
\starttheorem
This is a theorem
\stoptheorem
\stoptext
Many thanks,
Jethro
___
If your question is of interest to others as well, please add an entry
]
\stopxmlsetups
\def\IndexPageCommand#1%
{#1\doifsomething
{\currentregisterpageuserdata{footnote}}
{\high{\currentregisterpageuserdata{footnote
\setupregister[index][pagecommand=\IndexPageCommand]
\starttext
\xmlprocessbuffer{main}{test}{}
\stoptext
On 5/3/24 12:18, Wolfgang
the third
(optional) argument.
\def\IndexPageCommand#1%
{#1\doifsomething
{\currentregisterpageuserdata{footnote}}
{\high{\currentregisterpageuserdata{footnote
\setupregister[index][pagecommand=\IndexPageCommand]
\starttext
\dorecurse{200}
{\samplefile{lorem}\expanded{\setreg
unction Moduledata.jiazhu.main(head)
show_detail(head,"head")
return head, true
end
nodes.tasks.appendaction("processors", "after", "Moduledata.jiazhu.main")
\stopluacode
\starttext
\hbox{a b c}
% The result is as follows (without the I expect
[preference,line]
\stopxmlsetups
\startxmlsetups xml:line
\xmlflush{#1}\blank[samepage,none]
\stopxmlsetups
\startbuffer[test]
The
lines
are
there!
The
lines
are
there!
The
lines
are
there!
\stopbuffer
\starttext
\samplefile{lorem}
\xmlprocessbuffer{test}{test}{}
\samplefile{lorem
=\paperwidth,height=\paperheight]
\setupbackgrounds[page][background={mybkgr}]
\starttext
\setlayerframed
[mybkgr]
[]
[background=color,
framecolor=forestgreen,
backgroundcolor=forestgreen,
foregroundcolor=white,
width=\paperwidth,
height=\dimexpr\topspace+\headerheight\relax
gt; \startbuffer[test]
>
>
>
>
> The
> lines
> are
> there!
>
>
> The
> lines
> are
> there!
>
>
> The
> lines
> are
> there!
>
>
>
> \stopbuffer
>
> \starttext
>
> \samplefile{lorem}
>
> \xmlproces
?
Best,
Denis
%
% Original MWE
\define[2]\mytitle{%
\switchtobodyfont[chorus]%
#2
}
\define[2]\mysubject{%
\switchtobodyfont[chorus]%
#2
}
\setuphead[title][command=\mytitle]
\setuphead[subject][command=\mysubject]
\starttext
\title{In Zapf Chancery
\defineframedtext [sidebartext]
[width=.4\textwidth,bodyfont=small,corner=round,background=color,backgroundcolor=lightgray,align=flushleft]
\starttext
This is a bit of text
\placefloat[sidebar][leftmargindistance=-.25in,rightmargindistance=-.25in,outer,none]{}{
1. You're again passing assi
Pablo Rodriguez via ntg-context schrieb am 29.04.2024 um 17:22:
Dear list,
I have the following sample:
\starttext
\startluacode
function document.test(str)
context(str)
end
interfaces.definecommand {
name = "testing",
protected = false,
Dear list,
I have the following sample:
\starttext
\startluacode
function document.test(str)
context(str)
end
interfaces.definecommand {
name = "testing",
protected = false,
macro = document.test,
}
\stopluacode
\meaningfull\testing
"/usr/local/Cellar/zint/2.13.0/lib/libzint.dylib"
3) Running the wiki example:
\usemodule[m-zint]
\starttext
\barcode[alternative=isbnx, text=9783865419026, width=4cm]
\barcode[alternative=qrcode, text={https://wiki.contextgarden.net},
width=3cm]
\bar
So, I hardcoded libfile in libs-impzint.lmt to
local libfile = "/usr/local/Cellar/zint/2.13.0/lib/libzint.dylib"
3) Running the wiki example:
\usemodule[m-zint]
\starttext
\barcode[alternative=isbnx, text=9783865419026, width=4cm]
\barcode[alternative=qrc
]
defineframedtext [sidebartext]
[width=.4textwidth,bodyfont=small,corner=round,background=color,backgroundcolor=lightgray,align=flushleft]
starttext
This is a bit of text
placefloat[newsidebar][leftmargindistance=-.25in,rightmargindistance=-.25in,outer,none]{}{
startsidebartext
This is a short
framedtext [sidebartext]
[width=.4\textwidth,bodyfont=small,corner=round,background=color,backgroundcolor=lightgray,align=flushleft]
\starttext
This is a bit of text
\placefloat[sidebar][leftmargindistance=-.25in,rightmargindistance=-.25in,outer,none]{}{
\startsidebartext
This is a sho
,bodyfont=small,corner=round,background=color,backgroundcolor=lightgray,align=flushleft]
starttext
This is a bit of text
placefloat[sidebar][leftmargindistance=-.25in,rightmargindistance=-.25in,outer,none]{}{
startsidebartext
This is a short sidebar
stopsidebartext
}
And something to follow.
A bit
Thank you! --Joel
On Saturday, April 27, 2024 at 12:08:13 PM MDT, Wolfgang Schuster
wrote:
Joel via ntg-context schrieb am 27.04.2024 um 19:16:
> \starttext
> test\high{1}test\footnote{some text}
> \stoptext
>
> How can I create a superscript number that has e
Joel via ntg-context schrieb am 27.04.2024 um 19:16:
\starttext
test\high{1}test\footnote{some text}
\stoptext
How can I create a superscript number that has exactly the same
formatting as a footnote, but which won't create a footnote. I tried
\high{}, which I believe should be the way
\starttext
test\high{1}test\footnote{some text}
\stoptext
How can I create a superscript number that has exactly the same formatting as a
footnote, but which won't create a footnote. I tried \high{}, which I believe
should be the way to superscript text, but if you compile this, you can see
zed with the
setups of the new namespace.
begin example
\unprotect
\installnamespace {sidenote}
\installframedcommandhandler \sidenote {sidenote} \sidenote
\protect
\starttext
\inheritedsidenoteframed{Text in a frame!}
\setupsidenote[framecolor=red,
\xmlflush{#1}\blank[preference,line]
\stopxmlsetups
\startxmlsetups xml:line
\xmlflush{#1}\blank[samepage,none]
\stopxmlsetups
\startbuffer[test]
The
lines
are
there!
The
lines
are
there!
The
lines
are
there!
\stopbuffer
\starttext
\samplefile{lorem}
\xmlprocessbuffer{test
en you add a \par you just end the current line/paragraph and it
>> doesn't matter how many \par's you use because TeX just ignores them.
>
> I see. But there's no command that could be used to simulate an empty line?
Crappy code:
\starttext
a\dorecurse{25}{\par}b
a\dorecurse
On 4/26/24 19:50, Wolfgang Schuster wrote:
> Pablo Rodriguez via ntg-context schrieb am 26.04.2024 um 19:04:
>> I tried this approach (I hope it isn’t wrong):
>>
>>\starttext
>>\expanded\tolerant\def\MyCommand#_#,#_#,#_#,#_{%
>
> The \expanded mod
...groupempty commands. To have more control about this
behavior use the \tolerant modifier for \def to change it.
Many thanks for your reply, Wolfgang.
I tried this approach (I hope it isn’t wrong):
\starttext
\expanded\tolerant\def\MyCommand#_#,#_#,#_#,#_{%
\doiftextelse{#4
more control about this
> behavior use the \tolerant modifier for \def to change it.
Many thanks for your reply, Wolfgang.
I tried this approach (I hope it isn’t wrong):
\starttext
\expanded\tolerant\def\MyCommand#_#,#_#,#_#,#_{%
\doiftextelse{#4}%
{#4}
{\doiftextelse{#3}
Pablo Rodriguez via ntg-context schrieb am 26.04.2024 um 17:29:
Dear list,
I have the following sample:
\starttext
\def\MyCommand{\doquadruplegroupempty\doMyCommand}
\def\doMyCommand#1#2#3#4{%
\iffourthargument
#4%
\orelse\ifthirdargument
#3%
\else
Dear list,
I have the following sample:
\starttext
\def\MyCommand{\doquadruplegroupempty\doMyCommand}
\def\doMyCommand#1#2#3#4{%
\iffourthargument
#4%
\orelse\ifthirdargument
#3%
\else
#2%
\fi}
\MyCommand{}{second}{third}{fourth},\\
\MyCommand
xml:stanza
\xmlflushlinewise{#1}\par %this has no effect
\stopxmlsetups
\startxmlsetups xml:line
\xmlflush{#1}
\stopxmlsetups
\startbuffer[test]
The
lines
are
there!
The
lines
are
there!
\stopbuffer
\starttext
This works:
\startlines
The
lines
are
there!
The
lines
On 4/26/2024 9:54 AM, Thomas A. Schmitz wrote:
On 4/26/24 9:30 AM, Thomas A. Schmitz wrote:
And here I am again! Both in mkiv and in mkxl, start/stopregister does
not work when there is already an index entry before. Example below!
All best
Thomas
\setuppapersize [A6]
\starttext
On 4/26/24 9:30 AM, Thomas A. Schmitz wrote:
And here I am again! Both in mkiv and in mkxl, start/stopregister does
not work when there is already an index entry before. Example below!
All best
Thomas
\setuppapersize [A6]
\starttext
A\index{A} B \page
A\startregister [index] {A} B
there is already an index entry before. Example below!
All best
Thomas
\setuppapersize [A6]
\starttext
A\index{A} B \page
A\startregister [index] {A} B\startregister [index] [B] {B}
\dorecurse {10} {\input tufte}
A\stopregister [index] {A} B\stopregister [index] [B]
\page
nt = "short", righttext = righttext})
context("]")
end
\stopluacode
\startsetups btx:aps:cite:special
\btxcitereference
\ctxlua{render_cite([==[\currentbtxdataset]==], [==[\currentbtxtag]==],
[==[\currentbtxrighttext]==])}
\stopsetups
\setupbtx[aps:cite][al
but not in mkxl.
All best
Thomas
\setuppapersize [A6]
\starttext
A\index{A} B\startregister [index] [B] {B}
\dorecurse {10} {\input tufte}
A\index{A} B\stopregister [index] [B]
\page
\placeregister[index]
\stoptext
I’m using it like
\startregister[index][bibliografie]{Bibliografie
]
\starttext
A\index{A} B\startregister [index] [B] {B}
\dorecurse {10} {\input tufte}
A\index{A} B\stopregister [index] [B]
\page
\placeregister[index]
\stoptext
___
If your question is of interest
{\SMsidenoteconversion}% mark in text
\SidenoteContent[#1]{\setscript[hanzi]\setup[\SMsidenotealign]%
\convertsidenotemark{\SMsidenoteconversion}% mark with
note
#2
}}
\protect
\starttext
天地玄黄,宇宙洪荒。日月盈昃,辰宿列张。寒来暑往,秋收冬\sidenote[align=flushleft] {天地玄黄,宇宙洪荒。}
\stoptext
fullsquare xscaled r yscaled e shifted (r/2, h/2) withcolor darkred;
\stopuseMPgraphic
\defineoverlay [MonGraphisme_OL] [\useMPgraphic{MonGraphisme_MP}]
\setupbackgrounds [footer] [rightmargin] [background={MonGraphisme_OL}]
\starttext
\dorecurse{10}{\input tufte\page}
\stoptext
Any clue is warmly
On 4/24/24 02:15, Joel via ntg-context wrote:
> [...] Any idea how I can get current footnote value?
Hi Joel,
current footnote value can be accessed with \rawcountervalue[footnote],
such as in:
\starttext
\dorecurse{25}
{\ \footnote{Footnote \recurselevel}:
\rawcounterva
2, 2024 at 07:22:24 AM MDT, vm via ntg-context
wrote:
On 22/04/2024 14:38, Joel via ntg-context wrote:
> Is this the correct way to be using the \startpostponing code (see
> example below)?
>
> \starttext
> \input knuth
> \startpostponing
>
l you want.
\setuplabeltext
[en]
[chapter=Chapter ,
appendix=Appendix ,
hraban=Hraban ]
%\setuplist[chapter][label=hraban,width=3cm]
\setuplist[chapter][label=yes,width=3cm]
\starttext
\startfrontmatter
\completecontent
\stopfrontmatter
\startbodymatter
\chapter{First chapter}
\chapter{Seco
[bibrendering][aps][dataset=main, numbering=short]
\setupbtxlist[aps][
alternative=b,
distance=.5em,
]
\setupbtx[aps:cite][alternative=short]
\starttext
Knuth developed \TeX \cite[knuth1]
Several persons said something \cite[someother].
\placelistofpublications[bibrendering]
\stoptext
]
\setupnote[footnote][location=none]
\starttext
\input knuth
\cite[clark1989]
\placenotes[footnote]
\startchapter[title=Bibliography]
\placelistofpublications
\stopchapter
\stoptext
--Joel
iography part doesn’t work for me at all.
>
> But notes may be placed as their location is text (and you add a real
> footnote).
>
> This works fine:
>
> \setupnote[footnote][location=text]
>
> \starttext
> \input knuth
> \footnote{Footnote}
>
nds up being empty.
>
> Why is it appearing empty? Is there a fix?
Hi Joel,
the bibliography part doesn’t work for me at all.
But notes may be placed as their location is text (and you add a real
footnote).
This works fine:
\setupnote[footnote][location=text]
\starttext
\input kn
[dataset=default]
\usebtxdefinitions[sbl]
\setupbtx[sbl]
\setupnote[footnote][location=none]
\starttext
\input knuth
\cite[clark1989]
\placenotes[footnote]
\startchapter[title=Bibliography]
\placelistofpublications
\stopchapter
\stoptext
--Joel
On 22/04/2024 14:38, Joel via ntg-context wrote:
Is this the correct way to be using the \startpostponing code (see
example below)?
\starttext
\input knuth
\startpostponing
\placefigure{Caption\footnote{message
A}}{\externalfigure[cow][width=\textwidth]}
\stoppostponing
I've managed to get a minimum working example. If you check, you'll see the
5th footnote inside a placefigure doesn't render anywhere:
\starttext
\input knuth
\placefigure{Caption\footnote{message
A}}{\externalfigure[cow][width=\textwidth]}
\input knuth
\placefigure{Caption
%%%
\setupexternalfigures
[location={local,global,default}]
\setupfloats[compress=no]
\setupfloat[figure][default=top]
\starttext
\input knuth
\placefigure{Cow 1}{\externalfigure[cow][
width=.5\textwidth,
]}
\placefigure{Cow 2}{\externalfigure[cow
t?
> > I love kpfonts.
>
> \setupbodyfont[kpfonts]
>
> \starttext
> \samplefile{lorem}
> \stoptext
>
> Wolfgang
___
If your question is of interest to others as well, please add an entry to the
Wiki!
mail
darkred;
\stopuseMPgraphic
\defineoverlay [MonGraphisme_OL] [\useMPgraphic{MonGraphisme_MP}]
\setupbackgrounds [footer] [rightmargin] [background={MonGraphisme_OL}]
\starttext
\dorecurse{10}{\input tufte\page}
\stoptext
Any clue is warmly welcome
Xavier B. schrieb am 20.04.2024 um 13:51:
Hi,
Just a courious: is there kpfonts available for context?
I love kpfonts.
\setupbodyfont[kpfonts]
\starttext
\samplefile{lorem}
\stoptext
Wolfgang
___
If your
not work
==
\setupexternalfigures
[
maxwidth=\textwidth,
minwidth=\textwidth,
location={local,global,default},
]
\starttext
\externalfigure[cow.pdf
,
location={local,global,default},
]
\starttext
\externalfigure[cow.pdf]
\externalfigure[cow.pdf][width=\textwidth]
\stoptext
==
Am I missing something here?
There are no minwidth/minheight values for \externalfigure.
Wolfgang
cal,global,default}]
\starttext
\placefigure{A Cow}{\externalfigure[cow][
height=.5\textheight,
]}
\placefigure{A Cow}{\externalfigure[cow][
height=.3\textheight,
%height=.4\textheight,
]}
\placefigure{A Co
\showframe
\starttext
\doloopoverlist{none, width, height, maxwidth, maxheight}
{\externalfigure[cow.pdf][\recursestring=.125\textwidth]}
\page
\doloopoverlist{none, width, height, minwidth, minheight}
{\externalfigure[cow.pdf][\recursestring=.33\textwidth]}
\stoptext
Jus
set a default minimal width for external figures? But
this here does not work
==
\setupexternalfigures
[
maxwidth=\textwidth,
minwidth=\textwidth,
location={local,global,default},
]
\starttext
\externalfigure[cow.pdf
[location={local,global,default}]
\starttext
\placefigure{A Cow}{\externalfigure[cow][
height=.5\textheight,
]}
\placefigure{A Cow}{\externalfigure[cow][
height=.3\textheight,
%height=.4\textheight
Hi,
How could I prevent a column break after the second section title please?
Minimal example:
\starttext
\startcolumns[n=2]
\section{title 1}
\dorecurse{22}{bla\par}
\section{title 2} % Here starts a new column.
\startitemize
\dorecurse{15}{\item bla}
\stopitemize
\stopcolumns
ations.details, publications.cite, publications.strings]
> >
> > \usebtxdataset[main][testdata.buffer]
> > \usebtxdefinitions[aps]
> > \setupbtx[dataset=main]
> > \definebtxrendering[bibrendering][aps][dataset=main]
> >
> > % this seems to have no effect?
>
ings]
>
> \usebtxdataset[main][testdata.buffer]
> \usebtxdefinitions[aps]
> \setupbtx[dataset=main]
> \definebtxrendering[bibrendering][aps][dataset=main]
>
> % this seems to have no effect?
> \setupbtx[alternative=short]
>
> \starttext
>
> Knuth deve
ave no effect?
\setupbtx[alternative=short]
\starttext
Knuth developed \TeX \cite[knuth1].
Several persons said something \cite[someother].
\placelistofpublications[bibrendering]
\stoptext
```
It should be rendered as:
```
Knuth developed TeX [>Knu79].
Several persons said something [PO00].
line appears above the fourth column.
\starttext
\starttable[||]
%\DL \DC \DL \DC \DC \DR
\DL[red] \DC \DL[red] \DC \DR
\VL 01 \VL 02 \VL 03 \VL 04 \VL 05 \VL\SR
\stoptable
\stoptext
Wolfgang
s{Test}][]
[\setups{Test}][]
\setuppagenumbering[location=footer]
\starttext
\startDatum[title={secA}]%
\dorecurse{50}{aaa }
\pagebreak
\dorecurse{50}{aaa }
\stopDatum
\startDatum[title={secB}]%
\dorecurse{630}{bbb }
\stopDatum
\startDatum[title={secC}]%
\dorecurse{50}{ccc }
\sto
e sense of some setting.
>
> For wiki contributors, it might make sense to combine the markup pages – in
> many pages e.g. is used where would make more
> sense; often \starttext … \stoptext is not necessary and just blows up
> examples; markup is generally somewhat chaotic (e.g. ,
, but too often I don’t
understand enough of the sources to make sense of some setting.
For wiki contributors, it might make sense to combine the markup pages –
in many pages e.g. is used where would
make more sense; often \starttext … \stoptext is not necessary and just
blows up examples; markup
On 4/10/2024 7:49 PM, Pablo Rodriguez via ntg-context wrote:
Dear list,
I have the following sample:
\starttext
\startluacode
function document.print_the_thing(str)
context(str)
end
\stopluacode
\unexpanded\def\PrintTheThing#1{%
\ctxlua{document.print_the_thing
Dear list,
I have the following sample:
\starttext
\startluacode
function document.print_the_thing(str)
context(str)
end
\stopluacode
\unexpanded\def\PrintTheThing#1{%
\ctxlua{document.print_the_thing([[\luaescapestring{#1}]])}}
\PrintTheThing{a \em b {c}}
\stoptext
I
Am 10.04.24 um 14:21 schrieb Hans Hagen:
It fails for me as well, when "mode=columns" is used.
compare with and without mode columns:
\starttext
\enablemode[columns]
As we see \doifelsemode {columns} {in \in {table} [demo-1]} {below}
we can have
more than one cel
rent version: 2024.04.01 08:59.
>>>
>>> Could some one confirm this?
>> It fails for me as well, when "mode=columns" is used.
> compare with and without mode columns:
>
> \starttext
>
>\enablemode[columns]
>
>As we see \doifelsemode {columns} {i
, when "mode=columns" is used.
compare with and without mode columns:
\starttext
\enablemode[columns]
As we see \doifelsemode {columns} {in \in {table} [demo-1]} {below}
we can have
more than one cell in a row.
\startplacetable[mode=columns,refere
Hi,
another graphics/floats question: consider the following example
%
\setupexternalfigures
[location={local,global,default}]
\starttext
\placefigure{A Cow}{\externalfigure[cow][
height=.5\textheight
Hi,
Shouldn't minwidth set a default minimal width for external figures? But this
here does not work
==
\setupexternalfigures
[
maxwidth=\textwidth,
minwidth=\textwidth,
location={local,global,default},
]
\starttext
stopMPpage
>
> so a single path option (no picture)
>
> Hans
>
>
> Thank you so much for the sample examples
> it would be great to also make text select able in output pdf
> the third example currently does not work. di
ed, blue)
> > ;
> > \stopMPpage
> >
> > so a single path option (no picture)
> >
> > Hans
> >
> >
> > Thank you so much for the sample examples
> > it would be great to also make text select able in outpu
within tt : pathpart i && endfor cycle
withshademethod "linear"
withshadedirection up
withshadecolors (red, blue) ;
\stopMPcode
\egroup
\boxyoffset\scratchboxtwo-\dp\scratchboxone
\box\scratchboxtwo
\stoptexdefinition
\starttext
\setuphead
[section]
[
deeptex
withshademethod "linear"
withshadedirection up
withshadecolors (red, blue) ;
\stopMPcode
}
\definehead[Myhead][section]
\setuphead[Myhead][
style=\Mystyle,
]
\startMyhead[title=sample] a sample text \stopMyhead
\stoptext
and the code below works but does not colo
hs which implies no search but you
can do this (Keith and/or Hraban will explain and/or wikify it)
\starttext
\startbuffer[MyText]
\definedfont[name:texgyrepagellabold*default]foo f o o%
\stopbuffer
\startbuffer[MyText]
\framed[align=normal,frame=off]{\input{tufte}}%
\stopbuffer
\setb
\starttext
\startbuffer
\starttabulate[|T]
\NC U+0002D \NC - \NC -- \NC --- \NC\NR
\NC U+02011 \NC ‑ \NC ‑‑ \NC ‑‑‑ \NC\NR
\NC U+02012 \NC ‒ \NC ‒‒ \NC ‒‒‒ \NC\NR
\stoptabulate
\stopbuffer
\nohyphencollapsing
\getbuffer
\setupbodyfont[pagella]
\getbuffer
\dohyphencollapsing
\getbuffer
be the wrong symbol in the document, there are
many dashes in unicode which look similar in the input and output files.
\starttext
\startbuffer
\starttabulate[|T]
\NC U+0002D \NC - \NC -- \NC --- \NC\NR
\NC U+02011 \NC ‑ \NC ‑‑ \NC ‑‑‑ \NC\NR
\NC U+02012 \NC ‒ \NC ‒‒ \NC ‒‒‒ \NC\NR
\stop
]
\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
ere are
many dashes in unicode which look similar in the input and output files.
\starttext
\startbuffer
\starttabulate[|T]
\NC U+0002D \NC - \NC -- \NC --- \NC\NR
\NC U+02011 \NC ‑ \NC ‑‑ \NC ‑‑‑ \NC\NR
\NC U+02012 \NC ‒ \NC ‒‒ \NC ‒‒‒ \NC\NR
\stoptabulate
\stopbuffer
\getbuffer
\setupbodyfont[
after or before the dash, since I don't
> like it to stick to some letters like "o").
Just consider that you should add an horizontal box (or pair both space
and hyphen), otherwise you may get a line break between character and
hyphen (instead of the hair space):
\starttext
\start
[alanindex]\relax}%
\thinspace --\thinspace
\pagestaterealpage{alanpage}{\number\numexpr\incrementedcounter[alanindex]\relax}}
\setuplist[chapter][pagecommand=\ChapterListPage]
\setuplist[chapter][pagecommand=\ChapterListPage]
\showgrid
\starttext
\completecontent
\startchapter [title=Knuth
g a custom list and use \writetolist immediately
> before each \stopchapter command?
>
> \definelist[LastPages][criterium=all]
> \starttext
> \completecontent
> \page
> \completelist[LastPages]
> \page
> \dorecurse{10}{
> \startchapter[title={This is my chapter
?
\definelist[LastPages][criterium=all]
\starttext
\completecontent
\page
\completelist[LastPages]
\page
\dorecurse{10}{
\startchapter[title={This is my chapter}]
This is a chapter\par \dorecurse{6}{\input knuth } \input math-kontinuitet-sv
\writetolist[LastPages]{3.}{\namedstructurevariable{chapter
> flushing realpage 1, userpage 1, subpage 1
> close source> level 1, order 3, name './test.tex'
> backend > xmp > using file
> '/opt/context/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml'
> mtx-context | fatal error: return code: 1
&g
1 - 100 of 31684 matches
Mail list logo