[NTG-context] TeX macro to MP variable

2013-03-16 Thread Marco Patzer
Hi, I am looking for a way to assign the value of a TeX macro to an MP variable. However, this only works the first time, then the value is not updated any longer. Example: \startMPdefinitions size = \somesize ; \stopMPdefinitions \startuseMPgraphic{alpha} fill unitcircle scaled size; \stopu

Re: [NTG-context] TeX macro to MP variable

2013-03-16 Thread Marco Patzer
On 2013–03–16 Thomas A. Schmitz wrote: > I'm not quite sure if this is what you're looking for, but here is > an example how you could do this with \MPvars: > > \def\Circlediameter{15mm} > > \def\setupCircle#1[#2]% > {\getparameters[Circle][diameter=15mm,#2]} > > \setupMPvariables > [myci

Re: [NTG-context] TeX macro to MP variable

2013-03-16 Thread Marco Patzer
On 2013–03–16 Thomas A. Schmitz wrote: > \setupMPvariables > [mycircle] > [diameter=\Circlediameter, > ] MPvariables are local to a particular MP graphic. I need a way to set the variables global to all MPgraphics of that MP instance. Marco signature.asc Description: Digital signature

Re: [NTG-context] TeX macro to MP variable

2013-03-16 Thread Marco Patzer
On 2013–03–16 Wolfgang Schuster wrote: > http://www.ntg.nl/pipermail/ntg-context/2013/071538.html Well, I played with all possible environments, but there is no environment local to a particular MP instance which is re-read on every MP graphic. The only usable environment in this case is MPinitia

Re: [NTG-context] TeX macro to MP variable

2013-03-17 Thread Marco Patzer
On 2013–03–16 Aditya Mahajan wrote: > See the visualcounter module for an alternative way to pass values > from TeX to MP. I see, you create an initialisation graphic and include it where necessary. And it's local to the MP instance. Thanks for the pointer. Marco signature.asc Description: Dig

Re: [NTG-context] TeX macro to MP variable

2013-03-17 Thread Marco Patzer
On 2013–03–16 Hans Hagen wrote: > >Is there a better way? > > grep for \includeMPgraphic Well, I know \includeMPgraphic but the combination of \includeMPgraphic and \MPvar is very creative, indeed. But it's a little tricky to find out what code actually gets included. Obviously there are plenty

Re: [NTG-context] To update or not to update - that is the question...

2013-03-18 Thread Marco Patzer
On 2013–03–17 Jonathan Barchi wrote: > Just curious, does this repo stay up to date the the "official" > updates from garden? I assume that's the goal of the repo, but there is no guarantee that it does. > I've been using (basically) the scripts suggested on the "minimals" > wiki page to update

[NTG-context] 6-sided letter fold (TRYPTICHON) with unequal page size

2018-06-19 Thread Marco Patzer
Hi, I try getting a 6-sided letterfold with unequal page size to work. This is how it's supposed to look like: https://www.saxoprint.co.uk/blog/wp-content/uploads/2013/06/roll-fold-leaflets-02-01.png This is easy with the arranging option TRYPTICHON. *But* the page sizes are not equal and man

Re: [NTG-context] 6-sided letter fold (TRYPTICHON) with unequal page size

2018-06-27 Thread Marco Patzer
On Tue, 19 Jun 2018 22:15:31 +0200 Marco Patzer wrote: > I try getting a 6-sided letterfold with unequal page size to work. > > […] > > How to adapt for the changed page size without an overlapping page 4 > and a page with clearance to the adjacent 6th page? Suggestions >

Re: [NTG-context] 6-sided letter fold (TRYPTICHON) with unequal page size

2018-06-27 Thread Marco Patzer
On Wed, 27 Jun 2018 18:42:40 +0200 Henning Hraban Ramm wrote: > I'd not try that with pages and imposition, but just use two A4 pages > and place my content on them - using layers or maybe column sets. > http://wiki.contextgarden.net/Layers > http://wiki.contextgarden.net/Columns#Column_Sets Sur

Re: [NTG-context] 6-sided letter fold (TRYPTICHON) with unequal page size

2018-06-28 Thread Marco Patzer
On Wed, 27 Jun 2018 20:40:52 +0200 Pablo Rodriguez wrote: > On 06/27/2018 07:54 PM, Wolfgang Schuster wrote: > > This isn’t possible because the imposition mechanism puts the > > finished pages in boxes with the same size. > > Wolfgang, > > isn’t it a case for \definepageshift and \setuppages

[NTG-context] Scale image in MetaPost, maintaining aspect ratio

2018-07-07 Thread Marco Patzer
Hi! How to scale an image in MetaPost, maintaining the aspect ratio (without specifying the height explicitly)? Example: \setupexternalfigures [location=default] \starttext \externalfigure [cow][width=5cm] \startMPcode draw externalfigure "cow" scaled 5cm; \stopMPcode \stoptext Marco

Re: [NTG-context] Scale image in MetaPost, maintaining aspect ratio

2018-07-07 Thread Marco Patzer
On Sat, 7 Jul 2018 22:27:51 +0200 Hans Hagen wrote: > On 7/7/2018 8:58 PM, Marco Patzer wrote: > > Hi! > > > > How to scale an image in MetaPost, maintaining the aspect ratio > > (without specifying the height explicitly)? > > > > Example: > >

Re: [NTG-context] Scale image in MetaPost, maintaining aspect ratio

2018-07-07 Thread Marco Patzer
On Sat, 7 Jul 2018 14:27:38 -0600 Alan Braslau wrote: > For "historic" reasons, > draw externalfigure "cow" scaled 5cm ; > normalizes the figure to a square. This will not be changed as it is a > very old feature of MetaFun. > > The solution is > draw rawtextext("\externalfigure[cow]") x

Re: [NTG-context] Scale image in MetaPost, maintaining aspect ratio

2018-07-08 Thread Marco Patzer
On Sun, 8 Jul 2018 10:39:52 +0200 Hans Hagen wrote: > On 7/8/2018 1:45 AM, Marco Patzer wrote: > > On Sat, 7 Jul 2018 14:27:38 -0600 > > Alan Braslau wrote: > > > >> For "historic" reasons, > >> draw externalfigure "cow" scaled

[NTG-context] Shading and transparency

2018-07-11 Thread Marco Patzer
Hi! It's shadings and transparency again. For most things transparency is not required since the background colour (white) can be used instead, to achieve the same effect (thanks Hans for the reimplementation/cleanup a while ago). For one use case I worked around this by including an external fil

Re: [NTG-context] Shading and transparency

2018-07-11 Thread Marco Patzer
On Wed, 11 Jul 2018 23:11:31 +0200 Hans Hagen wrote: > > Is there a method that does not require an external file or > > pre-processing? Using the external file works. Just wondering if > > there's a better - more integrated - way. > i guess that with some experimenting you can come close but t

Re: [NTG-context] Shading and transparency

2018-07-12 Thread Marco Patzer
On Thu, 12 Jul 2018 11:21:45 +0200 Hans Hagen wrote: > > For the old implementation (pre 2016-ish) I had a working solution > > because shading to transparent colours just worked (at least in my > > case of a simple transparent shade, nothing fancy), but not so any > > longer. With the new implem

Re: [NTG-context] Shading and transparency

2018-07-12 Thread Marco Patzer
On Thu, 12 Jul 2018 22:59:05 +0200 Hans Hagen wrote: > hm, I'm puzzled as a shade doesn't go between colors + transparent > but from one color to another (in the same color space) and > transparency is just a different mechanism > > maybe it was some side effect of chosen values / vectors that g

[NTG-context] Printer requires vectorised contour path for cut contour

2018-09-06 Thread Marco Patzer
Hi! I created a non-rectangular shaped document. The printer requires a cut contour in a particular colour, no problem so far. However, he complained about a missing “single continuous closed vectorised contour path”. The one I provided is an area, not a contour path. I created the path as follow

Re: [NTG-context] Printer requires vectorised contour path for cut contour

2018-09-10 Thread Marco Patzer
On Thu, 6 Sep 2018 17:00:38 +0200 Wolfgang Schuster wrote: > > I created a non-rectangular shaped document. The printer requires a > > cut contour in a particular colour, no problem so far. However, he > > complained about a missing “single continuous closed vectorised > > contour path”. The one

Re: [NTG-context] Creating flyers with ConTeXt

2018-09-21 Thread Marco Patzer
On Fri, 21 Sep 2018 15:27:02 +0200 "Jan U. Hasecke" wrote: > consulting the wiki I found > http://context.aanhet.net/svn/contextman/context-reference/en/co-pagedesign.pdf > and the command \setuparranging [TRYPTICHON]. So I think that I should > be able to make a pdf for a flyer and print it with

Re: [NTG-context] Creating flyers with ConTeXt

2018-09-25 Thread Marco Patzer
On Mon, 24 Sep 2018 22:25:52 +0200 "Jan U. Hasecke" wrote: > On 21.09.18 16:56, Marco Patzer wrote: > > > A while ago I made a corporate flyer with context using the > > TRYPTICHON method. Printing required 3mm bleed. > > Thanks a lot for this template. T

Re: [NTG-context] Creating flyers with ConTeXt

2018-09-26 Thread Marco Patzer
On Tue, 25 Sep 2018 12:57:54 +0200 "Jan U. Hasecke" wrote: > \definemeasure > [bleed] > [3mm] > > I used this value to generalize the A4-flyer dimensions. > > \definepapersize > [A4-flyer] > [width=\dimexpr297mm+2\measured{bleed}\relax, >height=\dimexpr210mm+2\me

[NTG-context] Addressing glyphs in Lua

2018-10-09 Thread Marco Patzer
Hi! I have two questions regarding addressing glyphs in Lua: 1) How to address glyphs in slots as e.g. U+F0029? 2) How to address glyphs by name? Use: \startluacode fonts.handlers.otf.addfeature { name = "foo", type = "substitution", data = { [0xF0029] = 0xF0030 }, -- ← doesn

Re: [NTG-context] Addressing glyphs in Lua

2018-10-09 Thread Marco Patzer
On Tue, 9 Oct 2018 23:36:32 +0200 Hans Hagen wrote: > On 10/9/2018 10:40 PM, Marco Patzer wrote: > > Hi! > > > > I have two questions regarding addressing glyphs in Lua: > > > > 1) How to address glyphs in slots as e.g. U+F0029? > > 2) How

Re: [NTG-context] Addressing glyphs in Lua

2018-10-10 Thread Marco Patzer
On Wed, 10 Oct 2018 10:26:14 +0200 Hans Hagen wrote: > On 10/10/2018 8:46 AM, Marco Patzer wrote: > > On Tue, 9 Oct 2018 23:36:32 +0200 > > Hans Hagen wrote: > > > >> On 10/9/2018 10:40 PM, Marco Patzer wrote: > >>> Hi! > >>> > &g

[NTG-context] \everystarttext in components

2018-11-27 Thread Marco Patzer
Hi! I've got an issue with my documents after updating context (to 2018.11.18 14:07). I believe it has something to do with \everystarttext. But I'm still digging. Question: Is it intended behaviour that \everystarttext doesn't work in components? MWE: \startcomponent * \appendtoks Foobar \to

Re: [NTG-context] \everystarttext in components

2018-11-27 Thread Marco Patzer
On Tue, 27 Nov 2018 18:21:45 +0100 Hans Hagen wrote: > > MWE: > > > > \startcomponent * > >\appendtoks Foobar \to\everystarttext > >\startdocument\null\stopdocument > > \stopcomponent > > > > If the first and last line is commented out, it prints “Foobar”, > > when compiled as a compone

[NTG-context] Language dependency in environment-project file

2018-11-27 Thread Marco Patzer
Hi, I do have a project structure with environment, project and component files. The language of the individual documents is defined in the components using \setupdocument [language=sv] The environment needs to adjust language-dependent settings. However, when the environment file is read,

Re: [NTG-context] \everystarttext in components

2018-11-27 Thread Marco Patzer
On Tue, 27 Nov 2018 18:42:51 +0100 Wolfgang Schuster wrote: > > Has that changed over the course of the last year or always been > > that way? > > This was always the case. OK, I'm wondering why I set it up that way back then. I'm sure I tested it. But I don't remember. > > ... it's not a go

Re: [NTG-context] Language dependency in environment-project file

2018-11-27 Thread Marco Patzer
On Tue, 27 Nov 2018 21:41:52 +0100 Wolfgang Schuster wrote: > > A nudge in the right direction appreciated. > > \appendtoks >   \mainlanguage[\documentvariable{language}]% > %\doifdocumentvariable{language}{\mainlanguage[\documentvariable{language}]}% > \to \everysetupdocument That's basical

Re: [NTG-context] Language dependency in environment-project file

2018-11-27 Thread Marco Patzer
On Tue, 27 Nov 2018 22:05:27 +0100 Wolfgang Schuster wrote: > > But even your solution doesn't work here. Did you try it in the > > example project file? > > \startenvironment [*] > > \startsetups [itemgroup:en] >   \setupitemgroup [itemize] [i] > \stopsetups > > \startsetups [itemgroup:sv]

Re: [NTG-context] Language dependency in environment-project file

2018-11-27 Thread Marco Patzer
On Tue, 27 Nov 2018 22:41:25 +0100 Wolfgang Schuster wrote: > > With named setups I need to specify a name for each occurrence and > > gather them at the end. This is not as clean. Is it possible e.g. to > > add something to an already existing setup instead of creating a new > > one every time?

Re: [NTG-context] \everystarttext in components

2018-11-28 Thread Marco Patzer
On Wed, 28 Nov 2018 09:12:45 +0100 Hans Hagen wrote: > On 11/27/2018 9:40 PM, Marco Patzer wrote: > > On Tue, 27 Nov 2018 18:42:51 +0100 > > Wolfgang Schuster wrote: > > > >>> Has that changed over the course of the last year or always been > >>&

Re: [NTG-context] Language dependency in environment-project file

2018-11-28 Thread Marco Patzer
On Wed, 28 Nov 2018 09:20:49 +0100 Hans Hagen wrote: > An alternative is to use system modes: > > \mainlanguage[nl] > > % \startmode[*en] > % \setupitemize[n] > % \stopmode > > % \startmode[*nl] > % \setupitemize[a] > % \stopmode > > % \startmode[*de] > % \setupitemize[i] > % \sto

Re: [NTG-context] Language dependency in environment-project file

2018-11-29 Thread Marco Patzer
On Thu, 29 Nov 2018 20:30:53 +0100 Wolfgang Schuster wrote: > Below is a improved version of the token method which works with the > new beta. > > \startenvironment [*] > > \definetokenlist [english] % optional because \starttokenlist > \definetokenlist [swedish] % checks if the token lists exi

[NTG-context] Text running of the page with default=top float paremeter

2018-12-05 Thread Marco Patzer
Hi! I've got a problem with text running off the page. The culprit is the "default=top" float parameter. Is this expected behaviour? Slightly OT bonus question: What does the “default=auto” parameter do? I added that years ago and have not found documentation what it actually does. I actually hav

Re: [NTG-context] Text running of the page with default=top float parameter

2018-12-05 Thread Marco Patzer
On Wed, 5 Dec 2018 13:44:53 +0100 Marco Patzer wrote: > I've got a problem with text running off the page. The culprit is > the "default=top" float parameter. Is this expected behaviour? > > Slightly OT bonus question: What does the “default=auto” parameter > do? I

[NTG-context] Ending strings with non-break space in lang-txt.lua

2018-12-05 Thread Marco Patzer
Hi! I've got a few unfortunate line breaks in my documents. In particular, breaks are introduced in between the string “page” and the number: See figure 1 at page 2. The reason is that many strings in lang-txt.lua end in a space, rather than a non-break space: ["atpage"]={ ["labels"]={

Re: [NTG-context] Ending strings with non-break space in lang-txt.lua

2018-12-06 Thread Marco Patzer
On Thu, 6 Dec 2018 09:34:57 +0100 Hans Hagen wrote: > > Also, how about: > > > > \at{\labeltext{atpage}}[#1] > > indeed, that is the command to use Don't get too hung up on that command. That was just a quick way to demonstrate the point and create an MWE. > can you experiment with this >

[NTG-context] Multiple image conversions

2018-12-16 Thread Marco Patzer
Hi! I wonder if/how it's possible to specify multiple image conversions. Example: \startluacode local format = string.format local function degradejpg(oldname, newname) local s = format("gm convert -strip -quality 75%% -resize '300x300>' %s %s", oldname, newname) os.execute(s) end

[NTG-context] Itemize lists run into floats - how to add additional spacing

2018-12-19 Thread Marco Patzer
Hi! The bullet of itemize lists runs into the boxes and caption of floats. How to add spacing so the bullet doesn't touch the float? Example: \setupexternalfigures [location=default] \setupfloat [figure] [default=left] \setupitemize [packed, autointro] \starttext \startitemize \star

Re: [NTG-context] Itemize lists run into floats - how to add additional spacing

2018-12-19 Thread Marco Patzer
On Wed, 19 Dec 2018 18:29:33 +0100 Hans Hagen wrote: > \setupfloat >[figure] >[default=left,margin=1cm] Thanks for the eye-opener. I realised I applied the margin on the item group instead of the float. Sometimes it's the simple things… Marco

[NTG-context] Automatic thousands separation in \unit

2019-01-31 Thread Marco Patzer
Hi! I'm wondering if there's a way to have automatic thousands separation in the \unit command? \spaceddigits does that, but it doesn't work inside \unit. And using both would be quite verbose to write. Example: \starttext %% no thousands separation \unit{123456789 volt} %% manual thousand

Re: [NTG-context] Automatic thousands separation in \unit

2019-02-05 Thread Marco Patzer
On Thu, 31 Jan 2019 13:43:13 +0100 Otared Kavian wrote: Sorry for the late response. > Can this give what you wish? > > \define[2]\myunit{\spaceddigits{#1}\unit{#2}} > \starttext > \myunit{123456789}{volt} > \stoptext That's a way to solve it, yes. But I'd prefer it to be integrated into the

[NTG-context] context --ansi creates empty log file

2019-02-08 Thread Marco Patzer
Hi! Is it expected behaviour that --ansi creates an empty log file? Example: %% foo.tex \startext\null\stoptext # context foo # wc -c foo.log 7501 foo.log # context --ansi foo # wc -c foo.log 1 foo.log ctx 2019.01.28 16:58 Marco

Re: [NTG-context] Metapost graphic in setupbackground

2019-02-08 Thread Marco Patzer
On Fri, 8 Feb 2019 12:36:16 +0100 "Jan U. Hasecke" wrote: > \definelayer[kreisbackground][width=70mm,height=70mm] \definelayer[kreisbackground][width=70mm,height=70mm, state=repeat] start: layer appears only on the current page stop : layer doesn't show up repeat : layer prints on all

[NTG-context] Bad names

2019-02-08 Thread Marco Patzer
Hi! I was wondering what context considers a “bad” file name and what consequences that might have. From workflows-mkiv.pdf: “Bad names are reported and suitable action can be taken” Indeed, every run context tells me how many files are badly named: mkiv lua stats > graphics processing tim

Re: [NTG-context] Bad names

2019-02-09 Thread Marco Patzer
On Fri, 8 Feb 2019 23:26:21 +0100 Hans Hagen wrote: > On 2/8/2019 10:22 PM, Marco Patzer wrote: > > > What is a bad name for context? Does it have any consequences if > > badly named files are used? Just being curious. > Bad names are names that can result i a miss whe

Re: [NTG-context] Automatic thousands separation in \unit

2019-02-09 Thread Marco Patzer
On Tue, 5 Feb 2019 12:22:29 +0100 Marco Patzer wrote: > Is there a way to hook the \spaceddigits into \unit somehow? I tried to add \spaceddigits to the \unit command, but it didn't work. If someone has an idea how to do that, I'd greatly appre

[NTG-context] State of the reference manual contextref.pdf

2019-02-10 Thread Marco Patzer
Hi! I'm wondering about the state of the reference manual contextref.pdf. The wiki states “ConTeXt reference manual. This is the most comprehensive and up-to-date general manual[…]” Date: September 27, 2013 There used to be SVN access on foundry.supelec.fr/projects/contextman, but apparentl

Re: [NTG-context] State of the reference manual contextref.pdf

2019-02-10 Thread Marco Patzer
On Sun, 10 Feb 2019 17:43:09 +0100 Hans Hagen wrote: > that effort was changed in cooking up smaller independent manuals ... Which I personally like. It provides more in depth knowledge. > that ref manual still applies to much (encodings and fonts have > changed of course) I know about the sta

Re: [NTG-context] State of the reference manual contextref.pdf

2019-02-11 Thread Marco Patzer
On Mon, 11 Feb 2019 09:11:53 +0100 Taco Hoekwater wrote: > Hi, > > > On 11 Feb 2019, at 07:43, Hans Hagen wrote: > > > > > >> The wiki should reflect that, at least the old repo information > >> (foundry.supelec.fr) should go. The manual can stay. But before > >> removing the info on the wi

Re: [NTG-context] degrade module

2019-02-14 Thread Marco Patzer
On Thu, 14 Feb 2019 20:49:43 +0100 Lutz Haseloff wrote: > I wanted to use the degrade module with recent ConTeXt and LuaTeX. > The minimal example from the degrade manual gives an error. > See the attached log. > Is there any chance to get the module working again? I never used the degrade modul

Re: [NTG-context] degrade module

2019-02-14 Thread Marco Patzer
On Fri, 15 Feb 2019 07:56:31 +0100 Lutz Haseloff wrote: > First i tried the grph-downsample.lua script. > Unfortunately i get an error message > grph-downsample.lua:31: bad argument #2 to 'format' (number has no > integer representation) See attached log file. I remember that error. The script w

Re: [NTG-context] degrade module

2019-02-15 Thread Marco Patzer
On Fri, 15 Feb 2019 10:22:48 +0100 Lutz Haseloff wrote: > but both scripts trow the same error on windows and linux-armhf: > > grph-downsample.lua:32: bad argument #2 to 'format' (number has no > integer representation) It works here on linux-armhf. No Lua error. Maybe the file got mangled duri

Re: [NTG-context] degrade module

2019-02-15 Thread Marco Patzer
On Fri, 15 Feb 2019 11:48:51 +0100 Lutz Haseloff wrote: > Your Module with wrapper finally works for me as expected. Great to hear it's finally working. > Will it find its way into the distribution as an enhanced degrade > module? Probably not, for the following reasons: - It's 99% Peter's c

Re: [NTG-context] degrade module

2019-02-18 Thread Marco Patzer
On Sun, 17 Feb 2019 12:14:14 +0100 Peter Münster wrote: > On Fri, Feb 15 2019, Marco Patzer wrote: > > > - It's 99% Peter's code, he's the maintainer of the module and > > probably he should just fix his code. > > Done. > > > > - My m

Re: [NTG-context] Frame with Color

2019-02-18 Thread Marco Patzer
On Mon, 18 Feb 2019 12:26:45 + Ursula Hermann wrote: > \framed > [background=color,backgroundcolor=red, >foreground=color,foregroundcolor=white foreground=color,foregroundcolor=white, > frame=off] > {\bf Wichtig} Marco __

Re: [NTG-context] Frame

2019-02-19 Thread Marco Patzer
On Tue, 19 Feb 2019 13:01:35 + Ursula Hermann wrote: > I have: > \framed > [height=3em, >width=.5\textwidth, >foregroundcolor=red, >framecolor=blue, >rulethickness=2pt, >background=color, >backgroundcolor=green] > \starttext > {Ich bin da.\par Du auch} > \stoptext M

Re: [NTG-context] Frame

2019-02-21 Thread Marco Patzer
On Thu, 21 Feb 2019 10:50:21 + Ursula Hermann wrote: > Here is my example: > > \setuppapersize[A5] > \setupcolors[state=start] This is the default, no need to start the colours any longer. > {\framed >[width=10cm, >background=color,backgroundcolor=darkblue, >foreground=color,fo

Re: [NTG-context] Pretty printer for matlab

2019-02-21 Thread Marco Patzer
On Thu, 21 Feb 2019 14:25:03 +0100 Otared Kavian wrote: > Is there a pretty printer file to typeset Matlab codes? How about Aditya's vim module? It supports Matlab: \usemodule [vim] \definevimtyping [matlab] [syntax=matlab] \starttext \startmatlab … \stopmatlab \stoptext Marco __

Re: [NTG-context] Pretty printer for matlab

2019-02-21 Thread Marco Patzer
On Thu, 21 Feb 2019 15:10:27 +0100 Otared Kavian wrote: > Thanks for pointing to that module, which I didn't know because I > never use vim… I just tested it and seems fine, but I would need to > modify some of the keywords of Matlab in order to adapt them to > Scilab. However I didn't find where

Re: [NTG-context] Frame

2019-02-21 Thread Marco Patzer
On Thu, 21 Feb 2019 18:24:29 +0100 Wolfgang Schuster wrote: > > \startprettyblock > >\noindentation > > You don’t need \noindentation when you add “next” to the indenting > options. That's even better (meaning cleaner source). I didn't know that option. Marco

Re: [NTG-context] Distance between two Columns

2019-02-28 Thread Marco Patzer
On Thu, 28 Feb 2019 10:43:48 + Ursula Hermann wrote: > I have the following example. I would like to have two columns that > are in the distance small. I'm not sure if I understand you correctly. You want to change the distance between the columns? That can be done with: \setupcolumns

[NTG-context] Spacing after combination

2019-07-16 Thread Marco Patzer
Hi! Is there a way to influence the spacing after a combination is placed? \useMPlibrary [dum] \starttext \startcombination [2*2] \startcontent \externalfigure \stopcontent \startcaption Foo\stopcaption \startcontent \externalfigure \stopcontent \startcaption Bar\stopcaption

Re: [NTG-context] Spacing after combination

2019-07-16 Thread Marco Patzer
On Tue, 16 Jul 2019 21:09:15 +0200 Wolfgang Schuster wrote: > A alternative to using floats is to put the combination in a > linecorrection environment, i.e. > > \startlinecorrection >   \startcombination [2*2] >   ... >   \stopcombination > \stoplinecorrection > > or > > \startlinecorrect

[NTG-context] Using \currentreferencenumber triggers “has a hidden number” in log file

2019-07-18 Thread Marco Patzer
Hi, I use \enabletrackers [structures.referencing.empty] to catch references by number to sections without a number. The log file contains “has a hidden number…” in that case. I have a command that uses \currentreferencenumber which triggers the “has a hidden number…” warning in the log fi

[NTG-context] Images run into each other when using side floats

2019-10-30 Thread Marco Patzer
Hi! Some images run into each other when using floats. The following example illustrates this. The second image (or frame) runs into the side figure frame. How to prevent this? \setupfloat [figure] [default=left] \starttext \samplefile{knuth} \startplacefigure [title=Foo] \framed [width

Re: [NTG-context] Images run into each other when using side floats

2019-10-30 Thread Marco Patzer
On Wed, 30 Oct 2019 11:55:17 -0400 (EDT) Aditya Mahajan wrote: > On Wed, 30 Oct 2019, Marco Patzer wrote: > > > Hi! > > > > Some images run into each other when using floats. The following > > example illustrates this. The second image (or frame) runs into the

Re: [NTG-context] Images run into each other when using side floats

2019-10-30 Thread Marco Patzer
On Wed, 30 Oct 2019 18:48:43 +0100 Wolfgang Schuster wrote: > Marco Patzer schrieb am 30.10.2019 um 17:16: > > On Wed, 30 Oct 2019 11:55:17 -0400 (EDT) > > Aditya Mahajan wrote: > > > >> On Wed, 30 Oct 2019, Marco Patzer wrote: > >> > >>> H

Re: [NTG-context] Watchmode

2019-11-29 Thread Marco Patzer
On Fri, 29 Nov 2019 11:07:01 +0100 Denis Maier wrote: > is there a watchmode for ConTeXt? I'm not aware of such a feature. > So that I can it once and ConTeXt will re-typeset a file once > there are changes? Idea: file='somefile.tex' while true; do inotifywait --event modify "$file" conte

Re: [NTG-context] mailing list behaviour (was: Spurious newlines at beginning of startstop pair)

2019-11-29 Thread Marco Patzer
On Fri, 29 Nov 2019 12:10:46 +0100 Henning Hraban Ramm wrote: > The problem seems to be that traditional mailing lists like this just > don’t work with modern security standards. > > I didn’t check how secure NTG’s mail server is configured, but > changing subject and sender of every message is

[NTG-context] Re: \inch not doing the expected thing (what I expect, anyway).

2024-11-13 Thread Marco Patzer
On Mon, 11 Nov 2024 21:30:15 +0100 Wolfgang Schuster wrote: > \unit{2 arcsecond} Arcseconds might print the correct glyph, but would be semantically wrong. I believe the correct approach would be: \unit{2 inch} The question then remains how to configure \unit{2 inch} to produce (depending on

[NTG-context] rfc4180splitter not handling UTF-8 with BOM files

2024-11-23 Thread Marco Patzer
Hi! I run into a problem reading in certain CSV files. I nailed it down to the following example: \starttext \startluacode local mycsvsplitter = utilities.parsers.rfc4180splitter{ separator = ",", quote = '"'} -- fails with -- token call, execute: [ctxlua]:11: attempt to index a ni

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

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 m

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

[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 \startp

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

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] 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] \frame

[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 \exter

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 ot

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

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

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 que

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 t

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] 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

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

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 \enabled

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 luame

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] 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] 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

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 e

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 a

<    2   3   4   5   6   7   8   >