.
Citing multiple references in one \cite[] only 2 out of 3 righttexts appear.
When using
\setupbtx[apa:cite][sorttype=none]
all 3 righttexts appear but the characters after the year disappear.
Is there a way to fix that behaviour?
Thank you. Have a nice weekend.
Matthias
\startbuffer
feature can vastly for the fonts which provide it, take
the following two fonts as example.
begin example
\definefontfeature [discretionary-ligatures] [dlig=yes]
\starttext
\startbuffer[pagella]
\starttabulate[|||]
\NC \type{} \EQ \NC\NR
\NC \type{--} \EQ -- \NC\NR
\NC \type{
rkaround:
• place a section index after the content of the page
The cons:
• pagebreaking by sectioning manually the content of a page
\setuppapersize[A5]
\startbuffer[buf:dict:achilles]
He was a hero.
\stopbuffer
\startbuffer[buf:dict:divine]
Has something to do with gods and godess
On 8/25/2024 2:15 PM, Wolfgang Schuster wrote:
How differs "1" from "2"?
* em fs
\startbuffer[dimensions]
\starttabulate
\NC em \EQ \the\dimexpr1em\relax \NC\NR % \emwidth
\NC fs \EQ \the\dimexpr1fs\relax \NC\NR % \globalbodyfontsize
\stoptabulate
\stopbuffer
\s
differs "1" from "2"?
* em fs
\startbuffer[dimensions]
\starttabulate
\NC em \EQ \the\dimexpr1em\relax \NC\NR % \emwidth
\NC fs \EQ \the\dimexpr1fs\relax \NC\NR % \globalbodyfontsize
\stoptabulate
\stopbuffer
\starttext
\getbuffer[dimensions]
\setupbodyfont[14.4pt]
\
efigure and \stopplacefigure”, then there is no error,
but the figure is not centered.
Please tell me how to fix it.
Thank you for reading.
Best regards,
Dalyoung
\startbuffer[numbers]
path p,q;
p = unitsquare xyscaled(3,2) superellipsed .85 ;
q := p scaled 1cm;
draw q;
label.bot(textext("
tion and test itself should be done in a controlled
way because otherwise a page break can already have been decided
\starttext
\startbuffer[note:1]
\input{knuthmath}
\stopbuffer
\startbuffer[note:2]
\input{knuth}
\stopbuffer
\input knuthmath \footnote{\inlinebuffer[note:1]}
\input knuth
first one with footnote texts only (as buffers):
\startbuffer[fn-1]
\input knuth
\stopbuffer
\startbuffer[fn-2]
\input zapf
\stopbuffer
Your sample file may read:
\setuppapersize[A6]
\input footnotes.tex
\protected\def\bufffn[#1]%
{\footnote{\getbuffer[#1]}}
\star
ts
> a bibliography?
>
> \startchapter[title=Image Credits] \placelistofcredits
> \stopchapter
Here is one way to do it:
\startbuffer[dataset-1]
@Article{tag1,
author = {A Author},
title = {The title},
year = {2024},
}
\stopbuffer
\startbuffer[dataset-2]
@Article
> I know how to create custom lists and indexes, but not a bibliography list.
>
> How do I point the image references to go to a different list, but still its
> a bibliography?
>
> \startchapter[title=Image Credits] \placelistofcredits
> \stopchapter
Here
[default] [script=auto]
\definefontfeature[allsc][c2sc=yes, smcp=yes,
lowercasing=yes]
\setupbodyfont[stix]
\starttext
\startbuffer
{\language[ru]Моя любимая
{\feature[+][allsc]ОС}---{\feature[+][allsc]Линукс}.}\crlf
{\language[en]My favourite {\feature[+][allsc]OS} is
{\feature[
t; >>
> >> \starttext
> >>
> >> \definestacking[one]
> >> \definestacking[two]
> >>
> >> \startbuffer
> >> This is a test \stacking [one] {and a proof} of \stacking [two]
> >> {concept} indeed
> >> \stacking [one] {\bla
On 6/23/2024 2:35 PM, Gerion Entrup wrote:
Am Freitag, 21. Juni 2024, 19:00:03 MESZ schrieb Hans Hagen via ntg-context:
-- support for stacking at the tex end (maybe for presentations)
\starttext
\definestacking[one]
\definestacking[two]
\startbuffer
This is a test \stacking [one] {and a
king[one]
> > \definestacking[two]
> >
> > \startbuffer
> > This is a test \stacking [one] {and a proof} of \stacking [two]
> > {concept} indeed
> > \stacking [one] {\blackrule [width=4cm]} is it and the question is how
> > \stacking
> > [two] {\scale [s=2] {fa
\startstackingsteps[criterium={1,2,3}, alternative=normal] % or sequential
>
> for the current implementation
>
> and
>
>\startstackingsteps[criterium={1,2,3}, alternative=cumulative]
>
>for the cumulative option (1,{1,2},{1,2,3}...)
>
> 3
Am Freitag, 21. Juni 2024, 19:00:03 MESZ schrieb Hans Hagen via ntg-context:
> -- support for stacking at the tex end (maybe for presentations)
>
> \starttext
>
> \definestacking[one]
> \definestacking[two]
>
> \startbuffer
> This is a test \stacking [one] {and
rnative=cumulative]
for the cumulative option (1,{1,2},{1,2,3}...)
3. It will be nice to have a syntax to easily handle case 2 and 3.
As a bonus, I found that tex stacking plays nicely with metapost stacking!
\starttext
\definestacking[1]
\definestacking[2]
\definestacking[3]
\startbuffer
\s
Hi,
I uploaded a new version:
-- fix for hraban's svg image (one character patch)
-- more verbose link comments for pablo (for experimenting)
-- support for stacking at the tex end (maybe for presentations)
\starttext
\definestacking[one]
\definestacking[two]
\startbuffer
This is a
one source). I want
> to also specify the separator but did not get it to run.
>
> Here is a minimal example:
> ```
> \setupinteraction[state=start]
>
> \startbuffer[testdata]
> @Book{knuth1,
> author = {Donald E. Knuth},
> title = {TEX and METAFON
set
the entry title to the URL and not print the URL after it.
Here is a minimal:
\startbuffer[testdata]
@Article{wikipedia2024_depeche_mode_sounds_of_the_universe,
author= {{Wikipedia contributors}},
title = {Sounds of the Universe},
year = {2024
Hello list,
I am trying to get my references that have URLs to automatically set
the entry title to the URL and not print the URL after it.
Here is a minimal:
\startbuffer[testdata]
@Article{wikipedia2024_depeche_mode_sounds_of_the_universe,
author= {{Wikipedia contributors
ack to the original
issue, it still doesn't typeset correctly. I've managed to come up with
a minimal that displays the garbled reference:
\startbuffer[testdata]
@Book{cicero-tuscu2011,
author = {Cicéron, Marcus Tullius},
editor = {Fohlen, G.},
publisher = {Les B
e}\endcsname
>> %
>> %macro with argument
>> %
>> \else
>> \begincsname\xmlatt{#1}{name}\endcsname{\xmlatt{#1}{arg}}
>> \fi
>> }
>> {
>> \ERROR{macro \xmlatt{#1}{name} is not defined}
>> }
>> \stopxmlsetups
>
> I have no idea
\stopextract
> > \stopframed
> > \stoplocalheadsetup
> > \stopsetups
>
> The userdata environment uses the buffer mechanism of Context which has
> a few limitations where you can use it, e.g. putting the environment in
> the argum
nly one file:
\startbuffer[testdata]
@Book{cicero-tuscu2011,
author = {Cicéron, Marcus Tullius},
editor = {Fohlen, G.},
publisher = {Les Belles Lettres},
title = {Tusculanes},
year = {2011},
address= {Paris},
edition= {7e tirage},
isbn = {9
th the code for the quoted text, another way
is to put all content in a buffer and just load the buffer in the
setups-environment.
\startbuffer[my_chapter]
\startlocalheadsetup
\startframed[chapter_frame]
...
\stopframed
cover that case
(https://www.pragma-ade.com/general/manuals/xml-mkiv.pdf#search=xmldoifatt).
But I cannot make any of these conditionals work (I‘m afraid there may
be an issue with their definition).
\startbuffer[ifdefined]
\stopbuffer
\startxmlsetups xml:hvdm
\xmlsets
RROR{macro \xmlatt{#1}{name} is not defined}
}
\stopxmlsetups
I have no idea what's wrong in your code without a proper minimal
example. As the example below shows you can use \doifelsedefined in
combination with \xmlatt.
\startbuffer[ifdefined]
\stopbuffer
\startxmlsetups xml:docum
Dear list,
I have the following sample:
\startbuffer[demo]
text
\stopbuffer
\startxmlsetups xml:sample
\xmlsetsetup{#1}{text}{xml:*}
\stopxmlsetups
\xmlregistersetup{xml:sample}
\startxmlsetups xml:text
block: a \xmlverbatim{#1} b\\
inline: a
}.} {}
\removeunwantedspaces
\stopsetups
\startsetups btx:mybib:list:imagelink
\btxdoifelse {url} {\btxflush{url};\space} {}
\btxdoifelse {date} {abgerufen \btxflush{date}.} {}
\removeunwantedspaces
\stopsetups
\startbuffer[maindata]
@link{herbariumathome,
title={Herbarium At Home: A
Hi, I don’t find it hard to understand, but I don’t think it’s possible
within ConTeXt (while Hans keeps surprising me).
well, as one needs to do some work one can as well do this:
% oeps.tex
\startbuffer[test]
test
\stopbuffer
\startxmlsetups xml:mysetups
\xmlsetsetup
ur configure the selected elements with ConTeXt commands.
Here is a sample (using a buffer instead of an external file):
\startbuffer[demo]
line 1
line 2
line 3
\stopbuffer
\starttext
\startxmlsetups abc:def
\xmlsetsetup{#1}{foo|bar}{xyz:*}
\stopxmlsetups
a minimal example:
```
\setupinteraction[state=start]
\startbuffer[testdata]
@Book{knuth1,
author = {Donald E. Knuth},
title = {TEX and METAFONT. New directions in typesetting},
year = {1979},
publisher = {Addison-Wesley},
}
@Article{someother,
author = {Some
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
Hi Wolfgang,
powerful and elegant, as always! I think I have a solution with xml; I
will have to test it more extensively with my complex real file; but
here comes, also for Hraban (if it works in real life, I'll add it to
the wiki...).
Thanks a lot!
Thomas
\startbuffer
{#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}{test}{}
\sample
xml:poem
> \blank[line]
> \xmlflush{#1}
> \blank[back,line]
> \stopxmlsetups
>
> \startxmlsetups xml:stanza
> \xmlflush{#1}\blank[preference,line]
> \stopxmlsetups
>
> \startxmlsetups xml:line
> \xmlflush{#1}\blank[samepage,none]
> \stopxmlsetu
xml:stanza
\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}
\xmlprocessb
txmlsetups 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
I solved it, although it's kinda hacky. I'm pretty sure that
publications.citevariants.short is not meant to be called directly.
Do you know why `context.getdetail(dataset, tag, "author")` does not work in
render_cite?
It always returns nil.
```
\setupinteraction[state=
[state=start]
\startbuffer[testdata]
@Book{knuth1,
author = {Donald E. Knuth},
title = {TEX and METAFONT. New directions in typesetting},
year = {1979},
publisher = {Addison-Wesley},
}
@Article{someother,
author = {Some Person and Some Otherperson},
title
odule[publ-imp-sbl]
\startbuffer [bib]
@Article{na2006,
title={Volcanoes \word{of} New Mexico},
year={2006},
journal={New Mexico Earth Matters},
publisher={New Mexico Bureau \word{of} Geology \word{and} Mineral Resources},
volume={6},
number={1},
location={Socorro, New Mexico}
}
@Book{clark19
here a fix?
Here is a minimum working example:
\usemodule[publ-imp-sbl]
\startbuffer [bib]
@Article{na2006,
title={Volcanoes \word{of} New Mexico},
year={2006},
journal={New Mexico Earth Matters},
publisher={New Mexico Bureau \word{of} Geology \word{and} Mineral Resources},
volume={6},
number={1}
e exactly the short form). It is more less also
> > described here [1].
> > - Highlight publications of a certain author with an extra char (e.g.
> > '>')
> >
> > Here is a minimal example (lets assume, every occurrence of Knuth
> > should be highlighte
t; should be highlighted): ```
> \setupinteraction[state=start]
>
> \startbuffer[testdata]
> @Book{knuth1,
> author = {Donald E. Knuth},
> title = {TEX and METAFONT. New directions in typesetting},
> year = {1979},
> publisher = {Addison-Wesley},
> }
xactly the short form). It is more less also described here [1].
- Highlight publications of a certain author with an extra char (e.g. '>')
Here is a minimal example (lets assume, every occurrence of Knuth should be
highlighted):
```
\setupinteraction[state=start]
\startbuffer
't find an explanation in https://wiki.contextgarden.net/Command
For example, these two pages exist :
- https://wiki.contextgarden.net/Command/startbuffer
- https://wiki.contextgarden.net/Command/_startbuffer
If it is on purpose:
- What is the purpose, and which page should contain which
docum
den.net/Command
For example, these two pages exist :
- https://wiki.contextgarden.net/Command/startbuffer
- https://wiki.contextgarden.net/Command/_startbuffer
If it is on purpose:
- What is the purpose, and which page should contain which documentation?
The command pages which start with an
exist :
- https://wiki.contextgarden.net/Command/startbuffer
- https://wiki.contextgarden.net/Command/_startbuffer
If it is on purpose:
- What is the purpose, and which page should contain which documentation?
The command pages which start with an underscore are probably leftovers
when Taco changed a p
Hi all,
Is it on purpose that 128 pages "https://wiki.contextgarden.net/Command/
" start with a space character ?
I didn't find an explanation in https://wiki.contextgarden.net/Command
For example, these two pages exist :
- https://wiki.contextgarden.net/Command/star
k. did you mean you will add
> this feature for next updates?
we're talking outlines so that is paths which implies no search but you
can do this (Keith and/or Hraban will explain and/or wikify it)
\starttext
\startbuffer[MyText]
\definedfont[name:texgyrepag
rs (red, 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
s paths 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}}%
\stopbuf
\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
ase it could 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 ‒
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
\stoptabulate
\stopbuffer
\getbuffer
ancemath} will bring you back to
the obsolete \LMTX\ mode. Like:
\startbuffer
\usemodule[math-goodriddance] \goodriddancemath
Who wants to solve the equation \m {x + 1 = 4} or deal with the function \m {x
\mapsto
\root [3] {x}}, when we have AI around the corner to help us out with simp
Dear list,
I have the following sample:
\startbuffer[demo]
mtxrun --script check file
\stopbuffer
\startxmlsetups xml:initialize
\xmlsetsetup{#1}{code}{xml:*}
\stopxmlsetups
\xmlregistersetup{xml:initialize}
\startxmlsetups xml:code
\xmlprettyprinttext{#1}{none
Dear list,
I have the following sample:
\startbuffer[demo]
a --b c
a --b c
\stopbuffer
\startxmlsetups xml:initialize
\xmlsetsetup{#1}{doc|code|inlinecode}{xml:*}
\stopxmlsetups
\xmlregistersetup{xml:initialize}
\startxmlsetups xml:doc
\xmlflush{#1
d,location=footer]
\setupheadertexts[\CONTEXT\ imposition test]
\showframe
\setupbackgrounds [text][text][background=color,backgroundcolor=lightgray]
% Where the block of pages is placed on the sheet
% (relevant if there is space left over.)
\setuplayout [location=middle,marking=on]
\startbuffe
% zzz
% \stopfoo
\startbuffer
yyy
\stopbuffer
\startfoo
xxx
\typebuffer
zzz
\stopfoo
\stoptext
end example
Wolfgang
___
If your question is of interest to others as well, please add an entry to the
Wiki!
mai
e.
Many thanks for your reply, Wolfgang.
Now I have the minimal sample:
\startbuffer[demo]
author
text
\stopbuffer
\starttext
\startxmlsetups xml:initialize
\xmlsetsetup{#1}{doc}{xml:*}
\xmlsetsetup{\xmldocument}
{(div|section)[@id=
Am 04.03.24 um 10:43 schrieb Denis Maier via ntg-context:
Hi,
Aren’t environments used for setups (and not for textual content). Maybe
a buffer may be what you want ?
https://wiki.contextgarden.net/Command/startbuffer
Yes, buffers are the way to go for (textual) contents, while setups or
Hi,
Aren’t environments used for setups (and not for textual content). Maybe a
buffer may be what you want ?
https://wiki.contextgarden.net/Command/startbuffer
Best,
Denis
Von: Jeroen
Gesendet: Montag, 4. März 2024 06:15
An: mailing list for ConTeXt users
Betreff: [NTG-context
Dear list,
this issue has been bugging me for some time:
\startbuffer[demo]
author
title
text
\stopbuffer
\starttext
\startxmlsetups xml:initialize
\xmlsetsetup{#1}{code|meta|text}{xml:*}
\stopxmlsetups
\xmlregistersetup
Dear list,
It seems with one of the latest lmtx this old reported issue
(https://www.mail-archive.com/ntg-context@ntg.nl/msg84988.html) is back.
MWE:
\setupinteraction[state=start,color=red,style=]
\setupbtx[aps:cite][alternative=entry]
\usebtxdefinitions[aps]
\startbuffer [bib]
@ARTICLE
filter
module:
https://github.com/adityam/filter
Using that you could define an asymptote environment so that:
\startbuffer[asymptote-preamble]
\stopbuffer
\starttext
\startasymptote
% Asymptote figure
\stopasymptote
\stoptext
saves the content of the asymptote-preamble and the figure in
to obtain simple integration for asymptote using the filter
module:
https://github.com/adityam/filter
Using that you could define an asymptote environment so that:
\startbuffer[asymptote-preamble]
\stopbuffer
\starttext
\startasymptote
% Asymptote figure
\stopasymptote
\stoptext
saves th
Hi Mikael,
Thanks for your reply -- I was able to get great results after using the
\startbuffer ... \stopbuffer approach.
I'm still a bit of a beginner with ConText so I wasn't clear on what the
meaning of the $ symbols in your reply?
The reason I have been using the underbra
t;
> \underbrace[mindepth=0.5cm]{\tf x+y+z}_{\vrule width 0pt height
> 0.5cm\relax\text{firstline secondline}}
>
> I have tried using \\ and \crlf, but to no avail.
>
> Any help would be greatly appreciated!
>
> Dean
Hi,
Hans will add some annotation mechanism (already on my co
On 12/17/2023 11:22 PM, Gavin via ntg-context wrote:
1. How do I avoid redrawing diagrams with every typeset? The globe above takes
about 0.7s, which is not bad, but it adds up in a book with many diagrams.
\startbuffer[demo]
\usemodule [luageo]
\startMPpage
GlobeDiameter = 10cm
ween \frac{} and
\tfrac{} ?
\frac switches the math style while \tfrac (textstyle), \dfrac
(displaystyle) and \sfrac (scriptstyle) enforce a certain style.
begin example
\startbuffer[frac]
\frac{1}{2} + \dfrac{1}{2} - \tfrac{1}{2} + \sfrac{1}{2}
\stopbuffer
\starttext
\startformula
\getb
On 12/6/2023 8:26 PM, Jairo A. del Rio wrote:
Hi, list! My question is just like that: how do I pass buffers or \input
content to \processtokens. What I have done so far:
\tolerant\protected\def\foo#={\ifparameter#1\or\oof{#1}\fi}
\protected\def\oof#1{<#1>}
\startbuffer[ofo]
% Output: Th
Hi, list! My question is just like that: how do I pass buffers or \input
content to \processtokens. What I have done so far:
\tolerant\protected\def\foo#={\ifparameter#1\or\oof{#1}\fi}
\protected\def\oof#1{<#1>}
\startbuffer[ofo]
% Output: Ths not a anymore!
Th{i{s {is} not a {question} a
I'd like to capture a caption and apply it to the block-level element that
immediately follows. In the MWE, is there a more "ConTeXt way" to
accomplish the task of adding captions to tables, figures, blockquotes, etc?
% SOT
\startbuffer[demo]
Caption 1
table 1 with caption
lpos and \xmldepth give weird results.
>
> With this minimal sample:
>
> \startbuffer[text]
> first level
> second level
> third level
> third level
>
> second level
> third level
> third level
>
> second level
> third level
> third level
>
ile},
bufferbefore=init,
output={\externalfilterbasefile.out},
readcommand=\typefile,
read=no,]
\startbuffer[init]
from sympy import *
\stopbuffer
\starttext
\startluacode
local deg2rad = [[
%\startsympy
print(latex(rad(%angleVal%)))
%\stopsympy
]]
local calcTrigFunct
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
re
> 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 title bla bla bla bla bla bla bla bla
>
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ö
er{#1}{/link/command(xml:link)})]
\stopxmlsetups
\startbuffer[test]
https://iiif.ub.unibe.ch/presentation/v2.1/berner-inkunabeln/manifest/Inc%20IV%2076%20%20Spiegel%20vorn_Teigstempel"/>
https://iiif.ub.unibe.ch/presentation/v2.1/berner-inkunabeln/manifest/Inc%20IV%2076%20%20Spiegel%20v
..@ziggo.nl>Betreff: [NTG-context] ifxmlselfempty Is it possible that the new \ifxmlselfempty has reversed its outcome? Or did I something wrong in this MWE?Here an MWE. yours sincerelydr. Hans van der Meer \startbuffer[test]!not empty node!\stopbuffer \startxmlsetups xml:mysetups \xmlse
e new \ifxmlselfempty has reversed its outcome? Or did I
something wrong in this MWE?
Here an MWE.
yours sincerely
dr. Hans van der Meer
\startbuffer[test]
!not empty node!
\stopbuffer
\startxmlsetups xml:mysetups
\xmlsetsetup{\xmldocument}{something|emptynode|notemptynode}{xml:*}
\stopxmls
Is it possible that the new \ifxmlselfempty has reversed its outcome? Or did I something wrong in this MWE?Here an MWE.
yours sincerelydr. Hans van der Meer
xmlsetup-template.pdf
Description: Adobe PDF document
\startbuffer[test]!not empty node!\stopbuffer\startxmlsetups xml:mysetups
gt; \xmlall{#1}{./node}
> \crlf
> Execute \type{\xmlfilter{#1}{./node[@type=="cleanup"]}}
> \xmlfilter{#1}{./node[@type=="cleanup"]}
> \crlf
> \stopxmlsetups
> \startxmlsetups demo:attribute:node
> c
xmlflush{#1}
\crlf
\stopxmlsetups
\startbuffer[attribute]
no attribute
attribute type = cleanup
\stopbuffer
\startbuffer[attribute2]
no attribute
attribute type=cleanup
\stopbuffer
\starttext
\ConTeXt\ version\contextversion\blank
\xmlprocessbuffer{demo}{attribute}{}
\stoptext
xml-tex-at
}{No} \par % runs, but
no match
\stopxmlsetups
\startxmlsetups xml:whatever
Yes
\stopxmlsetups
\startbuffer[test]
Yes
No
\stopbuffer
\starttext
\xmlprocessbuffer{test}{test}{}
\stoptext
___
If your question i
netlify.app/##?manifest=\xmlatt{#1}{href})]}
% gives me two hashes in the Link
%{\goto{\xmlflush{#1}}[url(https://uv-v4.netlify.app/#?manifest=\xmlatt{#1}{xlink:href})]}
\par % does not work
{\goto{\xmlflush{#1}}[url(\xmlatt{#1}{href})]}
\stopxmlsetups
\st
#1}{.[True and find(@class,"abc")]}{Yes}{No} \par % run, but no
match
% 5 \xmldoifelse{#1}{.[contains(@class,'abc')]}{Yes}{No} \par % causes an error
% 6 \xmldoifelse{#1}{.[find(@class,"abc")]}{Yes}{No} \par % causes an error
\stopxmlsetups
\start
ups xml:element
\xmlfilter{#1}{./find(attribute('class'), 'abc')/command(xml:whatever)}
\xmldoifelse{#1}{./attribute('class')/contains('abc')} {Yes}{No}
\stopxmlsetups
\startxmlsetups xml:whatever
Yes
\stopxmlsetups
\startbuffer[test]
Yes
No
\stopbuffer
startcolor { "blue" }
lxml.flush (t)
context.stopcolor ()
else
context.startcolor { "red" }
lxml.flush (t)
context.stopcolor ()
end
end
\st
('class'), 'abc')/command(xml:whatever)}
\xmldoifelse{#1}{./attribute('class')/contains('abc')} {Yes}{No}
\stopxmlsetups
\startxmlsetups xml:whatever
Yes
\stopxmlsetups
\startbuffer[test]
Yes
No
\stopbuffer
tract} {
\startsection[title={Resumen}]
\documentvariable{englishabstract}
\stopsection
}
\doifdocumentvariable {spanisabstract} {
\startsection[title={Palabras clave}]
\documentvariable{spanishabstract}
\stopsection
}
...
\stopsetups
\startbuffer en
s to generate the above output?
Michael
---
xml data:
\startbuffer[xmlcontent]
What it is
2023-08-01
Description
Another text
hd1
Header 1
Text of Header 1
d "Header" which makes it different again.
The other elements contain a tag that they all have
in common.
What could be the appropriate xml setups to generate the above output?
Michael
---
xml data:
\startbuffer[xmlcontent]
What it is
2023-08-01
word "Header" which makes it different again.
The other elements contain a tag that they all have
in common.
What could be the appropriate xml setups to generate the above output?
Michael
---
xml data:
\startbuffer[xmlcontent]
What it is
Hi,
I would like a variant of cite per the APA specification that removes the
bracket when quoted in mathematical definitions, theorems, etc. I could of
course do it manually for reach using right= and left= but I didn't want to
do it every time. I have come up with this MWE:
\startbuffe
Dear gang,
Consider the following example:
==
\setupdirections[bidi=global,method=one]
\startTEXpage[offset=1em,width=14in]
\definedfont[almfixed*arabic]
\switchtobodyfont[almfixed*arabic]
\switchtobodyfont[almfixed]
% \addff{arabic}
\startbuffer[]
\startlines
الثَّعْلَبُ
e title for the text doesn't always appear. Instead, there's a small gap
along the top border where the title should be.
Am I going about this the wrong way?
% SOT
\startbuffer[demo]
Text Goes Here
Different Text Goes Here
\stopbuffer
\startxmlsetups xml:xhtml
\xmlsetsetup{\xmld
1 - 100 of 1001 matches
Mail list logo