[NTG-context] Re: Error with vskip and interaction in 20250813

2025-08-15 Thread Rik Kabel
=] \definelabel[Qi][text={\hbox to 15pt}, alternative=inright] \startbuffer[fn] \Qi \stopbuffer \starttext \Qi Between here\par aaa\endnote{xxx\getbuffer[fn]}\Qi and here \placenotes[endnote] \stoptext -- Rik

[NTG-context] Re: Notes at end of book

2025-08-14 Thread Wolfgang Schuster
s are properly set, and yet I get the same error: \startbuffer[test]   Hello world \stopbuffer \startsetups my:test \startxmlsetups xml:testsetups \xmlsetsetup{#1}{document|p}{xml:*} \stopxmlsetups \xmlregistersetup{xml:testsetups} \startxmlsetups xml:document \xmlflus

[NTG-context] Re: Notes at end of book

2025-08-14 Thread Thomas A. Schmitz
you're referring to? This seems to work, I may be able to use this for my real file... All best Thomas \startbuffer[test] Hello world \stopbuffer %%% ONE \startxmlsetups xml:firstsetups \xmlsetsetup{one}{document|p}{xml:*} \stopxmlsetups \xmlregistersetup{xml:firsts

[NTG-context] Re: Notes at end of book

2025-08-14 Thread Thomas A. Schmitz
error: \startbuffer[test] Hello world \stopbuffer \startsetups my:test \startxmlsetups xml:testsetups \xmlsetsetup{#1}{document|p}{xml:*} \stopxmlsetups \xmlregistersetup{xml:testsetups} \startxmlsetups xml:document \xmlflush {#1} \stopxmlsetups \startxmlsetups xml:p \color

[NTG-context] Re: ConTeXt 1.06 does not recognize "\centerdot" and "\neg"

2025-08-09 Thread Abdelhak Ferhat
ntered > \scalarproduct > \tochar{x:00B7} > \tochar{u:middle dot} > \tochar{u:midpoint} > > \usemodule[mathml] > \startbuffer > · > \stopbuffer > \processxmlbuffer > > $\neg\neg\neg$ > \stop

[NTG-context] Re: ConTeXt 1.06 does not recognize "\centerdot" and "\neg"

2025-08-09 Thread Max Chernoff via ntg-context
t to work properly, there are quite a few alternatives: \startTEXpage · \char"00B7 \cdot \periodcentered \scalarproduct \tochar{x:00B7} \tochar{u:middle dot} \tochar{u:midpoint} \usemodule[mathml]

[NTG-context] Preserving Stanza Integrity

2025-08-06 Thread Michael Guravage
lines \getpoem \stoppoemlines}} \edef\poemhsize{\the\dimexpr(\hsize-\wd\scratchbox)/2\relax} \setupnarrower[poemnarrower][left=\poemhsize] \startpoemlines \getpoem \stoppoemlines \stopsetups \startbuffer[Wilhelmus] \startlines Wilhelmus van Nassouwe ben ik, van Duitsen bloed, d

[NTG-context] Re: Animation using MetaFun

2025-07-18 Thread Mikael Sundqvist
Define the z[] values in the \startMPdefinitions block > 2. Modified the drawing method in \startMPbuffer > > When I run it, it doesn’t recognize the z[] values defined already. > I think that the z[] values are not delivered to \startbuffer. > I tried \startMPinclusions, \startMPinitia

[NTG-context] Animation using MetaFun

2025-07-18 Thread Jeong Dal via ntg-context
run it, it doesn’t recognize the z[] values defined already. I think that the z[] values are not delivered to \startbuffer. I tried \startMPinclusions, \startMPinitialization, but I couldn’t succeed. 1. How can I deliver the z[] values into the buffer? 2. What is wrong in the following code? Thank

[NTG-context] Re: Docker images

2025-07-12 Thread Max Chernoff via ntg-context
text-cache.tex context --luatex --make mtxrun --luatex --script fonts --reload context --luatex context-cache.tex where context-cache.tex is the following: \starttext \startbuffer[line] \tf The quick brown fox jumps over the lazy dog. $\sqrt{x^2} \mathbb{R

[NTG-context] Re: preventing next \par

2025-06-20 Thread mf
two distinct paragraphs). To give you an idea, in XHTML it could be something like this: --- This is a paragraph. This is the next paragraph. --- Here is a weekend solution ... % Let's borrow some mwe as that was not provided: \startbuffer[test]      

[NTG-context] Re: preventing next \par

2025-06-20 Thread Hans Hagen via ntg-context
eping the original structure of the document (two distinct paragraphs). To give you an idea, in XHTML it could be something like this: --- This is a paragraph. This is the next paragraph. --- Here is a weekend solution ... % Let's borrow some mwe as that was not provided: \s

[NTG-context] Using Kurinto: Cursive/Slanted

2025-06-17 Thread Mike Urban
tfamily[Kurinto] [mm] [Latin Modern Math] \setupbodyfont[Kurinto,12pt] \startbuffer[line] The quick brown fox jumps over \stopbuffer \startbuffer[sample] \startTABLE \NC \type{\normal}\NC \normal{\getbuffer[line]}\NC \NR \NC \type{\italic}\NC \italic{\getbuffer[line]}\NC

[NTG-context] Re: Why does \setvalue not work inside \startbodymatter?

2025-05-19 Thread Wolfgang Schuster
ou're doing the same as \def\A{...}. To avoud redefining existing commmands use a prefix for your command names because unlike \def you can use special symbols like : or _ within \setvalue. begin example \startbuffer[getvalue] \starttabulate[|T||] \NC Joel:A \EQ \getvalue{Joel:A} \NC\NR

[NTG-context] Enumerations: How to place an itemized list's index above an item's contents?

2025-05-14 Thread Michael Guravage
} \stoptexdefinition \definesymbol [ordinal_symbol] [{\OrdinalDate{\currentitemnumber}}] \setupitemize[symbol=ordinal_symbol] \definestartstop[framedtextitem] [before={\startitem\startframedtext}, after={\stopframedtext\stopitem}] \startbuffer This is a test. For the next sixty seconds, this stat

[NTG-context] Error with xml files and attribute lists

2025-05-11 Thread Wolfgang Schuster
Hi, the xml parser fails on attribute list settings in xml files. begin example \startbuffer[jmdict] ]> \stopbuffer \starttext \startluacode local jmdict = lxml.loadbuffer("","jmdict",false) inspect(jmdict) \stopluacode \stoptext %%%

[NTG-context] How to typeset interactive, hyphenated URLs in a bibliography?

2025-04-06 Thread Riviera Taylor
Hello, I'd like the URL to link to the webpage rather than what it currently links to: `hyphenatedurl#https://example.com/this-is-a-really-long-slug/for-example-purposes-only/` Kind regards, Riviera Running LuaMetaTeX, Version 2.11.07 (Functionality : level 20250226) MWE: \startb

[NTG-context] Re: issue with \savebuffer in LMTX

2025-04-05 Thread Wolfgang Schuster
Am 03.04.2025 um 15:58 schrieb Pablo Rodriguez via ntg-context: On 4/2/25 18:47, Bruce Horrocks wrote: On 2 Apr 2025, at 15:21, Pablo Rodriguez via ntg-context wrote: \startbuffer[x] a \stopbuffer \starttext \savebuffer[x][\jobname-temp.tex, prefix=no] whatever

[NTG-context] Re: issue with \savebuffer in LMTX

2025-04-03 Thread Pablo Rodriguez via ntg-context
On 4/2/25 18:47, Bruce Horrocks wrote: >> On 2 Apr 2025, at 15:21, Pablo Rodriguez via ntg-context wrote: >> >>\startbuffer[x] >>a >>\stopbuffer >>\starttext >>\savebuffer[x][\jobname-temp.tex, prefix=no] >>whatever >>

[NTG-context] Re: issue with \savebuffer in LMTX

2025-04-02 Thread Bruce Horrocks
> On 2 Apr 2025, at 15:21, Pablo Rodriguez via ntg-context > wrote: > >\startbuffer[x] >a >\stopbuffer >\starttext >\savebuffer[x][\jobname-temp.tex, prefix=no] >whatever >\stoptext You're mixing up the syntax styles: if you wan

[NTG-context] issue with \savebuffer in LMTX

2025-04-02 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following sample: \startbuffer[x] a \stopbuffer \starttext \savebuffer[x][\jobname-temp.tex, prefix=no] whatever \stoptext Compiling it with current latest (2025.04.01 12:45) LMTX, the saved file name is "x". With current latest MkIV,

[NTG-context] Re: Inconsistency in \sc

2025-03-27 Thread Wolfgang Schuster
Am 27.03.2025 um 23:11 schrieb Rik Kabel: On 2025-03-27 13:03, Alan Caruanambo wrote: \sc gets different results when changing the default font. See attached PDF. \starttext \startbuffer {\sc Use CaPs and SmAll caps (preserve casing)} \stopbuffer \getbuffer \setupbodyfont[dejavu

[NTG-context] Re: Inconsistency in \sc

2025-03-27 Thread Rik Kabel
On 2025-03-27 13:03, Alan Caruanambo wrote: \sc gets different results when changing the default font. See attached PDF. \starttext \startbuffer {\sc Use CaPs and SmAll caps (preserve casing)} \stopbuffer \getbuffer \setupbodyfont[dejavu]     \getbuffer \crlf \setupbodyfont[ibmplex,rm

[NTG-context] Inconsistency in \sc

2025-03-27 Thread Alan Caruanambo
\sc gets different results when changing the default font. See attached PDF. \starttext \startbuffer {\sc Use CaPs and SmAll caps (preserve casing)} \stopbuffer \getbuffer \setupbodyfont[dejavu] \getbuffer \crlf \setupbodyfont[ibmplex,rm] \getbuffer \stoptext sc-test.pdf Description

[NTG-context] Re: footnotes with separate lines

2025-03-26 Thread jbf
\footnote{1770 – the discovery\\ 1778 – the invasion\\ 1824 – the war of extermination\\ 1901 – the Constitution} \startbuffer \startlines 1770 – the discovery 1778 – the invasion 1824 – the war of extermination 1901 – the Constitution \stoplines

[NTG-context] Re: footnotes with separate lines

2025-03-26 Thread Pablo Rodriguez via ntg-context
] \starttext \contextversion\\ \texenginename\\ \texengineversion\\ \texenginefunctionality \footnote{1770 – the discovery\\ 1778 – the invasion\\ 1824 – the war of extermination\\ 1901 – the Constitution} \startbuffer \startlines 1770 – the discovery 1778 – the invas

[NTG-context] Re: Quads not appearing

2025-02-28 Thread Hans Hagen via ntg-context
ntedspaces \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:num \xmlflush{#1} \stopxmlsetups \startbuffer[test] asdf 1 \stopbuffer \starttext \xmlprocessbuffer{test}{test}{}

[NTG-context] Re: Quads not appearing

2025-02-27 Thread Denis Maier via ntg-context
nd(xml:loc)} \stopparagraph \stopxmlsetups \startxmlsetups xml:term \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:loc \removeunwantedspaces \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:num \xmlflush{#1} \stopxmlsetups \startbuffer[test] asdf 1 \

[NTG-context] Quads not appearing

2025-02-26 Thread Denis Maier via ntg-context
xml:index-entry \startparagraph \xmlfilter{#1}{/term/command(xml:term)}\qquad\xmlfilter{#1}{/loc/command(xml :loc)} \stopparagraph \stopxmlsetups \startxmlsetups xml:term \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:loc \xmlflush{#1} \stopxmlsetups \s

[NTG-context] matching the same child number (XML)

2025-02-08 Thread Pablo Rodriguez via ntg-context
mal sample here: \startbuffer[demo] first second third First Second Third \stopbuffer \startxmlsetups xml:initialize \xmlsetsetup{#1} {root|div|p} {xml:*} \stopxmlsetups \xmlregistersetup{xml:

[NTG-context] Re: Lua question - table.save, table.load

2025-01-11 Thread Jeong Dal via ntg-context
nsert(tfList, val) -- context(#tfList) end if #a == 3 then val = func(s,t) and "1" or "0" context(val) context.NC() context.AR() table.insert(tfList, val) end end end document.MakeF

[NTG-context] Re: You can't use '\prevdepth' in restricted horizontal mode

2025-01-08 Thread Jeong Dal via ntg-context
wd, -(i+1)*ht))); endfor; for i=0 upto rlNum[1]-1: subcode := substring (i*rlSkip[1],(i+1)*rlSkip[1]) of code[1]; label.top(textext(subcode), ((i+1)*wd,.3ht)); endfor; setbounds currentpicture to boundingbox currentpicture enlarged 2mm; draw boundingbox currentpicture; enddef; \st

[NTG-context] Vertical space between section and subsection.

2024-12-17 Thread Jeong Dal via ntg-context
reading. Best regards, Dalyoung \startbuffer[styleOutline] \startuseMPgraphic{outlineT} draw lmt_outline [ text = \MPvar{tt}, kind = "both", width = OverlayWidth, align = "middle", fillcolor = "gray&quo

[NTG-context] Re: playing with dates

2024-12-17 Thread Pablo Rodriguez via ntg-context
ar] \setupbodyfont[palatino] \def\pgfcalendarmonthname#1{% \translate{\ifcase#1\or Enero\or Febrero\or Marzo\or Abril\or Mayo\or Junio\or Julio\or Agosto\or Septiembre\or Octubre\or Noviembre\or Diciembre\fi}% } \starttext \startbuffer \setupheadertexts[\framed[frame=off, foregrounds

[NTG-context] Re: Including SVG manipulating color or rewrite in MP

2024-12-14 Thread juh+ntg-context--- via ntg-context
form.svg appears as background of icon.svg. >> >> Now I want to change the stroke color in the svg. >> >> It is very simple: >> >> >> >> http://www.w3.org/2000/svg";> >> >>> stroke-width="2"/>

[NTG-context] Re: Including SVG manipulating color or rewrite in MP

2024-12-12 Thread Mikael Sundqvist
a > meaningful filename, but I would like to set the color in the context file. > > I tried to define the overlay pic with \includesvgbuffer but I can't get > it to work. > > \startbuffer[svg] > http://www.w3.org/2000/svg";> > > stroke-width="2&quo

[NTG-context] Including SVG manipulating color or rewrite in MP

2024-12-12 Thread juh+ntg-context--- via ntg-context
y open it in inkscape set the color an save it under a meaningful filename, but I would like to set the color in the context file. I tried to define the overlay pic with \includesvgbuffer but I can't get it to work. \startbuffer[svg] http://www.w3.org/2000/svg";>

[NTG-context] Re: On the use of btx datasets to manage images and plots

2024-11-25 Thread Hans Hagen
page fill fullcircle scaled 4cm withcolor "darkgreen"; \stopMPpage \starttext \startbuffer[samples] @IMAGE {sample1, title = "sample-1", author = "My Self", mpcode = {fill fullcircle scaled 4cm withcolor "darkblue";} } @

[NTG-context] Re: [ imposition schemas ]

2024-11-24 Thread Bruce Horrocks
uals \setupbodyfont[ss,14pt] \setuplayout [margin=0pt, width=fit, header=2.8ex, footer=2.8ex] \setupalign[middle,hilo] \setuppagenumbering [alternative=doublesided,location=footer] \setupheadertexts[\CONTEXT\ imposition test] %\showframe \setupbackgrounds [text][text][background=color,backgr

[NTG-context] Re: Zigzag left margin with italics

2024-11-04 Thread Wolfgang Schuster
e solution is to use \shapecorrection which moves the slanted glyphs closer the margins of the text block. begin example \setuppapersize[A5] \startbuffer H\crlf {\it T} \blank H\crlf {\shapecorrection[both]\it T} \stopbuffer \showframe \starttext \subject{Latin Modern} \getbuffer \set

[NTG-context] Re: Zigzag left margin with italics

2024-11-03 Thread Mikael Sundqvist
factor = 1, } vectors.rik = table.merged ( vectors.quality, { [0x0054] = { 0.35, 0 }, -- T }) \stopluacode \definefontfeature [default] [default] [protrusion=rik,expansion=quality] \setupalign[hz,hanging] \showmakeup[line] \showglyphs \startbuffer Here is a line of text,

[NTG-context] Zigzag left margin with italics

2024-11-03 Thread Rik Kabel
]    [default]    [protrusion=quality,expansion=quality] \setupalign    [hz,hanging] \startbuffer Here is a line of text, the first sentence in the demonstration.\\ {\em Then} the next sentence in the paragraph follows.\\ You can see that the italic

[NTG-context] Re: Seeking Advice on Electron Configuration Notation in ConTeXt

2024-10-30 Thread Hans Hagen
lue\symbol[electrond]}] \stopmodule \protect \continueifinputfile{m-electrons.mkxl} \usemodule[scite] \starttext \startTEXpage[offset=1cm,width=17cm] \startbuffer[b] Nitrogen: \electrons{b}{1s} \electrons{b}{2s} \electrons{uuu}{2p} Nitrogen: \electrons{b}{} \electrons{B}{} \electrons{uDu}{} \defin

[NTG-context] Re: Why didn't I get the correct ordinal number, after defining an environment via command "installcounterassociation".

2024-10-21 Thread Wolfgang Schuster
ix=no] \startbuffer[increment] \incrementcounter[xxx] \convertedcounter[xxx] \stopbuffer %\enablemode[reset] \starttext \dorecurse{2}{\getbuffer[increment]\blank} \startchapter [title={Setting counter value after \tex{chapter}}] \setupcounter[xxx][start=6] \doifmode{reset}{\resetcounte

[NTG-context] Re: configuring spitter

2024-10-08 Thread Wolfgang Schuster
juh+ntg-cont...@mailbox.org schrieb am 08.10.2024 um 18:13: Am 03.10.24 um 14:15 schrieb Wolfgang Schuster: begin example \setuplayout[tight] \setuppapersize[A8,landscape] \starttext \startbuffer[cattle] "Year","Cattle, total","Dairy cows" "2009

[NTG-context] configuring spitter (was: separatedlist with header repeating processing csv to table)

2024-10-08 Thread juh+ntg-context--- via ntg-context
Am 03.10.24 um 14:15 schrieb Wolfgang Schuster: begin example \setuplayout[tight] \setuppapersize[A8,landscape] \starttext \startbuffer[cattle] "Year","Cattle, total","Dairy cows" "2009","3968","1489" "2010","

[NTG-context] Deactivate (back)links of the bibliography

2024-10-05 Thread Gerion Entrup
bibliography contains additional URLs or DOIs that link to external resources but are not highlighted since all surrounding text is colored in the same way. Here is a MWE: ``` \setupinteraction[state=start, color=red] \startbuffer[testdata] @Book{knuth1, author = {Donald E. Knuth

[NTG-context] Re: different type in footnote

2024-10-04 Thread Aditya Mahajan
{\type[compact=absolute]{\a.bc}} > > I mean, this is verbatim and in some cases it is essential to be able to > display spaces as they are in the source. You can also use: \startbuffer \a.bc \stopbuffer \footnote{\typebuffer} Aditya ___

[NTG-context] Re: how can I reset section counter when recursing buffers?

2024-10-03 Thread Damien Thiriet via ntg-context
Thanks Wolfgang! I wikified your answer, adding a line in «Counters». I also slightly changed the page layout (replacing code examples with links to the command pages). Damien My MWE: \startbuffer \startsection[title={foo}]    \input ward \stopsection \startsection[title={bar

[NTG-context] Re: separatedlist with header repeating processing csv to table

2024-10-03 Thread Wolfgang Schuster
example \setuplayout[tight] \setuppapersize[A8,landscape] \starttext \startbuffer[cattle] "Year","Cattle, total","Dairy cows" "2009","3968","1489" "2010","3975","1479" "2011","3885","1

[NTG-context] Re: how can I reset section counter when recursing buffers?

2024-10-01 Thread Wolfgang Schuster
? I tried \resetcounter [section] but that is not the good way. I read about \headnumber and \namedheadnumber but could'nt go further. My MWE: \startbuffer \startsection[title={foo}]    \input ward \stopsection \startsection[title={bar}]    \input knuth \stopsection \stopbuffer \star

[NTG-context] how can I reset section counter when recursing buffers?

2024-10-01 Thread Damien Thiriet via ntg-context
read about \headnumber and \namedheadnumber but could'nt go further. My MWE: \startbuffer \startsection[title={foo}] \input ward \stopsection \startsection[title={bar}] \input knuth \stopsection \stopbuffer \starttext \dorecurse{2}{ % how can I reset chapter number? \getb

[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

  1   2   3   4   5   6   7   8   9   10   >