I'm trying to typeset some program listings with annotations alongside. I've
tried both columns and tabulate but both have (different) issues:
1) Plain \typefile won't allow the line numbers to be in the text - they stay
in the margin whch I don't want.
2) \typefile using a \definedtyping name
Am 03.10.23 um 02:06 schrieb Alan Braslau:
On Sun, 1 Oct 2023 10:49:34 +0200
Henning Hraban Ramm wrote:
chem-str.lua seems to be an updated version by Alan & Hans
Did I miss something?
work in progress ... i'm working on that (part of the math upgrade)
so best wait till we're stable
On Sun, 1 Oct 2023 10:49:34 +0200
Henning Hraban Ramm wrote:
> >> chem-str.lua seems to be an updated version by Alan & Hans
> >>
> >> Did I miss something?
> >
> > work in progress ... i'm working on that (part of the math upgrade)
> > so
On 10/1/2023 11:01 AM, Henning Hraban Ramm wrote:
Am 01.10.23 um 05:51 schrieb Otared Kavian:
Hi Hraban,
Thank you for your updating of the modules stuff.
As far as I remember the matrix features are not related to any
modules, but rather are part of LMTX. In nay case next week I will
look
it.
Thanks for reading.
Best regards,
Dalyoung
matrixDoc.tex
Description: Binary data
> 2023. 10. 1. 오후 6:01, Henning Hraban Ramm 작성:
>
> Am 01.10.23 um 05:51 schrieb Otared Kavian:
>> Hi Hraban,
>> Thank you for your updating of the modules stuff.
>> As far as I r
ing laws in footnotes, such as in:
Relevant to the discusssion, see »Grundgesetz«, §73: :
Der Bund hat die ausschließliche Gesetzgebung über:
1. die auswärtigen Angelegenheiten;
2. die Staatsangehörigkeit im Bunde;
3. [...]
I need to quote the legal text and the list inside the leg
Pablo Rodriguez schrieb am 26.09.2023 um 20:32:
On 9/26/23 12:52, gerard.degreve wrote:
Hello Pablo,
Just try to do this :
\setupitemgroup
[itemize][1]
[ before={\blank[.125th]},
after={\blank[.125th]}\strut]
Hi Gerard,
this also works with \null, but not well with small dimensions
On 9/26/23 12:52, gerard.degreve wrote:
> Hello Pablo,
>
> Just try to do this :
>> \setupitemgroup
>> [itemize][1]
>> [ before={\blank[.125th]},
>> after={\blank[.125th]}\strut]
Hi Gerard,
this also works with \null, but not well with small dimensions:
receiving incremental file list
./
ctan.lsr
document-2.htm
download-1.htm
download-2.htm
logo-ade.png
logo-cts.png
logo-pod.png
rss.xml
show-fil.pdf
context/latest/
context/latest/cont-lmt.zip
context/latest/cont-mpd.zip
context/latest/cont-ppc.zip
context/latest/cont-sci.zip
gerard.degreve:
Hello Pablo,
Just try to do this :
\setupitemgroup
[itemize][1]
[ before={\blank[.125th]},
after={\blank[.125th]}\strut]
Regards,
Gerard
Le 25-09-23 19:26:08, Pablo Rodriguez a écrit :
Dear list,
I have the following sample:
\setuppapersize[A6]
\setupitemgroup
[itemize][1
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
Hi,
Not that it helps you much, but your example works fine here, and it
gives the expected result.
/Mikael
On Sun, Sep 24, 2023 at 1:42 PM Vincent Picard wrote:
>
> Hello,
>
> Since ConTexT last upgrade (ltmx 2023.09.18 21:13), I have a document that
> won't compile with ConTe
\startformula
\delta_{ij} =
\startmathcases
\NC 1 \NC \text{if } i = j \NR
\NC 0 \NC \text{otherwise} \NR
\stopmathcases
\stopformula
\stoptext
The error is :
run callback [44]:
...ext/tex/texmf-context/tex/context/base/mkxl/math-fnt.lmt:56: table index
is nil\nstack traceback:\n
...ext/tex/texmf
e Lotus designers thought that giving them width makes them easier to
edit, which is indeed the case. And perhaps they were satisfied that
Word/InDesign would be able, as needed, to toggle the metrics on and off as
well as the shape. That WYSIWYG-DTP curse again..
\setcharacterstripping[1] gives
ext\texmf\fonts.
Dear Jean-Pierre,
only if you don’t have no way to install fonts on the OS directory for
fonts (%WINDIR%\Fonts in Windows), I would use (in that order):
1. %USERPROFILE%\texmf\texmf-fonts\, or as last option
2. [context-dir]\tex\texmf-local\texmf-fonts\
Excuse me if this is
nd
related Unicode control characters
Hi,
I found it ...
\startbuffer
\definedfont[almfixed*default]hello w\zwnj o\zwj r\zwnj l\zwj d
\stopbuffer
\getbuffer
\start
\setcharacterstripping[1]
\getbuffer
\stop
so now, being its only user, you have to wikify it ...
Ah, there it is! Many tha
Hi,
I found it ...
\startbuffer
\definedfont[almfixed*default]hello w\zwnj o\zwj r\zwnj l\zwj d
\stopbuffer
\getbuffer
\start
\setcharacterstripping[1]
\getbuffer
\stop
so now, being its only user, you have to wikify it ...
Hans
53:03 AM
Subject [NTG-context] Re: Toggling the symbol for the zero-width joiner and
related Unicode control characters
1. Can this approach be generalized to get what we want, viz., a way to toggle
the symbols?
given the inconsistency in what is or is not in a font the only way out
is to have ou
ssed. Of course it
doesn't matter what fallback font one uses, as long as it has no
control-character symbols.
1. Can this approach be generalized to get what we want, viz., a way to toggle
the symbols?
given the inconsistency in what is or is not in a font the only way out
is to have our own
ack font one uses, as long as it has no
control-character symbols.
1. Can this approach be generalized to get what we want, viz., a way to toggle
the symbols?
2. \enabletrackers[typesetters.nbsp] gives a colored box, which is at least
something.. But how can we get the NBSP symbol that's alerady
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
receiving incremental file list
./
ctan.lsr
document-2.htm
download-1.htm
download-2.htm
logo-ade.png
logo-cts.png
logo-pod.png
rss.xml
show-fil.pdf
context/latest/
context/latest/cont-lmt.zip
context/latest/cont-mpd.zip
context/latest/cont-ppc.zip
context/latest/cont-sci.zip
receiving incremental file list
./
ctan.lsr
document-2.htm
download-1.htm
download-2.htm
logo-ade.png
logo-cts.png
logo-pod.png
rss.xml
show-fil.pdf
context/latest/
context/latest/cont-lmt.zip
context/latest/cont-mpd.zip
context/latest/cont-ppc.zip
context/latest/cont-sci.zip
{\protecteddetokenize
{#1}}tab{\typeparameter \c!tab }method{\p_buff_op ...
\type{ hello }
You injected something that confused the parser, maybe by using some Lua
call.
and it shows
{hello}
on the page
___
If your
gt; tex error on line 2 in file Z:/test.tex: Control sequence
> expected instead of undefined
>
> \buff_verbatim_type_normal
> #1->\buff_verbatim_initialize_type_two \dostarttaggedchained \t!verbatim
> \currenttype \??type \clf_type data{\protecteddetokenize
> {#1}}tab{\
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
Jeroen schrieb am 16.09.2023 um 22:28:
This MWE has a framed text for some verbatim text (code) with as title
ref. a counter 1, 2, etc.. Is there a way to change this frame text
title as following with the chapter number and a sequential number and
the title.
Code Fragment 1.1 (The First
\stopCode
\stopchapter
\stoptext
Op zo 17 sep 2023 om 17:31 schreef Bruce Horrocks :
>
>
> > On 16 Sep 2023, at 21:28, Jeroen wrote:
> >
> > This MWE has a framed text for some verbatim text (code) with as title
> ref. a counter 1, 2, etc.. Is there a way to change
> On 16 Sep 2023, at 21:28, Jeroen wrote:
>
> This MWE has a framed text for some verbatim text (code) with as title ref. a
> counter 1, 2, etc.. Is there a way to change this frame text title as
> following with the chapter number and a sequential number and th
Hello,
after the update the latest luametatex.pdf cannot be opened, the file is
corrupted.
Am 17.09.2023 um 10:01 schrieb Cron Daemon:
receiving incremental file list
./
ctan.lsr
document-2.htm
download-1.htm
download-2.htm
logo-ade.png
logo-cts.png
logo-pod.png
rss.xml
receiving incremental file list
./
ctan.lsr
document-2.htm
download-1.htm
download-2.htm
logo-ade.png
logo-cts.png
logo-pod.png
rss.xml
show-fil.pdf
context/latest/
context/latest/cont-lmt.zip
context/latest/cont-mpd.zip
context/latest/cont-ppc.zip
context/latest/cont-sci.zip
This MWE has a framed text for some verbatim text (code) with as title ref.
a counter 1, 2, etc.. Is there a way to change this frame text title as
following with the chapter number and a sequential number and the title.
Code Fragment 1.1 (The First Title)
Code Fragment 1.2 (The Second Title
that the call to \rotate is the culprit.I enclose an MWE with a little jpeg figure as illustration.
yours sincerelydr. Hans van der Meer\def\formattitle#1{\color[\boxtitlecolor]{#1\strut}}\def\boxfigurerotate#1#2{% \rotate[rotation=10]% {% \externalfigure[#1]% [rulethickness=4pt,width=100pt,height=50pt
can see the issue: effectively, the streams have worked for
frontmatter (Foreword), but when I get to Chapter 1 in bodymatter, they
are reversed. You will see that. I can't work out why, but you might be
able to see what is causing that.
And of course, I have two other problems to work out before I could
' using frontmatter, bodymatter etc. etc.
Since it would be too long and complicated an MWE to place here in the
list to demonstrate my problem, I will send you the file separately so
you can see the issue: effectively, the streams have worked for
frontmatter (Foreword), but when I get to Chapter
for these chapters?
Thanks, Jeroen
Untried:
1. Define a new section head that clones chapter
(\definehead[NPChapter][chapter]).
2. Modify the new section head so that it does not do a break
(\setuphead[NPChapter][page=no]).
3. Use the new section head instead of \chapter or \startchapter
On 9/14/2023 5:49 PM, Jeroen wrote:
In the \startbackmatter ... \stopbackmatter section i would like to
have some chapters that are not automatically placed on a new page for
the next chapter. Is there an easy way to suppress the new page for
these chapters?
Thanks, Jeroen
Untried:
1
I get to Chapter 1 in bodymatter, they
are reversed. You will see that. I can't work out why, but you might be
able to see what is causing that.
And of course, I have two other problems to work out before I could use
this in a real production scenario: there is the one you have already
On 13 Sep 2023, at 07:47, jbf wrote:
>
> When I come to bodymatter and Chapter 1, again it works, except that the
> positions of the languages are reversed, so I end up with vi on the left and
> en on the right. By Chapter 2 we are back to the correct position once more
>
denis.ma...@unibe.ch schrieb am 12.09.2023 um 23:32:
You need a box to get the author on a separate line.
% \define[2]\ChapterCommand
% {\vbox
% {\structureuservariable{author}
% \blank
% #1\space#2}}
\starttexdefinition protected ChapterCommand #1#2
\vbox\bgroup
rters.tif.default = convert
\stopluacode
\setfigureconversion[tif][jpg] % has no effect
\defineexternalfigure[tif][conversion=jpg]
\starttexdefinition includegraphics #1
\splitfilename{#1}
\processaction[\splitofftype][
tif=>{\externalfigure[#1][tif]},
default=>{\externa
) in
frontmatter.
When I come to bodymatter and Chapter 1, again it works, except that the
positions of the languages are reversed, so I end up with vi on the left
and en on the right. By Chapter 2 we are back to the correct position
once more (en left and vi right).
I want to know why
erros.
You need a box to get the author on a separate line.
% \define[2]\ChapterCommand
% {\vbox
% {\structureuservariable{author}
% \blank
% #1\space#2}}
\starttexdefinition protected ChapterCommand #1#2
\vbox\bgroup
\structureuservariable{author}
\blank
#1\space#
or}\blank},
beforesection={Beforesection: \structureuservariable{author}\blank},
insidesection={Insidesection: \structureuservariable{author}\blank},
after={After: \structureuservariable{author}\blank},
]
\def\myChapterCommand#1#2{\structureuservariable{author}\space\blank
le{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
% \starttexdefinition myChapterComma
={Insidesection: \structureuservariable{author}\blank},
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
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
error message
was never
\def'ed. You can just continue as I'll forget about whatever was
undefined.
mtx-context | fatal error: return code: 1
You get a error message because you have a spelling error in the name of
the \dontleavehmode command.
You wrote "dontleave*the
{\blackrule[color=black, height=0.05ex,
width=1cm]\\Me}\blackrule[color=black, height=0.05ex, width=4cm] there is no
pdf after compiling.
I get:
Command Line: context.exe --synctex=-1 "pablo.tex"
Startup Folder:
C:\Users\Hermann\Downloads\context-mswin\tex\texmf-context\tex\context
Hi,
xml.text(t) is safer than directly accessing t.dt[1].
Note: you may need to strip some XML tags from that content.
If the element is not straight-up data but has nested elements, then this will
return the full xml representation instead:
A short title=> ‘A short ti
Ok, I've found a way, see below.
But maybe someone has some nice lua (or other) tricks to share... (I'm not sure
accessing t.dt[1] is particularly safe when operating on nested structures.)
Best,
Denis
\startbuffer[test]
A short title
asdf asdf asdf jklö jklö jklö
A longer
end
end
\stopluacode
\startxmlsetups xml:ink:ink-title:marking
%\ctxlua{markingLength(\xmlflush{#1})} % does not work
\ctxlua{markingLength{"1 2 3 4"}}
\stopxmlsetups
While the function works, I cannot use xmlflush here. How can I p
)
or the columndistance key (when you have invisible borders).
% Alternative 1:
% \setupTABLE[frame=on,offset=0pt,columndistance=1em]
% Alternative 2:
\setupTABLE [frame=off,offset=0pt,loffset=.5em,roffset=.5em]
\setupTABLE [column] [first] [loffset=0pt]
\setupTABLE [column] [last] [roffset=0pt
who wants to do
>> this. Can anyone point me in the direction of a working example?
>> And am I misinterpreting the wiki, or is the wiki page broken?
> 1. You have to change the value of the incrementnumber key for title,
> subject etc.
> 2. You have to specify which se
since even the wiki doesn't show the "No
number" entry in the \completecontent.
I find it hard to imagine that I am the only Context user who wants to do
this. Can anyone point me in the direction of a working example?
And am I misinterpreting the wiki, or is the wiki page broken?
1
for
chapter 1, codefragment 1, 2 etc. with the possibility that in the text I
can refer to the codefragment like \in{codefragment\space}[code:ccpsample]
similar as to tables and figures? Thanks Jeroen
%%
% MWE1
%%
\startuseMPgraphic{mpos:par:myexample}
path p;
for i = 1
for if the situation asks for it
to have it only have a frame half pagewidth, like a width=0.5\textwidth
Thanks
Jeroen
\unprotect
\startuseMPgraphic{mpos:par:myexample}
path p;
for i = 1 upto nofmultipars :
p := multipars[1] topenlarged 4pt bottomenlarged 4pt cornered 2mm ;
fill p withcolor 0.95white
a frame half pagewidth, like a width=0.5\textwidth
Thanks
Jeroen
\unprotect
\startuseMPgraphic{mpos:par:myexample}
path p;
for i = 1 upto nofmultipars :
p := multipars[1] topenlarged 4pt bottomenlarged 4pt cornered 2mm ;
fill p withcolor 0.95white ;
draw p withcolor black
withpen pencircle
better define start and stop separately?
\def\startMyFigure[#1]{
% e.g. use utilities.parsers.settings_to_hash(#1)
}
\def\stopMyFigure{}
Probably I’ll need to catch the content (\externalfigure, might become
more) and use it in a \setlayer – so perhaps something like
\definebuffer[MyFigure
\startMyFigure[#1]{
% e.g. use utilities.parsers.settings_to_hash(#1)
}
\def\stopMyFigure{}
Probably I’ll need to catch the content (\externalfigure, might become
more) and use it in a \setlayer – so perhaps something like
\definebuffer[MyFigure]
\define\stopMyFigure{%
\setlayer[page]{\getMyFigure
\xmlsetsetup{#1}{*}{-}
\xmlsetsetup{#1}{document|fig}{xml:*}
\stopxmlsetups
\xmlregisterdocumentsetup{test}{xml:test}
\startxmlsetups xml:document
\xmlflush{#1}
\stopxmlsetups
\startxmlsetups xml:fig
\xmlflush{#1}
\stopxmlsetups
\startxmlsetups xml:graphic
\externalfigure
>
> Here is what is going on:
>
> `tikzlibrarycalendar.code.tex` contains the line:
>
> \pgfutil@usemodule{pgfcalendar}
>
> In `generic/pgf/utilities/pgfutil-context.def`, \pgfutil@usemodule is defined
> as:
>
> \def\pgfutil@usemodule#1{\usemodule[#1]}
>
ith
> all the modules (with the new script from ConTeXt Garden), but nothing works.
Here is what is going on:
`tikzlibrarycalendar.code.tex` contains the line:
\pgfutil@usemodule{pgfcalendar}
In `generic/pgf/utilities/pgfutil-context.def`, \pgfutil@usemodule is defined
as:
\def\pgfuti
}}\dontleavehmode\hairline
\startformula
a^n + b^n = c^n.
\stopformula
\stoptext
I get:
Command Line: context.exe --synctex=-1 "blackrule1.tex"
Startup Folder: \\ub.univie.ac.at\U_Dom\Users G-L\Hermann\Documents\Texlive
resolvers | formats | executing runner 'run luametatex format':
Pablo,
Thanks, even though I use LMTX, only this form works:
[\pagenumber{} of \the\numexpr\totalnumberofpages - 1\relax]
Thanks
Jeroen
Op ma 4 sep 2023 om 18:43 schreef Pablo Rodriguez :
> On 9/4/23 18:09, Jeroen wrote:
> > The following MWE shows pagenumbering starting at the se
ldocument}{something|emptynode|notemptynode}{xml:*}\stopxmlsetups \xmlregistersetup{xml:mysetups} \startxmlsetups xml:emptynodenode=\xmltag{#1}:\crlfifxmlselfempty-else-fi:\space\ifxmlselfempty{#1}attribute = \xmlatt{#1}{value}\elsecontent = \xmlflush{#1}\fi\crlfifxmlselfempty-else-fi reversed:\space\ifxmlse
receiving incremental file list
./
ctan.lsr
document-2.htm
download-1.htm
download-2.htm
logo-ade.png
logo-cts.png
logo-pod.png
rss.xml
show-fil.pdf
context/latest/
context/latest/cont-lmt.zip
context/latest/cont-mpd.zip
context/latest/cont-ppc.zip
context/latest/cont-sci.zip
On 9/4/2023 6:09 PM, Jeroen wrote:
The following MWE shows pagenumbering starting at the second page with page
number 1. With the totalnumberofpages we end up with one page too many. Is
there a way to reduce this with 1?
\setupfootertexts
[title]
[\pagenumber{} of \totalnumberofpages
On 9/4/23 18:09, Jeroen wrote:
> The following MWE shows pagenumbering starting at the second page with
> page number 1. With the totalnumberofpages we end up with one page too
> many. Is there a way to reduce this with 1?
Hi Jeroen,
this might do the work (LMTX only):
[\p
The following MWE shows pagenumbering starting at the second page with page
number 1. With the totalnumberofpages we end up with one page too many. Is
there a way to reduce this with 1?
\setupfootertexts
[title]
[\pagenumber{} of \totalnumberofpages]
\setcounter
[userpage]
[0
I get:
Command Line: context.exe --synctex=-1 "blackrule1.tex"
Startup Folder:
\\ub.univie.ac.at\U_Dom\Users
G-L\Hermann\Documents\Texlive
resolvers | formats | executing runner 'run luametatex format':
luametatex --jobname="./blackrule1.tex" --socket --shell-esca
--synctex=-1 "blackrule1.tex"
Startup Folder:
\\ub.univie.ac.at\U_Dom\Users
G-L\Hermann\Documents\Texlive
resolvers | formats | executing runner 'run luametatex format':
luametatex --jobname="./blackrule1.tex" --socket --shell-escape
--fmt=C:/Users/Hermann/Downloa
\xmlregistersetup{xml:mysetups}
\startxmlsetups xml:emptynode
node=\xmltag{#1}:\crlf
ifxmlselfempty-else-fi:\space
\ifxmlselfempty{#1}
attribute = \xmlatt{#1}{value}
\else
content = \xmlflush{#1}
\fi
\crlf
ifxmlselfempty-else-fi reversed:\space
\ifxmlselfempty{#1}
content = \xmlflush{#1}
\else
jbf schrieb am 04.09.2023 um 08:34:
I am attempting to get a TOC that looks like the following (in other
words with section titles and their relative page numbers in a block
below the chapter):
Chapter 1 ...5
Section 1 5, Section 2 6
I am attempting to get a TOC that looks like the following (in other
words with section titles and their relative page numbers in a block
below the chapter):
Chapter 1 ...5
Section 1 5, Section 2 6, Section 3 7,
Section 4 8, Section 5 9
receiving incremental file list
./
ctan.lsr
document-2.htm
download-1.htm
download-2.htm
logo-ade.png
logo-cts.png
logo-pod.png
rss.xml
show-fil.pdf
context/latest/
context/latest/cont-lmt.zip
context/latest/cont-mpd.zip
context/latest/cont-ppc.zip
context/latest/cont-sci.zip
\xmlsetsetup{\xmldocument}{something|emptynode|notemptynode}{xml:*}\stopxmlsetups\xmlregistersetup{xml:mysetups}\startxmlsetups xml:emptynodenode=\xmltag{#1}:\crlfifxmlselfempty-else-fi:\space\ifxmlselfempty{#1} attribute = \xmlatt{#1}{value}\else content = \xmlflush{#1}\fi\crlfifxmlselfempty-else-fi
tination-doc.pdf)
/NewWindow true
/S /GoToR
>>
endobj
A GoToE destination for "\attachment[file=destination-doc.pdf,
method=hidden]" would read:
1 0 obj
<<
/S /GoToE
/D [ 14 /Fit ]
/NewWindow true
/T << /R /C
oR
>>
endobj
A GoToE destination for "\attachment[file=destination-doc.pdf,
method=hidden]" would read:
1 0 obj
<<
/S /GoToE
/D [ 14 /Fit ]
/NewWindow true
/T << /R /C
/N (destination-doc.pdf) >>
>>
endobj
With Embedde
p,
> when an external library is loaded in Lua. Any ideas on how to solve it?
Hi Jairo,
you need to expose _dynamic_ symbols in your luametatex binary. If you
are using Linux, just adding the following to the CMake invocation line
should work:
-DCMAKE_EXECUTABLE_ENABLE_EXPORTS=1
For example
higher font size gives less slanted text (or not at all).
Using MkIV text is slanted fine, independent from font size.
Could anyone confirm the issue?
I can confirm the slant decreases at larger font sizes.
\starttext
\dostepwiserecurse{10}{100}{1}
{{\switchtobodyfont[#1pt]#1pt:\definedfont[Serif
(or not at all).
Using MkIV text is slanted fine, independent from font size.
Could anyone confirm the issue?
I can confirm the slant decreases at larger font sizes.
\starttext
\dostepwiserecurse{10}{100}{1}
{{\switchtobodyfont[#1pt]#1pt:\definedfont[Serif*slanted]\vrule\relax
S\vrule\relax lanted
, independent from font size.
Could anyone confirm the issue?
I can confirm the slant decreases at larger font sizes.
\starttext
\dostepwiserecurse{10}{100}{1}
{{\switchtobodyfont[#1pt]#1pt:\definedfont[Serif*slanted]\vrule\relax
S\vrule\relax lanted}\par}
\stoptext
Wolfgang
old mechanism, maybe time for an upgrade with
merged vectors)
\definecharacterspacing [myspacing]
\setupcharacterspacing [myspacing] ["27E8] [right=0.25,alternative=1]
\setupcharacterspacing [myspacing] ["27E9] [left=0.25,alternative=1]
and then
\setcharacterspacing[myspacing]
Hans
-
Finally I saw the problem. Calling
\xmlfilter{#1}{./node/command(demo:attribute:node)} is the right way.
Sorry for the noise.
dr. Hans van der Meer
> On 30 Aug 2023, at 13:49, Hans van der Meer via ntg-context
> wrote:
>
> This line of code comes from the xml documentat
This line of code comes from the xml documentation (page 31):
\xmlfilter{#1}{./node[@type=="cleanup"]}
It should select among the 's those with .
However, this node is not selected in the call to \xmlfilter.
Where am I wrong?
MWE follows
% failure to typeset attribute selected.
\setu
receiving incremental file list
./
ctan.lsr
document-2.htm
download-1.htm
download-2.htm
logo-ade.png
logo-cts.png
logo-pod.png
rss.xml
show-fil.pdf
context/latest/
context/latest/cont-lmt.zip
context/latest/cont-mpd.zip
context/latest/cont-ppc.zip
context/latest/cont-sci.zip
this:
\def\foo#1{#1 test ##}
\def\foo#1{#1 test\def\more##1{(##1)}}
the internal representation of #1 is a reference to parameter 1 while
the ## becomes one # (cc parameter) in the second exmaple followed by a
character 1 (cc other)
then, when tex serializes e.g. in tracing it duplicates the hash
On 8/25/2023 1:45 PM, denis.ma...@unibe.ch wrote:
-Ursprüngliche Nachricht-
Von: Hans Hagen
Gesendet: Freitag, 25. August 2023 09:06
An: Maier, Denis Christian (UB) ; mailing list for
ConTeXt users
Betreff: Re: [NTG-context] Re: xmldoif: checking for contents of attribute
On 8/25/2023
but no upload
>
So, that would mean that the double checking is only necessary for find, not
for contains. And indeed the example below works.
Is that correct or are there any unwanted side-effects?
\startxmlsetups xml:test
\xmlsetsetup{#1}{*}{-}
\xmlsetsetup{#1}{doc|elem
\xmlsetsetup{#1}{*}{-}
\xmlsetsetup{#1}{doc|element}{xml:*}
\stopxmlsetups
\xmlregisterdocumentsetup{test}{xml:test}
\startxmlsetups xml:doc
\xmlflush{#1}
\stopxmlsetups
\startluacode
function xml.finalizers.tex.url(e,a)
local u = #e > 0 and
;
> > I'm trying to check whether an attribute contains (or, actually starts
> > with) a
> given string.
> \xmldoifelse{#1}{.[@class and contains(@class,'abc')]}{Yes}{No}
> \xmldoifelse{#1}{.[@class and find(@class,"abc")]}{Yes}{No}
Thanks for your help. I can u
%
\startxmlsetups xml:test
\xmlsetsetup{#1}{*}{-}
\xmlsetsetup{#1}{doc|element}{xml:*}
\stopxmlsetups
\xmlregisterdocumentsetup{test}{xml:test}
\startxmlsetups xml:doc
\xmlflush{#1}
\stopxmlsetups
\startxmlsetups xml:element
One way would be to do the search in Lua; when you have multiple searches to
perform, that may be the easiest way to go. For example:
\startxmlsetups xml:test
\xmlsetsetup{#1}{*}{-}
\xmlsetsetup{#1}{doc|element}{xml:*}
\stopxmlsetups
\xmlregisterdocumentsetup
%
\startxmlsetups xml:test
\xmlsetsetup{#1}{*}{-}
\xmlsetsetup{#1}{doc|element}{xml:*}
\stopxmlsetups
\xmlregisterdocumentsetup{test}{xml:test}
\startxmlsetups xml:doc
\xmlflush{#1}
\stopxmlsetups
\startxmlsetups xml:element
\xmlfilter{#1}{./find(attribute('class'), 'abc
context.im("a^2")
> context.stopxcell()
> context.startxcell{ width = "1cm" }
> context.im("b")
> context.stopxcell()
> context.startxcell{ width = "1cm" }
> context.im("2b^2
701 - 800 of 33698 matches
Mail list logo