[NTG-context] \par and \startlines

2024-04-26 Thread denis.maier
Hi, I'm trying to typeset a poem from XML, but I can't figure out how to make the inbetween key working here. As the source is XML, I cannot just add an empty line to start a new group of lines inside \startlines...\stoplines. I guess, there must be a command to do that, but \par seems to have

[NTG-context] floats re-ordering and numbering

2024-04-22 Thread denis.maier
Hi, I've found that occasionally the order of floats change, but the numbering still reflects the order in the input file. Is that the intended behaviour? Is there a way to number to floats according to their order in the (visual) output? Best, Denis

[NTG-context] minwidth not working ?

2024-04-10 Thread denis.maier
Hi, Shouldn't minwidth set a default minimal width for external figures? But this here does not work == \setupexternalfigures [ maxwidth=\textwidth, minwidth=\textwidth, location={local,global,default}, ] \starttext

[NTG-context] Re: Chapters without new page

2023-09-15 Thread denis.maier
I thought there should be a setups key on \setupsectionblock, but apparently there isn’t. So, the example below does not work, but maybe it wouldn’t be too hard to add it… Best, Denis \setuphead[chapter][page=yes] \setupsectionblock[backmatter][setups={\setuphead[chapter][page=no]}]

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

2023-09-13 Thread denis.maier
Ok, I've found a solution. % \enabletrackers[graphics.conversion] \startluacode local function convert(oldname, newname) os.execute(string.format( 'gm convert "%s" "%s"', oldname, newname) ) end -- Set the PDF, JPEG and default TIFF converters to

[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 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 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 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: 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

[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") end end \stopluacode \startxmlsetups

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

2023-09-11 Thread denis.maier
\bTABLE[spaceinbetween=0cm] ... \eTABLE Von: Jeroen Gesendet: Sonntag, 10. September 2023 22:05 An: mailing list for ConTeXt users Betreff: [NTG-context] Reduce space between lines in Natural Tables Is there an easy way to reduce the line space between rows in a natural table so the table

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

2023-09-06 Thread denis.maier
Hi, I have the example below that uses the three images in the attachment. For some reason multiple spaces encoded as %20 get merged into a single %20. The first image () does not get included even though the name is correct. The second image () gets included. Filename is correct. The third

[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: xmldoif: checking for contents of attribute

2023-08-25 Thread denis.maier
> -Ursprüngliche Nachricht- > Von: Hans Hagen > Gesendet: Freitag, 25. August 2023 09:06 > An: Maier, Denis Christian (UB) ; mailing list for > ConTeXt users > Betreff: Re: [NTG-context] Re: xmldoif: checking for contents of attribute > > On 8/25/2023 8:22 AM, denis.ma...@unibe.ch

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

2023-08-25 Thread denis.maier
Hi, I need to process URLs in XML documents differently depending on the target. Thanks to Hans and Thomas I can now deal with the attributes. Now I need to prefix certain kind of targets with a certain URL (a web viewer for IIIF images in this particular case). The prefix contains a #, which,

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

2023-08-25 Thread denis.maier
> -Ursprüngliche Nachricht- > Von: Thomas A. Schmitz > Gesendet: Donnerstag, 24. August 2023 16:35 > An: mailing list for ConTeXt users > Betreff: [NTG-context] Re: xmldoif: checking for contents of attribute > > > One way would be to do the search in Lua; when you have multiple

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

2023-08-25 Thread denis.maier
> -Ursprüngliche Nachricht- > Von: Hans Hagen > Gesendet: Donnerstag, 24. August 2023 16:54 > An: ntg-context@ntg.nl > Betreff: [NTG-context] Re: xmldoif: checking for contents of attribute > > On 8/24/2023 4:11 PM, denis.ma...@unibe.ch wrote: > > Hi, > > > > I'm trying to check whether

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

2023-08-24 Thread denis.maier
Hi, I'm trying to check whether an attribute contains (or, actually starts with) a given string. I've tried a whole bunch of different combinations, but I've had no luck so far. Minimal example below. Anyone has a hint? Best, Denis %

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

2023-08-22 Thread denis.maier
Hi Hraban, a late reply concerning the ToCs in your book: maybe you could an two-toc-approach like in the Memoir manual? One could show only the chapters, another would contain everything. Best, Denis > -Ursprüngliche Nachricht- > Von: Henning Hraban Ramm > Gesendet: Donnerstag, 10.

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

2023-08-22 Thread denis.maier
> -Ursprüngliche Nachricht- > Von: Thomas A. Schmitz > Gesendet: Montag, 21. August 2023 18:20 > An: mailing list for ConTeXt users > Betreff: [NTG-context] Re: XML processing beginner's question > > On 8/21/23 17:59, Michael Löscher wrote: > > Yes, I have done that. But I don't seem to

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

2023-08-22 Thread denis.maier
> -Ursprüngliche Nachricht- > Von: Hans Hagen via ntg-context > Gesendet: Montag, 21. August 2023 19:09 > > you need a bit of imagination because basically (depends a bit on what you > do) one big nested expansion is going on, as Thomas explained: using setups > which are basically

[NTG-context] Re: Penalties and overprinting in tabulate

2023-08-21 Thread denis.maier
> -Ursprüngliche Nachricht- > Von: Hans Hagen > Gesendet: Freitag, 18. August 2023 17:10 > An: ntg-context@ntg.nl > Betreff: [NTG-context] Re: Penalties and overprinting in tabulate > > On 8/18/2023 4:36 PM, denis.ma...@unibe.ch wrote: > > Dear list, > > > > typesetting the example below

[NTG-context] Penalties and overprinting in tabulate

2023-08-18 Thread denis.maier
Dear list, typesetting the example below results in lines printed above each other? Without the penalties, this doesn't happen. What am I missing here? How I can use the penalties without the not wanted overprinting? Best, Denis \startsetups[mypenalties] \setdefaultpenalties

[NTG-context] Re: Tracker for hyphens at the end of lines

2023-08-09 Thread denis.maier
Keith, you can also check hyphenations using a script: -- check-hyphens.lua --[[ analyze hyphenations based on a ConTeXt log file enable hyphenation tracking in the ConTeXt file with \enabletrackers[hyphenation.applied] then run this script with lua check-hyphens.lua

[NTG-context] Re: xml: matches always child of other element

2023-07-27 Thread denis.maier
Ok, after a bit of more testing I can now come up with another example. The version using startstop works, but with the normal command, I'm always getting back the content of the first element. I thought it might be an expansion issue, but \expanded and also expansion=yes or expansion=xml on

[NTG-context] Re: xml: matches always child of other element

2023-07-24 Thread denis.maier
Interestingly, we should be in the right subtree as this modified example is supposed to demonstrate (we're getting the correct numbers under each index-entry-term, just the terms are incorrect in all but the first case): \startxmlsetups xml:test \xmlsetsetup{#1}{*}{-}

[NTG-context] xml: matches always child of other element

2023-07-24 Thread denis.maier
Hi, I must be missing something obvious, but in this example the pattern for always matches the first element, not the one under the current . Interestingly, using xml:index-entry-2 instead of the normal version matches correctly... Any hints what is going off the rails here? Best, Denis

[NTG-context] Re: Convert tif to jpg (instead of pdf)

2023-07-24 Thread denis.maier
Partial success: I haven't been able to convert the images to jpg proper, but I've been at least been able to enable jpeg compression, thus making the resulting pdfs much smaller: % enable compression for tiffs \startluacode local function compress(oldname, newname, compression) if not

[NTG-context] Re: Replacing %20 with spaces in xml attributes

2023-07-21 Thread denis.maier
Thanks, but I'm still getting the same error. I'm thinking that it has something to do with the percent characters... This here works just fine: \startluacode function test(s) result = string.gsub(s, 'x20', 'MATCH') context(result) end \stopluacode \define[1]\test{\ctxlua{test("#1")}}

[NTG-context] Convert tif to jpg (instead of pdf)

2023-07-21 Thread denis.maier
Hi, According to the documentation, it is possible to automatically convert TIFF images to a format supported by LMTX via GraphicsMagick. https://wiki.contextgarden.net/Using_Graphics#Image_Conversion However, by default this produces pdf files which are quite huge. is it possible to instruct

[NTG-context] Replacing %20 with spaces in xml attributes

2023-07-21 Thread denis.maier
Hi, I'm typesetting an XML document where the links to the images contain spaces which are encoded as %20 Using this works in cases without spaces: \startxmlsetups xml:fig:graphic \externalfigure[\xmlatt{#1}{xlink:href}] \stopxmlsetups This also works for normal spaces, but is there a way

[NTG-context] Suppress label in captions without suppressing number

2023-07-20 Thread denis.maier
Hi, is there an option to suppress the label in captions without suppressing the number as well? I know, I can use \setuplabeltext[de][figure=,], but this will delete the label text globally... Is there a better way via \setupcaption? Best, Denis

[NTG-context] Re: new upload

2023-07-10 Thread denis.maier
Hi Hans, Page puilder mode sounds interesting! What are you plans for that? Best, Denis > -Ursprüngliche Nachricht- > Von: Hans Hagen via ntg-context > Gesendet: Sonntag, 9. Juli 2023 19:51 > An: mailing list for ConTeXt users > Cc: Hans Hagen > Betreff: [NTG-context] new upload > >

Re: [NTG-context] Fontsizes in Adobe Acrobat vs ConTeXt

2021-07-20 Thread denis.maier
> -Ursprüngliche Nachricht- > Von: ntg-context Im Auftrag von Henning > Hraban Ramm > Gesendet: Dienstag, 20. Juli 2021 13:12 > An: mailing list for ConTeXt users > Betreff: Re: [NTG-context] Fontsizes in Adobe Acrobat vs ConTeXt > > > > > Am 20.07.2021 um 13:09 schrieb

[NTG-context] Fontsizes in Adobe Acrobat vs ConTeXt

2021-07-20 Thread denis.maier
Hi, I have to reproduce a book layout that was done in Adobe Indesign, and I don't really manage to get the right fontsizes, i.e. according to Acrobat Pro the fonts are consistently a bit smaller then expected. That may well be an Adobe problem, it's just that I have to aim for rather specific

Re: [NTG-context] Different authorconversion for citation alternatives and bibliographic entries

2021-07-02 Thread denis.maier
Oh, and needless to say, I'd be happy to help with this. > -Ursprüngliche Nachricht- > Von: Maier, Denis Christian (UB) > Gesendet: Freitag, 2. Juli 2021 10:01 > An: 'Alan Braslau' > Cc: ntg-context@ntg.nl > Betreff: AW: [NTG-context] Different authorconversion for citation >

Re: [NTG-context] Different authorconversion for citation alternatives and bibliographic entries

2021-07-02 Thread denis.maier
> -Ursprüngliche Nachricht- > Von: Alan Braslau > Gesendet: Mittwoch, 30. Juni 2021 23:50 > An: Maier, Denis Christian (UB) > Cc: ntg-context@ntg.nl > Betreff: Re: [NTG-context] Different authorconversion for citation > alternatives > and bibliographic entries > [...] > > > > So what

Re: [NTG-context] Heading for endnotes / grouped by chapter endnotes

2021-07-02 Thread denis.maier
Thanks for this. I'll look into it. > -Ursprüngliche Nachricht- > Von: ntg-context Im Auftrag von Rik Kabel > Gesendet: Mittwoch, 30. Juni 2021 21:40 > An: ntg-context@ntg.nl > Betreff: Re: [NTG-context] Heading for endnotes / grouped by chapter endnotes > > For what its worth, I offer

Re: [NTG-context] Rolling out a pandoc-context publication workflow in an organization

2021-07-02 Thread denis.maier
Hi, in case you don't know it already, for your use-case you might also be interested in this workflow: https://oa-pub.hos.tuhh.de/de/ It's a publishing workflow for OA-Journals. IIUC, the interesting part (in this context here) is that they use Gitlab, author in markdown, and whenever you

Re: [NTG-context] Different authorconversion for citation alternatives and bibliographic entries

2021-06-30 Thread denis.maier
> -Ursprüngliche Nachricht- > Von: Alan Braslau > Gesendet: Mittwoch, 30. Juni 2021 21:11 > An: mailing list for ConTeXt users ; Maier, Denis > Christian > (UB) > Betreff: Re: [NTG-context] Different authorconversion for citation > alternatives > and bibliographic entries > > On

Re: [NTG-context] Heading for endnotes / grouped by chapter endnotes

2021-06-30 Thread denis.maier
> Von: Hans Hagen > > On 6/30/2021 4:57 PM, denis.ma...@unibe.ch wrote: > > > [...] > > > > Will this interfere with how parts are displayed in the regular table > > of contents? > > sure but you can group > > \start >.. flush the list > \stop > > although it's not really needed when

Re: [NTG-context] Different authorconversion for citation alternatives and bibliographic entries

2021-06-30 Thread denis.maier
Hi, > -Ursprüngliche Nachricht- > Von: ntg-context Im Auftrag von Ágoston Volcz > Gesendet: Mittwoch, 30. Juni 2021 10:20 > An: ntg-context@ntg.nl > Betreff: [NTG-context] Different authorconversion for citation alternatives > and > bibliographic entries > > Hi there, > > My

Re: [NTG-context] Heading for endnotes / grouped by chapter endnotes

2021-06-30 Thread denis.maier
> -Ursprüngliche Nachricht- > Von: Hans Hagen > Gesendet: Mittwoch, 30. Juni 2021 11:28 > An: Maier, Denis Christian (UB) ; mailing list for > ConTeXt users > Betreff: Re: AW: [NTG-context] Heading for endnotes / grouped by chapter > endnotes > > On 6/30/2021 10:06 AM,

Re: [NTG-context] Heading for endnotes / grouped by chapter endnotes

2021-06-30 Thread denis.maier
> -Ursprüngliche Nachricht- > Von: Hans Hagen > Gesendet: Dienstag, 29. Juni 2021 16:20 > An: mailing list for ConTeXt users ; Maier, Denis > Christian > (UB) > Betreff: Re: [NTG-context] Heading for endnotes / grouped by chapter endnotes > > On 6/29/2021 12:53 PM, denis.ma...@unibe.ch

Re: [NTG-context] Heading for endnotes / grouped by chapter endnotes

2021-06-29 Thread denis.maier
Hi, may I reask the question from below? Would be really great if something grouped endnotes were possible... Best Denis Von: ntg-context Im Auftrag von denis.ma...@unibe.ch Gesendet: Donnerstag, 24. Juni 2021 13:05 An: ntg-context@ntg.nl Betreff: [NTG-context] Heading for endnotes / grouped

Re: [NTG-context] new upload lmtx

2021-06-29 Thread denis.maier
Any progress on this? That sounds like a really useful feature for multilingual texts. Best, Denis > -Ursprüngliche Nachricht- > Von: ntg-context Im Auftrag von Pablo > Rodriguez > Gesendet: Mittwoch, 23. Juni 2021 16:53 > An: ntg-context@ntg.nl > Betreff: Re: [NTG-context] new upload

Re: [NTG-context] First line of larger font paragraph on grid

2021-06-28 Thread denis.maier
Ok, I've now tried to adapt my real document to this (see below). But I'm running into some problems: 1. I'm not sure whether to use \setuplocalinterlinespace or \setupinterlinespace. With \setuphead, \setuplocalinterlinespace works, but it doesn't work with \framed... But even with \setuphead

Re: [NTG-context] First line of larger font paragraph on grid

2021-06-27 Thread denis.maier
Thanks, Garulfo. I don't use \definedfont in my real document so I should be able to port it to my use case. And now I've learned about foregroundstyle. (I was already a bit perplexed that \framed has no style key.) Just out of curiousity, perhaps someone (Hans? Wolfgang?) knows more about the

Re: [NTG-context] Align in setup header/footer

2021-06-25 Thread denis.maier
but you'll perhaps have to put the stuff inside a hbox first \definehbox[pagenumber][12.5mm] \setupfootertexts [] [{\getmarking[chapter]}\hboxpagenumber{\hfill\pagenumber}] [\hboxpagenumber{\pagenumber\hfill}{\getmarking[part]}][] > -Ursprüngliche Nachricht- >

Re: [NTG-context] Align in setup header/footer

2021-06-25 Thread denis.maier
You can use \hfill > -Ursprüngliche Nachricht- > Von: ntg-context Im Auftrag von Jan U. Hasecke > Gesendet: Freitag, 25. Juni 2021 12:23 > An: ntg-context@ntg.nl > Betreff: Re: [NTG-context] Align in setup header/footer > > > Hi Denis, > > Am 25.06.21 um 09:50 schrieb

[NTG-context] First line of larger font paragraph on grid

2021-06-25 Thread denis.maier
Hi, I have some text in a larger font where the first line should be on the grid. Therefore, I've tried to adapt the solution from the wiki: https://wiki.contextgarden.net/Grid_typesetting#Placing_titles_on_the_grid The interesting thing is that the section command indeed places the first line

Re: [NTG-context] Align in setup header/footer

2021-06-25 Thread denis.maier
Addendum: I've probably got confused which parts of the footer are filled with the different arguments, but anyway... You get the idea. > -Ursprüngliche Nachricht- > Von: ntg-context Im Auftrag von > denis.ma...@unibe.ch > Gesendet: Freitag, 25. Juni 2021 09:50 > An: ntg-context@ntg.nl

Re: [NTG-context] Align in setup header/footer

2021-06-25 Thread denis.maier
Hi, what do you have in the footer? Page numers? Then you can just use: \setuppagenumbering [alternative=doublesided, location={footer,right}] Or, for more complex footers/headers you can use: \setupfootertexts [left on odd page] % out [right on odd page] % in [right

[NTG-context] Heading for endnotes / grouped by chapter endnotes

2021-06-24 Thread denis.maier
Hi, I have two questions regarding endnotes: 1. Is there a way to add a heading automatically to the endnotes placed with \placenotes[endnote]? 2. I reset the endnote number at each part. Is there a way to insert the title of the corresponding part heading to the endnotes? I have searched

Re: [NTG-context] Adjust Grid to last line textheight

2021-06-23 Thread denis.maier
I've tried adjusting interlinespacing, but it seems to make no difference : == \setupinterlinespace[ height=.72, depth=.28, top=2, %top=0, %top=5, %top=1,

[NTG-context] WG: Adjust Grid to last line textheight

2021-06-23 Thread denis.maier
Hi, I have to use grid typesetting and the grid has to be aligned to the last line of textheight. I have to replicate a layout made with Indesign where there seems to be a bit of additional spacing before the first line, whereas in ConTeXt that happens to be after the last line of the page

Re: [NTG-context] typescripts and variants

2021-06-23 Thread denis.maier
Hi, > > Am 23.06.2021 um 08:43 schrieb Henning Hraban Ramm : > > > > > >> Am 23.06.2021 um 00:17 schrieb denis.ma...@unibe.ch: > >> > >> Hi > >> In my current project I need to use different variants if the Noto > >> Serif font (Regular, Medium, Semi Condensed Bold, Regular ExtraBold.) Is > my

[NTG-context] typescripts and variants

2021-06-22 Thread denis.maier
Hi In my current project I need to use different variants if the Noto Serif font (Regular, Medium, Semi Condensed Bold, Regular ExtraBold.) Is my understanding of typescripts correct that I cannot have bold and extrabold in the same typescript? And that I need a typescript for regular and one

Re: [NTG-context] Project structure: Specifying environment in component

2021-06-16 Thread denis.maier
I’ll look into this, and post to the list once I’ve made the changes so others can comment. Denis Von: ntg-context Im Auftrag von jethro Reuel Gesendet: Mittwoch, 9. Juni 2021 14:49 An: mailing list for ConTeXt users Betreff: Re: [NTG-context] Project structure: Specifying environment in

Re: [NTG-context] Project structure: Specifying environment in component

2021-06-09 Thread denis.maier
I’ve also struggled with this before as you can see if you search the mailing list. My question: https://www.mail-archive.com/ntg-context@ntg.nl/msg97763.html Wolfgang’s answer : https://www.mail-archive.com/ntg-context@ntg.nl/msg97775.html We should probably change the wiki to make it clear

Re: [NTG-context] where to break a long header

2021-06-05 Thread denis.maier
\startsection[title={A very \\ long title},list={A very long title}] Von: ntg-context im Auftrag von Sandra Snan Gesendet: Samstag, 5. Juni 2021 07:59:33 An: ntg-context@ntg.nl Betreff: [NTG-context] where to break a long header I had an unsually long

Re: [NTG-context] quotes potruding out in the left margin

2021-06-04 Thread denis.maier
> -Ursprüngliche Nachricht- > Von: ntg-context Im Auftrag von Wolfgang > Schuster > Gesendet: Freitag, 4. Juni 2021 10:08 > An: mailing list for ConTeXt users > Betreff: Re: [NTG-context] quotes potruding out in the left margin > > Sandra Snan schrieb am 04.06.2021 um 09:52: > > Oh, the

[NTG-context] Understanding penalties for orphans and widows

2021-06-01 Thread denis.maier
Hi, I've read in the wiki (https://wiki.contextgarden.net/Widows_and_orphans_control) that this setting can be used to keep at least two lines together: \startsetups[grid][mypenalties] \setdefaultpenalties \setpenalties\widowpenalties{2}{1} \setpenalties\clubpenalties

Re: [NTG-context] itemize margins,

2021-06-01 Thread denis.maier
Von: ntg-context Im Auftrag von Wolfgang Schuster Gesendet: Dienstag, 1. Juni 2021 11:05 An: mailing list for ConTeXt users Betreff: Re: [NTG-context] itemize margins, denis.ma...@ub.unibe.ch schrieb am 01.06.2021 um 10:46: Hi, in the following example the

[NTG-context] itemize margins,

2021-06-01 Thread denis.maier
Hi, in the following example the second line of the quote is not lined up with the first line. = \starttext \startitemize[n] [ %right=), %stopper=, %width=2em, %alternative=fit, %alternative=left, %alternative=intext, %distance=1em, %leftmargin=1em,

Re: [NTG-context] specify a directory for tex files

2021-05-25 Thread denis.maier
Thanks for the explanation! > -Ursprüngliche Nachricht- > Von: ntg-context Im Auftrag von Wolfgang > Schuster > Gesendet: Dienstag, 25. Mai 2021 12:06 > An: mailing list for ConTeXt users > Betreff: Re: [NTG-context] specify a directory for tex files > > denis.ma...@ub.unibe.ch schrieb

Re: [NTG-context] specify a directory for tex files

2021-05-25 Thread denis.maier
> -Ursprüngliche Nachricht- > Von: ntg-context Im Auftrag von Wolfgang > Schuster > Gesendet: Montag, 24. Mai 2021 21:04 > An: mailing list for ConTeXt users > Betreff: Re: [NTG-context] specify a directory for tex files > > Jeroen schrieb am 24.05.2021 um 20:44: > > similar to this for

[NTG-context] Language goodies -- hard line break the algorithm?

2021-05-12 Thread denis.maier
Hi, testing the new language goodies feature for ligature prevention, I found that hard line breaks seem to interfere somehow with the ligature prevention mechanism: == \setuplanguage[de][ goodies={lang-de.llg}] \startlanguageoptions[de] auf|jubeln \stoplanguageoptions

[NTG-context] Ligatures blocking -- why block unspecified ligatures?

2021-05-12 Thread denis.maier
Hi, I just ran into an issue with the \blockligatures mechanism. For some reason, the following examples replaces ffi with f|fi and ffl with f|fl although I have not specified them in \blockligatures: ==

Re: [NTG-context] Adjusting parameters for a single page

2021-05-11 Thread denis.maier
Von: ntg-context Im Auftrag von luigi scarso Gesendet: Dienstag, 11. Mai 2021 10:41 An: mailing list for ConTeXt users Betreff: Re: [NTG-context] Adjusting parameters for a single page On Tue, May 11, 2021 at 10:29 AM mailto:denis.ma...@ub.unibe.ch>> wrote: -Ursprüngliche Nachricht-

Re: [NTG-context] Adjusting parameters for a single page

2021-05-11 Thread denis.maier
-Ursprüngliche Nachricht- > Von: Hans Hagen > Gesendet: Dienstag, 11. Mai 2021 00:13 > An: mailing list for ConTeXt users ; Maier, Denis > Christian (UB) > Betreff: Re: [NTG-context] Adjusting parameters for a single page > > On 5/10/2021 5:15 PM, denis.ma...@ub.unibe.ch wrote: > > Hi

Re: [NTG-context] Adjusting parameters for a single page

2021-05-11 Thread denis.maier
Thanks, Hans, really interesting stuff. > so, basically, you have a lot of control, all together some 36 parameters > (pablo probably loves the somewhat secret on the fly adjustspacing step, > stretch and shrink tweakability) Any hints where I can find these 36 parameters? Thanks for your help,

Re: [NTG-context] Include PDF pages

2021-05-11 Thread denis.maier
https://wiki.contextgarden.net/Including_pages_from_PDF_documents Von: ntg-context Im Auftrag von MANUEL GONZALEZ SUAREZ Gesendet: Dienstag, 11. Mai 2021 09:30 An: Context Betreff: [NTG-context] Include PDF pages Hello everybody: My query is as follows: in LaTeX there is the package

[NTG-context] Tracking overfull/underfull vboxes, widows/orphans

2021-05-10 Thread denis.maier
Hi, some time ago Hans has added these trackers for overfull/underfull hboxes: I'm wondering if there is something similar for vertical boxes? I've found these trackers: builders.vspacing builders.vpacking builders.page_vspacing builders.collect_vspacing But I don't really understand what they

[NTG-context] Adjusting parameters for a single page

2021-05-10 Thread denis.maier
Hi everyone, I know it is possible to make local changes by enclosing text in \start \stop pairs to make local changes. Then, there are also commands that only affect the next/current paragraph, such as \looseness. But is there a similar mechanism for page-layout changes? For example your

Re: [NTG-context] weird word breaking in Win64

2021-05-08 Thread denis.maier
Looks like I can confirm this... see below. But it seems to depend on your PDF viewer. Results in Sumatra and Acrobat differ. Denis current version: 2021.05.06 23:35 Sumatra Coming back to the use of typefaces in electronic publishing: many of the new typog‍ raphersreceivetheirknowledgeand

[NTG-context] setupalign[line]/setupalign[height] break \testpage

2021-05-06 Thread denis.maier
Hi everyone, I've recently asked this question: https://www.mail-archive.com/ntg-context@ntg.nl/msg98293.html To reiterate: Is there any way to add a \vfill on a page immediately before a section heading? On the mailing list I then found a possible solution :

[NTG-context] conditionally add \vfill before section if at end of page

2021-05-04 Thread denis.maier
Hi, I'm still playing/struggling with vertical glue to have pages of a constant height. The following settings give reasonable results: = \setuppapersize[A5][A5] \setupalign[line] \setuptolerance[vertical,stretch] \setupinterlinespace[ stretch=0.001,

Re: [NTG-context] issue with Public Sans

2021-05-04 Thread denis.maier
Hi Pablo > -Ursprüngliche Nachricht- > Von: ntg-context Im Auftrag von Pablo > Rodriguez > Gesendet: Samstag, 1. Mai 2021 13:00 > An: mailing list for ConTeXt users > Betreff: [NTG-context] issue with Public Sans > > Dear listt, > > I have problems with current latest (from 2021.04.29

Re: [NTG-context] calculating optimal height of textblock

2021-04-29 Thread denis.maier
One thing, I've noticed: Lines=40 seems to add more space than strictly necessary. Why is that? Example: === \setupbodyfont[10pt] \definepapersize[test][width=140mm,height=208mm] \setuppapersize[test][test] \setuppagenumbering[location={footer,middle}]

Re: [NTG-context] calculating optimal height of textblock

2021-04-29 Thread denis.maier
Thanks, Hans. That's really helpful. Denis > -Ursprüngliche Nachricht- > Von: Hans Hagen > Gesendet: Mittwoch, 28. April 2021 17:58 > An: mailing list for ConTeXt users ; Maier, Denis > Christian (UB) > Betreff: Re: [NTG-context] calculating optimal height of textblock > > On

[NTG-context] calculating optimal height of textblock

2021-04-28 Thread denis.maier
Hi, how do you usually calcultate your layouts? For example in this example, the third value for height is not really helpful as there will never be a complete line : = \setupbodyfont[10pt] \definepapersize[test][width=140mm,height=208mm] \setuppapersize[test][test]

Re: [NTG-context] \setupalign[height] and \setupalign[line] in LMTX

2021-04-28 Thread denis.maier
Ok, after dabbling around a bit more, I can now come up with the following example \setuppapersize[A5][A5] \showframe \setuptolerance[vertical,stretch] %\setupalign[line] %\setupinterlinespace[stretch=0.1] % vertical stretching seems to kick in for

Re: [NTG-context] Style options and setupinterlinespace

2021-04-27 Thread denis.maier
> -Ursprüngliche Nachricht- > Von: ntg-context Im Auftrag von Aditya > Mahajan > Gesendet: Dienstag, 27. April 2021 05:49 > An: mailing list for ConTeXt users > Betreff: Re: [NTG-context] Style options and setupinterlinespace > > On Mon, 26 Apr 2021, denis.ma...@ub.unibe.ch wrote: > >

Re: [NTG-context] Style options and setupinterlinespace

2021-04-26 Thread denis.maier
Wikified, as per Aditya's suggestion. Denis > -Ursprüngliche Nachricht- > Von: Maier, Denis Christian (UB) > Gesendet: Montag, 26. April 2021 22:50 > An: mailing list for ConTeXt users > Betreff: AW: [NTG-context] Style options and setupinterlinespace > > Thanks everyone for your

Re: [NTG-context] Style options and setupinterlinespace

2021-04-26 Thread denis.maier
Thanks everyone for your answers. In that case I'll change the wording in the wiki. All best, Denis > -Ursprüngliche Nachricht- > Von: ntg-context Im Auftrag von Wolfgang > Schuster > Gesendet: Montag, 26. April 2021 19:28 > An: mailing list for ConTeXt users > Betreff: Re:

Re: [NTG-context] Style options and setupinterlinespace

2021-04-26 Thread denis.maier
Hi again, should I change the wiki or is the current behaviour a bug (that will eventually be corrected)? Best, Denis Von: Maier, Denis Christian (UB) Gesendet: Donnerstag, 22. April 2021 15:15 An: 'mailing list for ConTeXt users' Betreff: Style options and setupinterlinespace Hi, the wiki

Re: [NTG-context] \setupalign[height] and \setupalign[line] in LMTX

2021-04-26 Thread denis.maier
Hi, sorry to be such a nuisance, but i'd still love to hear if I'm missing something or if something is going off the rails in LMTX. Best, Denis Von: Maier, Denis Christian (UB) Gesendet: Donnerstag, 22. April 2021 15:07 An: 'mailing list for ConTeXt users' Betreff: \setupalign[height] and

[NTG-context] setupalign[height] vs setupalign[line] in MKIV

2021-04-23 Thread denis.maier
Hi, I've noticed a somewhat unexpected behaviour. MWE below. \setupalign[line] adds an enormous amount of whitespace to fill a last page, but \setupalign[height] doesn't. Is that intended ? Currently this only happens with mkiv. As stated in another mail, these options seem to have no effect

[NTG-context] Page building and vertical stretching

2021-04-22 Thread denis.maier
Hi, in addition to my previous mails about \setupalign[height], a further question related to page building : I'm trying to understand how ConTeXt builds pages, and how this can be influenced. Regarding the example below, the aim is to have pages that always end at the same place. Now, how

[NTG-context] Style options and setupinterlinespace

2021-04-22 Thread denis.maier
Hi, the wiki (https://wiki.contextgarden.net/Font_Switching) currently says: > These quick font switches are meant for changing the font style, alternative, > or size of a few words: they do not change the bodyfont, so they don't affect > interline spacing or math font sizes. So, if you want

[NTG-context] \setupalign[height] and \setupalign[line] in LMTX

2021-04-22 Thread denis.maier
Hi, \setupalign[height] and \setupalign[line] seem to have no effect in a LMTX. Do I need to change something? Best, Denis ``` \setuppapersize[A5][A5] \showframe %\setupalign[line] \setupalign[height] \setupdelimitedtext[blockquote]

Re: [NTG-context] nbsp in XML (S01E01)

2021-04-21 Thread denis.maier
Re tilde: maybe the answer is in the entities section of the xml mkiv manual. Denis Von: ntg-context im Auftrag von Jano Kula Gesendet: Mittwoch, 21. April 2021 23:09:55 An: mailing list for ConTeXt users Betreff: Re: [NTG-context] nbsp in XML

Re: [NTG-context] xml processing in latest

2021-04-21 Thread denis.maier
Ah, now I see ConTeXt ver: 2021.04.20 18:45 LMTX fmt: 2021.4.21 int: english/english gives me the attached result. Denis > -Ursprüngliche Nachricht- > Von: Maier, Denis Christian (UB) > Gesendet: Mittwoch, 21. April 2021 10:34 > An: ntg-context@ntg.nl > Betreff: AW: [NTG-context] xml

Re: [NTG-context] xml processing in latest

2021-04-21 Thread denis.maier
Hi What's the exact issue? I get the same results on my TeXLive version and on the latext lmtx: ConTeXt ver: 2020.01.26 18:34 MKIV beta fmt: 2020.10.2 int: english/english ConTeXt ver: 2021.04.18 18:12 LMTX fmt: 2021.4.20 int: english/english And even with --luatex ConTeXt ver:

[NTG-context] Analyze hyphenations

2021-04-18 Thread denis.maier
Hi, a couple of weeks ago Hans has implemented a tracker that adds a list of hyphentated words to the log file. I finally managed to play with this. The result is attached to this mail. This will permit analyzing hyphenations based on a ConTeXt log file. You need to enable hyphenation tracking

  1   2   >