[NTG-context] Re: Bibliography cite

2023-08-05 Thread Robert via ntg-context
;>>> Dear List members, >>>> For my academic work with context I need the following cite according to >>>> Apa standards: >>>> Knuth (1984, p. 12) mentions …. >>>> The matrix is this: >>>> AUTHOR (, p.~n). >>>> I

[NTG-context] Re: Bibliography cite

2023-08-04 Thread Alan Braslau via ntg-context
matrix is this: AUTHOR (, p.~n). I reckon this can somehow be accomplished with the \setupbtx command. (Standard these and other variants are possible: AUTHOR () and AUTHOR , p. n.) I tried different setups: \setupbtx[apa:cite:authoryear], and \setupbtx[apa:cite:authoryears], I played

[NTG-context] Re: Bibliography cite

2023-08-01 Thread Robert via ntg-context
to Apa >> standards: >> Knuth (1984, p. 12) mentions …. >> The matrix is this: >> AUTHOR (, p.~n). >> I reckon this can somehow be accomplished with the \setupbtx command. >> (Standard these and other variants are possible: AUTHOR () and AUTHOR >>

[NTG-context] Re: Bibliography cite

2023-08-01 Thread Alan Braslau via ntg-context
. n.) I tried different setups: \setupbtx[apa:cite:authoryear], and \setupbtx[apa:cite:authoryears], I played with the lefttext, righttext and other options, but none of them give the desired result. Thank you for any suggestions. Regards, Robert @article{Knuth1984, author={Knuth, Donald E

[NTG-context] Bibliography cite

2023-08-01 Thread Robert via ntg-context
possible: AUTHOR () and AUTHOR , p. n.) I tried different setups: \setupbtx[apa:cite:authoryear], and \setupbtx[apa:cite:authoryears], I played with the lefttext, righttext and other options, but none of them give the desired result. Thank you for any suggestions. Regards, Robert

[NTG-context] Re: Par Builder Tests

2023-07-30 Thread Keith McKay
cKay wrote: Thanks Hraban, didn't think of that so will give it a try. Best Wishes Keith On Fri, 28 Jul 2023, 17:28 Henning Hraban Ramm, wrote: Am 28.07.23 um 17:04 schrieb Keith McKay: > I played around with the setups for the align:pass:test4 code below, as > Hans

[NTG-context] Re: combining \definetyping and \definebuffer

2023-07-30 Thread Henning Hraban Ramm
I use \setuptyping for the general style with a background box. But that conflicts with the setups for special cases like code and result side by side. I guess I’ll also include this in the CGJ setup. ... attached an extension that supports inheritance (via category), still honors 'b

[NTG-context] Re: Par Builder Tests

2023-07-28 Thread Keith McKay
Thanks Hraban, didn't think of that so will give it a try. Best Wishes Keith On Fri, 28 Jul 2023, 17:28 Henning Hraban Ramm, wrote: > Am 28.07.23 um 17:04 schrieb Keith McKay: > > I played around with the setups for the align:pass:test4 code below, as > > Hans suggested,

[NTG-context] Re: Par Builder Tests

2023-07-28 Thread Henning Hraban Ramm
Am 28.07.23 um 17:04 schrieb Keith McKay: I played around with the setups for the align:pass:test4 code below, as Hans suggested, and it was changing the \tolerance value which made the difference. Increasing the \tolerance value to 1000 eliminated all overfull hboxes but still left 79

[NTG-context] Re: Par Builder Tests

2023-07-28 Thread Keith McKay
Hi all! Using the example below I have completed a test using a larger book. This time I downloaded War and Peace from the Gutenberg Project and extracted the individual xhtml files for Context. I played around with the setups for the align:pass:test4 code below, as Hans suggested, and it

[NTG-context] Re: Par Builder Tests

2023-07-21 Thread Hans Hagen
files so that my setup for xml was very simple. Here are my setups for the layout of the novels showing some trackers that were used as well: \definepapersize[pagee][width=5.06in,height=7.81in] \setuppapersize[pagee] % XML setups here \startsetups[grid][mypenalties] \setdefaultpenalties

[NTG-context] Par Builder Tests

2023-07-21 Thread Keith McKay
simple. Here are my setups for the layout of the novels showing some trackers that were used as well: \definepapersize[pagee][width=5.06in,height=7.81in] \setuppapersize[pagee] % XML setups here \startsetups[grid][mypenalties] \setdefaultpenalties \setpenalties\widowpenalties{1}{150

[NTG-context] Fwd: Fwd: Re: Fwd: Re: text width shadow background

2023-07-09 Thread Keith McKay
lmt_outline is shifted to the right, if I use it in a macro? no time now but you can do this instead of the lmt_text: draw lmt_outline [ text = "\bf\strut #1", kind = "fillup", fillcolor = "white",      rulethickness = rulesize,

[NTG-context] Re: Fwd: Re: text width shadow background

2023-07-08 Thread Henning Hraban Ramm
[     text = "\bf\strut #1",     kind = "fillup",     fillcolor = "white",     rulethickness = rulesize,     ]; (maybe spaces creep in due to loading font files / setups or so) Thank you! Yes, this works, and with rulethickness=0 it

[NTG-context] Fwd: Re: text width shadow background

2023-07-08 Thread Hans Hagen via ntg-context
p in due to loading font files / setups or so) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pra

[NTG-context] Re: Title pages makeup extra blank pages

2023-07-06 Thread Henning Hraban Ramm
Am 06.07.23 um 11:58 schrieb Alan Braslau: Maybe it’s also a problem of \startdocument – I always get a first empty page and don’t understand why. One gets an empty first page if there is *any* text content anywhere in the setups or environment files before the \startdocument. My problem

[NTG-context] Re: Title pages makeup extra blank pages

2023-07-06 Thread Alan Braslau via ntg-context
ent – I always get a first empty page and don’t understand why. One gets an empty first page if there is *any* text content anywhere in the setups or environment files before the \startdocument. -- Alan ___ If

[NTG-context] definedocument, begin & closing

2023-07-06 Thread Henning Hraban Ramm
Hi, if I use \startdocument, the setups "document:start" and "document:stop" get inserted at the beginning and end. But if I define my own document, it doesn’t work. What’s wrong? """ \definedocument[presentation] \startsetups[presentation:start] {\bfd\d

[NTG-context] Re: \showmakeup adds unwanted space despite accurate readings; \qquad mandatory before \TeX\

2023-07-05 Thread Carlos
[file:LucidaBrightItalic] > \definefontsynonym[LucidaBrightDemiBold] [file:LucidaBrightDemiBold] > \definefontsynonym[LucidaBrightDemiItalic] [file:LucidaBrightDemiItalic] > \stoptypescript > > \starttypescript [mylucidaserif] > \setups[font:fallback:serif] >

[NTG-context] Re: \showmakeup adds unwanted space despite accurate readings; \qquad mandatory before \TeX\

2023-07-05 Thread Carlos
DemiItalic] [file:LucidaBrightDemiItalic] \stoptypescript \starttypescript [mylucidaserif] \setups[font:fallback:serif] \definefontsynonym[Serif][LucidaBrightRegular] [features=default] \definefontsynonym[SerifItalic] [LucidaBrightItalic] [features=default] \defi

Re: [NTG-context] right and left arrowfill

2023-06-23 Thread Carlos via ntg-context
more adaptive tricks (although I bet he can figure them out himself). > > \starttext > > % \setupexternalfigures > % [location={default,global}] > > % \startsetups adaptive:test > % \setbox\usedadaptivebox\hbox to \usedadaptivewidth yoffset > -\usedadaptivedepth \bgroup > %

Re: [NTG-context] right and left arrowfill

2023-06-23 Thread Hans Hagen via ntg-context
idth,0)) randomized (ExHeight/2); \stopMPcode \egroup \stopsetups \dorecurse{5}{ \dostepwiserecurse{1}{150}{1}{% this~#1.##1 is~#1.##1 test~#1.##1 {\adaptivebox[strut=yes,setups=adaptive:test]{\strut}} } \blank } \stoptext (2) If someone wants a plain (or

Re: [NTG-context] Protect the lettrine

2023-06-14 Thread Thangalin via ntg-context
It's a tough problem for sure. I'm wondering if there's a general solution? That is, a way to tell ConTeXt to "protect the lettrine" regardless of the source document text? Nothing can be hard-coded because the setups (take a look at keenwrite themes https://github

Re: [NTG-context] Protect the lettrine

2023-06-14 Thread linguafalsa--- via ntg-context
PM linguafalsa--- via ntg-context < > ntg-context@ntg.nl> wrote: > > > On Tue, Jun 13, 2023 at 02:01:14PM -0700, Thangalin via ntg-context wrote: > > > Thanks Otared, > > > > > > Unfortunately, that's adding content between \starttext and \stoptext, &g

Re: [NTG-context] Protect the lettrine

2023-06-13 Thread Thangalin via ntg-context
-context wrote: > > Thanks Otared, > > > > Unfortunately, that's adding content between \starttext and \stoptext, > > which isn't tenable in my situation. The user is writing in Markdown, > which > > is automatically converted to XHTML then passed to ConTeXt, and so t

Re: [NTG-context] Protect the lettrine

2023-06-13 Thread linguafalsa--- via ntg-context
d to XHTML then passed to ConTeXt, and so the > setups need to account for this scenario without modifying the source > document. > Yeah yeah yeah, tenable. A lot of things aren't tenable. Anyhow, What source document are you talking about here? You're already sourcing the line

Re: [NTG-context] Protect the lettrine

2023-06-13 Thread Thangalin via ntg-context
at 2:01 PM Thangalin wrote: > Thanks Otared, > > Unfortunately, that's adding content between \starttext and \stoptext, > which isn't tenable in my situation. The user is writing in Markdown, which > is automatically converted to XHTML then passed to ConTeXt, and so t

Re: [NTG-context] Protect the lettrine

2023-06-13 Thread Thangalin via ntg-context
Thanks Otared, Unfortunately, that's adding content between \starttext and \stoptext, which isn't tenable in my situation. The user is writing in Markdown, which is automatically converted to XHTML then passed to ConTeXt, and so the setups need to account for this scenario without mod

Re: [NTG-context] Protect the lettrine

2023-06-13 Thread Otared Kavian via ntg-context
he lettrine such that regardless > of whether the first paragraph spans multiple lines, a short first paragraph > will still prevent the second paragraph from overlapping the lettrine? > > That is, the setups should work in both cases, without any knowledge about &

[NTG-context] Protect the lettrine

2023-06-12 Thread Thangalin via ntg-context
spans multiple lines, a short first paragraph will still prevent the second paragraph from overlapping the lettrine? That is, the setups should work in both cases, without any knowledge about the first paragraph length being added between \starttext and \stoptext. ConTeXt LMTX version: 2023.06.04 1

Re: [NTG-context] Chinese typesetting with macOS font. Which one is a good choice?

2023-06-03 Thread 李延瑞
Gerben Wierda via ntg-context 于2023年6月2日周五 19:37写道: > For Japanese I currently use > > \startsetups [japanese] > \setscript [nihongo] > \stopsetups > \setuplanguage [ja] [setups=japanese] > \definefallbackfamily > [archimate] > [ss] > [Hiragino Sans] >

[NTG-context] Chinese typesetting with macOS font. Which one is a good choice?

2023-06-02 Thread Gerben Wierda via ntg-context
For Japanese I currently use \startsetups [japanese] \setscript [nihongo] \stopsetups \setuplanguage [ja] [setups=japanese] \definefallbackfamily [archimate] [ss] [Hiragino Sans] [preset=range:japanese, tf=style:W3, it=style:W3, bf=style:W5, bi=style:W5, force=yes

Re: [NTG-context] text under page floats

2023-05-24 Thread Henning Hraban Ramm via ntg-context
cause this behavior? For what should I look in my setups? In this instances, location=opposite causes the float to disappear. Hraban ___ If your question is of interest to others as well, please add an entry to the

[NTG-context] text under page floats

2023-05-24 Thread Henning Hraban Ramm via ntg-context
t \dorecurse{2}{\samplefile{tufte}} \startplacefigure[location=page,title={Pagefloat}] \framed[width=\textwidth,height=.5\textheight]{TEST} \stopplacefigure \dorecurse{5}{\samplefile{knuth}} \stoptext """ What could cause this behavior? For what shoul

Re: [NTG-context] Flushright problems with Japanese

2023-05-16 Thread Gerben Wierda via ntg-context
setupbodyfont[archimate] > > \startsetups [japanese] > \setscript [nihongo] > \stopsetups > \setuplanguage [ja] [setups=japanese] > \mainlanguage [ja] > > \starttext > \setupindenting[none] > \setupindenting[no] > \framed[width=\textwidth,frame=off,align=flushleft]{作図

Re: [NTG-context] Flushright problems with Japanese

2023-05-15 Thread 李延瑞
> [Hiragino Sans] > [preset=range:japanese, >tf=style:W3, >it=style:W3, >bf=style:W5, >bi=style:W5, >force=yes] > > \definefontfamily [archimate] [ss] [Optima] > > \setupbodyfont[archimate] > > \startsetups [japanese] >

[NTG-context] Flushright problems with Japanese

2023-05-15 Thread Gerben Wierda via ntg-context
bi=style:W5, force=yes] \definefontfamily [archimate] [ss] [Optima] \setupbodyfont[archimate] \startsetups [japanese] \setscript [nihongo] \stopsetups \setuplanguage [ja] [setups=japanese] \mainlanguage [ja] \starttext \setupindenting[none] \setupindenting[no] \framed[width=\textwidth,fram

[NTG-context] Custom TOC with makeup and setups

2023-05-10 Thread Jethro Djan via ntg-context
empty, footerstate=empty, setups={toclist}, before=\setups{toc:setups}, ] \startsetups toc:setups \setupbackgrounds[page][background=color, backgroundcolor=blue] \stopsetups \definemakeup [standard] [ doublesided=no, page=right, pagestate=start, headerstate=

Re: [NTG-context] Linebreaking in Japanese in ConTeXt

2023-04-30 Thread Wolfgang Schuster via ntg-context
de [JA]         \setscript [nihongo]         \mainlanguage [ja]     \stopmode but for documents which use multiple script/languages at the same time replace the previous setup with     \startsetups [japanese]         \setscript [nihongo]     \stopsetups     \setuplanguage [ja] [setups=japanese] a

Re: [NTG-context] Idea for a shared repository.

2023-04-25 Thread Henning Hraban Ramm via ntg-context
site but to collect code in a place where we could gradually fix possible errors or introduce improvements. This can be done on the wiki as well. I agree that it makes most sense to keep examples and (font) setups in the wiki. Projects with several files, like modules, should have their own

Re: [NTG-context] adjustment to my local footnotes problem

2023-04-24 Thread jbf via ntg-context
4.23 um 23:36 schrieb jbf via ntg-context: I tried all those Hraban, unsuccessfully, but finally 'happened' upon a solution by trying whitespace instead in the setups. Except that I had read somewhere in the mailing list (Pablo I think) that I would need to use \directsetup. I don'

Re: [NTG-context] adjustment to my local footnotes problem

2023-04-24 Thread Henning Hraban Ramm via ntg-context
Am 23.04.23 um 23:36 schrieb jbf via ntg-context: I tried all those Hraban, unsuccessfully, but finally 'happened' upon a solution by trying whitespace instead in the setups. Except that I had read somewhere in the mailing list (Pablo I think) that I would need to use \directsetu

Re: [NTG-context] adjustment to my local footnotes problem

2023-04-23 Thread jbf via ntg-context
I tried all those Hraban, unsuccessfully, but finally 'happened' upon a solution by trying whitespace instead in the setups. Except that I had read somewhere in the mailing list (Pablo I think) that I would need to use \directsetup. I don't actually understand why, have never b

Re: [NTG-context] adjustment to my local footnotes problem

2023-04-23 Thread jbf via ntg-context
I tried all those Hraban, unsuccessfully, but finally 'happened' upon a solution by trying whitespace instead in the setups. Except that I had read somewhere in the mailing list (Pablo I think) that I would need to use \directsetup. I don't actually understand why, have never b

[NTG-context] interlines space for local footnotes

2023-04-22 Thread jbf via ntg-context
=2.4ex] \stopsetups \setupnote[footnote][setups=footnote:interlinespace] but it doesn't. I had hoped there might be something like \setuplocalfootnotes but there is not.  I also tried placing the setups locally, either with \startlocalfootnotes[setups=footnote:interlinespac

Re: [NTG-context] Google's Roboto Flex font typescript and goodies definition.

2023-04-18 Thread Hans Hagen via ntg-context
style={\switchtobodyfont[roboto-flex,20pt]\ss}] While the Garamond is embedded and text is styled, the chapter tible is typeset with Garamond not Roboto. Any hints or feed back will be very appriciated. \usetypescriptfile[ebgaramond] \starttypescript [sans] [robotoflex] \setups[font:fallback

Re: [NTG-context] Help with typesetting footnotes in an HTML document

2023-04-12 Thread Denis Maier via ntg-context
experimenting to get a simple workflow for the conversion of docx > files to simple (x)html files. > > Thanks again for the code. > > Best Wishes > > Keith > > On 12/04/2023 09:05, denis.ma...@unibe.ch wrote: > > Hey Keith, > > > > the code below shoul

Re: [NTG-context] Help with typesetting footnotes in an HTML document

2023-04-12 Thread Keith McKay via ntg-context
't appear as there are no setups for the elements yet. By the way, where is the HTML coming from? The dual structure for footnotes looks a bit odd and a bit too complicated for me. == \startxmlsetups xml:initialize \xmlsetsetup{\xmldocument}{*}{

Re: [NTG-context] Help with typesetting footnotes in an HTML document

2023-04-12 Thread Denis Maier via ntg-context
Hey Keith, the code below should get you started. Obviously, the links in the footnotes don't appear as there are no setups for the elements yet. By the way, where is the HTML coming from? The dual structure for footnotes looks a bit odd and a bit too complicated f

Re: [NTG-context] Help with typesetting footnotes in an HTML document

2023-04-11 Thread Denis Maier via ntg-context
Hard to tell, if you don't show us what you've tried so far. In one of my setups I use the lua based approach described on page 86/87. But again, we'll probably need more information to figure it out. > -Ursprüngliche Nachricht- > Von: ntg-context Im Auftrag von

Re: [NTG-context] Help with typesetting footnotes in an HTML document

2023-04-11 Thread Keith McKay via ntg-context
Fair comment Denis. I decided to try the lookup based approach on pages 85 - 86 of the xml manual and my setups are based on those pages. I have to admit that I find the xml manual a wee bit difficult in places since xml is outside my expertise. I attach my tex and html files which should

[NTG-context] Trial to use LibreOffice Calc (+ python) to build ConTeXt customized environnements files

2023-04-10 Thread Garulfo via ntg-context
\setuppapersize[A4] \starttypescript [serif] [myfont] \setups[font:fallback:serif] \definefontsynonym [Serif] [name:palatinoltstdlight] [features=default] \definefontsynonym [SerifItalic] [name:palatinoltstdlightitalic]

Re: [NTG-context] registered function call [1160]:...live/2023/texmf-dist/tex/context/base/mkiv/l-sandbox.lua:87: cannot open /.: Permission denied - Alpine Linux

2023-03-31 Thread Carlos via ntg-context
; > > and not with the file specification as in: > > > > > > \starttypescript [mylucidaserif] % or mylucidasans > >\definefontsynonym[LucidaBrightRegular][file:LucidaBrightRegular] > >\definefontsynonym[LucidaBrightItalic] [file:LucidaBrightItalic

Re: [NTG-context] registered function call [1160]:...live/2023/texmf-dist/tex/context/base/mkiv/l-sandbox.lua:87: cannot open /.: Permission denied - Alpine Linux

2023-03-28 Thread Hans Hagen via ntg-context
onym[LucidaBrightItalic] [file:LucidaBrightItalic] \definefontsynonym[LucidaBrightBold] [file:LucidaBrightDemiBold] \stoptypescript and \setups[font:fallback:serif:sans] wouldn't be needed either you'd end up with in mkxl (lmtx) \setupbodyfont[lucida] will load open type defin

Re: [NTG-context] registered function call [1160]:...live/2023/texmf-dist/tex/context/base/mkiv/l-sandbox.lua:87: cannot open /.: Permission denied - Alpine Linux

2023-03-28 Thread Carlos via ntg-context
t [mylucidaserif] % or mylucidasans \definefontsynonym[LucidaBrightRegular][file:LucidaBrightRegular] \definefontsynonym[LucidaBrightItalic] [file:LucidaBrightItalic] \definefontsynonym[LucidaBrightBold] [file:LucidaBrightDemiBold] \stoptypescript and \setups[font:fallback:serif:sans] wouldn&#

Re: [NTG-context] \setupTABLE: framecolor

2023-03-25 Thread jbf via ntg-context
e. All intermediate rows have gray. I have no difficulty achieving the first row, and the black bottomframe for the last row, but I have been unable to get the last row sides to be gray. Here is the current setups that I have: \setupTABLE[frame=off] \setupTABLE[row] [first] [topfram

Re: [NTG-context] \setupTABLE: framecolor

2023-03-25 Thread Bruce Horrocks via ntg-context
k frame. All intermediate > rows have gray. > I have no difficulty achieving the first row, and the black bottomframe for > the last row, but I have been unable to get the last row sides to be gray. > Here is the current setups that I have: > \setupTABLE[frame=off] > \setupTABLE[row

Re: [NTG-context] \setupTABLE: framecolor

2023-03-25 Thread Henning Hraban Ramm via ntg-context
gray. I have no difficulty achieving the first row, and the black bottomframe for the last row, but I have been unable to get the last row sides to be gray. Here is the current setups that I have: \setupTABLE[frame=off] \setupTABLE[row] [first] [topframe=on,bottomframe=on,style=bold] \setupTA

[NTG-context] \setupTABLE: framecolor

2023-03-24 Thread jbf via ntg-context
w, and the black bottomframe for the last row, but I have been unable to get the last row sides to be gray. Here is the current setups that I have: \setupTABLE[frame=off] \setupTABLE[row] [first] [topframe=on,bottomframe=on,style=bold] \setupTABLE[row][2][topframe=on] \setupTABLE[row][2][to

Re: [NTG-context] Problem with \setuplayout parameters being ignored

2023-03-05 Thread Keith McKay via ntg-context
what I > > get for trying to write readable code. > > > You can use the = to align keys and values, e.g. > > \setuplayout >[backspace=2.5cm, >margin=0.5cm, > width=16cm, >header=1cm, >footer=1cm] > > Another useful metho

Re: [NTG-context] Problem with \setuplayout parameters being ignored

2023-03-05 Thread Wolfgang Schuster via ntg-context
r=1cm,   footer=1cm] Another useful method is to put large settings into a setups-blocks and pass the block to a setup-command. \startsetups [apage] \startMPcode StartPage; ... StopPage; \stopMPcode \stopsetups \defineoverlay[apage][\directsetup{apage}] Wol

Re: [NTG-context] Float control

2023-03-02 Thread Denis Maier via ntg-context
s, some positioning keys had not the intended effect > > > (e.g. top), «page» moved the float more than seemed necessary for > > > me... I know, TeX’s float positioning algorithm should be rather > > > reliable and stable, and it’s quite possible that I’m messing things >

Re: [NTG-context] Disappearing footnote in figure / tabulate

2023-03-02 Thread Denis Maier via ntg-context
y hints how I could debug that issue? As I'm again working with XML files: Is it possible that this behaviour is caused by some sort of nested setups which makes the footnotes not bubble up? Best, Denis \startbuffer[test] a2 b

[NTG-context] Disappearing footnote in figure / tabulate

2023-03-02 Thread Denis Maier via ntg-context
y for extreme tables. Is that correct? I'll try to narrow it down. Any hints how I could debug that issue? As I'm again working with XML files: Is it possible that this behaviour is caused by some sort of nested setups which makes the footnotes not bubble up? Best, Denis \s

Re: [NTG-context] Float control

2023-03-01 Thread Alan Braslau via ntg-context
algorithm should be rather > > reliable and stable, and it’s quite possible that I’m messing > > things up in my setups–especially since my source files are XML. > > > > Anyway, I’d like to learn more about the whole float issue. Is > > there anything particular I could

Re: [NTG-context] Float control

2023-03-01 Thread Hans Hagen via ntg-context
positioning keys had not the intended effect (e.g. top), «page» moved the float more than seemed necessary for me... I know, TeX’s float positioning algorithm should be rather reliable and stable, and it’s quite possible that I’m messing things up in my setups–especially since my source files

Re: [NTG-context] Float control

2023-03-01 Thread Peter Hopcroft via ntg-context
it up at weird points, some > positioning keys had not the intended effect (e.g. top), «page» moved the > float more than seemed necessary for me... I know, TeX’s float positioning > algorithm should be rather reliable and stable, and it’s quite possible that > I’m messing things up in my

[NTG-context] Float control

2023-02-28 Thread Denis Maier via ntg-context
. top), moved the float more than seemed necessary for me... I know, TeX's float positioning algorithm should be rather reliable and stable, and it's quite possible that I'm messing things up in my setups-especially since my source files are XML. Anyway, I'd like to learn more ab

Re: [NTG-context] How to create multi-line headers and footers?

2023-01-29 Thread Henning Hraban Ramm via ntg-context
ge in footer == I tried placing that all into a macro called "\introduction" then calling with this \setupheadertexts[\introduction] Better use setups instead of a macros, like in https://wiki.contextgarden.net/Headers_and_Footers In setups, you must use explicit space commands, sin

Re: [NTG-context] Best way to access casul fonts

2023-01-23 Thread Garulfo via ntg-context
lucidacasual   normal   normal   normal   normal    lucidacasual   /home//.fonts/LucidaCasual.ttf Then the following code should work : \starttypescript [myserif]   \definefontsynonym[LucidaCasual-Regular]    [file:LucidaCasual.ttf] \stoptypescript \starttypescript [myserif]   \setups

Re: [NTG-context] Is the Society of Biblical Literature (SBL) style files for ConTeXt incompatible with \setupinteraction[state=start]?

2023-01-15 Thread Pablo Rodriguez via ntg-context
m your error message (\currentbtxloctext) seems to be defined in four setups from tex/publ-imp-sbl.mkvi: \def\currentbtxloctext{\btxparameter{loctext}} The setups containing the definitions are btx:sbl:cite:inlinelong, btx:sbl:cite:inlineshort, btx:sbl:cite:inline and btx:sbl:cite:shorthand. You

Re: [NTG-context] Use section custom value in a header text.

2022-12-20 Thread Rik Kabel via ntg-context
\stopsetups \setuphead[chapter]   [style=\tfa,    after={\blank\setups{chapter:headings}},   ] \starttext \startchapter[title=Nothing special] \dorecurse{10}{\input knuth\par} \stopchapter \startchapter[title=Something special][custom={Hi there!}] \do

Re: [NTG-context] Project structure with nested subfolders and shared environments.

2022-12-16 Thread Denis Maier via ntg-context
: Freitag, 16. Dezember 2022 11:01 An: mailing list for ConTeXt users Cc: Pawel Urbanski Betreff: Re: [NTG-context] Project structure with nested subfolders and shared environments. Thank you for responses. While the ability to sort of inherit setups would be very useful it looks like as of

Re: [NTG-context] Project structure with nested subfolders and shared environments.

2022-12-16 Thread Pawel Urbanski via ntg-context
Thank you for responses. While the ability to sort of inherit setups would be very useful it looks like as of time of posting this message in December 2022 it is not possible. As a workaround I will create a shead environment file and just bulk copy it to subfolders. In case when I'll ne

Re: [NTG-context] Xml filtering in Lua

2022-11-21 Thread Thomas A. Schmitz via ntg-context
ise (this was fairly easy, should have seen it earlier): instead of loading the file "examples.xml," I simply include it via xmlinclude into the tree; this way the proper setups are applied. All best Thomas

Re: [NTG-context] Xml filtering in Lua

2022-11-20 Thread Thomas A. Schmitz via ntg-context
chapter:example") or xml.sprint (lxml.id (current_example)) or local problem = xml.text (lxml.id (current_example), "./[text()]") xml.sprint (problem) I was expecting at least the last version to retrieve the pure text, but it typesets again with the tags included. So I gues

Re: [NTG-context] Do environment files add implicit \starttext ... \stopttext

2022-11-18 Thread Wolfgang Schuster via ntg-context
Pablo Rodriguez via ntg-context schrieb am 15.11.2022 um 16:06: On 11/15/22 13:22, Denis Maier via ntg-context wrote: Hi, if I process an XML buffer, I’ve noticed I need to wrap the \xmlprocessbuffer in a \starttext ... \stoptext pair. [] However, if I have the XML and the setups in dedicated

Re: [NTG-context] Do environment files add implicit \starttext ... \stopttext

2022-11-16 Thread Wolfgang Schuster via ntg-context
Denis Maier via ntg-context schrieb am 15.11.2022 um 13:22: Hi, if I process an XML buffer, I’ve noticed I need to wrap the \xmlprocessbuffer in a \starttext ... \stoptext pair. [...] However, if I have the XML and the setups in dedicated files, there seems to be no need for \starttext

Re: [NTG-context] Do environment files add implicit \starttext ... \stopttext

2022-11-16 Thread Denis Maier via ntg-context
d implicit \starttext ... > \stopttext > > On 11/15/22 13:22, Denis Maier via ntg-context wrote: > > Hi, > > > > if I process an XML buffer, I’ve noticed I need to wrap the > > \xmlprocessbuffer in a \starttext ... \stoptext pair. > > [] > > However, if I have the XM

Re: [NTG-context] Do environment files add implicit \starttext ... \stopttext

2022-11-15 Thread Pablo Rodriguez via ntg-context
On 11/15/22 13:22, Denis Maier via ntg-context wrote: > Hi, > > if I process an XML buffer, I’ve noticed I need to wrap the > \xmlprocessbuffer in a \starttext ... \stoptext pair. > [] > However, if I have the XML and the setups in dedicated files, there > seems to be n

[NTG-context] Do environment files add implicit \starttext ... \stopttext

2022-11-15 Thread Denis Maier via ntg-context
e XML and the setups in dedicated files, there seems to be no need for \starttext ... \stoptext. %%% text.xml a paragraph of text another paragraph of text %%% %%% setups.tex \startxmlsetups xml

Re: [NTG-context] \xmldocument vs #1 in \xmlsetsetup

2022-11-14 Thread Hans Hagen via ntg-context
document id. There is also \xmlself which expands to the current node number (#1 in setups). Now I think that I have abused \xmldocument too much, since I should have used #1. But I’m afraid I haven’t got much different results. I must also confess that a proper explanation would be helpful (to me

Re: [NTG-context] \xmldocument vs #1 in \xmlsetsetup

2022-11-14 Thread Pablo Rodriguez via ntg-context
t id. There is also \xmlself which expands to the current node number (#1 in setups). Now I think that I have abused \xmldocument too much, since I should have used #1. But I’m afraid I haven’t got much different results. I must also confess that a proper explanation would be helpful (to me in ord

[NTG-context] Context crashes using Iosevka v16.3.6 typeface

2022-11-12 Thread Werner Schmidt via ntg-context
'sequence') \starttypescriptcollection[myfonts] % Mono - iosevka (Iosevka SS09 — Terminal, Hinted) % Source: https://github.com/be5invis/Iosevka/blob/v16.3.6/doc/PACKAGE-LIST.md \starttypescript [mono] [iosevka] [name] \setups[font:fallback:mono] \definefontsynonym [Mono][fi

Re: [NTG-context] \definemeasure / \dimexpr

2022-11-04 Thread Henning Hraban Ramm via ntg-context
? In my "real work" layout, the above approach was not always possible. I looked into “TeX by topic”, but Eijkhout shows only how to use \multiply and \advance. (Tried that, worked only partly.) I was also thinking about doing the whole thing in Lua (CLD), but it’s mostly setups, and

[NTG-context] lmtx status

2022-09-27 Thread Hans Hagen via ntg-context
me effort going on to turn them opentype so we can ditch their setups too (we can't test anyway; to some extend that is also true for minion math). High on the agenda is euler (in combination with pagella). This also relates to upgraded mixed script and calligraphic support in math. It

[NTG-context] Lato typescripts (MKIV/LMTX)

2022-09-17 Thread Adam Reviczky via ntg-context
le to define 'lato-regular' as 'lato-12pt-ss-tf-0--0' --- If I change the file: reference I get it working with both MKIV/LMTX: \starttypescript [\s!sans] [lato] [\s!name] \setups[\s!font:\s!fallback:\s!sans] % \definefontsynonym [\s!Sans] [\

Re: [NTG-context] How do I write a digital book that can become a physical book without a lot of modifications?

2022-09-10 Thread Mikael Sundqvist via ntg-context
book that doesn't have to be heavily modified in > order to become a physical book? I want almost no modification at all. I think you can use modes: https://wiki.contextgarden.net/Modes. Simply do different setups in different modes. Then choose t

Re: [NTG-context] Is rendering furigana over horizontal or vertical japanese text doable in ConTeXt?

2022-08-22 Thread Hans Hagen via ntg-context
welcome. hm, i can have a look at it but we shouldn't break japanese and korean once you finished all we can see how it can either be integrated or become some third party module (has to do with maintainance) can you also make a noto typescript for the different chinese setups (for some re

Re: [NTG-context] Repeating binary operators with split multiline formulas

2022-08-21 Thread Hans Hagen via ntg-context
operators into the new line: \setupmathematics[setups=math:spacing:split] \setupformulas[split=yes,align=flushleft] \startformula x\dorecurse{30}{ + #1x^{#1x}} = 10 \stopformula Would it be possible to achieve this via a custom setup like math:spacing:split to get an output like this? 𝑥 + 1𝑥1𝑥

[NTG-context] Repeating binary operators with split multiline formulas

2022-08-20 Thread Adam Reviczky via ntg-context
Hi, Since there has been a lot of work done on the math side of things, I wanted to ask if there is an automated way to have binary operators repeated when splitting a formula. From the MKIV math manual there is an option to move the operators into the new line: \setupmathematics[setups

[NTG-context] Suggestions for project structures, environment inheritance, local overrides

2022-08-17 Thread Denis Maier via ntg-context
ion is something like this : - How could a painless solution for such a scenario look like? - Should you just load multiple environment files and override earlier settings? (How would that work with xml setups?) Best, Denis ___

Re: [NTG-context] String substitution using regular expressions and backreferences

2022-08-01 Thread Thangalin via ntg-context
Good point, Wolfgang. The Markdown is translated to XHTML then typeset as XML using the setups listed here: https://github.com/DaveJarvis/keenwrite-themes/tree/main/xhtml Having an XML string replacement solution would be great. I suppose that would help prevent substitutions within pre and code

Re: [NTG-context] Any way to configure \setuphead to run a setups on the stop command?

2022-07-26 Thread Henning Hraban Ramm via ntg-context
Am 26.07.22 um 12:41 schrieb Bruce Horrocks via ntg-context: If I use \definehead [Chapter] [chapter] and then \setuphead[Chapter][...] I can specify setups to run before and after \startChapter. Is there any way to specify setups that are run before & after \stopChapter? \setuphead[Cha

[NTG-context] Any way to configure \setuphead to run a setups on the stop command?

2022-07-26 Thread Bruce Horrocks via ntg-context
If I use \definehead [Chapter] [chapter] and then \setuphead[Chapter][...] I can specify setups to run before and after \startChapter. Is there any way to specify setups that are run before & after \stopChapter? My real problem is that I have a double-sided book with new chapters starting

Re: [NTG-context] Set up external figure for particular image type

2022-07-12 Thread Wolfgang Schuster via ntg-context
1.png][png][#2]% }{% \old_externalfigure[#1][#2][#3]% }% }% } \protect | See: https://tex.stackexchange.com/a/650221/2148 I was wondering if there was a simpler or a solution that's more the ConTeXt-way? When you use XML as input you can add additional code to the setups block

Re: [NTG-context] error with sbl bibliography on latest LMTX

2022-07-09 Thread Joey McCollum via ntg-context
, etc. citations; for the purposes of your MWE (and for most citations) a righttext with the page number citation should also work just fine, so the lack of a loctext parameter in the \cite command shouldn't be a problem. The \currentbtxloctext macro is defined in most of the btx:sbl:cite setup

[NTG-context] Set up external figure for particular image type

2022-07-08 Thread Thangalin via ntg-context
erent external figure setups based on image type? Thank you! ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinf

Re: [NTG-context] Using alegreya typescript

2022-07-06 Thread Hans Hagen via ntg-context
tium] \definefontfallback [alegreyagentium-fallback] [name:gentium] [greekandcoptic,greekextended] \starttypescript [serif] [alegreya-serif,alegreya-light-serif,alegreya-medium-serif] [name] \setups[font:fallback:serif] \definefontsynonym[Serif] [name:alegreyaregular] [features=def

Re: [NTG-context] Typesetting modern Greek (UTF8) with ConTeXt

2022-06-06 Thread Pablo Rodriguez via ntg-context
se for Greek characters (I guess > ‘greekandcoptic’ which I’ve seen mentioned somewhere). > > Correct? Hi Gerben, \language[gr], but beware since it uses patterns for ancient Greek. preset=range:greek is what you intend. Another approach would be to use \setuplanguage[gr] and confi

<    1   2   3   4   5   6   7   8   9   10   >