[NTG-context] Re: Comments placed in the margin

2024-03-19 Thread Marco Patzer
On Tue, 19 Mar 2024 15:38:16 +0100 Jeroen wrote: > Can this text be placed in the margin in regular text or possibly > in slightly smaller font size compared to the regular text in the > document? \setupmargindata [inleft] [style=\tfx] Marco

[NTG-context] Re: Why is header page number appearing when I define a header?

2024-03-16 Thread Marco Patzer
On Sat, 16 Mar 2024 20:33:33 + (UTC) Joel via ntg-context wrote: > How do I remove the page number from the header texts? \setupheadertexts [] or \setuplayouttext [header][text] [middletext=] Marco

[NTG-context] Re: missing metadata in LMTX

2024-03-06 Thread Marco Patzer
On Tue, 5 Mar 2024 23:14:04 +0100 Wolfgang Schuster wrote: > Here is the official solution: > > \startxmlsetups xml:meta >\setupmetadata > [author={\xmltext{#1}{/author}}, > title={\xmltext{#1}{/title}}] > \stopxmlsetups So now we have: \setupinteraction [title=FooBar]

[NTG-context] Re: Best way to input UTF-8

2024-02-18 Thread Marco Patzer
On Mon, 19 Feb 2024 09:45:03 +0800 黄复雄 wrote: > I recommend you to always show missing font markers in PDF documents > with \replacemissingcharacters Or let context throw an error in case a font/char is missing: %% alternative: %% context --errors='*' \enabledirectives [logs.errors=*]

[NTG-context] Re: Best way to input UTF-8

2024-02-18 Thread Marco Patzer
On Sun, 18 Feb 2024 22:12:25 +0530 Shiv Shankar Dayal wrote: > What is the best way to input UTF-8 in LuaMetaTex? “Best” is subjective. What might be a good way for me might not be your preferred way. LuaMetaTex doesn't care at all *how* you input the characters into your text editor. The

[NTG-context] Re: textbackground spacing offset

2024-01-31 Thread Marco Patzer
On Wed, 31 Jan 2024 19:41:02 +0100 Hans Hagen wrote: > >> How do it get the same spacing as in the framedtext case? > > > > Is there a solution to this? Or an explanation why the spacing > > differs? > these are fundamentally different mechanisms .. you can play with > \inframed in the

[NTG-context] Re: textbackground spacing offset

2024-01-31 Thread Marco Patzer
On Thu, 16 Nov 2023 13:52:05 +0100 Marco Patzer wrote: > I'm having problems getting the textbackground spacing offset to work. > Example: > > \setupframedtext > [offset=overlay, >width=max, >depthcorrection=off] > > \setuptextbackground > [loca

[NTG-context] Re: Asking help for better way to make tickets.

2024-01-12 Thread Marco Patzer
On Fri, 12 Jan 2024 23:05:14 +0900 Jeong Dal via ntg-context wrote: > I’d like to make a ticket on A4 as follows: > > 1. Use all of A4(no margin, no header, no footer,…) > 2. Arange 12 tickets in the form of 3 x 4 on one page, > 3. Two rows are same, > 4. Numbers in the center of the ticket

[NTG-context] Re: \unit{mercury} renders as m (meter) and \unit{millimetermercury} doesn't work as expected

2023-12-05 Thread Marco Patzer
On Tue, 5 Dec 2023 20:06:46 +0100 Wolfgang Schuster wrote: > > That doesn't make sense, inch and mm are different units. I'd rather > > add: > > > >\registerunit > > [inHg=inchmercury] > > > >\setupunittext > > [en] > > [inchmercury=inHg] > > It's just a stupid example

[NTG-context] Re: \unit{mercury} renders as m (meter) and \unit{millimetermercury} doesn't work as expected

2023-12-05 Thread Marco Patzer
On Tue, 5 Dec 2023 17:27:59 +0100 Wolfgang Schuster wrote: > None of your examples work because millimetermercury and mercury are > the names for the labels > and the units are accessed with hg and mmhg. Ok, that makes sense. And it works, thanks for the explanation and the quick reply. >

[NTG-context] \unit{mercury} renders as m (meter) and \unit{millimetermercury} doesn't work as expected

2023-12-05 Thread Marco Patzer
Hi! I'm struggling with the rendering of a particular liquid metal: %% renders as m (meter), not as Hg \unit{mercury} %% renders as mm·m, not as mmHg \unit{millimetermercury} This is strange, since both “mercury” and “millimetermercury” are defined in phys-dim.lua. To get mercury

[NTG-context] Re: Bold TeX Gyre Pagella Math results in Math error: parameter 'subshiftdown' with id 48 in style 2 is not set

2023-12-01 Thread Marco Patzer
On Fri, 1 Dec 2023 15:09:32 +0100 Wolfgang Schuster wrote: > You get the same error with Latin Modern as soon as you use a non > predefined font size in combination with bold math. True, thanks for pointing that out. I wasn't aware and frankly, that's rather unexpected behaviour. So to put it

[NTG-context] Re: Bold TeX Gyre Pagella Math results in Math error: parameter 'subshiftdown' with id 48 in style 2 is not set

2023-11-30 Thread Marco Patzer
On Thu, 30 Nov 2023 20:51:42 +0100 Wolfgang Schuster wrote: > Use the \definetypeface command to load the math font. Math fonts > always use special > settings or load additional settings which are missing when you use > \definefontfamily. > > \definetypeface [mainface] [mm] [math] [pagella]

[NTG-context] Re: Bold TeX Gyre Pagella Math results in Math error: parameter 'subshiftdown' with id 48 in style 2 is not set

2023-11-30 Thread Marco Patzer
On Thu, 30 Nov 2023 20:51:42 +0100 Wolfgang Schuster wrote: > > %% comment/remove this line and it works > > \definefontfamily [mainface] [mm] [TeX Gyre Pagella Math] > > Use the \definetypeface command to load the math font. That example was taken straight from

[NTG-context] Bold TeX Gyre Pagella Math results in Math error: parameter 'subshiftdown' with id 48 in style 2 is not set

2023-11-30 Thread Marco Patzer
Hi! I have a strange issue when TeX Gyre Pagella Math is used together with bold text. MWE: \definefontfamily [mainface] [rm] [TeX Gyre Pagella] \definefontfamily [mainface] [ss] [TeX Gyre Heros] %% comment/remove this line and it works \definefontfamily [mainface] [mm] [TeX Gyre Pagella Math]

[NTG-context] Re: Invalid certificate for distribution.contextgarden.net

2023-11-23 Thread Marco Patzer
On Thu, 23 Nov 2023 11:32:45 +0100 Taco Hoekwater wrote: > The command > > context —version > > gives the local installed version. That lists the *local* version, not the most current available version. > Not sure whether there is a clean way to see if there is a remote > newer update

[NTG-context] Re: Invalid certificate for distribution.contextgarden.net

2023-11-23 Thread Marco Patzer
On Thu, 23 Nov 2023 08:58:56 +0100 Taco Hoekwater wrote: > > probably a side effect if moving some more to the (ntg) server in > > the netherlands (also setting up the build there) > > Even if it used the right certificate, it would not work right now > because of the move: there is nothing

[NTG-context] Invalid certificate for distribution.contextgarden.net

2023-11-22 Thread Marco Patzer
Hi! The site https://distribution.contextgarden.net/ uses an invalid certificate: echo | openssl s_client -servername 'distribution.contextgarden.net' -connect 'distribution.contextgarden.net':443 2>/dev/null | openssl x509 -noout -ext subjectAltName X509v3 Subject Alternative Name:

[NTG-context] Re: marginwidths

2023-11-22 Thread Marco Patzer
On Wed, 22 Nov 2023 14:17:29 +0100 Hans van der Meer via ntg-context wrote: > I would like to change the width of the margins on the page. > In the MWE here, the pagelayout does not seem to obey the > \setuplayout command. Why are the margins shown uneffected by > \setuplayout? Works as

[NTG-context] Re: [ how to force hyphenation all words ]

2023-11-16 Thread Marco Patzer
On Thu, 16 Nov 2023 21:40:08 +0100 vm via ntg-context wrote: > Is there a command in context to force every word in a text to > hyphenate? e.g to typeset a text with "ge-dach-ten-streep-jes" Like this? \starttext \hyphenatedword{\samplefile{knuth}} \stoptext Marco

[NTG-context] Vertically aligned alternating fillers

2023-11-16 Thread Marco Patzer
Hi! A while back Wolfgang presented a nice solution for alternating fillers: https://www.mail-archive.com/ntg-context@ntg.nl/msg67677.html It works if the text has a constant width. But if the width changes, the alternating look is lost. Is there a way to align the dots vertically even if the

[NTG-context] textbackground spacing offset

2023-11-16 Thread Marco Patzer
Hi! I'm having problems getting the textbackground spacing offset to work. Example: \setupframedtext [offset=overlay, width=max, depthcorrection=off] \setuptextbackground [location=paragraph, %% offset=overlay, %% does nothing %% backgroundoffset=overlay, %% does

[NTG-context] Re: placing \externalfigure

2023-11-12 Thread Marco Patzer
On Sun, 12 Nov 2023 16:34:00 +0100 Hans van der Meer via ntg-context wrote: > In placing \externalfigure[file] I observe the figure is placed with > its bottom on the baseline, thus: > > [externalfigure] > --- baseline > > I looked into the option list of

[NTG-context] Re: Wiki problem - labels missing from the main diagram on the Page Layout page

2023-11-08 Thread Marco Patzer
On Sun, 5 Nov 2023 18:11:45 + Bruce Horrocks wrote: > When I go to the page layout page on the Contextgarden wiki > > > > the "typesetting areas" diagram is missing its text labels. Fixed. > Any suggestions as to what needs to be changed to

[NTG-context] Re: Using Farad with \unit messes up feet, µ not recognised as prefix

2023-10-03 Thread Marco Patzer
On Tue, 3 Oct 2023 16:27:22 +0200 Marco Patzer wrote: > What about: > > \unit{10 um} > \unit{10 µm} > > Can I assign µ to mean micro (prefix)? Found it: \registerunit [prefix] [µ=micro] \starttext \unit{10 micro meter} \crlf \unit{10 µm} \stoptext Should this be the d

[NTG-context] Re: Using Farad with \unit messes up feet, µ not recognised as prefix

2023-10-03 Thread Marco Patzer
On Tue, 3 Oct 2023 15:42:57 +0200 Wolfgang Schuster wrote: > Marco Patzer schrieb am 03.10.2023 um 12:31: > > Hi! > > > > I struggle using the unit Farad (unit of capacitance): > > The unit "farad" exists. You're right \unit{10 Farad} works.

[NTG-context] Using Farad with \unit messes up feet, µ not recognised as prefix

2023-10-03 Thread Marco Patzer
Hi! I struggle using the unit Farad (unit of capacitance): \starttext %% prints 10 10 ft \unit{10 F} \unit{20 ft} \registerunit [F=Farad] \setupunittext [Farad=F] %% prints 10 F 20 F⋅t \unit{10 F} \unit{20 ft} \stoptext When registering Farad as new unit it messes up feet. This looks like

Re: [NTG-context] Bug in context

2023-05-13 Thread Marco Patzer via ntg-context
On Sat, 13 May 2023 14:04:49 +0200 Lutz Haseloff via ntg-context wrote: > When I invoke context with parameter --ansi, the logfile remains > empty. I can confirm: https://www.mail-archive.com/ntg-context@ntg.nl/msg90303.html Marco

Re: [NTG-context] \typefile not including file and returning success

2023-02-21 Thread Marco Patzer via ntg-context
On Wed, 21 Dec 2022 13:17:15 +0100 Hans Hagen via ntg-context wrote: > The next upload will have: > > \adddefaultsuffix[foo,{},crap] > \adddefaultsuffix[{}] > > \typefile{./crapcrap} > \typefile{crapcrap} > > which someone has to document on the wiki Apologies for taking so long. But I just

Re: [NTG-context] \typefile not including file and returning success

2022-12-21 Thread Marco Patzer via ntg-context
On Wed, 21 Dec 2022 13:17:15 +0100 Hans Hagen via ntg-context wrote: > > But context returning success when it clearly doesn't include the > > file is unfortunate. The missing file might go completely unnoticed. > > I'd expect an error there. > The next upload will have: > >

Re: [NTG-context] \typefile not including file and returning success

2022-12-17 Thread Marco Patzer via ntg-context
On Sat, 17 Dec 2022 10:41:11 -0800 skyhorse--- via ntg-context wrote: > The context wiki says: > "When no file extension is specified the extension .tex is assumed." It's not on the page for typefile: https://wiki.contextgarden.net/Command/typefile And that surely makes sense for TeX

Re: [NTG-context] \typefile not including file and returning success

2022-12-17 Thread Marco Patzer via ntg-context
On Sat, 17 Dec 2022 16:25:01 +0100 Otared Kavian via ntg-context wrote: > If I create a file named « bar.txt » then > > \starttext > Nothing to say\dots > > \typefile{bar.txt} > > \stoptext > > gives the correct result. I can confirm that. > However ConTeXt seems to dislike \typefile{bar}

[NTG-context] \typefile not including file and returning success

2022-12-17 Thread Marco Patzer via ntg-context
Hi! In the following example the file “bar” is not included: # create file “bar” echo Bar > bar # t.tex \starttext Foo \typefile{bar} \stoptext Then run context --errors='*' t.tex The text “bar” is not included in the PDF, only Foo is. The log file shows: verbatims > file

Re: [NTG-context] cannot update ConTeXt to 2022.09.16

2022-09-21 Thread Marco Patzer via ntg-context
On Mon, 19 Sep 2022 17:16:19 +0200 Pablo Rodriguez via ntg-context wrote: > Could anyone confirm the issue? I can confirm. On a fresh install I'm getting 2022.09.11 20:44 Marco ___ If your question is of

Re: [NTG-context] [secure site not available]

2022-09-15 Thread Marco Patzer via ntg-context
On Wed, 14 Sep 2022 19:19:05 +0200 Pablo Rodriguez via ntg-context wrote: > https://lmtx.pragma-ade.nl, https://pragma-ade.nl and > https://pragma-ade.com seem to use a certificate that is only valid > for https://lmtx.pragma-ade.com (according to Firefox). Correct. This is a misconfigured

Re: [NTG-context] Typearea module fails with “Missing number”

2022-08-29 Thread Marco Patzer via ntg-context
On Mon, 29 Aug 2022 09:30:34 +0200 Marco Patzer via ntg-context wrote: > The typearea module fails on LMTX (runs ok with MkIV): > > tex error > tex error on line 89 in file > /usr/local/share/context-lmtx/tex/texmf-modules/tex/context/third/typearea/t-typearea.tex: &

[NTG-context] Typearea module fails with “Missing number”

2022-08-29 Thread Marco Patzer via ntg-context
Hi! The typearea module fails on LMTX (runs ok with MkIV): tex error > tex error on line 89 in file /usr/local/share/context-lmtx/tex/texmf-modules/tex/context/third/typearea/t-typearea.tex: Missing number, treated as zero LMTX 2022.08.25 19:21 Marco

[NTG-context] Database of translations (was: Simple question)

2022-05-10 Thread Marco Patzer via ntg-context
On Tue, 10 May 2022 00:15:30 +0200 Gerben Wierda via ntg-context wrote: > What is the easiest way to have a ‘database’ of translations for > strings and maybe links? Here's an idea: \usemodule [translate] %% \mainlanguage [nl] \assigntranslation [en=alpha, nl=beta]\to\TRfoo \translateinput

Re: [NTG-context] Switching fonts changes framedtext justification

2022-04-03 Thread Marco Patzer via ntg-context
On Sat, 2 Apr 2022 17:36:35 -0700 Thangalin via ntg-context wrote: > The following code produces framed text areas, each having different > justification: > > […] > How would you ensure that both text areas remain fully justified? I don't have that Emoji font, but replacing it with other

Re: [NTG-context] tilde character

2022-03-14 Thread Marco Patzer via ntg-context
On Mon, 14 Mar 2022 18:36:08 +0100 Henning Hraban Ramm via ntg-context wrote: > How do I get the default tilde character from a font? \starttext \startasciimode a~b \stopasciimode a\textasciitilde b \stoptext Marco

[NTG-context] Errors compiling the MetaFun manual

2022-03-12 Thread Marco Patzer via ntg-context
Hi! I tried to compile the MetaFun manual from /doc/context/sources/general/manuals/metafun and ran into a few issues. I don't know if that's expected or if it's supposed to work on a current LMTX. Attached are the first two issues. It takes a while to boil it down to MWEs. Let me know if I

Re: [NTG-context] \asciimode and MetaPost in LMTX result in “Isolated expression”

2022-03-12 Thread Marco Patzer via ntg-context
On Sat, 12 Mar 2022 22:27:38 +0100 Henning Hraban Ramm via ntg-context wrote: > My current and most MP-heavy project so far, fails in asciimode with > "Extra }, or forgotten \endgroup" You can't just run “normal” projects with \asciimode. Chances are, constructs are being used that are invalid

Re: [NTG-context] \asciimode and MetaPost in LMTX result in “Isolated expression”

2022-03-12 Thread Marco Patzer via ntg-context
On Sat, 12 Mar 2022 15:51:16 +0100 Hans Hagen wrote: > you can try this > (in cont-new.tex): > > \prependtoks > \setcatcodetable\ctxcatcodes > \to \everyMPgraphic > > and then do lots of tests with and without asciimode so see if this > doesn't interfere I run almost every document with

Re: [NTG-context] \asciimode and MetaPost in LMTX result in “Isolated expression”

2022-03-12 Thread Marco Patzer via ntg-context
On Mon, 31 Jan 2022 20:02:42 +0100 Marco Patzer via ntg-context wrote: > LMTX seems to have an issue with \asciimode and MetaPost: > > \asciimode > \starttext > \startMPcode > fill unitsquare scaled 2cm; > \stopMPcode > \stoptext > > Results in: >

Re: [NTG-context] Few quick questions

2022-03-08 Thread Marco Patzer via ntg-context
On Tue, 08 Mar 2022 20:45:17 +0100 Christoph Hintermüller via ntg-context wrote: > Hans indicated a tool, a program, which allows to verify that that > all start* stop* tag pairs are symmetric and placed in correct > order. I just cant remember how it is called. Can anybody help > here?

Re: [NTG-context] PageNumber in MetaFun

2022-03-02 Thread Marco Patzer via ntg-context
On Wed, 2 Mar 2022 13:15:18 +0100 "Thomas A. Schmitz via ntg-context" wrote: > try "RealPageNumber" instead of "PageNumber." That works. Thanks for the quick reply. Marco ___ If your question is of interest to

[NTG-context] PageNumber in MetaFun

2022-03-02 Thread Marco Patzer via ntg-context
Hi! Has something changed regarding PageNumber? Take the following example: \starttext foo\page \startMPcode if PageNumber==1: fill unitsquare scaled 1cm; elseif PageNumber==2: fill fullcircle scaled 2cm; fi \stopMPcode \stoptext LMTX 2022.01.21 20:13 produces a

[NTG-context] \asciimode and MetaPost in LMTX result in “Isolated expression”

2022-01-31 Thread Marco Patzer via ntg-context
Hi! LMTX seems to have an issue with \asciimode and MetaPost: \asciimode \starttext \startMPcode fill unitsquare scaled 2cm; \stopMPcode \stoptext Results in: metafun > log > error: Isolated expression metafun > log > metapost> trace > E.dash.patterns metapost

Re: [NTG-context] Defining new float types fails in LMTX

2022-01-18 Thread Marco Patzer via ntg-context
On Sun, 16 Jan 2022 16:53:16 +0100 Marco Patzer via ntg-context wrote: > Still an issue with 2022.01.15 17:29. Fixed as of 2022.01.18 10:48. Thanks Hans. Marco ___ If your question is of interest to others as w

Re: [NTG-context] Defining new float types fails in LMTX

2022-01-16 Thread Marco Patzer via ntg-context
On Fri, 10 Dec 2021 18:22:46 +0100 Marco Patzer via ntg-context wrote: > On Fri, 10 Dec 2021 17:01:26 +0100 > Hans Hagen wrote: > > > no example code > > The MWE was included in the OP on 2021-10-30. But here it is again: Still an issue with 202

Re: [NTG-context] local notes, "serried" (paragraph) or column style.

2021-12-29 Thread Marco Patzer via ntg-context
On Wed, 29 Dec 2021 08:29:34 -0300 Youssef Cherem via ntg-context wrote: > I've tried to implement some sort of affiliation description with > local notes. I'd like them to be either in a single paragraph or in > columns (e.g., 3), but the options `serried` or `n=3` don't seem to > work for

Re: [NTG-context] Using a system font

2021-12-27 Thread Marco Patzer via ntg-context
On Sun, 26 Dec 2021 21:21:10 +4000 jdh via ntg-context wrote: > \starttext >I want to use the Mathjax_Fraktur font, which the font-manager on > Ubuntu reports that it has. >{\switchtobodyfont[Mathjax_Fraktur] .. but, this text doesn't show > up in Mathjax_Fraktur.} > > \stoptext Try:

Re: [NTG-context] Errors in source files return success

2021-12-26 Thread Marco Patzer via ntg-context
On Thu, 18 Nov 2021 19:27:25 +0100 Marco Patzer via ntg-context wrote: > Is there a way to return failure if *any* error is encountered or > do they need to be enabled each individually? A solution is to use patterns (supported in the upcoming upload): \enabledirectives [logs.

Re: [NTG-context] upload

2021-12-25 Thread Marco Patzer via ntg-context
On Sat, 25 Dec 2021 12:44:31 +0100 Hans Hagen wrote: > because these are not errors in the sense of 'quit' ... for instance > missing references can be resolved in a second run Ok, but that's what the context runner is for, not? It's smart and knows when it's hitting the last run and if there

Re: [NTG-context] upload

2021-12-25 Thread Marco Patzer via ntg-context
On Sat, 25 Dec 2021 11:55:31 +0100 Hans Hagen wrote: > >mtxrun --autogenerate --script context --autopdf "oeps.tex" > > > > mkiv lua stats > runtime: 0.485 seconds, 1 processed pages, 1 > shipped pages, 2.062 pages/second > mtx-context | fatal error: return code: 1 > > so ... an

Re: [NTG-context] Defining new float types fails in LMTX

2021-12-25 Thread Marco Patzer via ntg-context
On Tue, 30 Nov 2021 15:51:24 +0100 Marco Patzer via ntg-context wrote: > There's an issue with defining new floats in LMTX in combination > with bottom placement. > > The following works in MkIV, but throws an error in LMTX: Short followup: This issue is still present in 2021

Re: [NTG-context] location=outer causes bad page break in LMTX

2021-12-25 Thread Marco Patzer via ntg-context
On Tue, 30 Nov 2021 14:13:52 +0100 Marco Patzer via ntg-context wrote: > In the following example “Lorem ipsum” sits on an otherwise empty > page in LMTX. Output is as expected with MkIV. This is now fixed in the latest version. Thanks Hans.

Re: [NTG-context] upload

2021-12-25 Thread Marco Patzer via ntg-context
On Fri, 24 Dec 2021 19:45:05 +0100 Hans Hagen via ntg-context wrote: > When wrapping up before the weekend I uploaded a new lmtx (bottom > floats fixed afaiks If you mean the issue I posted on 2021-11-30, then no. It still throws an error here on my end. > exit codes more reliable The example

Re: [NTG-context] Errors in source files return success

2021-12-15 Thread Marco Patzer via ntg-context
On Wed, 15 Dec 2021 20:48:29 +0100 Hans Hagen wrote: > You can check in the next upload: > > - The 'failure' that you saw was actually a real lua error because I > hadn't adapted some fancy, a very old 'around' 2006 feature, seldom > used as it's more 'an example of possibilities' code to

Re: [NTG-context] Errors in source files return success

2021-12-15 Thread Marco Patzer via ntg-context
Hi Hans, a followup to our conversation in the meeting: here's an MWE demonstrating that errors aren't passed on to the runner script, except for "logs.errors=missing characters", which in fact do return failure, all others do return success. %% enables logging of errors same as --errors

Re: [NTG-context] Defining new float types fails in LMTX

2021-12-10 Thread Marco Patzer via ntg-context
On Fri, 10 Dec 2021 17:01:26 +0100 Hans Hagen wrote: > no example code The MWE was included in the OP on 2021-10-30. But here it is again: \setupfloat [figure] [default=bottom] %% fails %% [default=top] %% works \definefloat [foo] [foos] [figure] \starttext \startplacefigure

Re: [NTG-context] Defining new float types fails in LMTX

2021-12-10 Thread Marco Patzer via ntg-context
On Tue, 30 Nov 2021 15:51:24 +0100 Marco Patzer via ntg-context wrote: > There's an issue with defining new floats in LMTX in combination > with bottom placement. > > The following works in MkIV, but throws an error in LMTX: I don't know if the error changed or if I copied the

Re: [NTG-context] location=outer causes bad page break in LMTX

2021-12-06 Thread Marco Patzer via ntg-context
On Tue, 30 Nov 2021 14:13:52 +0100 Marco Patzer via ntg-context wrote: > In the following example “Lorem ipsum” sits on an otherwise empty > page in LMTX. Output is as expected with MkIV. Has the interface > changed or may it be a bug in LMTX? Any idea

Re: [NTG-context] Bad linebreak in figure caption

2021-12-03 Thread Marco Patzer via ntg-context
On Fri, 3 Dec 2021 09:14:59 +0100 Taco Hoekwater wrote: > Captions have their own alignment setting: > > \setupcaption[figure][align={verytolerant,stretch}] Thanks. Wikified: https://wiki.contextgarden.net/Command/setuptolerance Is there a good reason why captions (as well as e.g. framed

Re: [NTG-context] Bad linebreak in figure caption

2021-12-02 Thread Marco Patzer via ntg-context
On Mon, 29 Nov 2021 16:44:07 +0100 Marco Patzer via ntg-context wrote: > Why does ConTeXt not break the line between "unnecessary" and "FOO"? Any ideas how to fix this? Marco ___ If your

[NTG-context] Defining new float types fails in LMTX

2021-11-30 Thread Marco Patzer via ntg-context
Hi! Apologies for spamming this list with my all the floaty stuff. There's an issue with defining new floats in LMTX in combination with bottom placement. The following works in MkIV, but throws an error in LMTX: I'm ignoring this; it doesn't match any \if. mtx-context | fatal error:

Re: [NTG-context] Parameter order in float location matters

2021-11-30 Thread Marco Patzer via ntg-context
On Tue, 30 Nov 2021 14:05:23 +0100 Henning Hraban Ramm via ntg-context wrote: > Maybe you could define your own float type for the cases without > caption? I've done that for other options, too, I guess no-caption-floats get a dedicated float type as well now. It's more robust than relying on

[NTG-context] location=outer causes bad page break in LMTX

2021-11-30 Thread Marco Patzer via ntg-context
Hi! In the following example “Lorem ipsum” sits on an otherwise empty page in LMTX. Output is as expected with MkIV. Has the interface changed or may it be a bug in LMTX? \starttext \null\godown [15.5cm] \samplefile{knuth} Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod

Re: [NTG-context] Parameter order in float location matters

2021-11-30 Thread Marco Patzer via ntg-context
On Tue, 30 Nov 2021 13:06:00 +0100 Henning Hraban Ramm via ntg-context wrote: > Well, in {bottom,top,here} it’s the order that TeX should try. “location“ sets the location of the caption as well as the position of the entire float. If you want to influence one, you'll also have to specify the

[NTG-context] Parameter order in float location matters

2021-11-30 Thread Marco Patzer via ntg-context
Hi! Today I discovered that the parameter order in float location matters: \starttext \samplefile{knuth} \startplacefigure [location={top,none}] %% works: float is at the top \externalfigure \stopplacefigure \startplacefigure [location={none,top}] %% top is ignored here

[NTG-context] Bad linebreak in figure caption

2021-11-29 Thread Marco Patzer via ntg-context
Hi! The caption "FOO" runs into the right figure's caption: \setuplayout [width=18.4cm] \setuptolerance [verytolerant, stretch] %% even with stretch \starttext \startplacefigure \startfloatcombination \startplacefigure [title=Unexpectedly unnecessary FOO-BAR whatever]

Re: [NTG-context] Influence location of luametatex-cache

2021-11-29 Thread Marco Patzer via ntg-context
On Mon, 29 Nov 2021 12:07:51 +0100 Henning Hraban Ramm via ntg-context wrote: > > How to influence the location of the cache directory? > > Try to set TEXMFCACHE That's it. Thanks Peter and Henning. Marco ___ If

[NTG-context] Influence location of luametatex-cache

2021-11-29 Thread Marco Patzer via ntg-context
Hi! when LMTX is installed in a read-only location (e.g. /opt) it creates a directory "luametatex-cache" in $HOME. How to influence the location of the cache directory? Marco ___ If your question is of interest to

[NTG-context] Automatic counting groupsuffix for subfigures

2021-11-24 Thread Marco Patzer via ntg-context
Hi! I'd like to use subfigure numbering for floats. This works: \useMPlibrary [dum] \starttext \startplacefigure [location=none] \startfloatcombination [nx=2] \startplacefigure [title=Left, reference=ref:left, group=one, groupsuffix=a] \externalfigure \stopplacefigure

[NTG-context] Errors in source files return success

2021-11-18 Thread Marco Patzer via ntg-context
Hi! ConTeXt can detect issues in the sources and report them on the console with the argument --errors or with \enabledirectives [logs.errors]. The return value is still “0” (=success) even with errors present. Right now I use a script that parses the log file and lets me know if a run has

Re: [NTG-context] Space before/after combinations + centring

2021-11-17 Thread Marco Patzer via ntg-context
On Wed, 17 Nov 2021 20:17:52 +0100 Wolfgang Schuster wrote: > 2. There are no changes to adjust the vertical before and after a > combination environment. That's unfortunate. > Local patches can also be tricky because ConTeXt tries to freeze > the definitions of many user level commands which

[NTG-context] Space before/after combinations + centring

2021-11-17 Thread Marco Patzer via ntg-context
Hi! I'm in the process of converting some projects to LMTX. Combinations lacking “”before” and “after” keys (that place content before/after the *entire* combination, rather than the individual cell pairs), I came up with the following ugliness – which worked for longer than it deserved:

Re: [NTG-context] Ampersand in \unprotect fails in LMTX

2021-07-09 Thread Marco Patzer
On Fri, 9 Jul 2021 14:29:20 +0200 Hans Hagen wrote: > > As \& works for MkIV as well as LMTX, there's an easy workaround. > > But maybe this isn't intended behaviour and needs checking. > intended ... author passes different through the system in lmtx > (better) Apparently not only author. Also

[NTG-context] Ampersand in \unprotect fails in LMTX

2021-07-09 Thread Marco Patzer
Hi! the following example compiles with MkIV but fails in LMTX: \unprotect \setupinteraction [\c!author={Foo & Bar}] %% {Foo \& Bar} works for MkIV and LMTX \protect \starttext\null\stoptext LMTX: 1 \unprotect 2 \setupinteraction 3 [\c!author={Foo & Bar}] 4 >>

Re: [NTG-context] LMTX: different output if dots are used in the file name

2021-07-08 Thread Marco Patzer
On Thu, 8 Jul 2021 10:34:32 +0200 Hans Hagen wrote: > Now, to the issue of names like 10.11.12.13 ... here .13 is the > suffix, like it or not, so in principle we then get > > 10.11.12.log > 10.11.12.tuc > 10.11.12.pdf It's not that I use files without (.tex, .mkiv, ...) suffixes, but your

Re: [NTG-context] LMTX: different output if dots are used in the file name

2021-07-07 Thread Marco Patzer
On Wed, 7 Jul 2021 12:25:29 -0600 Alan Braslau wrote: Thank you for your reply. > Windows, I believe, does not take kindly to filenames containing > multiple dots. Disclaimer: I don't use Windows, I know nothing about Windows. But I downloaded a Windows 10 VM and fired it up, installed LMTX,

Re: [NTG-context] LMTX: different output if dots are used in the file name

2021-07-06 Thread Marco Patzer
On Thu, 28 May 2020 18:18:51 +0200 Hans Hagen wrote: > > LMTX: > > 10.10.10.tex → 10.10 (not even a PDF suffix) > > 10.10.11.tex → 10.10 (file 10.10 is over-written) > > 11.10.11.tex → 11.10 (no suffix) I've checked again with 2021.07.06 18:49 LMTX 10.10.10.tex → 10.10.pdf +

Re: [NTG-context] midi

2021-02-03 Thread Marco Patzer
On Wed, 3 Feb 2021 22:15:59 -0500 Fabrice L wrote: > I usually do images ; if you or the list ever want to see more, the > site https://art-aleatoire.com is to > show my work, and all you can see there is made by me using 100% > MetaFun That is some impressive work!

Re: [NTG-context] Continued chapter numbers

2021-01-07 Thread Marco Patzer
On Thu, 7 Jan 2021 00:02:20 +0100 Wolfgang Schuster wrote: > > \definestructureresetset is the same as \defineresetset. I assume > > that \definestructureresetset is the preferred way. But both will > > work. > > No, \defineresetset is the main command and \definestructureresetset > is a

Re: [NTG-context] Continued chapter numbers

2021-01-06 Thread Marco Patzer
On Thu, 7 Jan 2021 07:09:46 +1100 jbf wrote: > I had searched everywhere on the wiki and in the manuals for > something like this, based on 'reset' but could not find it. AFAIK it's not mentioned in the manuals. But a variant is on the wiki “Independent Section Numbering”:

Re: [NTG-context] Continued chapter numbers

2021-01-06 Thread Marco Patzer
On Wed, 6 Jan 2021 20:24:07 +1100 jbf wrote: > I need chapter numbers to continue sequentially across several parts. > At the moment, when Part 2 begins, it begins with Chapter 1 once > more, while it should be (in continued sequence) Chapter 4. \defineresetset [jbfreset] [] [0] \setuphead

Re: [NTG-context] Part label and chapter numbers

2021-01-04 Thread Marco Patzer
On Tue, 5 Jan 2021 08:32:33 +1100 jbf wrote: > and apologies if you didn't think I provided an MWE. The idea is that people can just copy-paste the code into an editor and keep tweaking. It doesn't have to produce the correct output, but it should compile. If you add an MWE you're more likely

Re: [NTG-context] Part label and chapter numbers

2021-01-04 Thread Marco Patzer
On Mon, 4 Jan 2021 13:22:55 +1100 jbf wrote: > Issue 1: > > Parts need to be called 'Section' (Section 1, section 2 etc.). \setuphead [part] [placehead=yes, bodypartlabel=part] \setuplabeltext [part=Section\nobreakspace] > Issue 2: > > While the above 'sections' are numbered in

Re: [NTG-context] Orphan issue with \startitemize

2020-11-26 Thread Marco Patzer
On Thu, 26 Nov 2020 21:11:25 + Bruce Horrocks wrote: > With \dorecurse{34} all of the items move to the second page even > though only one extra line has been added and there is now quite a > large gap at the bottom of the first page. > > Is there a setting that controls this a bit more

Re: [NTG-context] Subfigures, referencing and resetting counter

2020-11-23 Thread Marco Patzer
On Wed, 18 Nov 2020 20:22:24 +0100 Marco Patzer wrote: > I struggle with referencing subfigures. > > […] Any ideas? Marco ___ If your question is of interest to others as well, please add an entry to

Re: [NTG-context] Section head placement wrong when the after key is used

2020-11-19 Thread Marco Patzer
On Thu, 19 Nov 2020 16:53:52 +0100 Pablo Rodriguez wrote: > On 11/19/20 11:55 AM, Marco Patzer wrote: > > Hi! > > [...] > > What's the reason the section head stays on the previous page when > > the “after” is used and how to fix this? > > Hi Marco, > >

[NTG-context] Section head placement wrong when the after key is used

2020-11-19 Thread Marco Patzer
Hi! In the following example the 2nd section head stays on page one when the “after” key is used. If the blackrule is commented out the section head moves to page two as intended. What's the reason the section head stays on the previous page when the “after” is used and how to fix this?

[NTG-context] Subfigures, referencing and resetting counter

2020-11-18 Thread Marco Patzer
Hi! I struggle with referencing subfigures. Combinations can't be referenced to my knowledge, that's why I went with another float for the inner subfigure. Example: \useMPlibrary[dum] \definefloat [subfigure] [subfigures] [figure] \setupcaptions [subfigure]

Re: [NTG-context] Input file name containing full stop "."

2020-09-09 Thread Marco Patzer
On Wed, 9 Sep 2020 10:56:09 +0200 Christoph Reller wrote: > I am using ConTeXt LMTX Version 2020.09.05 21:18 with an input file > named, e.g., "test.test.tex". When compiling, ConTeXt generates files > "test.log", "test.tua", "test.pdf". > > ConTeXt MKIV used to produce files "test.test.log",

Re: [NTG-context] Store images and text in the right margin

2020-07-03 Thread Marco Patzer
On Fri, 3 Jul 2020 08:40:22 +0200 Fabrice Couvreur wrote: > Thanks, it works but only for a comment and a picture. Indeed, if I > add a comment and an image, the first image is placed on the second > comment. Fabrice > > \starttext > \startuserdata[margintext] > \input ward > \stopuserdata >

Re: [NTG-context] Store images and text in the right margin

2020-07-02 Thread Marco Patzer
On Thu, 2 Jul 2020 17:20:07 +0200 Fabrice Couvreur wrote: Try: > \useMPlibrary[dum] > > \setuppapersize[A4] > > \setuplayout > [width=12cm, >rightmargin=5cm] > > \definemargindata[marginfigure][inright] > \setupmargindata [marginfigure][command=\vbox,align=middle] \setupmargindata

Re: [NTG-context] Using \defineoverlay for a framed text

2020-06-16 Thread Marco Patzer
On Tue, 16 Jun 2020 14:37:17 +0200 Marco Patzer wrote: > On Tue, 16 Jun 2020 14:17:09 +0200 > Willi Egger wrote: > > > I try to use a Metapost drawing as a background to a framed text. — > > I can not make it working though… > > > > \startuniqueMPgraphic{Marki

Re: [NTG-context] Using \defineoverlay for a framed text

2020-06-16 Thread Marco Patzer
On Tue, 16 Jun 2020 14:17:09 +0200 Willi Egger wrote: > I try to use a Metapost drawing as a background to a framed text. — I > can not make it working though… > > \startuniqueMPgraphic{Markings} > %{Markings:\overlaywidth:\overlayheight} fill OverlayBox enlarged 5mm > withcolor blue;

Re: [NTG-context] Installing Modules with ConTeXt LMTX

2020-06-01 Thread Marco Patzer
On Mon, 01 Jun 2020 19:58:59 +0200 Sebastian Miele wrote: > I want to try the t-letter module. I have a fresh install of ConTeXt > LMTX from today. The page https://wiki.contextgarden.net/Modules has > sections "Installation by hand" and "ConTeXt standalone", but no > section on ConTeXt LMTX. >

Re: [NTG-context] mtxrun exit code

2020-05-29 Thread Marco Patzer
On Fri, 29 May 2020 11:20:22 +0200 Hans van der Meer wrote: > I am producing a series of files in a shell script with mtxrun > --autogenerate --script context input Doing exit mtxrun... shows > there is no exit number to test in the shell The exit code from mtxrun works here: printf '%s\n'

  1   2   3   4   5   6   7   8   >