[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
  . tex/setuptex
  context --version
  → current version: 2020.01.30 14:13

According to

  https://minimals.contextgarden.net/current/context/

the directory “latest” seems to contain the latest version, rather
than the “beta”. first-setup.sh however uses the “beta” directory.

Has something changed and first-setup.sh hasn't been updated to
reflect that change? Or is something else going on? Adapting
first-setup.sh to mirror from the “latest” directory seems to fetch
the latest version:

  rsync -ptv rsync://contextgarden.net/minimals/setup/first-setup.sh .
  sed -s '/\/bin\/mtxrun/s/--context=beta/--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 to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


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
> > version results in that very version.
> 
> https://mailman.ntg.nl/pipermail/ntg-context/2020/097651.html

I vaguely remember someone mentioning it on the list at some
point, but failed to find it.

Thanks for the pointer. I'm back on track now.

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 / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


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 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 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 / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


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:
> 
> \startcolumns
> \getbuffer[Muenchen]
> \stopcolumns
> 
> Or do something with \defineparagraph
> 
> Is it somehow possible to apply styles to all buffers that gets
> included via \getbuffer by defining a special getbuffer-style?

\setupbuffer has before and after keys which can be used. Example:

\setupbuffer
 [before=\blank\blackrule\startnarrower\BufferStyle,
  after=\stopnarrower\blackrule\blank]

%% alternatively define custom buffers
\definebuffer
 [foobar]

\setupblackrules
  [width=1cm,
   height=1pt,
   color=gray]

\definehighlight
  [BufferStyle]
  [style=smallitalic,
   color=blue]

\startbuffer
  \samplefile{knuth}
\stopbuffer

\starttext
  \samplefile{knuth}
  \getbuffer
  \samplefile{knuth}

\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.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[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
\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
___
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 / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[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
___
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 / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


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' > foo.10.tex && context
> > foo.10.tex
> > 
> > MkIV: → foo.10.pdf
> > LMTX: → foo.pdf
> > 
> > Is this intentional?  
> 
> consider it to be so

That's unfortunate.

1) The editor workflow with simple suffix replacement .tex → .pdf to
   open the corresponding PDF file doesn't work any more with lmtx.
   New logic is needed to find the correct pdf file name.

2) A project (of mine) that uses item numbers as file names
   (containing dots) compile to the same pdf:

   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)
   10.10.11.tex → 10.10 (file 10.10 is over-written)
   11.10.11.tex → 11.10 (no suffix)

MkIV is way more predictable and consistent in that regard.

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 / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


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' > foo.10.tex && context
> > foo.10.tex
> > 
> > MkIV: → foo.10.pdf
> > LMTX: → foo.pdf
> > 
> > Is this intentional?  
> 
> consider it to be so

That's unfortunate.

1) The editor workflow with simple suffix replacement .tex → .pdf to
   open the corresponding PDF file doesn't work any more with lmtx.
   New logic is needed to find the correct pdf file name.

2) A project (of mine) that uses item numbers as file names
   (containing dots) compile to the same pdf:

   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)
   10.10.11.tex → 10.10 (file 10.10 is over-written)
   11.10.11.tex → 11.10 (no suffix)

MkIV is way more predictable and consistent in that regard.

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 / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


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)
> > 10.10.11.tex → 10.10 (file 10.10 is over-written)
> > 11.10.11.tex → 11.10 (no suffix)
> > 
> > MkIV is way more predictable and consistent in that regard.  
> I'll look at it but not today ... first I need to play with some
> 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
___
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 / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


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' '\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
___
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 / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


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.
> 
> The section on ConTeXt standalone mentions a --modules switch to
> first-setup.sh in order to include modules. This cannot work with the
> install.sh from ConTeXt LMTX, as it does not pass any command line
> arguments to mtxrun.

As far as I understand 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, 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 / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


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; \stopuniqueMPgraphic
> 
> \defineoverlay[Marks]{\useMPgraphic{Markings}}

\defineoverlay[Marks][{\useMPgraphic{Markings}}]

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 / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


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{Markings}
> > %{Markings:\overlaywidth:\overlayheight} fill OverlayBox enlarged
> > 5mm withcolor blue; \stopuniqueMPgraphic
> > 
> > \defineoverlay[Marks]{\useMPgraphic{Markings}}  
> 
> \defineoverlay[Marks][{\useMPgraphic{Markings}}]

Better:

\defineoverlay[Marks][\useMPgraphic{Markings}]

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 / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


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 [marginfigure][command=\vbox,align=middle,stack=yes]

> \startsetups [userdata:margintext]
>   \margindata
> [inright]
> [%style=\smallbodyfont,
>  style={\switchtobodyfont[9pt]},
>  width=\rightmarginwidth,

  stack=yes,

>  align={flushleft,broad}]
> {{\bf Remarque — }\getinlineuserdata}
> \stopsetups

> \marginfigure{\externalfigure[dummy][width=\rightmarginwidth]}

\marginfigure{\externalfigure[dummy][width=\rightmarginwidth,location=high]}

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 / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


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
> \marginfigure{\externalfigure[dummy][width=\rightmarginwidth,location=high]}

\marginfigure{\externalfigure[dummy][width=\rightmarginwidth,location=top]}

> \startuserdata[margintext]
>  \input ward
> \stopuserdata
> \marginfigure{\externalfigure[dummy][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 : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


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", "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
___
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 / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Subfigures, referencing and resetting counter

2020-11-18 Thread Marco Patzer
Hi!

I struggle with referencing subfigures. Combinations can't be
referenced to my knowledge, that's why I went with another float for
the inner subfigure. Example:


\useMPlibrary[dum]

\definefloat
  [subfigure]
  [subfigures]
  [figure]

\setupcaptions
  [subfigure]
  [numberconversion=characters,
   numberstopper=)]

\setuplabeltext
  [subfigure=]

\definecounter
  [subfigure]
  [way=bytext]

\starttext

\startplacefigure [title=First, reference=first]
  \startfloatcombination [nx=2, ny=1]
\startplacesubfigure
  \externalfigure
\stopplacesubfigure
\startplacesubfigure [reference=fig:firstsub]
  \externalfigure
\stopplacesubfigure
  \stopfloatcombination
\stopplacefigure

\startplacefigure [title=Second, reference=second]
  \startfloatcombination [nx=2, ny=1]
\startplacesubfigure
  \externalfigure
\stopplacesubfigure
\startplacesubfigure [title=beta, reference=fig:secondsub]
  \externalfigure
\stopplacesubfigure
  \stopfloatcombination
\stopplacefigure

See \in{figure}[first],
\in{figure}[fig:firstsub] and
\in{figure}[fig:secondsub].

\stoptext


How to reset 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
___
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 / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


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

2020-11-19 Thread Marco Patzer
Hi!

In the following example the 2nd section head stays on page one when
the “after” key is used. If the blackrule is commented out the
section head moves to page two as intended.

What's the reason the section head stays on the previous page when
the “after” is used and how to fix this?

\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
___
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 / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


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,
> 
> by default (according to strc-def.mkiv), \section has "after=\blank".
> 
> In some cases, I had used "after={”\blank[samepage, medium]}" to
> prevent similar issues.

In my actual document I already use \blank[halfline]. Changing this
to \blank[halfline, samepage] fixes it.

Thank you very much.

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 / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


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 the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


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

2020-11-26 Thread Marco Patzer
On Thu, 26 Nov 2020 21:11:25 +
Bruce Horrocks  wrote:

> With \dorecurse{34} all of the items move to the second page even
> though only one extra line has been added and there is now quite a
> large gap at the bottom of the first page.
> 
> Is there a setting that controls this a bit more precisely, please?
> (So that \dorecurse{34} and possibly even 35 would still split one
> and three.)

You could adjust the clubpenalty and widowpenalty:

\startsetups [mypenalties]
  %% \setdefaultpenalties
  \setpenalties\widowpenalties {2}{100}
  \setpenalties\clubpenalties  {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/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


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

2021-01-04 Thread Marco Patzer
On Mon, 4 Jan 2021 13:22:55 +1100
jbf  wrote:

> Issue 1:
> 
> Parts need to be called 'Section' (Section 1, section 2 etc.).

\setuphead
  [part]
  [placehead=yes,
   bodypartlabel=part]

\setuplabeltext
  [part=Section\nobreakspace]

> Issue 2:
> 
> While the above 'sections' are numbered in arabic numbers, Chapters
> are meant to be in words.

\setuplabeltext
  [chapter=Chapter\nobreakspace]

\setuphead
  [chapter]
  [conversion=Words]

> Issue 3 might already be solved once I resolve Issue 2!
> 
> But given that I have parts, the chapters at the moment 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 MWE would have been nice to have.

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 / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


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

2021-01-04 Thread Marco Patzer
On Tue, 5 Jan 2021 08:32:33 +1100
jbf  wrote:

> and apologies if you didn't think I provided an MWE.

The idea is that people can just copy-paste the code into an editor
and keep tweaking. It doesn't have to produce the correct output,
but it should compile. If you add an MWE you're more likely to get a
response.

> Of the three issues below, only the first is not resolved, meaning
> that part=Section\nobreakspace does not make any difference, or put
> another way, at least it stops things from throwing an error, but the
> result I get is not 'Section 1. My title' but simply '1. My  title'.

Here's what an MWE with the code I posted looks like:

\setuphead
  [part]
  [placehead=yes,
   bodypartlabel=part]

\setuplabeltext
  [part=Section\nobreakspace]

\setuplabeltext
  [chapter=Chapter\nobreakspace]

\setuphead
  [chapter]
  [conversion=Words]

\setuphead
  [chapter]
  [sectionsegments=chapter]

\setuphead
  [section]
  [sectionsegments=chapter:section]

\starttext
  \startpart [title=Mypart]
\startchapter [title=Some Chapter]
  \startsection [title=Some Section]
\samplefile{knuth}
  \stopsection
\stopchapter
  \stoppart
\stoptext

And the string “Section 1 Mypart” shows up there.

> Below is exactly what I have in my preamble. Note that I have also 
> included \setuphead [section] which is the true 'section' level below 
> 'chapter'. Is it possible that this causes some confusion? 
> Unfortunately, the author still wants 'Part' to be actually named as 
> 'Section'!
> 
> \setuphead
>    [part]
>    [
>    placehead=yes,
>    page=no,
>    bodypartlabel=part
> ]

First, there a bunch of (U+00A0) NO-BREAK SPACEs in your code. I
don't know if that's added by your mail client or if that's actually
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
___
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 / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Continued chapter numbers

2021-01-06 Thread Marco Patzer
On Wed, 6 Jan 2021 20:24:07 +1100
jbf  wrote:

> I need chapter numbers to continue sequentially across several parts.
> At the moment, when Part 2 begins, it begins with Chapter 1 once
> more, while it should be (in continued sequence) Chapter 4.

\defineresetset
  [jbfreset] [] [0]

\setuphead
  [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/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Continued chapter numbers

2021-01-06 Thread Marco Patzer
On Thu, 7 Jan 2021 07:09:46 +1100
jbf  wrote:

> I had searched everywhere on the wiki and in the manuals for
> something like this, based on 'reset' but could not find it.

AFAIK it's not mentioned in the manuals. But a variant is on the
wiki “Independent Section Numbering”:

  https://wiki.contextgarden.net/Titles

  \definestructureresetset
[default][1,1,0][1] %% reset part, chapter, but not section

  \setuphead
[sectionresetset=default]

\definestructureresetset is the same as \defineresetset. I assume
that \definestructureresetset is the preferred way. But both will
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 / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Continued chapter numbers

2021-01-07 Thread Marco Patzer
On Thu, 7 Jan 2021 00:02:20 +0100
Wolfgang Schuster  wrote:

> > \definestructureresetset is the same as \defineresetset. I assume
> > that \definestructureresetset is the preferred way. But both will
> > work.  
> 
> No, \defineresetset is the main command and \definestructureresetset
> is a 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@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] midi

2021-02-03 Thread Marco Patzer
On Wed, 3 Feb 2021 22:15:59 -0500
Fabrice L  wrote:

> I usually do images ; if you or the list ever want to see more, the
> site https://art-aleatoire.com  is to
> show my work, and all you can see there is made by me using 100%
> MetaFun

That is some impressive work! 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://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


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

2021-07-06 Thread Marco Patzer
On Thu, 28 May 2020 18:18:51 +0200
Hans Hagen  wrote:

> > LMTX:
> > 10.10.10.tex → 10.10 (not even a PDF suffix)
> > 10.10.11.tex → 10.10 (file 10.10 is over-written)
> > 11.10.11.tex → 11.10 (no suffix)

I've checked again with 2021.07.06 18:49 LMTX

  10.10.10.tex → 10.10.pdf + 10.log
  10.10.11.tex → 10.10.pdf (file 10.10.pdf and 10.log are over-written)
  11.10.11.tex → 11.10.pdf

> > MkIV is way more predictable and consistent in that regard.  
> I'll look at it but not today ... first I need to play with some
> other (neat) stuff and run tests.

A gentle reminder.

As by my tests, something has changed in the last months, but the
behaviour is still weird (e.g. log files differ from pdf file or
10.10.10.tex results in 10.10.pdf).

Is there a chance you can look at that at some point?

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 / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


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

2021-07-07 Thread Marco Patzer
On Wed, 7 Jul 2021 12:25:29 -0600
Alan Braslau  wrote:

Thank you for your reply.

> Windows, I believe, does not take kindly to filenames containing
> multiple dots.

Disclaimer: I don't use Windows, I know nothing about Windows. But I
downloaded a Windows 10 VM and fired it up, installed LMTX, created
a file (in the default editor):

  # file name: 10.10.10.tex
  \starttext
  foo
  \stoptext

Then I ran

install.bat
setpath.bat

# LMTX
context 10.10.10.tex
  → 10.10.pdf
  → 10.log

# MkIV
context --luatex 10.10.10.tex
  → 10.10.10.pdf
  → 10.10.10.log

So I can't confirm your findings. MkIV works exactly the same on a
vanilla Windows 10 VM than it does on a Unix system and produces
correct output files with multiple dots. No issues there.

> Therefore, Hans never uses such filenames and does not expect them,
> either, so I am not surprised that this yields unpredictable results.
> 
> An unfortunate side-effect of dealing with Windows.

My short test above seems to suggest that it's not an OS issue since
Unix and Windows behave exactly the same. MkIV (which seems to work
fine on Windows) as well as the LMTX issue. But maybe I did
something wrong there, in that case please let me know.

And Hans said “I'll look at it” a while back, so I just wanted to
send a reminder.

Since it worked in MkIV it looks like a regression. I mean it used
to work. Several of my projects rely on source files with multiple
dots. I know it's not common to have multiple dots, but I hope
there's chance it might be fixed.

But maybe Hans can chime in and clarify.

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 / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


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

2021-07-08 Thread Marco Patzer
On Thu, 8 Jul 2021 10:34:32 +0200
Hans Hagen  wrote:

> Now, to the issue of names like 10.11.12.13 ... here .13 is the
> suffix, like it or not, so in principle we then get
> 
> 10.11.12.log
> 10.11.12.tuc
> 10.11.12.pdf

It's not that I use files without (.tex, .mkiv, ...) suffixes, but
your 10.11.12.13 example is processed by MkIV without problems:

10.11.12.pdf
10.11.12.tua
10.11.12.log

LMTX, however doesn't like it:

10.11.pdf
10.11.tua
10.log


> if not then indeed there is some issue.

According to my tests LMTX doesn't work like you describe it should.

> Now, although it's quite some 
> work, one can think of seeing .13 as part of the filename, in which
> case the lookupe becomes
> 
> 10.11.12.13.tex

Just to make it clear: I don't use files without .tex/.mkvi/etc.
suffix. So I don't expect 10.11.12.13 to work, but 10.11.12.tex
should in fact work as far as I understand.

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 / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


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

2021-07-09 Thread Marco Patzer
Hi!

the following example compiles with MkIV but fails in LMTX:

\unprotect
  \setupinteraction
[\c!author={Foo & Bar}] %% {Foo \& Bar} works for MkIV and LMTX
\protect

\starttext\null\stoptext

LMTX:

  1 \unprotect
  2   \setupinteraction
  3 [\c!author={Foo & Bar}]
  4 >>  \protect
  5
  6 \starttext\null\stoptext
  7
  I can't figure out why you would want to use a tab mark here. If some right 
brace
  up above has ended a previous alignment prematurely, you're probably due for 
more
  error messages.
  mtx-context | fatal error: return code: 256

As \& works for MkIV as well as LMTX, there's an easy workaround.
But maybe this isn't intended behaviour and needs checking.

ConTeXt  ver: 2021.07.06 18:49 LMTX

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 / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


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

2021-07-09 Thread Marco Patzer
On Fri, 9 Jul 2021 14:29:20 +0200
Hans Hagen  wrote:

> > As \& works for MkIV as well as LMTX, there's an easy workaround.
> > But maybe this isn't intended behaviour and needs checking.
> intended ... author passes different through the system in lmtx
> (better)

Apparently not only author. Also title, subtitle, …

> \starttext
>
> \unprotect
>\setupinteraction
>  [\c!author=\detokenize{Foo & Bar}]
> \protect

That works as well.

> but why unprotect and not just
> 
> \setupinteraction
>[author={Foo & Bar}]

That's just an MWE to demonstrate the problem. The actual code is
part of a module (therefore it's \unprotect'ed).

> of course \& also works ok.

I'll convert to \&. Thanks for the quick reply.

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 / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


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

2023-10-03 Thread Marco Patzer
Hi!

I struggle using the unit Farad (unit of capacitance):

\starttext

%% prints 10 10 ft
\unit{10 F}
\unit{20 ft}

\registerunit  [F=Farad]
\setupunittext [Farad=F]

%% prints 10 F 20 F⋅t
\unit{10 F}
\unit{20 ft}

\stoptext

When registering Farad as new unit it messes up feet. This looks
like a bug to me, since “20 ft” does not contain a capital “F” and
units are case-sensitive. How to use Farad correctly without messing
up other units?

2nd issue: The prefix “µ” is not recognised:

\starttext
%% prints 10 nm 20 30 µm
\unit{10 nm}
\unit{20 µm}
\unit{30 um}
\stoptext

I would expect “20 µm” to produce the correct result. Can we make
“µm” also produce the same result as “um”?

Marco

LMTX 2023.09.04 19:15
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___

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

2023-10-03 Thread Marco Patzer
On Tue, 3 Oct 2023 15:42:57 +0200
Wolfgang Schuster  wrote:

> Marco Patzer schrieb am 03.10.2023 um 12:31:
> > Hi!
> >
> > I struggle using the unit Farad (unit of capacitance):  
> 
> The unit "farad" exists.

You're right \unit{10 Farad} works.

> The unit for feet is "foot" and "ft" is a combination of a prefix 
> (femto) and a unit (tonne).

Makes sense if you think about it. Never crossed my mind that ft not
meaning feet in this instance and also never contemplated the
existence of a “femto tonne”.

> You can list the individual parts in the log file with the 
> "physics.units" tracker.

That gives some insight, indeed. Thanks.

What about:

\unit{10 um}
\unit{10 µm}

Can I assign µ to mean micro (prefix)?

Marco
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___

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

2023-10-03 Thread Marco Patzer
On Tue, 3 Oct 2023 16:27:22 +0200
Marco Patzer  wrote:

> What about:
> 
> \unit{10 um}
> \unit{10 µm}
> 
> Can I assign µ to mean micro (prefix)?

Found it:

\registerunit [prefix] [µ=micro]

\starttext
  \unit{10 micro meter} \crlf
  \unit{10 µm}
\stoptext

Should this be the default (µ assigned to micro)?

Marco
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___

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

2023-11-08 Thread Marco Patzer
On Sun, 5 Nov 2023 18:11:45 +
Bruce Horrocks  wrote:

> When I go to the page layout page on the Contextgarden wiki
> 
>   
> 
> the "typesetting areas" diagram is missing its text labels.

Fixed.

> Any suggestions as to what needs to be changed to get the diagram to
> display correctly?

I saved it again and now it seems to work.

Marco
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: placing \externalfigure

2023-11-12 Thread Marco Patzer
On Sun, 12 Nov 2023 16:34:00 +0100
Hans van der Meer via ntg-context  wrote:

> In placing \externalfigure[file] I observe the figure is placed with
> its bottom on the baseline, thus:
> 
> [externalfigure]
> --- baseline
> 
> I looked into the option list of setupexternalfigure but could not
> find one whereby the location with respect to the baseline is either
> top, bottom or center.

Maybe this is what you're looking for:

\useMPlibrary [dum]
\setuplayout  [grid=yes]
\showgrid

\starttext
  foo \externalfigure[][][location=high]   bar \blank [5*line]
  foo \externalfigure[][][location=middle] bar \blank [5*line]
  foo \externalfigure[][][location=low]bar
\stoptext

Marco
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] textbackground spacing offset

2023-11-16 Thread Marco Patzer
Hi!

I'm having problems getting the textbackground spacing offset to work.
Example:

\setupframedtext
  [offset=overlay,
   width=max,
   depthcorrection=off]

\setuptextbackground
  [location=paragraph,
   %% offset=overlay,   %% does nothing
   %% backgroundoffset=overlay, %% does nothing
   %% depthcorrection=off,  %% does nothing
   %% topoffset=3mm,%% works, but only for positive values
   background=,
   frame=on]

\starttext
  \startframedtext
\framed{Foo}
  \stopframedtext
  \starttextbackground
\framed{Foo}
  \stoptextbackground
\stoptext

How do it get the same spacing as in the framedtext case? The
textbackground has a small gap between the inner and outer frame at
the top and a larger gab at the bottom. I'm not concerned with
horizontal spacing here.

Marco

LMTX 2023.09.04 19:15
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Vertically aligned alternating fillers

2023-11-16 Thread Marco Patzer
Hi!

A while back Wolfgang presented a nice solution for alternating
fillers:

  https://www.mail-archive.com/ntg-context@ntg.nl/msg67677.html

It works if the text has a constant width. But if the width changes,
the alternating look is lost. Is there a way to align the dots
vertically even if the text has variable width? Example:

\usemodule
  [visual]

\definefiller
  [pavel-0]
  [alterntive=symbol,
   method=global,
   width=2em,
   leftmargin=.5em,
   rightmargin=.5em,
   symbol=\clap{.}]

\definefiller
  [pavel-1]
  [pavel-0]
  [align=left]

\definefiller
  [pavel-2]
  [pavel-0]
  [align=middle]

\newconditional\PavelState
\global\setfalse\PavelState

\define\PavelFiller
  {\ifconditional\PavelState
 \global\setfalse\PavelState
 \filler[pavel-1]%%
   \else
 \global\settrue\PavelState
 \filler[pavel-2]%%
   \fi}

\def\oneword
  {\getrandomnumber\n{1}{100}\fakenwords{1}{\n}}

\starttext
  %% dots are vertically aligned
  \dorecurse{6}{%%
Foo \PavelFiller Bar\par}

  \hairline

  %% dots are not aligned
  \dorecurse{6}{%%
\oneword\PavelFiller\oneword\par}
\stoptext

Marco

LMTX 2023.09.04 19:15
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


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

2023-11-16 Thread Marco Patzer
On Thu, 16 Nov 2023 21:40:08 +0100
vm via ntg-context  wrote:

> Is there a command in context to force every word in a text to
> hyphenate? e.g to typeset a text with "ge-dach-ten-streep-jes"

Like this?

\starttext
  \hyphenatedword{\samplefile{knuth}}
\stoptext

Marco
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: marginwidths

2023-11-22 Thread Marco Patzer
On Wed, 22 Nov 2023 14:17:29 +0100
Hans van der Meer via ntg-context  wrote:

> I would like to change the width of the margins on the page.
> In the MWE here, the pagelayout does not seem to obey the
> \setuplayout command. Why are the margins shown uneffected by
> \setuplayout?

Works as expected here. The margins have changed and \showlayout
gives you:

  \leftmarginwidth  =  6cm
  \rightmarginwidth = 10cm

Change the example to:

  \setuplayout
[leftmargin=6mm,  %% mm, not cm
 rightmargin=10mm]

That way you better see the effect on the page.

Marco
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


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

2023-11-22 Thread Marco Patzer
Hi!

The site

  https://distribution.contextgarden.net/

uses an invalid certificate:

  echo | openssl s_client -servername 'distribution.contextgarden.net' -connect 
'distribution.contextgarden.net':443 2>/dev/null |  openssl x509 -noout -ext 
subjectAltName

  X509v3 Subject Alternative Name:
  DNS:4tex.ntg.nl, DNS:mailman.ntg.nl, DNS:mysql-admin.ntg.nl, DNS:ntg.nl, 
DNS:www.ntg.nl

This makes connections fail. distribution.contextgarden.net has to
be added to the Alternative Name list.

Marco
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


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

2023-11-23 Thread Marco Patzer
On Thu, 23 Nov 2023 08:58:56 +0100
Taco Hoekwater  wrote:

> > probably a side effect if moving some more to the (ntg) server in
> > the netherlands (also setting up the build there)  
> 
> Even if it used the right certificate, it would not work right now
> because of the move: there is nothing behind the connection.

I used that server to check for the latest context version. What's
the recommended way to check for the latest version? Basically the
output of the \contextversion command?

Marco
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


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

2023-11-23 Thread Marco Patzer
On Thu, 23 Nov 2023 11:32:45 +0100
Taco Hoekwater  wrote:

> The command 
> 
>   context —version
> 
> gives the local installed version. 

That lists the *local* version, not the most current available
version.

> Not sure whether there is a clean way to see if there is a remote
> newer update without actually doing an update.

This is how I check for the remote version:

  curl --silent --connect-timeout 5 \

'https://distribution.contextgarden.net/current/context/latest/tex/context/base/mkiv/context.mkiv'
 | sed -ne '/\\edef\\contextversion/s/.*{\(.*\)}/\1/p'

Not pretty, but has been working for a decade or so (except the
minimals → standalone change a while ago).

> You can check the mailing list, all new releases by Hans are now
> reported on the ntg-context list

That's not practical, I'm afraid.

Marco
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


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

2023-11-30 Thread Marco Patzer
Hi!

I have a strange issue when TeX Gyre Pagella Math is used together
with bold text. MWE:

\definefontfamily [mainface] [rm] [TeX Gyre Pagella]
\definefontfamily [mainface] [ss] [TeX Gyre Heros]

%% comment/remove this line and it works
\definefontfamily [mainface] [mm] [TeX Gyre Pagella Math]

\setupbodyfont [mainface]
\definedescription [foo]

\starttext
  %% works, no issues here
  \math{x_y}

  %% fails if TeX Gyre Pagella Math is used
  \bold{\math{x_y}}
\stoptext

The error is:

tex error   > tex error on line 14 in file /tmp/tex-xDj/xDj.mkvi: Math 
error: parameter 'subshiftdown' with id 48 in style 2 is not set

 \math_m_nop 
#1->\relax \ifmmode #1\else \normalstartimath \begingroup #1\endgroup 
\normalstopimath 
\fi 
 
  \bold{\math{x_y}

What is the issue here?

Marco

LMTX 2023.09.04 19:15
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


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

2023-11-30 Thread Marco Patzer
On Thu, 30 Nov 2023 20:51:42 +0100
Wolfgang Schuster  wrote:

> > %% comment/remove this line and it works
> > \definefontfamily [mainface] [mm] [TeX Gyre Pagella Math]  
> 
> Use the \definetypeface command to load the math font.

That example was taken straight from

  https://wiki.contextgarden.net/Command/definefontfamily

So that should better read like this: ?

  \definefontfamily [mainface] [rm][TeX Gyre Pagella]
  \definefontfamily [mainface] [ss][TeX Gyre Heros]
  \definetypeface   [mainface] [mm] [math] [pagella]

  \setupbodyfont[mainface]

Should I correct the wiki then?

> Math fonts always use special settings or load additional settings
> which are missing when you use 
> \definefontfamily.
> 
> \definetypeface [mainface] [mm] [math] [pagella]

That works, thanks. However, I discovered that:

%% fails
\definefontfamily [mainface] [mm] [TeX Gyre Pagella Math]

%% works
\definefontfamily [mainface] [mm] [pagella]

So even with \definefontfamily it works, when “TeX Gyre Pagella
Math” is changed to “pagella”. That I do not understand.

Marco
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


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

2023-11-30 Thread Marco Patzer
On Thu, 30 Nov 2023 20:51:42 +0100
Wolfgang Schuster  wrote:

> Use the \definetypeface command to load the math font. Math fonts
> always use special
> settings or load additional settings which are missing when you use 
> \definefontfamily.
> 
> \definetypeface [mainface] [mm] [math] [pagella]

\definetypeface generates the same error message if the font size is
changed:

\definefontfamily [mainface] [rm] [TeX Gyre Pagella]
\definefontfamily [mainface] [ss] [TeX Gyre Heros]

\definetypeface [mainface] [mm] [math] [pagella]

%% 8pt works
\setupbodyfont [mainface, 8.5pt]

\starttext
  \bold{\math{x_y}}
\stoptext

Marco
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


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

2023-12-01 Thread Marco Patzer
On Fri, 1 Dec 2023 15:09:32 +0100
Wolfgang Schuster  wrote:

> You get the same error with Latin Modern as soon as you use a non 
> predefined font size in combination with bold math.

True, thanks for pointing that out. I wasn't aware and frankly,
that's rather unexpected behaviour.

So to put it all together, this now works for me:

\definefontfamily [mainface] [rm] [TeX Gyre Pagella]
\definefontfamily [mainface] [ss] [TeX Gyre Heros]

\starttypescript [math] [default] [size]
  \definebodyfont [8.5pt] [mm] [default]
\stoptypescript

\definetypeface [mainface] [mm] [math] [pagella]

\setupbodyfont [mainface, 8.5pt]

\starttext
  \math{V_y}
  \bold{\math{V_y}}
\stoptext

Thank you for your replies.

Marco
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


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

2023-12-05 Thread Marco Patzer
Hi!

I'm struggling with the rendering of a particular liquid metal:

  %% renders as m (meter), not as Hg
  \unit{mercury}

  %% renders as mm·m, not as mmHg
  \unit{millimetermercury}

This is strange, since both “mercury” and “millimetermercury” are
defined in phys-dim.lua. To get mercury recognised as a unit this
can be used:

  \registerunitshortcut [mercury=mercury]

Now \unit{mercury} renders correctly as Hg.

Why is that \registerunitshortcut necessary? Is it even correct to
use it like this? However, even then millimetermercury doesn't
render correctly:

  %% renders as mm·Hg, not as mmHg
  \unit{millimetermercury}

How to get millimetermercury render as mmHg? And “inch mercury”
render as inHg? I can't find “inchmercury” in phys-dim.lua, only
“millimetermercury”, should it be added?

Example:

%% \enabletrackers [physics.units]

%% inch should render as “in”
%% \setupunittext [inch=in]

\starttext
  \unit{mercury}\crlf  %% renders: mm · m

  \unit{12 millimetermercury}\crlf  %% renders: mm · m
  \unit{12 inchmercury}\crlf%% renders: in · m

  %% why is this necessary to get mercury rendered as Hg?
  \registerunitshortcut [mercury=mercury]

  \unit{12 millimetermercury}\crlf  %% renders: mm · Hg
  \unit{12 inch mercury}\crlf   %% renders: in · Hg
\stoptext

Questions:

1) Why is \unit{mercury} not working, although it's listed in
   phys-dim.lua?
2) Is the call \registerunitshortcut [mercury=mercury]
   necessary/correct?
3) How to make \unit{millimetermercury} render as mmHg and
   \unit{inch mercury} render as inHg?

Marco
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


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

2023-12-05 Thread Marco Patzer
On Tue, 5 Dec 2023 17:27:59 +0100
Wolfgang Schuster  wrote:

> None of your examples work because millimetermercury and mercury are
> the names for the labels
> and the units are accessed with hg and mmhg.

Ok, that makes sense. And it works, thanks for the explanation and
the quick reply.

> \setupunittext[en][millimetermercury=inHg]

That doesn't make sense, inch and mm are different units. I'd rather
add:

  \registerunit
[inHg=inchmercury]

  \setupunittext
[en]
[inchmercury=inHg]

Marco
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


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

2023-12-05 Thread Marco Patzer
On Tue, 5 Dec 2023 20:06:46 +0100
Wolfgang Schuster  wrote:

> > That doesn't make sense, inch and mm are different units. I'd rather
> > add:
> >
> >\registerunit
> >  [inHg=inchmercury]
> >
> >\setupunittext
> >  [en]
> >  [inchmercury=inHg]  
> 
> It's just a stupid example to show how to set the label value.

Ok, got it. Thanks for your quick help, as usual!

Marco
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


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

2024-01-12 Thread Marco Patzer
On Fri, 12 Jan 2024 23:05:14 +0900
Jeong Dal via ntg-context  wrote:

> I’d like to make a ticket on A4 as follows:
> 
> 1. Use all of A4(no margin, no header, no footer,…)
> 2. Arange 12 tickets in the form of 3 x 4 on one page,
> 3. Two rows are same,
> 4. Numbers in the center of the ticket which is increasing.
> 
> I use the following code to make it.

Here's a suggestion:

\definepapersize
  [jeong]
  [width=67mm,
   height=73mm]

\setuppapersize
  [jeong]
  [A4]

\setuppaper
  [nx=3, ny=4,
   dx=4.4mm, dy=1.5mm]

\setuparranging
  [XY]

\setuplayout
  [page]

\setuppagenumbering
  [state=stop]

\setupmakeup
  [standard]
  [align=middle]

\setupblank
  [2*line]

\showframe
\starttext
  \dorecurse{12}{%%
\startstandardmakeup
Text \blank
{\tfd\recurselevel} \blank
Text
\stopstandardmakeup
\page}
\stoptext

That's how I'd approach it. Not sure if it meets all your
requirements, though.

Marco
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: textbackground spacing offset

2024-01-31 Thread Marco Patzer
On Thu, 16 Nov 2023 13:52:05 +0100
Marco Patzer  wrote:

> I'm having problems getting the textbackground spacing offset to work.
> Example:
> 
> \setupframedtext
>   [offset=overlay,
>width=max,
>depthcorrection=off]
> 
> \setuptextbackground
>   [location=paragraph,
>%% offset=overlay,   %% does nothing
>%% backgroundoffset=overlay, %% does nothing
>%% depthcorrection=off,  %% does nothing
>%% topoffset=3mm,%% works, but only for positive values
>background=,
>frame=on]
> 
> \starttext
>   \startframedtext
> \framed{Foo}
>   \stopframedtext
>   \starttextbackground
> \framed{Foo}
>   \stoptextbackground
> \stoptext
> 
> How do it get the same spacing as in the framedtext case?

Is there a solution to this? Or an explanation why the spacing
differs?

Marco
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: textbackground spacing offset

2024-01-31 Thread Marco Patzer
On Wed, 31 Jan 2024 19:41:02 +0100
Hans Hagen  wrote:

> >> How do it get the same spacing as in the framedtext case?  
> > 
> > Is there a solution to this? Or an explanation why the spacing
> > differs?  
> these are fundamentally different mechanisms .. you can play with 
> \inframed in the second case

\inframed did make a difference, indeed. I'll check if I can obtain
the spacing I need. Thanks.

Marco
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


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

2024-02-18 Thread Marco Patzer
On Sun, 18 Feb 2024 22:12:25 +0530
Shiv Shankar Dayal  wrote:

> What is the best way to input UTF-8 in LuaMetaTex?

“Best” is subjective. What might be a good way for me might not be
your preferred way.

LuaMetaTex doesn't care at all *how* you input the characters into
your text editor. The characters end up in the tex file and that's
what's processed by context.

  \starttext
Ωµ±åö←§…
  \stoptext

Methods:

  - custom keyboard layout (my preferred way)
  - compose key
  - symbol input tables (provided by your OS)
  - copy-pasting symbols from somewhere else
  - …

> If I use the UTF-8 characters then do not come out in text with
> Modern font.

You need to select a font containing the characters you need. Or set
up a fallback for a certain range:

  https://wiki.contextgarden.net/Command/definefallbackfamily

Marco
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


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

2024-02-18 Thread Marco Patzer
On Mon, 19 Feb 2024 09:45:03 +0800
黄复雄  wrote:

> I recommend you to always show missing font markers in PDF documents
> with \replacemissingcharacters

Or let context throw an error in case a font/char is missing:

  %% alternative:
  %% context --errors='*' 
  \enabledirectives [logs.errors=*]

  %% missing font
  \definefontfamily [foo] [serif] [no font here really]
  \setupbodyfont [foo]

  \starttext
%% missing characters
𝒜
  \stoptext

Marco
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: missing metadata in LMTX

2024-03-06 Thread Marco Patzer
On Tue, 5 Mar 2024 23:14:04 +0100
Wolfgang Schuster  wrote:

> Here is the official solution:
> 
> \startxmlsetups xml:meta
>\setupmetadata
>  [author={\xmltext{#1}{/author}},
>   title={\xmltext{#1}{/title}}]
> \stopxmlsetups

So now we have:

\setupinteraction
  [title=FooBar]

\setupdocument
  [metadata:title=FooBar]

\setupmetadata
  [title=FooBar]

Are any of those deprecated or the preferred way? I'm starting to
get confused.

Marco
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


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

2024-03-16 Thread Marco Patzer
On Sat, 16 Mar 2024 20:33:33 + (UTC)
Joel via ntg-context  wrote:

> How do I remove the page number from the header texts?

  \setupheadertexts []

or

  \setuplayouttext
 [header][text]
 [middletext=]

Marco
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


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

2024-03-19 Thread Marco Patzer
On Tue, 19 Mar 2024 15:38:16 +0100
Jeroen  wrote:

> Can this text be placed in the margin in regular text or possibly
> in slightly smaller font size compared to the regular text in the
> document?

  \setupmargindata
[inleft]
[style=\tfx]

Marco
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


Re: [NTG-context] Underbar offset

2016-05-26 Thread Marco Patzer
On Thu, 26 May 2016 14:48:00 +0200
Mojca Miklavec  wrote:

> On 25 May 2016 at 17:35, Wolfgang Schuster wrote:
> >
> > With \shiftup the line under the raised text stays at the same
> > position.
> >
> > \starttext
> > \underbar{Test this \shiftup{®}}
> > \stoptext  
> 
> When has \shiftup been implemented?

The git history first mentions it on 2015.12.22. I didn't know that
command, either.

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 / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] disappearing margin text

2016-06-22 Thread Marco Patzer
On Wed, 22 Jun 2016 11:52:04 +0200
Jan Willem Flamma  wrote:

> In the following MWE, the margin text appears at question 1 but not
> at question 2.

They both appear, but are overlaid (try with different texts).

> MWE:
> \defineblock[question]
> \hideblocks[question] 
> 
> \defineenumeration
> [question]
> [text=Question]
>  
> \setupblock[question][before=\startquestion,after=\stopquestion]

\setupinmargin
  [stack=yes] %% yes or continue

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 / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] trying to delete an attribute reference of a non attribute node

2016-06-30 Thread Marco Patzer
Hi!

The following example throws the error:

  ! error:  (nodes): trying to delete an attribute reference of a non attribute 
node
  mtx-context | fatal error: return code: 1

\setbreakpoints [compound]
\useMPlibrary [dum]

\starttext
  \startTABLE
\NC \externalfigure [foo-bar] [width=\textwidth] \NC
foo bar foo bar foobarfoobar \bold{} \NC\NR
  \stopTABLE
\stoptext

Sorry for the not so minimal example. In the actual text I'm not
using the `dum` library, I'm including actual graphics. So I don't
believe that's the issue. It might have something to do with word
breaking, that's my gut feeling.

What is the issue here?

ConTeXt  ver: 2016.06.26 19:00

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 / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] trying to delete an attribute reference of a non attribute node

2016-07-02 Thread Marco Patzer
On Thu, 30 Jun 2016 18:23:18 +0200
Marco Patzer  wrote:

> The following example throws the error:
> 
>   ! error:  (nodes): trying to delete an attribute reference of a non
> attribute node mtx-context | fatal error: return code: 1
> 
> \setbreakpoints [compound]
> \useMPlibrary [dum]
> 
> \starttext
>   \startTABLE
> \NC \externalfigure [foo-bar] [width=\textwidth] \NC
> foo bar foo bar foobarfoobar \bold{} \NC\NR
>   \stopTABLE
> \stoptext

Any ideas?

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 / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] trying to delete an attribute reference of a non attribute node

2016-07-03 Thread Marco Patzer
On Sun, 3 Jul 2016 11:22:20 +0200
Hans Hagen  wrote:

> On 7/2/2016 12:42 PM, Marco Patzer wrote:
> > On Thu, 30 Jun 2016 18:23:18 +0200
> > Marco Patzer  wrote:
> >  
> >> The following example throws the error:
> >>
> >>   ! error:  (nodes): trying to delete an attribute reference of a
> >> non attribute node mtx-context | fatal error: return code: 1
> >>
> >> \setbreakpoints [compound]
> >> \useMPlibrary [dum]
> >>
> >> \starttext
> >>   \startTABLE
> >> \NC \externalfigure [foo-bar] [width=\textwidth] \NC
> >> foo bar foo bar foobarfoobar \bold{} \NC\NR
> >>   \stopTABLE
> >> \stoptext  
> >
> > Any ideas?  
> 
> has been fixed already

Confirmed, the new beta works. Thanks for the quick fix.

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 / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Update server appears to be down

2016-07-04 Thread Marco Patzer
Hi (Mojca?)

The contextgarden update server appears to be down:

  rsync rsync://contextgarden.net
  rsync: failed to connect to contextgarden.net (193.2.4.200): Connection 
refused (111)
  rsync: failed to connect to contextgarden.net (2001:1470:ff80:88::80:c): 
Network is unreachable (101)
  rsync error: error in socket IO (code 10) at clientserver.c(128) 
[Receiver=3.1.1]

Just notifying in case you're not aware. If the URL changed please
let me know so I can correct my update scripts.

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 / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

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{
> http://brunelleschi.imss.fi.it/galileopalazzostrozzi/object/RegiomontanusJohannesMullerVonKönigsbergAstrolabe.html}[url(http://brunelleschi.imss.fi.it/galileopalazzostrozzi/object/RegiomontanusJohannesMullerVonKönigsbergAstrolabe.html)]
> 
> is broken because of the umlaut in the URL. Is some way around it so
> that the link works?

Here it renders fine and double clicking opens the page in the
browser (different PDF viewers tested). Example:

\setupinteraction [state=start]
\starttext
  \goto{
http://brunelleschi.imss.fi.it/galileopalazzostrozzi/object/RegiomontanusJohannesMullerVonKönigsbergAstrolabe.html}[url(http://brunelleschi.imss.fi.it/galileopalazzostrozzi/object/RegiomontanusJohannesMullerVonKönigsbergAstrolabe.html)]
\stoptext

ver: 2016.07.14 19:52

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 / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

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 many setups (e.g. \setupinteraction) which aren't
> necessary for your example,

Create an MWE, a *minimal* working example. Without paper size,
language, indenting, etc. Remove all the fluff not required to show
the actual problem. With this small example approach this list.
You're much more likely to get a meaningful response.

> 3. I get lot of empty lines when I copy your exampe into my editor
> which I have to delete (not funny),

Same here. You seem to have misconfigured your editor or email
client. All the empty lines make your example not copy-pasteable →
less likely to to receive a response.

> 4. and I can't reproduce your problem when I fix points 1 and 3.

Either I don't see it or I didn't understand the problem in the
first place.

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 / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

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,
>width=6cm,
   align=tolerant,
>height=fit]
> 
> […]

You can use \showframe to visualise the frames and check what's
going on.

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 / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

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 ^^ \mainlanguage[de]

\setupbodyfont [dejavu]
\starttext
  Das Bin ich \gr {ἄ}
\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.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[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]
  %% doesn't work, either
  %% [tf=file:CaeciliaLTStd-Roman.otf]

\setupbodyfont [mainface]

\starttext
  %% \definedfont [name:CaeciliaLTStd-Roman] %% this works
  \input knuth
\stoptext

The font is in the database:

  mtxrun -script fonts -list -all caecilia

This happens with other fonts too, not only Caecilia. Some fonts
work, others don't. Couldn't find anything on the list, so I might
be doing something wrong here. What's the issue here?

context: 2017.03.02 22:23

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 / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

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"
>   luatex-cache/context/HASH/fonts
> and generating it again
>   mtxrun --script fonts --reload --force

Thanks for the response. The same result with the rebuilt cache.

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 / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

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

> On 03/09/2017 10:33 AM, Marco Patzer wrote:
> > \definefontfamily
> >   [mainface]
> >   [rm]
> >   [Caecilia LT Std Roman]
> >   %% doesn't work, either
> >   %% [tf=file:CaeciliaLTStd-Roman.otf]
> > [...]
> >   %% \definedfont [name:CaeciliaLTStd-Roman] %% this works  
> 
> Hi Marco,
> 
> how about the following?
> 
>\definefontfamily[mainface][rm][Caecilia LT Std-Roman]

This also shows:

selectfont > The requested font 'Caecilia LT Std-Roman' has no files for the 
'tf' alternative, Latin Modern is used instead.

> What it works is a different font name. And I guess that Roman isn’t
> part of the font name, but this is the style.

otfinfo -i CaeciliaLTStd-Roman.otf | grep name
Full name:   CaeciliaLTStd-Roman
PostScript name: CaeciliaLTStd-Roman
Mac font menu name:  Caecilia LT Std Roman

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 / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

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  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-Roman]  
> > 
> > This also shows:
> > 
> > selectfont > The requested font 'Caecilia LT Std-Roman' has no files
> > for the 'tf' alternative, Latin Modern is used instead.
> >   
> >> What it works is a different font name. And I guess that Roman
> >> isn’t part of the font name, but this is the style.  
> > 
> > otfinfo -i CaeciliaLTStd-Roman.otf | grep name
> > Full name:   CaeciliaLTStd-Roman
> > PostScript name: CaeciliaLTStd-Roman
> > Mac font menu name:  Caecilia LT Std Roman  
> 
> \definefontfamily[mainface][rm][CaeciliaLTStd-Roman]
> 
> I guess the full name should work. But I’m only guessing.

Sadly it does not.

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 / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

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 the family (i.e. “Caecilia LT Std”) which is used
> by \definefontfamily.

That makes sense.

> When you now used a individual name instead of the family name for 
> \definefontfamily you should get a message in log for the correct
> name, e.g. the following example
> 
>  \definefontfamily[mainface][rm][TeX Gyre Pagella Regular]
> 
>  \setupbodyfont[mainface]
> 
>  \starttext
>  Font test!
>  \stoptext
> 
> shows this in the log
> 
>  selectfont > The name 'texgyrepagellaregular' is not a proper 
> family name, use 'texgyrepagella' instead.
>  selectfont > The requested font 'TeX Gyre Pagella Regular' has
> no files for the 'tf' alternative, Latin Modern is used instead.
> 
> which tells you to use “texgyrepagella” for the \definefontfamily
> command.

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 LT Std]
[tf=Caecilia LT Std Roman]

However, it shows:

  selectfont > The requested font 'Caecilia LT Std' has no files for the 'tf' 
alternative, Latin Modern is used instead.

It appears that ConTeXt somehow can't find the font.

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 / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

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  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 LT Std]
> [tf=Caecilia LT Std Roman]
> 
> However, it shows:
> 
>   selectfont > The requested font 'Caecilia LT Std' has no files for
> the 'tf' alternative, Latin Modern is used instead.
> 
> It appears that ConTeXt somehow can't find the font.

Thanks to Wolfgang's assistance I figured that the syntax in my OP
was correct and the issue is with my installation. It works for me
in a virgin installation, but throws the abovementioned error in my
current installation.

I don't know what borked my installation and why it only affected
some fonts and not others.

So sorry for the noise and thanks for quick responses.

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 / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

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 tex/texmf-cache/luatex-cache/?
> >
> > I had some problems with fonts and removing it was the way of
> > solving them.  
> You can remove the font cache with
> 
>  mtxrun --script cache --fonts --erase
> 
> and the complete cache with
> 
>  mtxrun --script cache --erase

I don't know if those commands would have helped. Since it doesn't
store any personal information I purged my context installation and
did a reinstall. Now all fonts work.

> The font cache is regenerated with
> 
>  mtxrun --script fonts --reload

I tried that (without clearing the cache) before, but to no avail.

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 / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[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}
  \framed[width=2\measure{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://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

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
> > \framed[width=4cm]{Foobar}
> > \framed[width=\measure{mymeasure}]{Foobar}
> > \framed[width=2\mydim]{Foobar}
> > \framed[width=2\measure{mymeasure}]{Foobar}
> > \stoptext  
> You can use \measured

That's what I was looking for.

> or just create more named lengths.
> 
> \definemeasure [onemeasure] [4cm]
> \definemeasure [twomeasure] [\measure{onemeasure}*2]
> %\definemeasure [twomeasure] [2\measured{onemeasure}]

That's exactly what I initially did. After I ended up with

  \measure{Small}
  \measure{TwoSmall}
  \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 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 / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[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
http://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
___
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 / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

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
___
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 / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

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 options ~= ""' in `lua.registercode'.
> That empyt string should be 'nil'?

I can confirm the issue, MWE:

\usemodule [letter]
\starttext
\null
\stoptext

throws:

open source > level 4, order 5, name 
'/tmp/ctx/tex/texmf-modules/tex/context/third/letter/base/s-cor-00.mkvi'

lua error   > lua error on line 30 in file 
/tmp/ctx/tex/texmf-modules/tex/context/third/letter/base/s-cor-00.mkvi:

...ctx/tex/texmf-context/tex/context/base/mkiv/luat-cod.lua:50: bad argument #1 
to 'gmatch' (string expected, got nil)
stack traceback:
[C]: in function 'gmatch'
...ctx/tex/texmf-context/tex/context/base/mkiv/luat-cod.lua:50: in 
function 'registercode'
[ctxlua]:1: in main chunk

20 %C MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21 %C GNU General Public License for more details.
22 %C
23 %C You should have received a copy of the GNU General Public License
24 %C along with this program.  If not, see .
25 
26 \unprotect
27 
28 % Lua functions for the core and also for the frontend modules
29 
30 >>  \ctxloadluafile{s-cor-00}

context: 2017.11.22 13:35

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 / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

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
>   \hairline[color=red]

\setupblackrules
  [height=1pt,
   color=blue,
   width=\textwidth]

\starttext
  \blackrule
  \blackrule [color=red, height=1ex, width=5cm]
\stoptext

  http://wiki.contextgarden.net/Command/setupblackrules

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 / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] problem with t-gnuplot.tex

2013-03-21 Thread Marco Patzer
On 2013–03–21 JIN Xiao-Yong wrote:

> Using the new beta from context-minimal
> 
> […]
> 
> This happens with context running on a file generated by gnuplot 4.6.1.  I
> have been using context in the texlive 2012 without any problem.

The gnuplot module is broken at the moment. I posted a workaround
some time ago. Before loading the module:

  \unprotected
  \def\@@GNUPLOT@term@context@linejoin{rounded}
  \def\@@GNUPLOT@term@context@is@dashed{true}
  \def\@@GNUPLOT@term@context@linewidth{1}
  \def\@@GNUPLOT@term@context@fontscale{1}
  \def\@@GNUPLOT@term@context@points{metapost}
  \protected

This, however invalidates any later setup. I am working on fixing
the module.


Marco


signature.asc
Description: Digital signature
___
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 / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] man pages for ConTeXt: looking for volunteers

2013-03-21 Thread Marco Patzer
On 2013–03–21 Mojca Miklavec wrote:

> In preparation of this year's TeX Live release, it would be nice to
> also revise man pages a bit.
> 
> Hans just implemented auto-conversion of help into man pages for the
> lua scripts. So the options are described as they should be, but if
> there are any volunteers to help polishing out and provide either more
> extensive descriptions, examples, ... or overall improvements, you are
> invited to leave some feedback or provide some help (additional
> text/descriptions or syntax corrections).

Just a small correction in mtxrun.{xml,man,html}:

--timedrun  run a script an time its run

This should be rephrased, although I don't have suggestions since I
have no clue what this option is for.

Marco


signature.asc
Description: Digital signature
___
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 / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] chapter titles

2013-03-21 Thread Marco Patzer
On 2013–03–21 H. van der Meer wrote:

> I would like to put something directly after each chapter number, like so:
> 
> Chapter 5  Title of Chapter
> 
> Is there an option for this? \setuphead? \setupheader? which parameter?

http://article.gmane.org/gmane.comp.tex.context/77262

There should be more examples on the mailing list, search for
\defineheadalternative

Marco


signature.asc
Description: Digital signature
___
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 / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Framed: Individual background offsets

2013-03-23 Thread Marco Patzer
Hi,

how can I set individual offsets for the background, similar to
loffset, roffset, etc.?

\defineframedtext
  [foo]
  [frame=off,
   offset=none,
   backgroundoffset=1cm,
   %% backgroundloffset=1cm, %% there is no backgroundloffset
   background=screen]

\starttext

%% backgroundoffset is applied on all four sides
\startfoo
  \input ward
\stopfoo

\input knuth

%% this is what I'm aiming for
\startnarrower [-1cm]
  \startfoo [backgroundoffset=0cm, loffset=1cm]
\input ward
  \stopfoo
\stopnarrower

\stoptext

Marco


signature.asc
Description: Digital signature
___
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 / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] [***SPAM***] Re: Framed: Individual background offsets

2013-03-23 Thread Marco Patzer
On 2013–03–23 Wolfgang Schuster wrote:

> […]
> \startuseMPgraphic{framed:background}
>   fill unitsquare xyscaled(OverlayWidth,OverlayHeight) leftenlarged 1cm 
> withcolor \MPcolor{lightgray};
>   setbounds currentpicture to OverlayBox ;
> \stopuseMPgraphic
> […]

How about making this configurable? It would be intuitive and
consistent. Suggestion:

content background
--- --
offset  backgroundoffset
loffset backgroundloffset
roffset backgroundroffset
toffset backgroundtoffset
boffset backgroundboffset


Marco


signature.asc
Description: Digital signature
___
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 / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] userpagenumber

2013-03-26 Thread Marco Patzer
On 2013–03–26 Thomas A. Schmitz wrote:

> shouldn't this work?
> 
> \setupuserpagenumber[number=34]

I don't know if that's the recommended way, but I set the page
number as follows:

  \setcounter [userpage] [34]


Marco


signature.asc
Description: Digital signature
___
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 / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Rebuilding font cache fails

2013-03-26 Thread Marco Patzer
Hi,

rebuilding the font cache fails in the latest beta. I didn't check
the last few beta, though.

mtxrun --script fonts --reload
..beta/tex/texmf-context/scripts/context/lua/mtx-fonts.lua:173: attempt to 
index global 'arguments' (a nil value)


Marco


signature.asc
Description: Digital signature
___
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 / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] userpagenumber

2013-03-27 Thread Marco Patzer
On 2013–03–27 Hans Hagen wrote:

> (in fact, setting up doublesided should be in setuplayout but i'll
> keep that one)

Perhaps both locations could be supported for some time.
\setuppagenumbering is indeed an awkward place to set up the layout.


Marco


signature.asc
Description: Digital signature
___
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 / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] List of bugs and quirks

2013-03-27 Thread Marco Patzer
Hi Hans,

> maybe after the current is made (which happens sometime within the
> next two weeks)
> 
> best make sure that we have no serious bugs (experimental features apart)

I think it's better to start a new thread for this issue.

I maintain a small list of bugs and quirks which I would like to
share. I don't know if the issues are considered bugs or not. I
posted most of them to the mailing list at some point, but AFAIK
they have not been fixed for whatever reason. Usually there are
simple workarounds or I have some code which fixes the issue. Others
are still unresolved. Act upon as you see fit.

%

%% Wrong spacing in \unit when no number is given
\starttext
\starttabulate
\NC wrong spacing \EQ (\unit{micro mol})   \NC\NR
\NC spacing OK\EQ (µmol)   \NC\NR
\NC spacing OK\EQ (3\,µmol)\NC\NR
\NC spacing OK\EQ (3 \unit{micro mol}) \NC\NR
\NC spacing OK\EQ (\unit{3 micro mol}) \NC\NR
\stoptabulate
\stoptext

%

%% Newline after \placelegend fails
\starttext
\startplacelegend

\startcontent
Foo
\stopcontent
\startcaption
Bar
\stopcaption
\stopplacelegend
\stoptext

%

%% way setting does not work in \setupcaptions
%% The way setting cannot be applied globally to all floats using
%% \setupcaptions. For the prefix value it works.

\setupblackrules
  [width=4cm, height=1cm]

%% prefix is applied, way is not
\setupcaptions
 [prefix=no,
  way=bytext]

%% prefix and way are applied
%% \setupcaption
%%   [figure, table]
%%   [prefix=no,
%%way=bytext]

\starttext
\dorecurse{2}{%
  \startchapter [title=Chapter]
\dorecurse{2}{%
  \startplacefigure
\blackrule
  \stopplacefigure
  \startplacetable
\blackrule
  \stopplacetable}
  \stopchapter}
\stoptext

%

%% Wide descriptions protruding into the margin

\definedescription
  [description]
  [alternative=hanging,
   width=broad]

\starttext
\startdescription{conclusion that}
  \input knuth
\stopdescription

\startdescription{conclusion that the designer of a new system must not only be 
literally}
  \input knuth
\stopdescription
\stoptext

%

%% interaction mode focus=current does not work for footnotes and floats
\setupinteraction
  [state=start,focus=standard]

\starttext
\in{figure}[foo]
\startplacefigure [reference=foo]
\stopplacefigure
\stoptext

%

%% the \stop… line of database module environment must not be indented,
%% spurious line otherwise
\usemodule [database]

\defineseparatedlist
  [CSV]
  [before=\bTABLE, after=\eTABLE,
   first=\bTR, last=\eTR,
   left=\bTD, right=\eTD]

\starttext

%% indentation with spaces works
  \startCSV
alpha, 10
beta,  20
gamma, 30
  \stopCSV

%% indentation with tabs produces spurious extra line
\startCSV
alpha, 10
beta,  20
gamma, 30
\stopCSV

%% some weird indentation works, but looks awkward
\startplacetable
\startCSV
alpha, 10
beta,  20
gamma, 30
\stopCSV
\stopplacetable

\stoptext

%

%% MetaPost Location throws error
\startuseMPgraphic{foo}
  %% works
  %% fill Field[Header][Text];

  %% error
  fill Area[Header][Text] shifted Location[Header][Text];
\stopuseMPgraphic

\starttext
  \useMPgraphic{foo}
\stoptext

%


Marco


signature.asc
Description: Digital signature
___
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 / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] List of bugs and quirks

2013-03-27 Thread Marco Patzer
On 2013–03–27 Hans Hagen wrote:

> A potentially incompatible change

It's already the second time you warn me about this. Should I be
concerned?

> ... upto you and wolfgang to check it

Actually I used a patched version for months in several projects
without issues. I replaced the kern with an hskip. That said, it's
unlikely that *I* will run into issues. And I'm curious about an
example where this fails and yields unacceptable results (like the
unpatched version does).

Thanks Hans for taking the time to look into that.

Marco


signature.asc
Description: Digital signature
___
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 / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Attach source to pdf

2013-03-28 Thread Marco Patzer
On 2013–03–28 pol stra wrote:

> Is there a way to automatically attach the source file to the produced pdf?

\setupinteraction [state=start]
\starttext
  \attachment[file=attachfile.tex, title=Some file, author=Me]
\stoptext


signature.asc
Description: Digital signature
___
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 / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] manual

2013-04-03 Thread Marco Patzer
On 2013–04–03 Meer H. van der wrote:

> The latest downloaded ConTeXt manual to be found on my system is:
> 
>   ConTeXt reference manual
>   Hans Hagen, Taco Hoekwater
>   June 1,2011
> 
> Is there a more recent one?

October 18, 2012:

http://wiki.contextgarden.net/Manual_being_revised


Marco


signature.asc
Description: Digital signature
___
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 / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Latest beta breaks LuajitTeX

2013-04-03 Thread Marco Patzer
Hi,

the latest beta throws:

mtx-context | redirect texlua -> luajittex: luajittex --luaonly 
"/tmp/luajitbug/newbeta/tex/texmf-linux-64/bin/mtxrun" --script context --jit t 
--redirected/tmp/luajitbug/newbeta/tex/texmf-linux-64/bin/mtxrun:15230: attempt 
to index field 'searchers' (a nil value)

Example:

\starttext
  Foobar
\stoptext


Marco


signature.asc
Description: Digital signature
___
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 / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Latest beta breaks LuajitTeX

2013-04-03 Thread Marco Patzer
On 2013–04–03 luigi scarso wrote:

> Hans is working on a new beta that (among other things)

That's good news.

> will fix the issue, in the meanwhile you can try to comment the offending 
> line .

Not necessary, I'll wait for the new beta.


Marco


signature.asc
Description: Digital signature
___
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 / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Latest beta breaks LuajitTeX

2013-04-04 Thread Marco Patzer
On 2013–04–03 Hans Hagen wrote:

> On 4/3/2013 12:46 PM, Marco Patzer wrote:
> >Hi,
> >
> >the latest beta throws:
> >
> >mtx-context | redirect texlua -> luajittex: luajittex --luaonly 
> >"/tmp/luajitbug/newbeta/tex/texmf-linux-64/bin/mtxrun" --script context 
> >--jit t 
> >--redirected/tmp/luajitbug/newbeta/tex/texmf-linux-64/bin/mtxrun:15230: 
> >attempt to index field 'searchers' (a nil value)
> >
> >Example:
> >
> >\starttext
> >   Foobar
> >\stoptext
> 
> it should work again now

Indeed, LuajitTeX works, but you broke MkII. The format generation
already fails:

…
(/tmp/mkiitest/tex/texmf/metapost/base/string.mp 
(/tmp/mkiitest/tex/texmf-context/metapost/context/base/mp-func.mpii) ) )
(end occurred when else on line 5 was incomplete)


Marco


signature.asc
Description: Digital signature
___
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 / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Latest beta breaks LuajitTeX

2013-04-04 Thread Marco Patzer
On 2013–04–04 Hans Hagen wrote:

> >Indeed, LuajitTeX works, but you broke MkII. The format generation
> >already fails:
> >
> >…
> >(/tmp/mkiitest/tex/texmf/metapost/base/string.mp 
> >(/tmp/mkiitest/tex/texmf-context/metapost/context/base/mp-func.mpii) ) )
> >(end occurred when else on line 5 was incomplete)
> 
> That's not mkii but the metafun mpii format generation. I kept that
> till now because one never knows is mp has been updated. Todays
> mpost has no format so that's why it looks like it 'fails' but can
> can just ignore it.

Maybe I quoted the wrong part of the log, but it seems like the MkII
format is not generated:

  This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012)
   \write18 enabled.

  kpathsea: Running mktexfmt cont-en.fmt
  mktexfmt: No such file or directory
  I can't find the format file `cont-en.fmt'!


Marco


signature.asc
Description: Digital signature
___
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 / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Latest beta breaks LuajitTeX

2013-04-04 Thread Marco Patzer
On 2013–04–04 Marco Patzer wrote:

> On 2013–04–04 Hans Hagen wrote:
> 
> > >Indeed, LuajitTeX works, but you broke MkII. The format generation
> > >already fails:
> > >
> > >…
> > >(/tmp/mkiitest/tex/texmf/metapost/base/string.mp 
> > >(/tmp/mkiitest/tex/texmf-context/metapost/context/base/mp-func.mpii) ) )
> > >(end occurred when else on line 5 was incomplete)
> > 
> > That's not mkii but the metafun mpii format generation. I kept that
> > till now because one never knows is mp has been updated. Todays
> > mpost has no format so that's why it looks like it 'fails' but can
> > can just ignore it.
> 
> Maybe I quoted the wrong part of the log, but it seems like the MkII
> format is not generated:

MkII is fixed now.


Marco


signature.asc
Description: Digital signature
___
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 / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] markdown: referencing tables

2013-04-10 Thread Marco Patzer
On 2013–04–09 Xenia wrote:

> \startmarkdown
>   Right Left Center Default
> --- -- --   ---
>  12 121212
> 123 123   123  123
>   1 1  1 1
> 
> Table:  Demonstration of simple table syntax.
> \stopmarkdown
> 
> Is there a way to reference this table?

I might get you wrong here, but I think this is a markdown/pandoc
issue. Look at the ConTeXt code generated for section references:

  %%% section.markdown 
  Whatever
  

  See [section](#whatever)
  %

  %%% section.tex %
  \section[whatever]{Whatever}

  See \in{section}{}[whatever]
  %

Now compare this with the code generated for tables on the other
hand:

  %%% table.markdown %%
Right Left Center Default
  --- -- --   ---
   12 121212
  123 123   123  123
1 1  1 1

  Table: Caption

  See [table](#caption)
  %

  %%% table.tex %%%
  \placetable[here]{Caption}
  \starttable[|r|l|c|l|]
  \HL
  \NC Right
  \NC Left
  \NC Center
  \NC Default
  \NC\AR
  \HL
  \NC 12
  \NC 12
  \NC 12
  \NC 12
  \NC\AR
  \NC 123
  \NC 123
  \NC 123
  \NC 123
  \NC\AR
  \NC 1
  \NC 1
  \NC 1
  \NC 1
  \NC\AR
  \HL
  \stoptable

  See \in{table}{}[caption]
  %

As you can see, no reference is created. I don't even know if
references are supported in markdown in the same way section
references are. If this is actually supposed to work, then I assume
a bug in the pandoc context output filter.

Marco


signature.asc
Description: Digital signature
___
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 / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

  1   2   3   4   5   6   7   8   >