[NTG-context] Re: Using structureuservariables before the heading

2023-09-12 Thread Andres Conrado Montoya
You can find some examples in the wiki to do something similar: https://wiki.contextgarden.net/Generate_Authorlist_from_Head_Content Also you can use setups instead of macro definitions, and create spaces with \space, \par, etc: https://wiki.contextgarden.net/Setups -- Andrés Conrado Montoya

[NTG-context] Re: Using structureuservariables before the heading

2023-09-12 Thread denis.maier
Von: Wolfgang Schuster Gesendet: Dienstag, 12. September 2023 23:16 An: Maier, Denis Christian (UB) Cc: ntg-context@ntg.nl Betreff: Re: [NTG-context] Using structureuservariables before the heading denis.ma...@unibe.ch schrieb am 12.09.2023 um 21:38: Von: Wolfgang

[NTG-context] Re: Using structureuservariables before the heading

2023-09-12 Thread Wolfgang Schuster
denis.ma...@unibe.ch schrieb am 12.09.2023 um 21:38: *Von:*Wolfgang Schuster *Gesendet:* Dienstag, 12. September 2023 21:30 *An:* Maier, Denis Christian (UB) *Cc:* ntg-context@ntg.nl *Betreff:* Re: [NTG-context] Using structureuservariables before the heading denis.ma...@unibe.ch

[NTG-context] Re: Using structureuservariables before the heading

2023-09-12 Thread denis.maier
Von: Wolfgang Schuster Gesendet: Dienstag, 12. September 2023 21:30 An: Maier, Denis Christian (UB) Cc: ntg-context@ntg.nl Betreff: Re: [NTG-context] Using structureuservariables before the heading denis.ma...@unibe.ch schrieb am 12.09.2023 um 21:24: Von:

[NTG-context] Re: Using structureuservariables before the heading

2023-09-12 Thread Wolfgang Schuster
denis.ma...@unibe.ch schrieb am 12.09.2023 um 21:24: *Von:*Wolfgang Schuster *Gesendet:* Dienstag, 12. September 2023 20:41 *An:* mailing list for ConTeXt users ; Maier, Denis Christian (UB) *Betreff:* Re: [NTG-context] Using structureuservariables before the heading denis.ma...@unibe.ch

[NTG-context] Re: Using structureuservariables before the heading

2023-09-12 Thread denis.maier
Von: Wolfgang Schuster Gesendet: Dienstag, 12. September 2023 20:41 An: mailing list for ConTeXt users ; Maier, Denis Christian (UB) Betreff: Re: [NTG-context] Using structureuservariables before the heading denis.ma...@unibe.ch schrieb am 12.09.2023 um 17:47:

[NTG-context] Re: Using structureuservariables before the heading

2023-09-12 Thread Wolfgang Schuster
denis.ma...@unibe.ch schrieb am 12.09.2023 um 17:47: Hi, is it possible to access a structureuservariable before the heading’s title ? Using the «before» key does not seem to work. There are ways but not in a general way because you try to access the values before they are known to

[NTG-context] Re: Using structureuservariables before the heading

2023-09-12 Thread denis.maier
Ok, \starttexdefinition allows blanks, apparently just like setups. But, it still fails exactly like the version with \def \setuphead[chapter][ before={Before: \structureuservariable{author}\blank}, beforesection={Beforesection: \structureuservariable{author}\blank},

[NTG-context] Using structureuservariables before the heading

2023-09-12 Thread denis.maier
Hi, is it possible to access a structureuservariable before the heading's title ? Using the key does not seem to work. As an aside, I've tried to use the < command > key to provide my own command, but while \define works here (but ignores \blank), \def gives me an error. Why is that? How would

[NTG-context] Re: tiffs: autoconversion via graphicsmagick produces invalid pdfs

2023-09-12 Thread denis.maier
Sorry, that was too quick... Hi, currently, ConTeXt can't use tiffs directly, but it uses Graphicsmagick to convert tiffs to pdf on the fly. However, as it seems, graphicsmagick is producing invalid pdfs. For every included tiff I have something like this in the log: luatex warning > pdfe:

[NTG-context] tiffs: autoconversion via graphicsmagick produces invalid pdfs

2023-09-12 Thread denis.maier
Hi, currently, ConTeXt can't use tiffs directly, but it uses ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl /

[NTG-context] Re: Reduce space between lines in Natural Tables

2023-09-12 Thread Jeroen
It does not seem to have an effect to the table. The distance between the rows remains the same Thanks, Jeroen Op ma 11 sep 2023 om 09:08 schreef : > \bTABLE[spaceinbetween=0cm] > > ... > > \eTABLE > > > > > > > > *Von:* Jeroen > *Gesendet:* Sonntag, 10. September 2023 22:05 > *An:* mailing

[NTG-context] Re: \dontleavethemode

2023-09-12 Thread Wolfgang Schuster
Ursula Hermann schrieb am 12.09.2023 um 11:19: Dear List, I have done an little example with a \blackrule: \setuppapersize[A8,landscape] \setuplayout[leftmargin=2.5cm, leftmargindistance=0.2cm, backspace=2.9cm, width=4cm] \starttext \margintext{\blackrule[color=black, height=0.05ex,

[NTG-context] \dontleavethemode

2023-09-12 Thread Ursula Hermann
Dear List, I have done an little example with a \blackrule: \setuppapersize[A8,landscape] \setuplayout[leftmargin=2.5cm, leftmargindistance=0.2cm, backspace=2.9cm, width=4cm] \starttext \margintext{\blackrule[color=black, height=0.05ex,

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

2023-09-12 Thread Taco Hoekwater
Hi, xml.text(t) is safer than directly accessing t.dt[1]. Note: you may need to strip some XML tags from that content. If the element is not straight-up data but has nested elements, then this will return the full xml representation instead: A short title=> ‘A short title'

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

2023-09-12 Thread denis.maier
Ok, I've found a way, see below. But maybe someone has some nice lua (or other) tricks to share... (I'm not sure accessing t.dt[1] is particularly safe when operating on nested structures.) Best, Denis \startbuffer[test] A short title asdf asdf asdf jklö jklö jklö A longer