Re: [NTG-context] midi

2021-02-03 Thread Marco Patzer
me impressive work! Well executed and very creative. Thanks for posting that link. Marco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://

Re: [NTG-context] Continued chapter numbers

2021-01-07 Thread Marco Patzer
\definestructureresetset > is a alias for backwards compatibility. Thanks for the info. I updated the wiki. Marco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context

Re: [NTG-context] Continued chapter numbers

2021-01-06 Thread Marco Patzer
l work. Marco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl

Re: [NTG-context] Continued chapter numbers

2021-01-06 Thread Marco Patzer
setuphead [chapter] [sectionresetset=jbfreset] Marco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/nt

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

2021-01-04 Thread Marco Patzer
tually in your code. If it's also in the code: Context doesn't like it. The NO-BREAK SPACEs have to go. Second, you have a space (new line) after “bodypartlabel=part”. Add a comma, percent sign or move the closing bracket after the word “part”. Marco __

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

2021-01-04 Thread Marco Patzer
ent come out as > Chapter 1.1... Chapter 2.1 etc. and I simply want Chapter One, > Chapter Two and so on \setuphead [chapter] [sectionsegments=chapter] \setuphead [section] [sectionsegments=chapter:section] > Any thoughts? An M

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

2020-11-26 Thread Marco Patzer
{2}{100} \stopsetups \setuplayout [setups=mypenalties] Marco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinf

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
this? \setuphead [section] [after=\blackrule] %% works as desired when commenting this one out \starttext \startsection [title=Foo] \samplefile{knuth} \stopsection \startsection [title=Bar] \framed[height=15cm]{} \samplefile{knuth} \stopsection \stoptext Marco

[NTG-context] Subfigures, referencing and resetting counter

2020-11-18 Thread Marco Patzer
the counter for the subfigure to start anew for each new figure? The second issue is the referencing of subfigures. The MWE shows “figure b)” and “figure d)” rather than “figure 1b)” and “figure 2b)”. How to include the outer float counter in the reference? Marco

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

2020-09-09 Thread Marco Patzer
> ConTeXt MKIV used to produce files "test.test.log", "test.test.tua", > "test.test.pdf". Same issue here. (BTW: That's the main reason I'm still on MkIV.) https://mailman.ntg.nl/pipermail/ntg-context/2020/098260.html Marco _

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

2020-07-03 Thread Marco Patzer
][width=\rightmarginwidth,location=high]} \marginfigure{\externalfigure[dummy][width=\rightmarginwidth,location=top]} Marco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist :

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

2020-07-02 Thread Marco Patzer
align={flushleft,broad}] > {{\bf Remarque — }\getinlineuserdata} > \stopsetups > \marginfigure{\externalfigure[dummy][width=\rightmarginwidth]} \marginfigure{\externalfigure[dummy][width=\rightmarginwidth,location=high]} Marco ___

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
gt; withcolor blue; \stopuniqueMPgraphic > > \defineoverlay[Marks]{\useMPgraphic{Markings}} \defineoverlay[Marks][{\useMPgraphic{Markings}}] Marco ___ If your question is of interest to others as well, please add an entry

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

2020-06-01 Thread Marco Patzer
nderstand there is no built-in method. You have to install them manually. Relevant thread: https://mailman.ntg.nl/pipermail/ntg-context/2020/097022.html Marco ___ If your question is of interest to others as well, pl

Re: [NTG-context] mtxrun exit code

2020-05-29 Thread Marco Patzer
ntf '%s\n' '\bye' > good.tex && mtxrun --autogenerate --script context good.tex; echo $? 0 printf '%s\n' '\by' > bad.tex && mtxrun --autogenerate --script context bad.tex; echo $? 1 Marco ___

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

2020-05-28 Thread Marco Patzer
other (neat) stuff and run tests. OK, thanks. No hurry. The production projects run on some oldish 2019 MkIVs anyway. I'm trying to get my feet wet with lmtx and run it on some projects to check how usable and compatible it is. Marco _

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 2

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

2020-05-28 Thread Marco Patzer
rttext \bTABLE \bTR \bTD \samplefile{knuth} \eTD \bTD \samplefile{knuth} \eTD \eTR \eTABLE \stoptext This is LuaMetaTeX, Version 2.06.05 current version: 2020.05.25 23:39 Marco ___ I

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

2020-05-17 Thread Marco Patzer
ght [BufferStyle] [style=smallitalic, color=blue] \startbuffer \samplefile{knuth} \stopbuffer \starttext \samplefile{knuth} \getbuffer \samplefile{knuth} \stoptext Marco ___ If your question is of inter

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

2020-05-11 Thread Marco Patzer
t; But I'm still getting the same LuaTeX version: I had the same issue. You have to add --context=latest: https://mailman.ntg.nl/pipermail/ntg-context/2020/097651.html Marco ___ If your question is of interest to ot

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
/--context=latest/' first-setup.sh sh ./first-setup.sh . tex/setuptex context --version → current version: 2020.04.30 11:10 Marco ___ If your question is of interest to others as well, please add an entry

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

2019-11-29 Thread Marco Patzer
n of threads would get lost. Why? Threads are arranged by the “References” and “In-Reply-To” headers which are not modified. Marco ___ If your question is of interest to others as well, please add an entry to the Wi

Re: [NTG-context] Watchmode

2019-11-29 Thread Marco Patzer
fy "$file" context --batchmode "$file" done Marco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinf

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
[width=5cm, height=5cm]{} \stopplacefigure \samplefile{ward} \blank \framed [width=4cm, height=4cm]{} \samplefile{knuth} \stoptext context 2019.10.29 15:00 Marco ___ If your question is of interest to others

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

2019-07-18 Thread Marco Patzer
message when checking \currentreferencenumber? Or alternatively 2) Is there a better way to find invisible references? Marco ___ If your question is of interest to others as well, please add an entry to the Wiki

Re: [NTG-context] Spacing after combination

2019-07-16 Thread Marco Patzer
other way, I'd settle for your approach. So far that seems to be the best choice. Thanks for the quick response. Marco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist

[NTG-context] Spacing after combination

2019-07-16 Thread Marco Patzer
, but it would be great if I could do without that float. Marco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context

Re: [NTG-context] Distance between two Columns

2019-02-28 Thread Marco Patzer
I'd write your example as follows: \setuppapersize [A5] \defineframed [tightframed] [width=5cm, %% width=.1\textwidth, align=right] \setupcolumns [distance=.5cm] \starttext \startcolumns \tightframed{Small} \column \tightframed{A really really long line that is split at 5c

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 kno

Re: [NTG-context] Pretty printer for matlab

2019-02-21 Thread Marco Patzer
'm not mistaken. Have you tried using “syntax=scilab”? Marco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-

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 Ma

Re: [NTG-context] Frame

2019-02-21 Thread Marco Patzer
lumn Words, words, words \dots all in the second column. And look ye here! Even more words! \stopcolumns \stoptext Marco ___ If your question is of interest to others as well, please add an entry to the Wiki! mail

Re: [NTG-context] Frame

2019-02-19 Thread Marco Patzer
bin da.\par Du auch} > \stoptext Move the \starttext to the beginning: \starttext \framed [height=3em, width=.5\textwidth, foregroundcolor=red, framecolor=blue, rulethickness=2pt, background=color, backgroundcolor=green] {Ich b

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

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
tribution. - I'm not fluent in Lua and am therefore not the right person to maintain a Lua module. Marco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-conte

Re: [NTG-context] degrade module

2019-02-15 Thread Marco Patzer
degrades jpg as well as png images at the same time. It's a quick hack, but works here, also on armhf. Marco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@n

Re: [NTG-context] degrade module

2019-02-14 Thread Marco Patzer
. The script worked up to a particular context version. I believe a Lua upgrade broke it. The version attached should work. Marco if not modules then modules = { } end modules ['t-downsample'] = { version = 1.001, comment = "companion to grph-inc.mkiv", author= "P

Re: [NTG-context] degrade module

2019-02-14 Thread Marco Patzer
the degrade module. Instead I use the downsample.lua script which works fine with a current beta. Maybe give it a try. Apparently it's not on the wiki and if I remember correctly I got it off the mailing list. Let me know if you can't fin

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

2019-02-11 Thread Marco Patzer
to go with it: > > https://lists.contextgarden.net/mailman/listinfo/wiki I didn't know there's a list for the wiki. Signed up. Marco ___ If your question is of interest to others as well, please add an entr

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

2019-02-10 Thread Marco Patzer
ut before removing the info on the wiki someone needs to confirm there's no repo any longer. Marco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.

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

2019-02-10 Thread Marco Patzer
, but apparently it's permanently down. Where is the manual hosted at the moment? The wiki still points to foundry.supelec.fr: https://wiki.contextgarden.net/Improving_the_manuals Some years ago there was a discussion about moving it to github. But I doubt that has ever taken place. Marco

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
a.1.png” seem perfectly fine file names to me. The files are included without issues, regardless of context's opinion about the name. What is a bad name for context? Does it have any consequences if badly named files are used? Just being curious. Ma

Re: [NTG-context] Metapost graphic in setupbackground

2019-02-08 Thread Marco Patzer
layer prints on all pages next : layer appears on the following page continue : layer appears on all pages except the first > \setupbackgrounds[paper][background=kreisbackground, state=start] \setupbackgrounds[paper][background=kreisba

[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
t to be integrated into the \unit command. It looks cleaner and I don't have to modify the sources to use a different command. Is there a way to hook the \spaceddigits into \unit somehow? Marco ___ If your question is of

[NTG-context] Automatic thousands separation in \unit

2019-01-31 Thread Marco Patzer
thousands separation works \unit{123,456,789 volt} %% automatic thousands separation, but not using \unit \let\spaceddigitsseparator, \spaceddigits{123456789}\,V %% fails, no output \unit{\spaceddigits{123456789} volt} \stoptext Marco

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 thing

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

2018-12-19 Thread Marco Patzer
\startitem Foo \startplacefigure [title=Lorem ipsum dolor sit amet consectetur] \externalfigure [hacker] \stopplacefigure Bar \stopitem \dorecurse{15}{%% \startitem Foobar \stopitem } \stopitemize \stoptext Marco

[NTG-context] Multiple image conversions

2018-12-16 Thread Marco Patzer
each \externalfigure command: %% this works, but it clutters the document and one has to check the %% file type each time \externalfigure [mill] [conversion=degrade.png] Marco ___ If your question is of interest to ot

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

2018-12-06 Thread Marco Patzer
basically replaces the space with a non-break space after the fact. So I wonder if it's not a better solution to fix the initial definitions. But I might be mistaken or I'm overlooking something where this might cause issues. Marco ___

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

2018-12-05 Thread Marco Patzer
not all, strings ending in a space would actually benefit from having it replaced by a non-break space IMO. Example: \def\pageref#1%% {\in{figure}[#1] \labeltext{atpage}\at[#1]} \starttext \hsize 3cm See \pageref{foo}. \page \startplacefigure [referenc

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
ure \stopplacefigure \startplacesmallfigure \externalfigure \stopplacesmallfigure \dorecurse{4}{\samplefile{knuth}} \stoptext Marco ___ If your question is of interest to others as well, please add an entry to the W

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

2018-11-29 Thread Marco Patzer
riable{language}{\mainlanguage[\documentvariable{language}]} > >   \startmodeset >     [*en] {\gettokenlist[english]} >     [*sv] {\gettokenlist[swedish]} >   \stopmodeset > > \stopsetups > > \stopenvironment So that's basical

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

2018-11-28 Thread Marco Patzer
modesets in this project, but mainly in the components. In the environment files it's a bit more tricky because the language is unknown at this point and the system modes trigger the wrong language. But Wolfgang already provided a solution, which works fine. Marco __

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
my mind. Thanks for the quick help. Marco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpa

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

2018-11-27 Thread Marco Patzer
les. 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? Marco __

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

2018-11-27 Thread Marco Patzer
setupdocument That's basically what I've done in my project file (te-proj.tex). At least the code is supposed to do exactly that. But even your solution doesn't work here. Did you try it in the example project file? Marco ___

Re: [NTG-context] \everystarttext in components

2018-11-27 Thread Marco Patzer
... > \stopsetups > > to insert code at the begin of the document. I tried that, to no avail. I posted my actual issue including MWE as a new thread. Thanks for the quick response Hans and Wolfgang. Marco ___ I

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

2018-11-27 Thread Marco Patzer
in the document settings as shown above. A nudge in the right direction appreciated. Marco <> ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl

Re: [NTG-context] \everystarttext in components

2018-11-27 Thread Marco Patzer
not adding content, it was just for the MWE. I'll post another thread about what I intend to achieve. Marco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@

[NTG-context] \everystarttext in components

2018-11-27 Thread Marco Patzer
\to\everystarttext \startdocument\null\stopdocument \stopcomponent If the first and last line is commented out, it prints “Foobar”, when compiled as a component it doesn't. Marco ___ If your question is of interest

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
[0xF0029] = 0xF0030 }, -- ← doesn't work } \stopluacode Marco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-con

Re: [NTG-context] Creating flyers with ConTeXt

2018-09-26 Thread Marco Patzer
ed{shortfold}\relax, \dimexpr\measure{bleed}/2\relax, \dimexpr\measure{bleed}/2-\measure{shortfold}\relax] Marco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist

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
ontext module for the flyer, so it was easy to add content and support different languages. However, this is a very specific module including corporate design and nothing generally usable. I trimmed the specific parts and attached a working file producing a flyer. I left a few bits of the

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

2018-09-10 Thread Marco Patzer
\stoptext > > > > Any clue how to create such a vectorised contour path? > > Use cycle to close the path. > > \starttext >   \startMPcode >     draw origin -- (50mm, 0mm) -- (60mm, 20mm) -- (10mm, 20mm) -

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

2018-09-06 Thread Marco Patzer
as follows: \starttext \startMPcode draw origin -- (50mm, 0mm) -- (60mm, 20mm) -- (10mm, 20mm) -- origin; \stopMPcode \stoptext Any clue how to create such a vectorised contour path? Marco ___ If your question

Re: [NTG-context] Shading and transparency

2018-07-12 Thread Marco Patzer
ernal file overlay then. > > Just run the first example with an old context version. The file > > gradient-t from my last mail was created using inkscape as I don't > > want a single project to depend on two different con

Re: [NTG-context] Shading and transparency

2018-07-12 Thread Marco Patzer
file (uncompressed pdf) look like then Just run the first example with an old context version. The file gradient-t from my last mail was created using inkscape as I don't want a single project to depend on two different context versions. Marco ___

Re: [NTG-context] Shading and transparency

2018-07-11 Thread Marco Patzer
ull that off in ConTeXt, let me know. Marco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpag

[NTG-context] Shading and transparency

2018-07-11 Thread Marco Patzer
the external file works. Just wondering if there's a better - more integrated - way. Marco \definecolor [transparent] [a=multiply, t=1, s=1] \startuseMPgraphic{trans} fill OverlayBox withshademethod "linear" withshadevector (3, 0) %% (white, "transparent"

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
draw rawtextext("\externalfigure[cow]") xsized 5cm ; > where one can use xsized, ysized or xysized (taking a pair). That works indeed. Thanks. Marco ___ If your question is of interest to others as w

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
\stoptext Marco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade

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

2018-06-28 Thread Marco Patzer
a case for \definepageshift and \setuppageshift? That works, indeed. Thank you (and Wolfgang) for the suggestion. Marco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context

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

2018-06-27 Thread Marco Patzer
s quirks), I thought there might be a simple fix. If it's not, then I'll use layers. Thanks for your input. Marco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist :

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
] \blackrule[width=9.7cm]\vfill{\tfd\currentpage} \page \setuppapersize [flyer] [A4, landscape] 10cm:\blank[10mm] \blackrule[width=10cm]\vfill{\tfd\currentpage} \stoptext Marco ___ If your question is of interest to others

Re: [NTG-context] hairline & rules

2018-06-16 Thread Marco Patzer
; or > \hairline[color=red] \setupblackrules [height=1pt, color=blue, width=\textwidth] \starttext \blackrule \blackrule [color=red, height=1ex, width=5cm] \stoptext http://wiki.contextgard

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

2017-11-26 Thread Marco Patzer
%C You should have received a copy of the GNU General Public License 24 %C along with this program. If not, see <http://www.gnu.org/licenses/>. 25 26 \unprotect 27 28 % Lua functions for the core and also for the frontend modules 29 30 >>

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 <kosti...@gmail.com> wrote: > Two hyphens do not replaced on em—dash when dejavu,14pt Use the tlig font feature \definefontfeature [tlig] [default] [tlig=ye

[NTG-context] Documentation for the letter module

2017-03-21 Thread Marco Patzer
://bitbucket.org/wolfs/correspondence/ are from 2012-02-02 and the module seems to have been updated¹ since (2015-08-24). Marco ¹ https://modules.contextgarden.net/cgi-bin/module.cgi/ruid=5489253982/action=view/id=38

Re: [NTG-context] Calculating with \measure

2017-03-19 Thread Marco Patzer
measure{ThreeSmall} \measure{FourSmall} \measure{Big} \measure{TwoBig} \measure{ThreeBig} \measure{FourBig} I deleted the whole mess and went with \dimen. Thanks for the quick response. Marco ___ If your ques

[NTG-context] Calculating with \measure

2017-03-19 Thread Marco Patzer
{mymeasure}]{Foobar} \stoptext Marco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http

  1   2   3   4   5   6   7   8   9   10   >