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'

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

2020-05-28 Thread Marco Patzer
On Thu, 28 May 2020 18:18:51 +0200 Hans Hagen wrote: > > MkIV (everything's predictable and fine): > > 10.10.10.tex → 10.10.10.pdf > > 10.10.11.tex → 10.10.11.pdf > > 11.10.11.tex → 11.10.11.pdf > > > > LMTX: > > 10.10.10.tex → 10.10 (not even a PDF suffix) > >

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

2020-05-28 Thread Marco Patzer
On Thu, 28 May 2020 17:33:19 +0200 Hans Hagen wrote: > On 5/28/2020 2:49 PM, Marco Patzer wrote: > > Hi! > > > > LMTX and MkIV behave differently if dots are used in the file > > name. Example: > > > >printf '%s\n' '\starttext\null\stoptext'

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

2020-05-28 Thread Marco Patzer
On Thu, 28 May 2020 17:33:19 +0200 Hans Hagen wrote: > On 5/28/2020 2:49 PM, Marco Patzer wrote: > > Hi! > > > > LMTX and MkIV behave differently if dots are used in the file > > name. Example: > > > >printf '%s\n' '\starttext\null\stoptext'

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

2020-05-28 Thread Marco Patzer
Hi! LMTX and MkIV behave differently if dots are used in the file name. Example: printf '%s\n' '\starttext\null\stoptext' > foo.10.tex && context foo.10.tex MkIV: → foo.10.pdf LMTX: → foo.pdf Is this intentional? This is LuaMetaTeX, Version 2.06.05 current version: 2020.05.25 23:39 Marco

[NTG-context] LMTX: natural table error namespace 'naturaltablelocal', key ', '

2020-05-28 Thread Marco Patzer
Hi! With LMTX the following example results in setup > error in line 7, namespace 'naturaltablelocal', key ',' setup > error in line 7, namespace 'naturaltablelocal', key ',' The file runs without error in MkIV. Has something changed or is it a bug? \starttext

Re: [NTG-context] Styling of included buffers or files

2020-05-17 Thread Marco Patzer
On Sun, 17 May 2020 18:16:13 +0200 "Jan U. Hasecke" wrote: > I am currently writing a text where I want to include text snippets > either by including files or including buffers. > > What is the best way to style all these included buffers? > > I know that I can do something like this: > >

Re: [NTG-context] Retrieving original value of enviroment variable HOME

2020-05-11 Thread Marco Patzer
On Mon, 11 May 2020 12:50:51 +0200 cont...@vivaldi.net wrote: > so I made a new parallel installation, following exactly instructions > here: > >https://wiki.contextgarden.net/Windows_10_64_bit_Installation_2019 > > I forced 32b version due to some reasons. > > But I'm still getting the

Re: [NTG-context] ConTeXt version stuck at 2020.01.30

2020-05-05 Thread Marco Patzer
On Tue, 5 May 2020 20:38:55 +0200 Wolfgang Schuster wrote: > Marco Patzer schrieb am 05.05.2020 um 20:26: > > Hi! > > > > Has something changed regarding the installation/update procedure? > > ConTeXt seems to be stuck at 2020.01.30 and downloading the newest >

[NTG-context] ConTeXt version stuck at 2020.01.30

2020-05-05 Thread Marco Patzer
Hi! Has something changed regarding the installation/update procedure? ConTeXt seems to be stuck at 2020.01.30 and downloading the newest version results in that very version. Steps to reproduce: rsync -ptv rsync://contextgarden.net/minimals/setup/first-setup.sh . sh ./first-setup.sh .

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

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"

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

[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

[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

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

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

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

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

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

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

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

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

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

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

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

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

[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

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 appreciate. Ma

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

[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

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

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

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

[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

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] 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"]={

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 adde

[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

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

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

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

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

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

[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

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

[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

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

Re: [NTG-context] Addressing glyphs in Lua

2018-10-10 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

[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 }, -- ←

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

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

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

[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

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

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

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

[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

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 "co

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

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

[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

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

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

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 >

[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

Re: [NTG-context] hairline & rules

2018-06-16 Thread Marco Patzer
On Fri, 15 Jun 2018 00:20:23 -0700 "jdh" wrote: > I want to use a colored hairline, but can't get it working and can't > find anything to explain any options or parameters. > > I've tried > > \setuptextrules[rulecolor=red,color=red] > \hairline > or >

Re: [NTG-context] 'lua.registercode' bug in latest beta

2017-11-26 Thread Marco Patzer
On Tue, 7 Nov 2017 11:59:51 +0800 Li Yanrui (李延瑞) wrote: > Using '\ctxloadluafile' can get an error: > > ``` > ..ext/tex/texmf-context/tex/context/base/mkiv/luat-cod.lua:50: bad > argument #1 to 'gmatch' (string expected, got nil) > ``` > > It seems to be caused by 'if

Re: [NTG-context] Two hyphens do not replaced on em—dash when dejavu,14pt

2017-03-31 Thread Marco Patzer
On Fri, 31 Mar 2017 11:46:00 +0300 Kostirya wrote: > Two hyphens do not replaced on em—dash when dejavu,14pt Use the tlig font feature \definefontfeature [tlig] [default] [tlig=yes] Marco

[NTG-context] Documentation for the letter module

2017-03-21 Thread Marco Patzer
Hi! Where can the current documentation for the letter module be found? I seems like it's not included in the distribution (why is it missing?) and http://bitbucket.org/wolfs/correspondence/downloads/correspondence.pdf is (out)dated: 2010-08-27 Furthermore, the latest updates on

Re: [NTG-context] Calculating with \measure

2017-03-19 Thread Marco Patzer
On Sun, 19 Mar 2017 18:18:48 +0100 Wolfgang Schuster wrote: > > Is it possible to calculate with \measure or do I have to resort to > > dimens? Example: > > > > \definemeasure [mymeasure] [4cm] > > \newdimen\mydim \mydim4cm > > > > \starttext > >

[NTG-context] Calculating with \measure

2017-03-19 Thread Marco Patzer
Hi! Is it possible to calculate with \measure or do I have to resort to dimens? Example: \definemeasure [mymeasure] [4cm] \newdimen\mydim \mydim4cm \starttext \framed[width=4cm]{Foobar} \framed[width=\measure{mymeasure}]{Foobar} \framed[width=2\mydim]{Foobar}

Re: [NTG-context] The requested font has no files for the 'tf' alternative

2017-03-15 Thread Marco Patzer
On Wed, 15 Mar 2017 19:26:06 +0100 Wolfgang Schuster wrote: > > Pablo Rodriguez > > 15. März 2017 um 19:10via Postbox > > > > > > How about removing the directory

Re: [NTG-context] The requested font has no files for the 'tf' alternative

2017-03-15 Thread Marco Patzer
On Tue, 14 Mar 2017 23:44:29 +0100 Marco Patzer <li...@homerow.info> wrote: > Your example works for me. But it's still unclear what I'm doing > wrong. According to your explanation this should work: > > \definefontfamily > [mainface] > [rm] > [Caecilia

Re: [NTG-context] The requested font has no files for the 'tf' alternative

2017-03-14 Thread Marco Patzer
On Tue, 14 Mar 2017 21:39:34 +0100 Wolfgang Schuster wrote: > [...] Thanks for the explanation, Wolfgang. > Each font of your collection has its individual name, e.g. the > regular style has the name “Caecilia LT Std Roman” but all styles use > the same name for

Re: [NTG-context] The requested font has no files for the 'tf' alternative

2017-03-14 Thread Marco Patzer
On Mon, 13 Mar 2017 22:10:56 +0100 Pablo Rodriguez <oi...@gmx.es> wrote: > On 03/13/2017 09:55 PM, Marco Patzer wrote: > > On Fri, 10 Mar 2017 17:12:36 +0100 Pablo Rodriguez wrote: > >> [...] > >> \definefontfamily[mainface][rm][Caecilia LT Std-

Re: [NTG-context] The requested font has no files for the 'tf' alternative

2017-03-13 Thread Marco Patzer
On Fri, 10 Mar 2017 17:12:36 +0100 Pablo Rodriguez <oi...@gmx.es> wrote: > On 03/09/2017 10:33 AM, Marco Patzer wrote: > > \definefontfamily > > [mainface] > > [rm] > > [Caecilia LT Std Roman] > > %% doesn't work, either &g

Re: [NTG-context] The requested font has no files for the 'tf' alternative

2017-03-10 Thread Marco Patzer
On Fri, 10 Mar 2017 08:13:59 +0800 Vladimir Lomov wrote: > Some time ago I faced the same problem: I tried to use one of > Microsoft font but it didn't work, the only thing I saw in log was > the same message. I solved the problem by deleting "font cache" >

[NTG-context] The requested font has no files for the 'tf' alternative

2017-03-09 Thread Marco Patzer
Hi! I run into a problem using some fonts. Latin Modern is used instead and ConTeXt displays: selectfont > The requested font 'Caecilia LT Std Roman' has no files for the 'tf' alternative, Latin Modern is used instead. Example: \definefontfamily [mainface] [rm] [Caecilia LT Std Roman]

Re: [NTG-context] There is only german in the little text, why

2016-11-16 Thread Marco Patzer
On Wed, 16 Nov 2016 10:01:08 +0100 "Ursula Hermann" wrote: > Now i have tried another one , but I have only german text in the > PDF. Why? Because the font you use doesn't contain the letter “ἄ”. Switch fonts and it'll work. > mainlanguage[de] Typo ^^

Re: [NTG-context] Framedtext in a float

2016-11-01 Thread Marco Patzer
On Tue, 1 Nov 2016 00:12:37 +0100 Fabrice Couvreur wrote: > How to make the width of framedtext automatically adapts to its > contents. > > […] > > \defineframedtext > [MyFrame] > [before={\blank}, >after={\blank}, >frame=off, >background=MyFrame, >

Re: [NTG-context] A new problem in old TOC

2016-07-15 Thread Marco Patzer
On Fri, 15 Jul 2016 16:27:57 +0200 "Ursula Hermann" wrote: > Now i have tried this one: > > […] Wolfgang said: > 1. it contains 3 \starttext commands, Your example still contains 2 \starttext commands. It doesn't even compile. Fix that first. > 2. there are too

Re: [NTG-context] url with umlaut

2016-07-15 Thread Marco Patzer
On Fri, 15 Jul 2016 07:25:36 -0400 Alan Bowen wrote: > The following link > > \goto{ >

  1   2   3   4   5   6   7   >