[NTG-context] Unexpected behaviour of apa-bibliography

2024-09-14 Thread M U via ntg-context
. 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

[NTG-context] Re: ConTeXt beginner, What should I enable within font features? And how do I see all the options possible?

2024-09-07 Thread Wolfgang Schuster
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{

[NTG-context] Re: registers in footnotes as page glossaries

2024-08-31 Thread M U via ntg-context
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

[NTG-context] Re: understanding units / dimensions

2024-08-26 Thread Hans Hagen via ntg-context
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

[NTG-context] Re: understanding units / dimensions

2024-08-25 Thread Wolfgang Schuster
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] \

[NTG-context] Missing \endcsname inserted error

2024-08-13 Thread Jeong Dal via ntg-context
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("

[NTG-context] Re: How can I force ConTeXt to display my footnote on the same page as my foot note marker?

2024-07-29 Thread Hans Hagen via ntg-context
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

[NTG-context] Re: How can I force ConTeXt to display my footnote on the same page as my foot note marker?

2024-07-29 Thread Pablo Rodriguez via ntg-context
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

[NTG-context] Re: How to create a second bibliography?

2024-07-22 Thread Joel via ntg-context
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

[NTG-context] Re: How to create a second bibliography?

2024-07-21 Thread Aditya Mahajan
> 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

[NTG-context] Re: Inconsistencies with fonts/c2sc feature

2024-06-25 Thread Pablo Rodriguez via ntg-context
[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[

[NTG-context] Re: weekend update

2024-06-24 Thread Gerion Entrup
t; >> > >> \starttext > >> > >> \definestacking[one] > >> \definestacking[two] > >> > >> \startbuffer > >> This is a test \stacking [one] {and a proof} of \stacking [two] > >> {concept} indeed > >> \stacking [one] {\bla

[NTG-context] Re: weekend update

2024-06-23 Thread Hans Hagen via ntg-context
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

[NTG-context] Re: weekend update

2024-06-23 Thread Gerion Entrup
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

[NTG-context] Re: weekend update

2024-06-23 Thread Gerion Entrup
\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

[NTG-context] Re: weekend update

2024-06-23 Thread Gerion Entrup
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

[NTG-context] Re: weekend update

2024-06-21 Thread Aditya Mahajan
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

[NTG-context] weekend update

2024-06-21 Thread Hans Hagen via ntg-context
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

[NTG-context] Re: Specify separator within setupbtx for custom bibliography rendering

2024-06-21 Thread Gerion Entrup
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

[NTG-context] Re: URL in footnote citation

2024-06-20 Thread Alan Braslau via ntg-context
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

[NTG-context] URL in footnote citation

2024-06-19 Thread Kip Warner
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

[NTG-context] Re: Upgrading from 2021.03.05.20230120 -> 2023.05.05.20230730 breaks BibTeX footnotes

2024-06-18 Thread Kip Warner
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

[NTG-context] Re: expanded doif's

2024-06-18 Thread Hans van der Meer via ntg-context
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

[NTG-context] Re: Combine \setupdelimitedtext with an author (define custom variable?)

2024-06-18 Thread Gerion Entrup
\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

[NTG-context] Re: Upgrading from 2021.03.05.20230120 -> 2023.05.05.20230730 breaks BibTeX footnotes

2024-06-17 Thread Kip Warner
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

[NTG-context] Re: Combine \setupdelimitedtext with an author (define custom variable?)

2024-06-17 Thread Wolfgang Schuster
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

[NTG-context] Re: expanded doif's

2024-06-17 Thread Pablo Rodriguez via ntg-context
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

[NTG-context] Re: expanded doif's

2024-06-17 Thread Wolfgang Schuster
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

[NTG-context] \xmlinlineverbatim not inline

2024-06-16 Thread Pablo Rodriguez via ntg-context
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

[NTG-context] Re: Bibliography: separating different kinds of literature OR Sectioning bibliography by type

2024-06-09 Thread Ben Moon via ntg-context
}.} {} \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

[NTG-context] Re: ConTeXt source from XML

2024-06-05 Thread Hans Hagen
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

[NTG-context] Re: ConTeXt source from XML

2024-06-05 Thread Pablo Rodriguez via ntg-context
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

[NTG-context] Specify separator within setupbtx for custom bibliography rendering

2024-06-01 Thread Gerion Entrup
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

[NTG-context] weird \inlinetypebuffer interaction

2024-05-06 Thread Pablo Rodriguez via ntg-context
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

[NTG-context] Re: more register questions!

2024-05-03 Thread Thomas A. Schmitz
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

[NTG-context] Re: \par and \startlines

2024-05-01 Thread Wolfgang Schuster
{#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

[NTG-context] Re: \par and \startlines

2024-04-30 Thread Denis Maier via ntg-context
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

[NTG-context] Re: \par and \startlines

2024-04-26 Thread Wolfgang Schuster
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

[NTG-context] \par and \startlines

2024-04-26 Thread denis.maier
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

[NTG-context] Re: Combine lua and btx setup, was: Re: Customize citation format of a bibliography (use the short form as reference format)

2024-04-25 Thread Gerion Entrup
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=

[NTG-context] Combine lua and btx setup, was: Re: Customize citation format of a bibliography (use the short form as reference format)

2024-04-23 Thread Gerion Entrup
[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

[NTG-context] Re: Why are ConTeXt-SBL endnotes empty?

2024-04-22 Thread Joel via ntg-context
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

[NTG-context] Why are ConTeXt-SBL endnotes empty?

2024-04-22 Thread Joel via ntg-context
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}

[NTG-context] Re: Customize citation format of a bibliography (use the short form as reference format)

2024-04-17 Thread Gerion Entrup
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

[NTG-context] Re: Customize citation format of a bibliography (use the short form as reference format)

2024-04-17 Thread Alan Braslau via ntg-context
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}, > }

[NTG-context] Customize citation format of a bibliography (use the short form as reference format)

2024-04-15 Thread Gerion Entrup
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

[NTG-context] Re: Wiki - question about Command/ pages which start with a space character

2024-04-14 Thread Wolfgang Schuster
'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

[NTG-context] Re: Wiki - question about Command/ pages which start with a space character

2024-04-14 Thread Henning Hraban Ramm
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

[NTG-context] Re: Wiki - question about Command/ pages which start with a space character

2024-04-14 Thread Wolfgang Schuster
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

[NTG-context] Wiki - question about Command/ pages which start with a space character

2024-04-14 Thread garulfo
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

[NTG-context] Re: Fwd: Re: how to apply gradient color to a piece of text?

2024-04-09 Thread Hans Hagen
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

[NTG-context] Re: Fwd: Re: how to apply gradient color to a piece of text?

2024-04-09 Thread seyal zavira
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

[NTG-context] Re: Fwd: Re: how to apply gradient color to a piece of text?

2024-04-08 Thread Hans Hagen
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

[NTG-context] Re: incosistent output of --- dash

2024-04-06 Thread vm via ntg-context
\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

[NTG-context] Re: incosistent output of --- dash

2024-04-06 Thread Hans Hagen
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 ‒

[NTG-context] Re: incosistent output of --- dash

2024-04-06 Thread Wolfgang Schuster
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

[NTG-context] upload

2024-04-01 Thread Hans Hagen
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

[NTG-context] (again) \xmlinlineprettyprinttext double hyphens

2024-03-24 Thread Pablo Rodriguez via ntg-context
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

[NTG-context] issue with \xmlinlineprettyprinttext

2024-03-20 Thread Pablo Rodriguez via ntg-context
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

[NTG-context] command line arguments

2024-03-19 Thread Hraban Ramm
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

[NTG-context] Re: issue with typing in footnotes

2024-03-17 Thread Wolfgang Schuster
% 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

[NTG-context] Re: missing metadata in LMTX

2024-03-06 Thread Pablo Rodriguez via ntg-context
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=&#

[NTG-context] Re: Local alternative to \input

2024-03-05 Thread Henning Hraban Ramm
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

[NTG-context] Re: Local alternative to \input

2024-03-04 Thread 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 Best, Denis Von: Jeroen Gesendet: Montag, 4. März 2024 06:15 An: mailing list for ConTeXt users Betreff: [NTG-context

[NTG-context] missing metadata in LMTX

2024-03-03 Thread Pablo Rodriguez via 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

[NTG-context] BUG: colour spilling in btxrendering

2024-02-01 Thread Alexandre Christe
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

[NTG-context] Re: Status of Asymptote

2024-01-03 Thread Jeroen
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

[NTG-context] Re: Status of Asymptote

2023-12-30 Thread Aditya Mahajan
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

[NTG-context] Re: underbrace label across two lines

2023-12-20 Thread Dean Hung
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

[NTG-context] Re: underbrace label across two lines

2023-12-20 Thread Mikael Sundqvist
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

[NTG-context] Re: Seeking advice for module that draws globes

2023-12-17 Thread Hans Hagen via ntg-context
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

[NTG-context] Re: Fractions (was \placefigure[location=here...] problem)

2023-12-09 Thread Wolfgang Schuster
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

[NTG-context] Re: Buffer and \input content as input for \processtokens, etc.

2023-12-06 Thread Hans Hagen
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

[NTG-context] Buffer and \input content as input for \processtokens, etc.

2023-12-06 Thread Jairo A. del Rio
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

[NTG-context] Converting XHTML captions to ConTeXt captions

2023-11-26 Thread Thangalin
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

[NTG-context] Re: xmlpos values doubled

2023-11-21 Thread Benjamin Buchmuller
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 >

[NTG-context] Re: Combining python and lua

2023-10-26 Thread Alexandre Christe
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

[NTG-context] Re: Toggling the symbol for the zero-width joiner and related Unicode control characters

2023-09-22 Thread Hamid,Idris
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

[NTG-context] Re: Toggling the symbol for the zero-width joiner and related Unicode control characters

2023-09-22 Thread Hans Hagen
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

[NTG-context] Re: XML: flush to lua function

2023-09-12 Thread Taco Hoekwater
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 >

[NTG-context] Re: XML: flush to lua function

2023-09-11 Thread denis.maier
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ö

[NTG-context] XML, multiple spaces encoded as %20 get merged into one space

2023-09-06 Thread denis.maier
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

[NTG-context] Re: ifxmlselfempty

2023-09-04 Thread Hans van der Meer via ntg-context
..@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

[NTG-context] Re: ifxmlselfempty

2023-09-04 Thread denis.maier
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

[NTG-context] ifxmlselfempty

2023-09-03 Thread Hans van der Meer via ntg-context
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

[NTG-context] Re: attribute selection

2023-08-30 Thread Hans van der Meer via ntg-context
gt; \xmlall{#1}{./node} > \crlf > Execute \type{\xmlfilter{#1}{./node[@type=="cleanup"]}} > \xmlfilter{#1}{./node[@type=="cleanup"]} > \crlf > \stopxmlsetups > \startxmlsetups demo:attribute:node > c

[NTG-context] attribute selection

2023-08-30 Thread Hans van der Meer via ntg-context
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

[NTG-context] Re: xmldoif: checking for contents of attribute

2023-08-25 Thread denis.maier
}{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

[NTG-context] XML: Correct usage of hash symbol in url

2023-08-25 Thread denis.maier
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

[NTG-context] Re: xmldoif: checking for contents of attribute

2023-08-24 Thread denis.maier
#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

[NTG-context] Re: xmldoif: checking for contents of attribute

2023-08-24 Thread Hans Hagen
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

[NTG-context] Re: xmldoif: checking for contents of attribute

2023-08-24 Thread Thomas A. Schmitz
startcolor { "blue" } lxml.flush (t) context.stopcolor () else context.startcolor { "red" } lxml.flush (t) context.stopcolor () end end \st

[NTG-context] xmldoif: checking for contents of attribute

2023-08-24 Thread denis.maier
('class'), 'abc')/command(xml:whatever)} \xmldoifelse{#1}{./attribute('class')/contains('abc')} {Yes}{No} \stopxmlsetups \startxmlsetups xml:whatever Yes \stopxmlsetups \startbuffer[test] Yes No \stopbuffer

[NTG-context] Re: Better option for a macro with lots of arguments

2023-08-23 Thread Hans Hagen via ntg-context
tract} { \startsection[title={Resumen}] \documentvariable{englishabstract} \stopsection } \doifdocumentvariable {spanisabstract} { \startsection[title={Palabras clave}] \documentvariable{spanishabstract} \stopsection } ... \stopsetups \startbuffer en

[NTG-context] Re: XML processing beginner's question

2023-08-21 Thread Michael Löscher
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     

[NTG-context] Re: XML processing beginner's question

2023-08-21 Thread Thomas A. Schmitz
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    

[NTG-context] XML processing beginner's question

2023-08-21 Thread Michael Löscher
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

[NTG-context] Enable interaction on custom apa cite variant

2023-08-19 Thread Jethro Djan
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

[NTG-context] Font switching, default features, and a request

2023-08-13 Thread Hamid,Idris
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 الثَّعْلَبُ

[NTG-context] Re: Pass string into text background graphic

2023-08-11 Thread Hans Hagen
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   2   3   4   5   6   7   8   9   10   >