[NTG-context] Define a new command that inherits from multiple other command options

2024-04-25 Thread ai2472206007
{\SMsidenoteconversion}% mark in text \SidenoteContent[#1]{\setscript[hanzi]\setup[\SMsidenotealign]% \convertsidenotemark{\SMsidenoteconversion}% mark with note #2 }} \protect \starttext 天地玄黄,宇宙洪荒。日月盈昃,辰宿列张。寒来暑往,秋收冬\sidenote[align=flushleft] {天地玄黄,宇宙洪荒。} \stoptext

[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
Here is a solution for the first part of my question. This is based on https://www.mail-archive.com/ntg-context@ntg.nl/msg101156.html and try and error based on publ-imp-aps.mkvi and publ-imp-apa.mkvi: It display now the citation _and_ numbering labels in the short form: ```

[NTG-context] Re: Weird (?) float placement for specific widths of image

2024-04-19 Thread Pablo Rodriguez via ntg-context
e I cannot just adjust > slightly adjust the dimensions to get rid of that. It seems that you can place the figures somehow (https://www.pragma-ade.nl/general/qrcs/setup-en.pdf#page=169): See the extreme example: \showframe\showgrid\showstruts \setupexternalfigures [location={lo

[NTG-context] Re: Wiki - test/proposal to further clarify documentation

2024-04-18 Thread Henning Hraban Ramm
rden.net/Command/*** and moving the "how-to" examples to a separate page (or pages). I agree. Let’s accept this as a rule for further wiki editing. Also, explain parameters with top priority in Command/setup* pages (keeping them in Command/define* pages etc. doesn’t hurt, but at least exp

[NTG-context] Re: Wiki - test/proposal to further clarify documentation

2024-04-16 Thread Henning Hraban Ramm
math typesetting * to use Lua functions e.g. for processing data * deep integration of a graphics language (MetaPost) * to process XML input * no package conflicts * to use OpenType features * consistent setup commands * to place stuff on layers * visual debugging features * to have a lean, but mighty

[NTG-context] Cron /var/www/aanhet.net/context/bin/cron/context-mirror

2024-04-01 Thread Cron Daemon
context/latest/cont-tmf.zip context/latest/cont-tst.7z context/latest/cont-tst.tar.xz context/latest/cont-tst.zip general/manuals/ general/manuals/luametafun.pdf general/manuals/primitives.pdf general/qrcs/ general/qrcs/setup-mapping-de.pdf general/qrcs/setup-mapping-en.pdf general/qrcs/setup

[NTG-context] Re: Struggling with the distance and right margin text

2024-03-22 Thread Ursula Hermann
ll). Or, do you define commands for each page? I think it is better to define a single margin text command and use a doublesided page setup. > \definemargindata[inrightmargin][right][margin=margin,width=.50em\rightmarginwidth,style=,color=] > \definemarginframed[MyInMargin][topframe=on,b

[NTG-context] Re: Use of marking

2024-03-21 Thread Thomas Meyer
[sectionnumber] \space - \space \getmarking[section] \stopsetups \setupheadertexts[\setup{doc:header}] \starttext \dorecurse{10}{ \startchapter[title={This is my chapter}] This is a chapter\par \dorecurse{6}{\input knuth } \input math-kontinuitet-sv \startsection[title={This is my section

[NTG-context] Re: Use of marking

2024-03-21 Thread Bruce Horrocks
ing: \startsetups[doc:header] \getmarking[chapternumber] \space - \space \getmarking[chapter] \space :: \space \getmarking[sectionnumber] \space - \space \getmarking[section] \stopsetups \setupheadertexts[\setup{doc:header}] \starttext \dorecurse{10}{ \startchapter[title={

[NTG-context] Re: Japanese

2024-03-16 Thread Wolfgang Schuster
Otared Kavian schrieb am 14.03.2024 um 14:48: Dear Emmanuel, Thank you for your reply: indeed I understand your approach, which is quite efficient. I am not at all good in coding, so I naively thought there would be a way for your setup to retrieve the information it needs from what the user

[NTG-context] Re: Struggling with the distance and right margin text

2024-03-15 Thread Pablo Rodriguez via ntg-context
is undefined. Your code has a defined margin text command, but it isn’t used. > So  I have here an example from the second page:  Sorry, but I’m having the impression you are using ConTeXt as a kind of command-based DTP software (which I think it isn’t at all). Or, do you define c

[NTG-context] Re: Japanese

2024-03-14 Thread Otared Kavian
Dear Emmanuel, Thank you for your reply: indeed I understand your approach, which is quite efficient. I am not at all good in coding, so I naively thought there would be a way for your setup to retrieve the information it needs from what the user is doing. Maybe once things are settled, Hans

[NTG-context] Re: Japanese

2024-03-14 Thread Emanuel Han via ntg-context
ric values. The value of paperSize is later passed on to \setuppapersize via \setuppapersize[\directlua{tex.print(paperSize)}] Emanuel On März 13 2024, at 3:55 pm, Otared Kavian wrote: > Hi Emmanuel, > > Thank you so much for the new setup for writing Japanese: I tested with both &

[NTG-context] Re: Japanese

2024-03-13 Thread Otared Kavian
Hi Emmanuel, Thank you so much for the new setup for writing Japanese: I tested with both files, and noticed that with the new version the output looks great. I have a question about the code in the \directlua{} part of your setup: why, for instance, the paperSize = « B5" is de

[NTG-context] Re: Japanese

2024-02-27 Thread Otared Kavian
r are right indeed ! I didn’t imagine that it was so easy to set up a >> document to write in Japanese… >> Actually I followed the example by Emanuel Han which is essentially what you >> suggest (although he gave me also the hint to add the furagana). >> >> Bes

[NTG-context] Re: Japanese

2024-02-27 Thread Jeong Dal via ntg-context
he example by Emanuel Han which is essentially what you > suggest (although he gave me also the hint to add the furagana). > > Best regards: Otared > >> On 26 Feb 2024, at 21:16, Henning Hraban Ramm > <mailto:te...@fiee.net>> wrote: >> >> Am 26.02.24 um 21:08 sch

[NTG-context] Cron /var/www/aanhet.net/context/bin/cron/context-mirror

2024-02-27 Thread Cron Daemon
context/latest/cont-tmf.zip context/latest/cont-tst.7z context/latest/cont-tst.tar.xz context/latest/cont-tst.zip general/qrcs/ general/qrcs/setup-mapping-de.pdf general/qrcs/setup-mapping-en.pdf general/qrcs/setup-mapping-fr.pdf general/qrcs/setup-mapping-it.pdf sent 190,609 bytes received

[NTG-context] Re: Japanese

2024-02-26 Thread Otared Kavian
Feb 2024, at 21:16, Henning Hraban Ramm wrote: > > Am 26.02.24 um 21:08 schrieb Otared Kavian: >> Does anyone have a simple setup of fonts to write a small Japanese document >> (possibly with furagana) ? I am using MacOS and I have several Japanese >> fonts on the system.

[NTG-context] Re: Japanese

2024-02-26 Thread Otared Kavian
On Feb. 26 2024, at 9:08 pm, Otared Kavian wrote: > Hi all, > > Does anyone have a simple setup of fonts to write a small Japanese document > (possibly with furagana) ? I am using MacOS and I have several Japanese fonts > on the system. > I have some old examples which

[NTG-context] Re: Japanese

2024-02-26 Thread Emanuel Han via ntg-context
\definefontfamily [JapaneseFont] [rm] [hiraginominchopro] \setupruby[location=top,voffset=-1.6ex, ] \starttext \JapaneseFont \ruby{僕}{ぼく}はもう\ruby{寝}{ね}る。 お\ruby{休}{やす}みなさい^_^ \stoptext On Feb. 26 2024, at 9:08 pm, Otared Kavian wrote: > Hi all, > > Does anyone have a simple setup of fonts

[NTG-context] Re: Japanese

2024-02-26 Thread Hans Hagen
On 2/26/2024 9:08 PM, Otared Kavian wrote: Hi all, Does anyone have a simple setup of fonts to write a small Japanese document (possibly with furagana) ? I am using MacOS and I have several Japanese fonts on the system. I have some old examples which do not typeset correctly now, maybe

[NTG-context] Re: Japanese

2024-02-26 Thread Henning Hraban Ramm
Am 26.02.24 um 21:08 schrieb Otared Kavian: Does anyone have a simple setup of fonts to write a small Japanese document (possibly with furagana) ? I am using MacOS and I have several Japanese fonts on the system. I have some old examples which do not typeset correctly now, maybe because

[NTG-context] Japanese

2024-02-26 Thread Otared Kavian
Hi all, Does anyone have a simple setup of fonts to write a small Japanese document (possibly with furagana) ? I am using MacOS and I have several Japanese fonts on the system. I have some old examples which do not typeset correctly now, maybe because they use the old module simplefonts

[NTG-context] Re: Memory consumption in new upload

2024-02-17 Thread Hans Hagen
combination as in practice for most documents one needs a single setup and therefore only a handful of lines of code (and likely use some typescript file for a math font). There's also the selectfont mechanism that uses heuristics to do the same. There are plenty of examples in the distribution

[NTG-context] Re: An announcement of my new book.

2024-02-15 Thread Tommaso Gordini
urse not meant to be read from cover to cover. > > > > > > I think that setup-en.pdf is a good starting point for a complete > reference as it contains the commands and their options. With ad

[NTG-context] Re: An announcement of my new book.

2024-02-15 Thread Mikael Sundqvist
I wanted to create more of a reference, a complete reference, and one that's > of course not meant to be read from cover to cover. > > > I think that setup-en.pdf is a good starting point for a complete reference > as it contains the commands and their options. With added expl

[NTG-context] Re: An announcement of my new book.

2024-02-14 Thread Jan Ulrich Hasecke via ntg-context
Hi, Am 14.02.24 um 19:45 schrieb Sir Coleman via ntg-context: I wanted to create more of a reference, a complete reference, and one that's of course not meant to be read from cover to cover. I think that setup-en.pdf is a good starting point for a complete reference as it contains

[NTG-context] color profiles

2024-02-07 Thread Henning Hraban Ramm
Hi, I thought I could finally setup color management properly instead of converting all print PDFs with Acrobat Pro… On the wiki, there’s something in https://wiki.contextgarden.net/PDFX; I updated it a bit, but we (I?) should combine it with https://wiki.contextgarden.net/PDF/A … How can I

[NTG-context] Re: chronological TOC

2024-01-29 Thread jbf
and setup the index at will. Lists have a sort option but this is no use here because you can't use the title to have a chronological sorted list. \starttext \placelist[section][order=title] \section{Hans} \section{Peter} \section{Anton} \stoptext Using the register mechanism as you suggest

[NTG-context] Re: chronological TOC

2024-01-29 Thread Bruce Horrocks
er. How do I get the date >>> (e.g. 29 April 2017) to be the ordering factor in the list. I assume it >>> will be something to do with criterium, but am clueless at the moment on >>> how to indicate this. >> I don’t know if it works this way (the wizards will know

[NTG-context] Re: chronological TOC

2024-01-29 Thread Wolfgang Schuster
-04-29]{Speech, Panama City} to your chapter command and setup the index at will. Lists have a sort option but this is no use here because you can't use the title to have a chronological sorted list. \starttext \placelist[section][order=title] \section{Hans} \section{Peter} \section{Anton

[NTG-context] Re: How to stop

2024-01-27 Thread Hraban Ramm
Just use a group (\start ... \stop, \bgroup ... \egroup or {} ) around the setup commands and their table, or use \startsetup mytable ... \stopsetup and \startTABLE[setups=mytable] if you need the same settings for several tables. HR Am 27.01.24 um 22:29 schrieb Joel via ntg-context: I have

[NTG-context] Re: \framed{\externalfigure} vs \externalfigure[frame=on]

2024-01-27 Thread Jim
is a too generous statement. I can't disagree with you! ;-) > https://www.pragma-ade.com/general/qrcs/setup-en.pdf#page=218 shows > which keys and values \setupexternalfigure allows. Thanks for that pointer. >> I tried to put a frame around a picture (using \externalfigure with

[NTG-context] Re: \framed{\externalfigure} vs \externalfigure[frame=on]

2024-01-27 Thread Pablo Rodriguez via ntg-context
On 1/27/24 17:44, Jim wrote: > The wiki page for \setupexternalfigure says > "Show frame around image. Most(?) options of \setupframed are usable!" Hi Jim, I’m afraid that this is a too generous statement. https://www.pragma-ade.com/general/qrcs/setup-en.pdf#page=218

[NTG-context] Re: chronological TOC

2024-01-27 Thread Henning Hraban Ramm
and setup the index at will. Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl

[NTG-context] Re: \starttable questions

2024-01-26 Thread Jim
On Fri, Jan 26, 2024 at 09:55 (+0100), Aditya Mahajan wrote: > On Thu, 25 Jan 2024, Jim wrote: >> The nice thing about your setup above is that it is nice and structured. >> But if a table calls for some row, column or cell to be treated >> differently, I guess I am in

[NTG-context] Re: \starttable questions

2024-01-26 Thread Aditya Mahajan
On Thu, 25 Jan 2024, Jim wrote: > The nice thing about your setup above is that it is nice and structured. > But if a table calls for some row, column or cell to be treated > differently, I guess I am in for some more reading. You can do: \setupTABLE[2][3] to select the formatting

[NTG-context] Re: \starttable questions

2024-01-25 Thread Jim
me=on] > \stopsetups > \startTABLE[setups=ruledtable] > \NC Year \NC Citizens \NC\NR > \NC 1675 \NC ˜428 \NC\NR > \NC 1795 \NC 1124 \NC\NR > \NC 1880 \NC 2405 \NC\NR > \NC 1995 \NC 7408 \NC\NR > \stopTABLE > \stoptext Wolfgang, thanks for the resp

[NTG-context] Re: font error in float placement?

2024-01-14 Thread Bruce Horrocks
s of note line PDFs with included fonts); I’m not sure about the >> code examples in my ConTeXt book. > > I found more graphics (PDFs with included fonts) that triggered the error, > one of them a LilyPond example that was no problem in the songbook. > Something in my ConTe

[NTG-context] Re: font error in float placement?

2024-01-13 Thread Henning Hraban Ramm
uded fonts) that triggered the error, one of them a LilyPond example that was no problem in the songbook. Something in my ConTeXt book setup causes a different handling of these externalfigures – but a small example with the same environments worked

[NTG-context] Re: Why the way key-value argument is called affected the document's output?

2024-01-13 Thread Wolfgang Schuster
Ali Ali schrieb am 08.01.2024 um 23:53: Since in the "setup-en.pdf" on p. 234, in "\setuplayout" the possible values for "grid" key is "yes", "no" (default), and "off" respectively. The commands in the document are not always up to

[NTG-context] Re: Setuphead issue!

2024-01-09 Thread Mikael Sundqvist
em? Take the file that is not working. Comment out as much as possible, but so that you still have something that gives unexpected output. A sample file that gives correct output is not so easy to help from. /Mikae

[NTG-context] Re: Why the way key-value argument is called affected the document's output?

2024-01-08 Thread Ali Ali
Since in the "setup-en.pdf" on p. 234, in "\setuplayout" the possible values for "grid" key is "yes", "no" (default), and "off" respectively. So what does

[NTG-context] Re: Why the way key-value argument is called affected the document's output?

2024-01-08 Thread Hans Hagen
[a=A, b=B] \setupfoo [a=A, b=B, ] I'm not aware of funmdamental changes in the parse, apart from that in many setup commands one can now do this: \setupfoo [A=\this[works], B=\that[doe

[NTG-context] Cron /var/www/aanhet.net/context/bin/cron/context-mirror

2024-01-08 Thread Cron Daemon
/cont-tst.zip general/manuals/ general/manuals/colors-mkiv.pdf general/manuals/luametatex.pdf general/manuals/ontarget.pdf general/manuals/primitives.pdf general/manuals/sql-mkiv.pdf general/qrcs/ general/qrcs/setup-mapping-de.pdf general/qrcs/setup-mapping-en.pdf general/qrcs/setup-mapping

[NTG-context] Re: regular online meet-up

2023-12-13 Thread Henning Hraban Ramm
-oke# gets blocked by firefox on Linux due to Content-Security-Policy I’m sorry, but it works for others. My Firefox is setup very strictly, there’s no problem with ad blockers etc. I don’t think it’s a browser problem. Are you behind a proxy? Hraban

[NTG-context] Re: Fractions

2023-12-11 Thread Henning Hraban Ramm
Am 10.12.23 um 13:24 schrieb Henning Hraban Ramm: Usually I’d prefer “vulgar fractions”, but \vulgarfraction looks “horrible” in comparison to the few usual fractions contained in fonts (like ½ & ¾). I take this back: I had a problem in my font setup. Usually, \vulgarfraction is quite

[NTG-context] Re: Inline math spacing

2023-12-04 Thread Hans Hagen via ntg-context
\enablemathautospacing % more global % \enablemathautofencing % more global \enablemathautonumbers % more global % \autofences % more local \usemodule[ipsum] \starttext \ipsum \stoptext And I attach the two files to setup the font. no math ... anyway \showglyphs \dorecurse{100}{test \im{\frac

[NTG-context] Re: Inline math spacing

2023-12-03 Thread Alexandre Christe
% \enablemathautofencing % more global \enablemathautonumbers % more global % \autofences % more local \usemodule[ipsum] \starttext \ipsum \stoptext And I attach the two files to setup the font. A. Christe Le 3 déc. 2023 à 22:44 +0100, Hans Hagen , a écrit : > On 12/3/2023 10:31 PM, Alexandre Christe wr

[NTG-context] Re: unwanted blank page

2023-11-19 Thread madiazm . eoicc
] %%% %%% NUMERACIÓN DE PÁGINAS, SETUP % %%% \setuppagenumbering[alternative=doublesided,location={footer,inmargin}] \setupuserpagenumber[way=byblock] \starttext \startsectionblock[portada

[NTG-context] Re: learning about the grid

2023-11-19 Thread Henning Hraban Ramm
be something wrong in your setup. Please make a minimal example (MWE). 2. Is there a document where I can read how the grid is conceived to work for the many options in a simple way? AFAIK, the details manual is the only documentation for it. Hraban

[NTG-context] Re: Adobe Source Typescript With Design Sizes

2023-11-03 Thread Hans Hagen
talk about design sizes but, instead of thinking in absolute sizes, we would want to think in sizes relative to the font setup. indeed, and even more abstract: running text vs headings vs title pages That is, instead of saying ‘Caption shall be used for sizes 6.5pt and below, SmText for 9.5pt

[NTG-context] Re: Adobe Source Typescript With Design Sizes

2023-11-02 Thread Vincent Hennebert
on scale (e.g. using display for 20 pt in a 15 pt setup versus using scaled regular for 20pt and then display 20pt for e.g. a title page or 50pt on posters). I think I see your point. I think we can still talk about design sizes but, instead of thinking in absolute sizes, we would want to think

[NTG-context] Re: Adobe Source Typescript With Design Sizes

2023-11-01 Thread Hans Hagen via ntg-context
of design sizes here. It's more about 'usage' because a display vs subhead vs ... variant is not about mixing depending on scale (e.g. using display for 20 pt in a 15 pt setup versus using scaled regular for 20pt and then display 20pt for e.g. a title page or 50pt on posters). (I have Questions

[NTG-context] Re: colors for links

2023-10-14 Thread Hans Hagen via ntg-context
poor explanation of the issue. Wanting to give a minimal sample, I didn’t add my full interaction setup: \setupinteraction [state=start, style=, color=, contrastcolor=, display=new, focus=standard] \enabledirectives [references.border=darkgreen] I

[NTG-context] Re: colors for links

2023-10-14 Thread Pablo Rodriguez
f the issue. Wanting to give a minimal sample, I didn’t add my full interaction setup: \setupinteraction [state=start, style=, color=, contrastcolor=, display=new, focus=standard] \enabledirectives [references.border=darkgreen] I wanted to be able to setup the i

[NTG-context] bibliography questions

2023-10-02 Thread Henning Hraban Ramm
My example is setup as advised in the manual: """ %\mainlanguage[de] \usebtxdataset[beispiel][bib_example.bib] \setupbtx[dataset=beispiel] %\usebtxdefinitions[apa] \definebtxrendering[beispiel][apa][dataset=beispiel,group=beispiele] \starttext \placelistofpublications[b

[NTG-context] Re: wiki update: Modules

2023-10-02 Thread Henning Hraban Ramm
k page with a very long list of source files on the left. If I search for the file with my browser's ctrl+f on that page, it returns zero results. I'm using Chrome. It happens for every link to source files. Not sure if it's a problem with my setup, but I have noticed that before, in different machine

[NTG-context] Re: wiki update: Modules

2023-10-01 Thread Andres Conrado Montoya
results. I'm using Chrome. It happens for every link to source files. Not sure if it's a problem with my setup, but I have noticed that before, in different machines. Can anybody else confirm if they can correctly see the source files when clicking the links? -- Andrés Conrado Montoya Andi Kú

[NTG-context] Re: \setupitemgroup for footnotes

2023-09-26 Thread Pablo Rodriguez
On 9/25/23 21:57, Henning Hraban Ramm wrote: > Am 25.09.23 um 19:19 schrieb Pablo Rodriguez: >> On 9/25/23 18:19, Henning Hraban Ramm wrote: >>> Am 25.09.23 um 17:52 schrieb Pablo Rodriguez: >>>> [...] >>>> Excuse my ignorance, but which is the ri

[NTG-context] Re: \setupitemgroup for footnotes

2023-09-25 Thread Henning Hraban Ramm
Am 25.09.23 um 19:19 schrieb Pablo Rodriguez: On 9/25/23 18:19, Henning Hraban Ramm wrote: Am 25.09.23 um 17:52 schrieb Pablo Rodriguez: [...] Excuse my ignorance, but which is the right way to get the itemize setup only for footnotes? I would use \defineitemgroup to define your own, like

[NTG-context] Re: \setupitemgroup for footnotes

2023-09-25 Thread Pablo Rodriguez
On 9/25/23 18:19, Henning Hraban Ramm wrote: > Am 25.09.23 um 17:52 schrieb Pablo Rodriguez: >> [...] >> Excuse my ignorance, but which is the right way to get the itemize setup >> only for footnotes? > > I would use \defineitemgroup to define your own, like &quo

[NTG-context] Re: \setupitemgroup for footnotes

2023-09-25 Thread Henning Hraban Ramm
\stopitemize \stopitem \stopitemize} \stoptext Excuse my ignorance, but which is the right way to get the itemize setup only for footnotes? I would use \defineitemgroup to define your own, like "footnoteitemize". https://wiki.contextgarden.net/Command/defineitemgro

[NTG-context] \setupitemgroup for footnotes

2023-09-25 Thread Pablo Rodriguez
Excuse my ignorance, but which is the right way to get the itemize setup only for footnotes? Many thanks for your help, Pablo ___ If your question is of interest to others as well, please add an entry to the Wiki

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

2023-09-12 Thread Taco Hoekwater
\startxmlsetups xml:chapter:title > \xmlflush{#1} > \stopxmlsetups > \setupheadertexts[chapter] > \starttext > \xmlprocessbuffer{test}{test}{} > \stoptext > Von: denis.ma...@unibe.ch > Gesendet: Montag, 11. September 2023 16:47 > An: ntg-context

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

2023-09-12 Thread denis.maier
rocessbuffer{test}{test}{} \stoptext Von: denis.ma...@unibe.ch Gesendet: Montag, 11. September 2023 16:47 An: ntg-context@ntg.nl Betreff: [NTG-context] XML: flush to lua function Hi, I have the following xml setup with a lua function: \startluacode function markingLength(s)

[NTG-context] XML: flush to lua function

2023-09-11 Thread denis.maier
Hi, I have the following xml setup with a lua function: \startluacode function markingLength(s) _,n = s:gsub("%S+","") if n > 3 then context("yes" .. " ...") else context("no")

[NTG-context] Re: how to define an environment with key=value arguments

2023-09-09 Thread Henning Hraban Ramm
Am 08.09.23 um 19:37 schrieb Henning Hraban Ramm: But it uses its own page size, I don’t understand why. I need the bleed/trim area. If I use \setlayer in the setup, the content gets placed on the next page, i.e. under the text. \structureuservariable{image} in the setup gets the value

[NTG-context] Re: how to define an environment with key=value arguments

2023-09-08 Thread Henning Hraban Ramm
, because I can set the background, and \externalfigure starts at (0,0). But it uses its own page size, I don’t understand why. I need the bleed/trim area. If I use \setlayer in the setup, the content gets placed on the next page, i.e. under the text. \structureuservariable{image} in the setup

[NTG-context] Re: ifxmlselfempty

2023-09-04 Thread Hans van der Meer via ntg-context
argument",        actions   = function(id)--            return boolean_code, not checkedempty(getid(id)) and true            return boolean_code, checkedempty(getid(id)) and true        end    } xmlsetup-template.pdf Description: Adobe PDF document On 4 Sep 2023, at 10:05, denis.ma...@unibe.ch wrot

[NTG-context] Re: Trimming (rearranging) long section name

2023-09-04 Thread Wolfgang Schuster
y" not to cross the right border (see the green vertical line) but to appear on the next line? I played with "strict", "verytolerant" and similar options but they seem not to affect section titles. What’s your section setup, esp. the align settings? Please try to prov

[NTG-context] Re: Trimming (rearranging) long section name

2023-09-04 Thread Lukas via ntg-context
green vertical line) but to appear on the next line? I played with "strict", "verytolerant" and similar options but they seem not to affect section titles. What’s your section setup, esp. the align settings? Hraban

[NTG-context] Re: Trimming (rearranging) long section name

2023-09-04 Thread Henning Hraban Ramm
section titles. What’s your section setup, esp. the align settings? Hraban ___ 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.n

[NTG-context] Re: ifxmlselfempty

2023-09-04 Thread denis.maier
IDK. But why do have a setup for , which does not appear in your xml source (shouldn't it be ?)? Von: Hans van der Meer via ntg-context Gesendet: Sonntag, 3. September 2023 14:11 An: NTG ConTeXt Cc: Hans van der Meer Betreff: [NTG-context] ifxmlselfempty Is it possible that the new

[NTG-context] Re: Building luametatex with Lua symbols exposed

2023-09-02 Thread Michal Vlasák
tatex, "#define LUA_BUILD_AS_DLL" would need to be added when compiling Lua. The problem with any module is, that you want to compile against exactly the same Lua headers as the ones in luametatex, and with similar flags. That is why the demo hosts everything in one CMake setup, but since Lua

[NTG-context] Re: your opinion about list structures

2023-08-22 Thread Henning Hraban Ramm
preferred the chapter-ToC approach, I changed my setup accordingly. It was easy and looks good ;) Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context

[NTG-context] Re: Fallbacks for design sizes in the current typescripts regime

2023-08-22 Thread Hamid,Idris
ics. Once some fine-tuning and additional testing is done, will donate the results to ConTeXt. (Thus some large typescript collections painstakingly built over the years are now obsolete and have to be rewritten. Oh well..) Well, i suppose one can still setup/use the typescripts but it's less fun

[NTG-context] Re: Nested itemize

2023-08-22 Thread fv leung
>> \item bla >>> \item bla >>> \item bla >>> \stopitemize >>> \item\godown[-\lineheight] >>> >>> \startitemize[a,columns,packed][before={\blank[nowhite]},n=3,right=\),stopper=] >>> \item bla >>> \item bla >>&

[NTG-context] Re: Nested itemize

2023-08-22 Thread Alexandre Christe
; > > > > >   \item bla > > > > > >   \stopitemize > > > > > > \item\godown[-\lineheight] > > > > > >   > > > > > > \startitemize[a,columns,packed][before={\blank[nowhite]},n=3,right=\),stopper=] > > > &

[NTG-context] Re: Nested itemize

2023-08-22 Thread Mikael Sundqvist
; \item\godown[-\lineheight] >>> >>> \startitemize[a,columns,packed][before={\blank[nowhite]},n=3,right=\),stopper=] >>> \item bla >>> \item bla >>> \item bla >>> \item bla >>> \item bla >>> \item bla >&

[NTG-context] Re: Fallbacks for design sizes in the current typescripts regime

2023-08-22 Thread Hans Hagen via ntg-context
fonts nor use them. (Thus some large typescript collections painstakingly built over the years are now obsolete and have to be rewritten. Oh well..) Well, i suppose one can still setup/use the typescripts but it's less fun. The old definefont mechanism is still there. As a side note: we hav

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

2023-08-22 Thread Hans Hagen via ntg-context
match with a setup . if needed we could extend the mechanism with varianst but i have to admit that it has been stable (mostly untouched) for close to 15 years now so all has to be done very careful; it has also be tuned for performance and large scale throughput Hans

[NTG-context] Re: Nested itemize

2023-08-21 Thread Alexandre Christe
n=3,right=\),stopper=] > > > > >   \item bla > > > > >   \item bla > > > > >   \item bla > > > > >   \item bla > > > > >   \item bla > > > > >   \item bla > > > > >   \stopitemize > > > > >

[NTG-context] Low res output possible?

2023-08-21 Thread Benjamin Buchmuller
if info.status.status ~= 0 then figures.check() -- !Counts pages here! end figures.pop() return --data info end end local format = string.format -- figures.cachepaths.path = "cache" -- should be setup-option local function sample_down(oldname, newna

[NTG-context] Re: Nested itemize

2023-08-21 Thread fv leung
gt; \item bla >> \item bla >> \item bla >> \item bla >> \item bla >> \item bla >> \stopitemize >> \stopitemize >> >> \stoptext >> >> Alexandre Christe via ntg-context 於 2022年9月2日 週五 >> 下午5:08寫道: >> >>&g

[NTG-context] Re: Nested itemize

2023-08-21 Thread Alexandre Christe
\stoptext > > Alexandre Christe via ntg-context 於 2022年9月2日 週五 > 下午5:08寫道: > >> Dear all, >> >> I'm struggling to setup a nested itemize with no blank line and several >> columns. >> >> What I mean is something like >> 1. a) bla c) bla >>

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

2023-08-21 Thread Michael Löscher
ke it from there; that's easier than writing the whole setup for you. Thomas On 8/21/23 17:29, Michael Löscher wrote: Hello list, having the xml data at the bottom, I would like to process it so that the result is like this: --- What it is (e.g. bold formatted) date: 2023-08-01 (italic) D

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

2023-08-21 Thread Thomas A. Schmitz
t of tags. And of course, you can process in Lua and search for strings or use lpeg. However, your question is a bit vague now. Show us some code you have and we can take it from there; that's easier than writing the whole setup for you. Thomas On 8/21/23 17:29, Michael Löscher wrote: Hello lis

[NTG-context] Re: redefine space to be the same as \␣ similar to knuthian approach

2023-08-21 Thread Carlos
don't like, you should be > very careful in your answering because there is very little change that he's > wrong. To stress his position here: if he sends me a patch I can merge it in > without testing it which (believe me) is a rather unique positin. From this > you might conclude t

[NTG-context] Re: redefine space to be the same as \␣ similar to knuthian approach

2023-08-20 Thread Hans Hagen via ntg-context
TEX\ comes our without the space between T and E that occurs at yoru end. And finally, appreciate the nice layout / setup of that presentation, which contradicts your (implcit and/or explicit) claims that lmtx is unusable. H

[NTG-context] Re: redefine space to be the same as \␣ similar to knuthian approach

2023-08-20 Thread Hans Hagen
because he is a pretty good tester who had been around for quite a while. So you can be sure that he tested it well and that he has a proper setup. Personally I'd be worried if someone doubts my installation. Did you install from the garden, using the lmtx installer? Because

[NTG-context] Re: Experiments with \doloopoverlist

2023-08-17 Thread Hans Hagen via ntg-context
}} % \quad % \imghref % {\externalfigure[gscholar.pdf][logo]} % {\datasetvariable{autores}{\recurselevel}{nombre}} % \quad % \datasetvariable{autores}{\recurselevel}{nombre}\par % \stopsetups Just loop over the set and call up the variables in the setup: % \startdocument

[NTG-context] Re: disable header for endnotes

2023-08-16 Thread Rik Kabel
' on the recto page (or indeed be blank with no header), but I am currently getting the header that belongs to the main setup for headers, which happens to be: \startsetups[middle] \hfill \getmarking[section] \hfill \stopsetups \setupheadertexts [{\hfill\documentvariable{metadata:title

[NTG-context] disable header for endnotes

2023-08-16 Thread jbf
be blank with no header), but I am currently getting the header that belongs to the main setup for headers, which happens to be: \startsetups[middle] \hfill \getmarking[section] \hfill \stopsetups \setupheadertexts [{\hfill\documentvariable{metadata:title}\hfill}][] [\setups{middle}][] How

[NTG-context] Re: upload

2023-08-10 Thread Thangalin
amed >[background=test, > foregroundstyle=\switchtobodyfont[small]] >{test} > > \stoptext > > From now on many commands accept (properly) nested [] inside commands > that use [] as fences (like the setup commands) where it makes sense. It > i

[NTG-context] Map XML attributes to variables, dynamically

2023-08-10 Thread Thangalin
ting them to the document: \startxmlsetups xml:div title:\xmlatt{#1}{data-title} location:\xmlatt{#1}{data-location} \start[\xmlatt{#1}{class}]\xmlflush{#1}\stop \stopxmlsetups How would you change the xml:div

[NTG-context] upload

2023-08-09 Thread Hans Hagen
} TEST}] \framed [background=test, foregroundstyle=\switchtobodyfont[small]] {test} \stoptext From now on many commands accept (properly) nested [] inside commands that use [] as fences (like the setup commands) where it makes sense. It is up to the user

[NTG-context] Re: Bibliography cite

2023-08-05 Thread Robert via ntg-context
s programmed in the style. > You can see this in the manual, on p. 43 documenting citations. > > The style is setup to put the righttext inside the parenthesis for > alternative=authoryear and outside of the year parenthesis for > alternative=authoryears. > > I looked carefully in the

[NTG-context] Re: Bibliography cite

2023-08-04 Thread Alan Braslau via ntg-context
Indeed, one does not need the comma, it is programmed in the style. You can see this in the manual, on p. 43 documenting citations. The style is setup to put the righttext inside the parenthesis for alternative=authoryear and outside of the year parenthesis for alternative=authoryears. I

[NTG-context] Re: Par Builder Tests

2023-07-30 Thread Keith McKay
Hraban's suggestion works really well. I setup hyphenation rules for the underfull boxes of Russian names and reduced the \tolerance to 600.  I'm now down to about 20 underfull boxes which to my eyes look fine. Thanks again Hraban Best Wishes Keith On 28/07/2023 19:20, Keith McKay wrote

  1   2   3   4   5   6   7   8   9   10   >