[NTG-context] PDF/A-3a attachment support query

2019-12-05 Thread Rik Kabel

Hello list,

The following document fails PDF/A-3a validation. It passes without the 
attachment.


   \setuplanguage   [en]
   \setuptagging    [state=start]
   \setupinteraction    [state=start]
   \setupbackend    [format={pdf/a-3a},profile={default_gray.icc},
  intent={ISO coated v2 300\letterpercent\space
   (ECI)}]
   \setupstructure  [state=start,method=auto]
   \setupcolors [pagecolormodel=auto,start=yes,rgb=no,cmyk=no]
   \setupbodyfont   [Palatino,10pt]
   \starttext

  Attaching a plain text file.

   % \attachment    [file=test.tex,
   % type={text/plain;charset=UTF-8}]
   % The \ConTeXt\ source code for this document is attached here.
  \attachment    [file=testa.pdf,
  type={application/pdf}]
  A successfully validated pdf/a-3a file is attached here.

   \stoptext

pdf-online <https://www.pdf-online.com/osa/validate.aspx>reports:

   Validating file "test.pdf" for conformance level pdfa-3a
   The key F is required but missing.
   The appearance dictionary doesn't contain an entry.
   File specification 'testa.pdf' not associated with an object.
   The document does not conform to the requested standard.
   The document doesn't conform to the PDF reference (missing required
   entries, wrong value types, etc.).
   The document contains hidden, invisible, non-viewable or
   non-printable annotations.
   The document contains annotations or form fields with ambigous or
   without appropriate appearances.
   The document does not conform to the PDF/A-3a standard.
   Done.

My understanding is that 3-a should support both pdf and non-pdf 
attachments. This fails in a similar manner with both pdf/a-3a-validated 
files and with plain text files. I also tested with verapdf, and it also 
rejected the document with an attachment.


Is this my error, or is it not yet supported?

--
Rik Kabel


___
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] two issues with inmargin attachments

2019-11-20 Thread Pablo Rodriguez
Hi Hans,

I have the following sample, using latest beta from 2019.11.14 17:07:

\setuppapersize[A5]
\showframe
\setupinteraction[state=start]
\setupinteractionscreen[option=attachment]
\starttext
a\attachment[file=xml-mkiv.pdf]
b\attachment[file=mkiv-publications.pdf]
c\attachment[file=onandon.pdf, location=inmargin]
d\attachment[file=notnow.pdf, location=inmargin]
e\attachment[file=about.pdf, location=text]
f\attachment[file=i-context.pdf, location=text]
\stoptext

The default location seems to be "text", but when specified as option it
prevents the attachment. The general configuration for location may be
different, but in that case it seems impossible to use "text" for a
single attachment.

"location=inmargin" seems to place all /FileAttachment annotations on
the same place (when from the same line, they have the same /Rect), as
shown in the excerpt:

    21 0 obj
<<
  /Type /Annot
  /NM (attachment:3)
  /Subtype /FileAttachment
  /Rect [ 35.54572 493.13349 41.52002 499.1078 ]
>>
    endobj

22 0 obj
<<
  /Type /Annot
  /NM (attachment:4)
  /Subtype /FileAttachment
  /Rect [ 35.54572 493.13349 41.52002 499.1078 ]
>>
endobj

Would it be possible that inmargin attachments allow more than one from
the same line?

Many thanks for your help,

Pablo
--
http://www.ousia.tk
___
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] Exchangeing content of variables between luacode and context

2019-11-20 Thread Hans Hagen

On 11/19/2019 8:34 PM, Rudolf Bahr wrote:


My 'actual problem' is more or less a design problem: Should in a book project
ConTeXt be the master and Luacode the slave or vice versa? Both seems possible.


nearly always context is th emaster (it is anyway as it manages the 
process)



The task to solve is to set a photo album with say 300 DIN A4 landscape pages.
On every page there should be 1 to 4 columns filled with photos and texts mostly
defined in layers.

Up to now I made all in ConTeXt manually by trying, for instance::
- To estimate the width of layers, if neighboured layers should contain photos 
of
   same height with respect to center horizontally all columns at end of page.


can be done in tex of lua


- To complete abbreviations of long picture names; it's rather annoying doing
   this by copy and paste with hundreds of photo names; instead I'd like to type
   a short code and Luacode should complete it to the full name.


that can be done runtime ...


- To estimate the shift amount of all columns together in order to horizontally
   get them centered on the page.


can be done by tex or lua


All of these tasks can be made best by Luacode functions. And I'd like to save
their results in the ConTeXt program permanently. With 'tokens.setters.macro()'
it's possible only in the same, Luacode calling ConTeXt run. In the following
run, the macro shows its original value again and the Luacode program must be
called again to alter it.


you can store info in the tuc file (there are examplex on the wiki and 
in the test suite) or you cam create a table, save it at the end of the 
run and load it at the start


(assuming that you cannot just recalculate the values each run, but i 
assume that you have a reason for not doing that)



So I've to think about making Luacode the master and ConTeXt the slave. Then 
it'd
be possible to embody Luacode's results permanently in the ConTeXt code. Vice 
versa
a solution could be to store Luacode's results in a flattened Lua table on disc.
But the perfect relating to their ConTeXt page remains difficult when inserting
or deleting of pages in an ensemble of 300 pages should become necessary. 
Another
much simpler solution would be the proposal above, namely, to copy the ConTeXt
program step by step and page by page to another file and introducing the 
Luacode
results simultaneously.


if each page can be recognized you can make a hash of its properties and 
store the page specific data using that hash



In [1] there is a chapter with "stepper" commands, but I didn't understand that,
so I can't say, whether they are suitable for this issue.


unrelated

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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] Exchangeing content of variables between luacode and context

2019-11-19 Thread Rudolf Bahr
On Tue, Nov 19, 2019 at 04:55:15PM +0100, Wolfgang Schuster wrote:
> 
> Can you make a minimal example of your actual problem.


No, sorry, I can't.

My 'actual problem' is more or less a design problem: Should in a book project
ConTeXt be the master and Luacode the slave or vice versa? Both seems possible.

The task to solve is to set a photo album with say 300 DIN A4 landscape pages.
On every page there should be 1 to 4 columns filled with photos and texts mostly
defined in layers.

Up to now I made all in ConTeXt manually by trying, for instance::
- To estimate the width of layers, if neighboured layers should contain photos 
of
  same height with respect to center horizontally all columns at end of page.
- To complete abbreviations of long picture names; it's rather annoying doing
  this by copy and paste with hundreds of photo names; instead I'd like to type
  a short code and Luacode should complete it to the full name.
- To estimate the shift amount of all columns together in order to horizontally
  get them centered on the page.

All of these tasks can be made best by Luacode functions. And I'd like to save
their results in the ConTeXt program permanently. With 'tokens.setters.macro()'
it's possible only in the same, Luacode calling ConTeXt run. In the following
run, the macro shows its original value again and the Luacode program must be
called again to alter it.

So I've to think about making Luacode the master and ConTeXt the slave. Then 
it'd
be possible to embody Luacode's results permanently in the ConTeXt code. Vice 
versa
a solution could be to store Luacode's results in a flattened Lua table on disc.
But the perfect relating to their ConTeXt page remains difficult when inserting
or deleting of pages in an ensemble of 300 pages should become necessary. 
Another
much simpler solution would be the proposal above, namely, to copy the ConTeXt
program step by step and page by page to another file and introducing the 
Luacode
results simultaneously. 

In [1] there is a chapter with "stepper" commands, but I didn't understand that,
so I can't say, whether they are suitable for this issue.

Rudolf

[1] Hans Hagen, "ConTeXt Lua Documents", January 12, 2018, 3.4, page 30
___
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] new beta

2019-11-12 Thread Pablo Rodriguez
On 11/12/19 7:50 PM, Hans Hagen wrote:
> Hi,
>
> I uploaded a new beta. Apart from some fixes, the main change in lmtx is
> that on windows most (a few exceptions) of the mechanisms that interface
> to the operating system support the internal wide character model which
> should make the lot more robust for file names, environment variables,
> command line options etc that (at the tex/lua end utf8) have characters
> other than ascii. Another improvement in lmtx is support for ancient
> type 1 fonts (like the type 1 lucidas) but that's more 'being complete'
> than a 'real need' (when such fonts are used wiping the cache is
> needed). Both these (lmtx only) patches can have unforseen (by me) side
> effects but nothing that can't be fixed fast.

Many thanks for the new beta, Hans.

I cannot find any of these documents (in MkIV, with first-setup.sh
installer):

tex/texmf-context/tex/context/interface/mkiv/i-context.pdf
tex/texmf-context/doc/context/documents/general/qrcs/setup-en.pdf
tex/texmf-context/doc/context/documents/general/qrcs/setup-mapping-en.pdf

It doesn’t seem to be renamed (at least, to me).

BTW, I cannot compile this sample with MkIV :

\starttext
a
\stoptext

Here you have the error message:

tex error   > tex error on line 133 in file math-ini.mkiv:
! Undefined control sequence
l.133 \ordlimits
  \limits

LMTX has no problems with this. Could you fix this in MkIV?

Many thanks for your help,

Pablo
--
http://www.ousia.tk
___
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] new beta

2019-11-12 Thread Hans Hagen

Hi,

I uploaded a new beta. Apart from some fixes, the main change in lmtx is 
that on windows most (a few exceptions) of the mechanisms that interface 
to the operating system support the internal wide character model which 
should make the lot more robust for file names, environment variables, 
command line options etc that (at the tex/lua end utf8) have characters 
other than ascii. Another improvement in lmtx is support for ancient 
type 1 fonts (like the type 1 lucidas) but that's more 'being complete' 
than a 'real need' (when such fonts are used wiping the cache is 
needed). Both these (lmtx only) patches can have unforseen (by me) side 
effects but nothing that can't be fixed fast.


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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] ASCII mode within \footnote

2019-11-08 Thread context

Hello,

many thanks again, especially \type[compact=absolute] and 
\typeinlinebuffer solve my problem!


Best regards,

Lukas


On 2019-11-08 09:52, Hans Hagen wrote:

On 11/8/2019 12:11 AM, Aditya Mahajan wrote:

On Thu, 7 Nov 2019, Wolfgang Schuster wrote:


A way to avoid this problem is to use a slash a path separator
instead of the backslash. Another way to get rid of it is to save
the path a buffer and print the content of the buffer with the
\typeinlinebuffer command.


\starttext

\startbuffer
%APPDATA%\file.txt
\stopbuffer

\footnote{\typeinlinebuffer}

\stoptext


Another option, if you have many such files is to define a macro:

\define[1]\APPDATA{\mono{\letterpercent 
APPDATA\letterpercent\letterbackslash#1}}


And then use:

\footnote{\APPDATA{file.txt}}

or ...

\footnote{\type[compact=absolute]{%APPDATA%\file.txt}}

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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
___

___
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] ASCII mode within \footnote

2019-11-08 Thread Hans Hagen

On 11/8/2019 12:11 AM, Aditya Mahajan wrote:

On Thu, 7 Nov 2019, Wolfgang Schuster wrote:


A way to avoid this problem is to use a slash a path separator
instead of the backslash. Another way to get rid of it is to save
the path a buffer and print the content of the buffer with the
\typeinlinebuffer command.


\starttext

\startbuffer
%APPDATA%\file.txt
\stopbuffer

\footnote{\typeinlinebuffer}

\stoptext


Another option, if you have many such files is to define a macro:

\define[1]\APPDATA{\mono{\letterpercent 
APPDATA\letterpercent\letterbackslash#1}}


And then use:

\footnote{\APPDATA{file.txt}}

or ...

\footnote{\type[compact=absolute]{%APPDATA%\file.txt}}

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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] ASCII mode within \footnote

2019-11-07 Thread Wolfgang Schuster

> Hello,
>
> thanks Aditya and Wolfgang for "deep" explanation in several last
> mails.
>
> We are approaching the goal...
>
> Aditya's ocde:
>
> 
> \starttext
>\startasciimode
>  \footnote{\type{%APPDATA%\file.txt}}
>\stopasciimode
> \stoptext
> 
>
> gives (in the footnote):
>
> "
> 1 %APPDATA%\file .txt
> "   ^
> ... +-- So there is ONE UNWANTED SPACE - how to make
> it disappear?
>
> Thank you again for patience and best regards,
>
> Lukas

When you use \type in the argument of another command there are some
limitation in TeX and this is another one.

The reason for the space is that TeX adds a space after a command when
it reads the argument which will in this case appears in the output.
When you use \type outside of the footnote this won't happens because
\file in the argument is treated as a backslash followed by four single
letters but in this case TeX handles it as the commend \file.

Below is a simple example which demonstrates the behaviour, with the
\detokenize command (nothing you need in a normal document) you can
visualize TeX's behaviour. The second example shows another problematic
characters.


\starttext

\type{\dummy.}

\firstofoneargument{\type{\dummy.}}

{\tt\detokenize{\dummy.}}

\blank

\type{#}

\firstofoneargument{\type{#}}

{\tt\detokenize{#}}

\stoptext


A way to avoid this problem is to use a slash a path separator
instead of the backslash. Another way to get rid of it is to save
the path a buffer and print the content of the buffer with the
\typeinlinebuffer command.


\starttext

\startbuffer
%APPDATA%\file.txt
\stopbuffer

\footnote{\typeinlinebuffer}

\stoptext


Wolfgang
___
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] \type ignores space between command and bracket

2019-11-05 Thread Wolfgang Schuster

Hi,

in the following code example the result from \type lacks the space 
between \cmd and the following left bracket.


\starttext

\starttyping
\cmd [...]
\stoptyping

\type{\cmd [...]}

\stoptext

Wolfgang

___
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] ASCII mode within \footnote

2019-11-05 Thread context

Hello,

thanks Aditya and Wolfgang for "deep" explanation in several last mails.

We are approaching the goal...

Aditya's ocde:


\starttext
  \startasciimode
\footnote{\type{%APPDATA%\file.txt}}
  \stopasciimode
\stoptext


gives (in the footnote):

"
1 %APPDATA%\file .txt
"   ^
... +-- So there is ONE UNWANTED SPACE - how to make it 
disappear?


Thank you again for patience and best regards,

Lukas


On 2019-11-04 15:05, Aditya Mahajan wrote:

On Mon, 4 Nov 2019, Aditya Mahajan wrote:

That should have been:


As Hans' mentioned, use:

\startasciimode
\footnote{\type{%APPDATA%\file.txt}}
\stopasciimode


Aditya
\starttext
  \startasciimode
\footnote{\type{%APPDATA%\file.txt}}
  \stopasciimode
\stoptext


t4.pdf
Description: Adobe PDF document
___
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] ASCII mode within \footnote

2019-11-04 Thread Wolfgang Schuster

Aditya Mahajan schrieb am 04.11.2019 um 15:05:

On Mon, 4 Nov 2019, Aditya Mahajan wrote:

That should have been:


As Hans' mentioned, use:

\startasciimode
\footnote{\type{%APPDATA%\file.txt}}
\stopasciimode


In a longer document setting \asciimode at the begin can be the better 
solution.


The reason why setting \asciimode in the \footnote doesn't work is that 
TeX uses
uses the meaning of a special character it had when it read the 
argument, i.e.
when TeX reads the text "%APPDATA%\file.txt" the percent sign acts as 
begin of
a comment and everything after it is ignored. As a result the asciimode 
command

can't work because the text has already disappeared.

Other characters like $ are less problematic because there are ways to 
change
their meaning afterwards (# can be tricky) but not comments because 
nothing remains.


\setupbuffer
  [before=\blank,
   after=\blank]

\starttext

Normal comment:

\startbuffer
    % comment
\stopbuffer

\typebuffer \getbuffer

Comment in \type{asciimode} environment:

\startbuffer
    \startasciimode
    % comment
    \stopasciimode
\stopbuffer

\typebuffer \getbuffer

Comment in the argument of a command:

\startbuffer
    \firstofoneargument
    {
    % comment
    }
\stopbuffer

\typebuffer \getbuffer

Comment in the argument of a command + \type{asciimode} in the argument:

\startbuffer
    \firstofoneargument
    {
    \startasciimode
    % comment
    \stopasciimode
    }
\stopbuffer

\typebuffer \getbuffer

Comment in a argument after \type{asciimode} was enabled:

\startbuffer
    \startasciimode
    \firstofoneargument
    {
    % comment
    }
    \stopasciimode
\stopbuffer

\typebuffer \getbuffer

\stoptext

Wolfgang

___
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] ASCII mode within \footnote

2019-11-04 Thread Aditya Mahajan

On Mon, 4 Nov 2019, Aditya Mahajan wrote:

That should have been:


As Hans' mentioned, use:

\startasciimode
\footnote{\type{%APPDATA%\file.txt}}
\stopasciimode


Aditya
___
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] ASCII mode within \footnote

2019-11-04 Thread Aditya Mahajan

On Mon, 4 Nov 2019, cont...@vivaldi.net wrote:


Hello Aditia,

thanks for reaction.

I simply want to write "%APPDATA%\file.txt" and the same into the 
footnote, with ability to use the text "%APPDATA%\file.txt" without any 
substitution (like "%" -> "\letterpercent") - if possible.


My attepmts with \text or \asciimode fail:


\starttext
  \type{%APPDATA%\file.txt}
  \footnote{%
%\type{%APPDATA%\file.txt}
%\asciimode{%APPDATA%\file.txt}
  }
\stoptext


Even plays with

  %\catcode\commentasciicode=\othercatcode
  %\catcode\backslashasciicode=\othercatcode

don't give the desired result.

So - is there a simple way how to get strings with "%" and "\" (which 
represent a path on Windows) into footnote?


As Hans' mentioned, use:

\startasciicode
\footnote{\type{%APPDATA%\file.txt}}
\stopasciicode

Aditya
___
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] ASCII mode within \footnote

2019-11-04 Thread context

Hello Aditia,

thanks for reaction.

I simply want to write "%APPDATA%\file.txt" and the same into the 
footnote, with ability to use the text "%APPDATA%\file.txt" without any 
substitution (like "%" -> "\letterpercent") - if possible.


My attepmts with \text or \asciimode fail:


\starttext
  \type{%APPDATA%\file.txt}
  \footnote{%
%\type{%APPDATA%\file.txt}
%\asciimode{%APPDATA%\file.txt}
  }
\stoptext


Even plays with

  %\catcode\commentasciicode=\othercatcode
  %\catcode\backslashasciicode=\othercatcode

don't give the desired result.

So - is there a simple way how to get strings with "%" and "\" (which 
represent a path on Windows) into footnote?


Best regards,

Lukas


On 2019-11-02 16:35, Aditya Mahajan wrote:


Why not just use asciimode?

To understand why \footnote{\type{...}}} doesn't work, you need to
understand TeX's "digestive system". \type{...} (and asciimode) work
by modifying the catcode tables. However, they are are used inside a
footnote, the argument of \footnote is parsed according to the catcode
table which is active when footnote is passed. Under the default
catcode table, % is a comment, so when you type:

\footnote{\type{*\$%
}}

the argument of \footnote is `\type{*\$}`

So, if you want \footnote to "see" the %, you need to activate a
catcode table where % is a letter. So, the simplest solution is to use
\asciimode.

Aditya

___
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] ASCII mode within \footnote

2019-11-02 Thread Aditya Mahajan

On Sat, 2 Nov 2019, cont...@vivaldi.net wrote:


Hello,

OK, thanks for reaction.

One more example - \text instead of ascii mode:


\starttext
  \type{%@$}
  A\footnote{\type{*\$%
  }}
  B\footnote{\type{*\$\%
  }}
\stoptext


gives:

"
*\$
*\$\%
"

in the footnote.

IOW, I cannot simply print "%": "%" at the end yields "" whilst "\%" 
produces "\%".


Is there a simple way to prinst simple "%"?
(There is probably a more clumsy way - type \letterpercent instead of % 
- but this is a minimal sample; in my real sample there are many "%"s to 
be shown as "%".)


Why not just use asciimode?

To understand why \footnote{\type{...}}} doesn't work, you need to 
understand TeX's "digestive system". \type{...} (and asciimode) work by 
modifying the catcode tables. However, they are are used inside a 
footnote, the argument of \footnote is parsed according to the catcode 
table which is active when footnote is passed. Under the default catcode 
table, % is a comment, so when you type:


\footnote{\type{*\$%
}}

the argument of \footnote is `\type{*\$}`

So, if you want \footnote to "see" the %, you need to activate a catcode 
table where % is a letter. So, the simplest solution is to use \asciimode.


Aditya
___
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] ASCII mode within \footnote

2019-11-02 Thread context

Hello,

OK, thanks for reaction.

One more example - \text instead of ascii mode:


\starttext
  \type{%@$}
  A\footnote{\type{*\$%
  }}
  B\footnote{\type{*\$\%
  }}
\stoptext


gives:

"
*\$
*\$\%
"

in the footnote.

IOW, I cannot simply print "%": "%" at the end yields "" whilst "\%" 
produces "\%".


Is there a simple way to prinst simple "%"?
(There is probably a more clumsy way - type \letterpercent instead of % 
- but this is a minimal sample; in my real sample there are many "%"s to 
be shown as "%".)


Best regards,

Lukas


On 2019-11-01 14:36, Hans Hagen wrote:

On 11/1/2019 2:23 PM, cont...@vivaldi.net wrote:

Hello,

the following code doesn't compile:


\starttext
   \startasciimode %@$\stopasciimode
   A
   \footnote{\startasciimode %@$\stopasciimode} % <<<< Try to comment 
this

\stoptext


When the line with \footnote is commented, compilation works fine.

What's "evil" in \footnote{\startasciimode %@$\stopasciimode}?
the fact that startasciimode will not be in action as it's passed as 
argument


\starttext
\startasciimode
%@$
A
\footnote{%@$} % <<<< Try to comment this
\stopasciimode
\startasciimode
\footnote{%@$}
\stopasciimode
\stoptext

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-

___
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] LTMX crashes on OpenBSD 6.5 amd64

2019-10-20 Thread Hans Hagen

On 10/20/2019 11:11 AM, Damien Thiriet wrote:

Hi,


As I wrote yesterday, I have crashes on LTMX, openbsd6.5-amd64.
LTMX version:

ConTeXt  ver: 2019.10.10 18:15 MKIV beta  fmt: 2019.10.19  int:
english/english

I was not yet able to trace why does it crashes.
The crashes is connected with buses, but I can hardly say anything more.

Here are the last lines of a crashed-compilation log. Looks likes the file was
compiled and then something got wrong. Maybe something gets wrong after
some time of compilation. Bigger files crash after 10–12 pages.

mkiv lua stats  > result saved in file: sprawdziany5C.pdf, compresslevel
3, objectcompresslevel 1
mkiv lua stats  > loaded patterns: en::1 fr::55, load time: 0.000
mkiv lua stats  > loaded fonts: 2 files: latinmodern-math.otf,
lmsans10-regular.otf
mkiv lua stats  > font engine: otf 3.109, afm 1.513, tfm 1.000, 5
instances, 1 shared in backend, 0 common vectors, 1 common hashes, load
time 0.321 seconds
mkiv lua stats  > metapost: 0.005 seconds, loading: 0.122, execution:
0.004, n: 3, average: 0.043, instances: 1, luacalls: 223, memory: 3.265
M
mkiv lua stats  > graphics processing time: 0.005 seconds including tex,
1 processed images, 1 unique asked, 1 bad names
mkiv lua stats  > font embedding time: 0.014 seconds, 1 fonts
mkiv lua stats  > used platform: linux, type: unix, binary subtree:
texmf-openbsd6.5-amd64
mkiv lua stats  > used engine: luametatex version 2.0, functionality
level 20190729, format id 977
mkiv lua stats  > control sequences: 46949 of 65536 + 10
mkiv lua stats  > lua properties: engine: lua 5.4, used memory: 44 MB,
ctx: 43 MB, max: 47 MB), hash chars: min(64,40), symbol mask: utf (τεχ)
mkiv lua stats  > runtime: 1.781 seconds, 10 processed pages, 10 shipped
pages, 5.614 pages/second
Bus error (core dumped)
mtx-context | fatal error: return code: 35328


Shall I send the dump core somewhere?
I have no clue how to trace it ... mabe Alan knows as he's on 
somekindofBSD too.


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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] LTMX crashes on OpenBSD 6.5 amd64

2019-10-20 Thread Damien Thiriet
Hi,


As I wrote yesterday, I have crashes on LTMX, openbsd6.5-amd64.
LTMX version:

ConTeXt  ver: 2019.10.10 18:15 MKIV beta  fmt: 2019.10.19  int:
english/english

I was not yet able to trace why does it crashes.
The crashes is connected with buses, but I can hardly say anything more.

Here are the last lines of a crashed-compilation log. Looks likes the file was
compiled and then something got wrong. Maybe something gets wrong after
some time of compilation. Bigger files crash after 10–12 pages.

mkiv lua stats  > result saved in file: sprawdziany5C.pdf, compresslevel
3, objectcompresslevel 1
mkiv lua stats  > loaded patterns: en::1 fr::55, load time: 0.000
mkiv lua stats  > loaded fonts: 2 files: latinmodern-math.otf,
lmsans10-regular.otf
mkiv lua stats  > font engine: otf 3.109, afm 1.513, tfm 1.000, 5
instances, 1 shared in backend, 0 common vectors, 1 common hashes, load
time 0.321 seconds
mkiv lua stats  > metapost: 0.005 seconds, loading: 0.122, execution:
0.004, n: 3, average: 0.043, instances: 1, luacalls: 223, memory: 3.265
M
mkiv lua stats  > graphics processing time: 0.005 seconds including tex,
1 processed images, 1 unique asked, 1 bad names
mkiv lua stats  > font embedding time: 0.014 seconds, 1 fonts
mkiv lua stats  > used platform: linux, type: unix, binary subtree:
texmf-openbsd6.5-amd64
mkiv lua stats  > used engine: luametatex version 2.0, functionality
level 20190729, format id 977
mkiv lua stats  > control sequences: 46949 of 65536 + 10
mkiv lua stats  > lua properties: engine: lua 5.4, used memory: 44 MB,
ctx: 43 MB, max: 47 MB), hash chars: min(64,40), symbol mask: utf (τεχ)
mkiv lua stats  > runtime: 1.781 seconds, 10 processed pages, 10 shipped
pages, 5.614 pages/second
Bus error (core dumped)
mtx-context | fatal error: return code: 35328


Shall I send the dump core somewhere?

Greetings,

Damien Thiriet

 
___
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] PDF viewer poll

2019-10-16 Thread Benct Philip Jonsson

On 2019-10-14 18:55, Marcin Borkowski wrote:

Hi,

I don't use ConTeXt anymore, but I still get the emails from the list,
and I quickly skimmed throught this thread to see if someone writes
about my pdf-viewer of choice - pdf-tools
(https://github.com/politza/pdf-tools).



I too don't use context anymore[^1] but I thought I should mention 
Zathura which is a good alternative if you like vi(m) and/or 
dislike/have trouble using a GUI.[^2].  The WP page (and `man zathura`) 
describes its capabilities well without me needing to type them. :-) 
They include synctex but I don't use it.


<https://en.wikipedia.org/wiki/Zathura_(document_viewer)>

[^1]: I never really took off with context because I already know how to 
do 9 out of 10 tasks in LaTeX, and when I don't the info is much easier 
to find online. Sorry!


[^2]: I have a motor disability which makes pointing with a mouse 
difficult and point-dragging almost impossible.  That's the main reason 
I got into text-only/plaintext/non-gui workflows, but I keep on because 
I find them better.  Unfortunately when computer accessibility is 
discussed it is almost synonymous with vision disability accessibility, 
but there are other reasons for having trouble with GUIs.




On 2019-10-13, at 12:43, Henning Hraban Ramm  wrote:


Hi, I’d like to update my list of (usable!) PDF viewers.
Which one do you use? (Current version?)


pdf-tools (version 20190701.202)


What are its pros and cons?


cons:
- no "continuous display"/"double page" modes

pros:
- searchable (also with regexen), also grep-like (i.e., display all
lines containing some regex and jump to them easily)
- annotations/comments are viewable (and jumpable to) w/o using the
mouse
- fast
- runs within Emacs (not sure if this is a "pro" for everyone...)


Is it free (open source, freeware)?


yes (GPL3)


Does it work on Win/Lin/Mac?


GNU/Linux, maybe Mac


Does it have a localized interface? (I don’t care, but I work with
people who don’t understand a lot of English.)


No.


Can it handle comments, attachments?


Yes.


Can it handle forms with or without JavaScript?


AFAIK, no.


Does it support SyncTeX? (Who uses that anyway?)


Yes, and I do all the time!


Does it update changed PDFs on its own (or does it even block
overwriting)?


I guess it can be configured to do so (like Emacs in general)


Which other features are essential for your choice?


As I said - I don't have to leave Emacs.  Also, incremental or grep-like
searching with literal text or regexen are killer features.

Best,

--
Marcin Borkowski
http://mbork.pl
___
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
___



___
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] changing an XML node and reprocess it (or xmlflushing a string)

2019-10-08 Thread Hans Hagen

On 10/8/2019 11:17 AM, mf wrote:

Solved with a dirty hack:

\startbuffer[text]
A paragraph with a fraction made of text with styles:
a fraction made of text/with 
nested styles inside.

\stopbuffer

\startluacode
local gsub = string.gsub
local sfind = string.find
local xmlflush = lxml.flush

local startTextFraction = "$\\frac{\\text{"
local stopTextFraction  = "}}$"

function xml.functions.textfraction( t )
   local dt = t.dt
   inspect( dt )
   local wrapper
   local slashfound = false
   context( startTextFraction )
   local index, child


^^ Not needed, they are local to the for loop


   for index, child in ipairs( dt ) do
     if type( child ) == "string" then
   if not slashfound and sfind( child, "/" ) then
     context( gsub( child, "/", "}}{\\text{" ) )
     slashfound = true
   else
     context( child )
   end
     elseif type( child ) == "table" then
   wrapper = {
     __parent__ = child.__parent__,
     at = {},
     dt = child
   }
   child.__parent__ = wrapper
   xmlflush( wrapper )
     end
   end
   context( stopTextFraction )
end
\stopluacode


or, to get rid of the wrapper:

\startluacode
local gsub, find = string.gsub, string.find
local xmlprint = xml.sprint
local context = context

local startTextFraction = "$\\frac{\\text{"
local stopTextFraction  = "}}$"

function xml.functions.textfraction(t)
context(startTextFraction)
local slashfound = false
local elements   = t.dt
for i=1,#elements do
local child = elements[i]
if type(child) == "table" then
 -- lxml.all(child,".")
xmlprint(child,t)
elseif not slashfound and find(child,"/") then
context((gsub(child,"/","}}{\\text{")))
slashfound = true
else
context(child)
end
end
context(stopTextFraction)
end
\stopluacode

i'll add the example to the "todo" for a "very dirty tricks" chapter 
some day



\startxmlsetups xml:textsetups
   \xmlsetsetup{#1}{*}{+}
   \xmlsetsetup{#1}{p|i|b|red}{xml:*}
   \xmlsetsetup{#1}{{span.fraction}}{xml:fraction}
\stopxmlsetups

\xmlregistersetup{xml:textsetups}

\startxmlsetups xml:p
   \xmlflush{#1}\par
\stopxmlsetups

\startxmlsetups xml:i
   {\it \xmlflush{#1}}
\stopxmlsetups

\startxmlsetups xml:red
   {\red \xmlflush{#1}}
\stopxmlsetups

\startxmlsetups xml:b
   {\bf \xmlflush{#1}}
\stopxmlsetups

\startxmlsetups xml:fraction
   \xmlfunction{#1}{textfraction}
\stopxmlsetups

\starttext
   \xmlprocessbuffer{main}{text}{}
\stoptext


Il 07/10/19 18:26, mf ha scritto:

Hello,
i'm using XML and i find useful specifying a fraction made of text 
this way:


text for numerator/text for denominator

With some lua, i can transform it into

\frac{\text{text for numerator}}{\text{text for denominator}}

which typesets something like this:

  text for numerator

text for denominator

Suppose you want to add some styling to the texts, like this:

text for numerator/text for 
denominator


You should split the span node into two elements and the xmlflush them.
This is my M(not)WE:

\startbuffer[text]
A paragraph with a fraction made of text with styles:
a fraction made of text/with 
styles inside.

\stopbuffer

\startluacode
local sub = string.sub
local sfind = string.find
local xmltext = xml.text
local xmlconvert = xml.convert

local function numeratorDenominator( text )
   local before, after = sfind( text, "[^<]/[^>]" )
   local num, den
   if before and after then
 num = sub( text, 1, before )
 den = sub( text, after )
   end
   return num, den
end


function xml.functions.textfraction( t )
   local text = xmltext( t, '' )
   local num, den = numeratorDenominator( text )
   if num and den then
 local fontstyle = tokens.getters.macro( "fontstyle" )
 local xml_num = xmlconvert( num )
 local xml_den = xmlconvert( den )
--    context( "$\\frac{\\text{\\" ..fontstyle .. " " .. num .. 
"}}{\\text{\\" ..fontstyle .. " " .. den .. "}}$" )

 context( "$\\frac{\\text{\\" ..fontstyle .. " " )
 context( num ) -- context.xmlprocessstring( xml_num )
 context( "}}{\\text{\\" ..fontstyle .. " " )
 context( den ) -- context.xmlprocessstring( xml_den )
 context( "}}$" )
   else
 context.xmlflush( t )
   end
end
\stopluacode

\startxmlsetups xml:textsetups
   \xmlsetsetup{#1}{*}{+}
   \xmlsetsetup{#1}{p|i|red}{xml:*}
   \xmlsetsetup{#1}{{span.fraction}}{xml:fraction}
\stopxmlsetups

\xmlregistersetup{xml:textsetups}

\startxmlsetups xml:p
   \xmlflush{#1}\par
\stopxmlsetups

\startxmlsetups xml:i
   {\it \xmlflush{#1}}
\stopxmlsetups

\startxmlsetups xml:red
   {\red \xmlflush{#1}}
\stopxmlsetups

\startxmlset

Re: [NTG-context] changing an XML node and reprocess it (or xmlflushing a string)

2019-10-08 Thread mf

Solved with a dirty hack:

\startbuffer[text]
A paragraph with a fraction made of text with styles:
a fraction made of text/with 
nested styles inside.

\stopbuffer

\startluacode
local gsub = string.gsub
local sfind = string.find
local xmlflush = lxml.flush

local startTextFraction = "$\\frac{\\text{"
local stopTextFraction  = "}}$"

function xml.functions.textfraction( t )
  local dt = t.dt
  inspect( dt )
  local wrapper
  local slashfound = false
  context( startTextFraction )
  local index, child
  for index, child in ipairs( dt ) do
if type( child ) == "string" then
  if not slashfound and sfind( child, "/" ) then
context( gsub( child, "/", "}}{\\text{" ) )
slashfound = true
  else
context( child )
  end
elseif type( child ) == "table" then
  wrapper = {
__parent__ = child.__parent__,
at = {},
dt = child
  }
  child.__parent__ = wrapper
  xmlflush( wrapper )
end
  end
  context( stopTextFraction )
end
\stopluacode

\startxmlsetups xml:textsetups
  \xmlsetsetup{#1}{*}{+}
  \xmlsetsetup{#1}{p|i|b|red}{xml:*}
  \xmlsetsetup{#1}{{span.fraction}}{xml:fraction}
\stopxmlsetups

\xmlregistersetup{xml:textsetups}

\startxmlsetups xml:p
  \xmlflush{#1}\par
\stopxmlsetups

\startxmlsetups xml:i
  {\it \xmlflush{#1}}
\stopxmlsetups

\startxmlsetups xml:red
  {\red \xmlflush{#1}}
\stopxmlsetups

\startxmlsetups xml:b
  {\bf \xmlflush{#1}}
\stopxmlsetups

\startxmlsetups xml:fraction
  \xmlfunction{#1}{textfraction}
\stopxmlsetups

\starttext
  \xmlprocessbuffer{main}{text}{}
\stoptext


Il 07/10/19 18:26, mf ha scritto:

Hello,
i'm using XML and i find useful specifying a fraction made of text this 
way:


text for numerator/text for denominator

With some lua, i can transform it into

\frac{\text{text for numerator}}{\text{text for denominator}}

which typesets something like this:

  text for numerator

text for denominator

Suppose you want to add some styling to the texts, like this:

text for numerator/text for 
denominator


You should split the span node into two elements and the xmlflush them.
This is my M(not)WE:

\startbuffer[text]
A paragraph with a fraction made of text with styles:
a fraction made of text/with 
styles inside.

\stopbuffer

\startluacode
local sub = string.sub
local sfind = string.find
local xmltext = xml.text
local xmlconvert = xml.convert

local function numeratorDenominator( text )
   local before, after = sfind( text, "[^<]/[^>]" )
   local num, den
   if before and after then
     num = sub( text, 1, before )
     den = sub( text, after )
   end
   return num, den
end


function xml.functions.textfraction( t )
   local text = xmltext( t, '' )
   local num, den = numeratorDenominator( text )
   if num and den then
     local fontstyle = tokens.getters.macro( "fontstyle" )
     local xml_num = xmlconvert( num )
     local xml_den = xmlconvert( den )
--    context( "$\\frac{\\text{\\" ..fontstyle .. " " .. num .. 
"}}{\\text{\\" ..fontstyle .. " " .. den .. "}}$" )

     context( "$\\frac{\\text{\\" ..fontstyle .. " " )
     context( num ) -- context.xmlprocessstring( xml_num )
     context( "}}{\\text{\\" ..fontstyle .. " " )
     context( den ) -- context.xmlprocessstring( xml_den )
     context( "}}$" )
   else
     context.xmlflush( t )
   end
end
\stopluacode

\startxmlsetups xml:textsetups
   \xmlsetsetup{#1}{*}{+}
   \xmlsetsetup{#1}{p|i|red}{xml:*}
   \xmlsetsetup{#1}{{span.fraction}}{xml:fraction}
\stopxmlsetups

\xmlregistersetup{xml:textsetups}

\startxmlsetups xml:p
   \xmlflush{#1}\par
\stopxmlsetups

\startxmlsetups xml:i
   {\it \xmlflush{#1}}
\stopxmlsetups

\startxmlsetups xml:red
   {\red \xmlflush{#1}}
\stopxmlsetups

\startxmlsetups xml:fraction
   \xmlfunction{#1}{textfraction}
\stopxmlsetups

\starttext
   \xmlprocessbuffer{main}{text}{}
\stoptext

Massi

___
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] notes in the margin

2019-10-04 Thread Henning Hraban Ramm
Hi Andres,
I have a working solution and another approach by Wolfgang:

This is not a MWE, and it contains probably a lot of unnecessary stuff.
Since Hans fixed some problems since, it might have become much easier.
E.g. I seldom need my FNVOffset correction any more.


% I thought I could setup those two together, but it didn’t work
\setupmargindata[inmargin][
  location=right,
  stack=continue,
  align=flushright,
  style={\switchtobodyfont[6pt]},
]
\setupmargindata[inouter][
  location=right,
  stack=continue,
  align=flushright,
  style={\switchtobodyfont[6pt]},
]

\def\FNVOffset{0} % Negative vertical offset of footnotes in lines
% Redefine this as necessary (e.g. if long footnotes overflow into the footer)

\def\MarginNote#1{%
\inmargin[
  voffset=\dimexpr-\FNVOffset\lineheight\relax,
  width=\ColWidth,
  align=flushleft,
]{%
  \inframed[
width=\ColWidth,
align=right,
frame=off,
offset=overlay,
strut=yes,
]{#1}%
  }%
}

\define\PlaceFootnote{%
\inmargin[
  voffset=\dimexpr-\FNVOffset\lineheight\relax,
  width=\ColWidth,
]{%
  \vtop{\switchtobodyfont[6pt]\placelocalnotes[footnote][before=,after=]}}%
}

\def\FNo#1{{#1~}} %\crlf\gobblespacetokens}}
% Distance/glue after number or before note text never disappears :(

\setupnote[footnote][
  location=text,
  bodyfont=,
  indenting=no,
  before={\noindentation},
  next=\PlaceFootnote,
]

\setupnotation[footnote][
way=bychapter,
align=flushleft,
  indenting=no,
  location=serried,
  alternative=serried,
  width=broad,
  numbercommand=\FNo,
] % footnote text

\setuptexttexts[margin][][%
  {\framed[
align={flushright,bottom},
frame=off,
height=\textheight,
width=\ColWidth,
  ]{%
\strut\vfill\switchtobodyfont[6pt]}}%
]


% different approach:
\definecounter[Mnote][way=bychapter,prefix=no]
\def\mnote#1{%
  \incrementcounter[Mnote]%
  \high{\color[mnotemark]{\convertedcounter[Mnote]}}%
  \inouter{{%
\FootnoteFont%
\color[mnotemark]{\convertedcounter[Mnote]}\crlf #1\blank[yes]}}%
}
%

Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD


> Am 2019-10-04 um 03:32 schrieb Andres Conrado Montoya 
> :
> 
> I've been tinkering with this problem. It's kind of frustrating not having a 
> right solution for this. 
> After trying and failing to the last solution published by Hraban on 
> 2018-02-12, I tried to implement my own approach, from the other way around, 
> I mean: not trying to implement notes as marginal material, but to implement 
> the marginalia as some type of notes. A different type, apart from footnotes, 
> with their own counter, etc.
> 
> Below, a MWE, with some caveats:. 
> 1. This is a poor quality hack. I'm not a developer.
> 2. If notes are too long, they clash with each other. I tried to understand 
> the options that would allow me to move them up or down, according to the 
> Wiki (https://wiki.contextgarden.net/Command/inmargin), but they don't seem 
> to do anything, or I don't understand how to work with them. But if there is 
> actually a way to manually instruct \inmargin to move up or down, it should 
> be easy to make it work as an optional third argument, for example. 
> 3. The counter introduces some horizontal space that I cant manage to remove 
> except by introducing manual negative \hspace. The MWE doesn't include that 
> space, to display the isse. 
> 4.  There are probably a ton of issues I have not thought about, but this 
> seems to work for this project I'm working on, at least. 
> 
> %%% Start MWE
> 
> \setuplayout[
> topspace=0.722in,
> header=0.311in,
> footer=0.622in,
> width=4.211in,
> height=9.622in,
> backspace=1.311in,
> rightmargin=1.8in,
> margindistance=24pt
> ]
> \definecounter[marginales][way=bytext,prefix=no]
> \def\romanMarginales{\convertnumber{r}{\rawcountervalue[marginales]}}
> \def\marginal{\dosingleempty\doMarginal}
> \def\doMarginal[#1]#2{%
>   \incrementnumber[marginales]
>   \iffirstargument
> \high{\romanMarginales}\inouter[#1]{\romanMarginales.\ #2}
>   \else
> \high{\romanMarginales}\inouter{\romanMarginales.\ #2}
>   \fi
> }
> 
> \starttext
> \dorecurse{6}{\input weisman And so on, and so on\marginal{This is a test, 
> with some words and some more words.}.\par \input thuan\par}
> \stoptext
> 
> %%% Stop MWE
> 
> Andrés Conrado Montoya
> Andi Kú
> andresconr...@gmail.com
> http://sesentaycuatro.com
> http://messier87.com
> http://chiquitico.org
> 
> Los fines no justifican los medios, porque la medida verdadera de nuestro 
> carácter está dada por los medios que estamos dispuestos a utilizar, no por 
> los fines que proclamamos.
> ---

Re: [NTG-context] notes in the margin

2019-10-03 Thread Andres Conrado Montoya
I've been tinkering with this problem. It's kind of frustrating not having
a right solution for this.
After trying and failing to the last solution published by Hraban on
2018-02-12, I tried to implement my own approach, from the other way
around, I mean: not trying to implement notes as marginal material, but to
implement the *marginalia* as some type of notes. A different type, apart
from footnotes, with their own counter, etc.

Below, a MWE, with some caveats:.
1. This is a poor quality hack. I'm not a developer.
2. If notes are too long, they clash with each other. I tried to understand
the options that would allow me to move them up or down, according to the
Wiki (https://wiki.contextgarden.net/Command/inmargin), but they don't seem
to do anything, or I don't understand how to work with them. But if there
is actually a way to manually instruct \inmargin to move up or down, it
should be easy to make it work as an optional third argument, for example.
3. The counter introduces some horizontal space that I cant manage to
remove except by introducing manual negative \hspace. The MWE doesn't
include that space, to display the isse.
4.  There are probably a ton of issues I have not thought about, but this
seems to work for this project I'm working on, at least.

%%% Start MWE

\setuplayout[
topspace=0.722in,
header=0.311in,
footer=0.622in,
width=4.211in,
height=9.622in,
backspace=1.311in,
rightmargin=1.8in,
margindistance=24pt
]
\definecounter[marginales][way=bytext,prefix=no]
\def\romanMarginales{\convertnumber{r}{\rawcountervalue[marginales]}}
\def\marginal{\dosingleempty\doMarginal}
\def\doMarginal[#1]#2{%
  \incrementnumber[marginales]
  \iffirstargument
\high{\romanMarginales}\inouter[#1]{\romanMarginales.\ #2}
  \else
\high{\romanMarginales}\inouter{\romanMarginales.\ #2}
  \fi
}

\starttext
\dorecurse{6}{\input weisman And so on, and so on\marginal{This is a test,
with some words and some more words.}.\par \input thuan\par}
\stoptext

%%% Stop MWE

Andrés Conrado Montoya
Andi Kú
andresconr...@gmail.com
http://sesentaycuatro.com
http://messier87.com
http://chiquitico.org

Los fines no justifican los medios, porque la medida verdadera de nuestro
carácter está dada por los medios que estamos dispuestos a utilizar, no por
los fines que proclamamos.


“You develop an instant global consciousness, a people orientation, an
intense dissatisfaction with the state of the world, and a compulsion to do
something about it. From out there on the moon, international politics look
so petty. You want to grab a politician by the scruff of the neck and drag
him a quarter of a million miles out and say, ‘Look at that, you son of a
bitch.’” — Apollo 14 astronaut Edgar Mitchell
___
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] Mkiv, fonts in text and math mode, with \definebodyfont

2019-10-01 Thread Hans Hagen

On 9/30/2019 7:32 PM, Stefano Sanguinetti wrote:

Hello,

I am trying to understand something more about fonts in text and math 
mode, in Mkiv Context. I would like to be able to change things at the 
"define body fonts" level.


I tried the following, in order to have rsfs fonts :
\setupbodyfont[12pt]
\definebodyfont[12pt][rm][tf=rsfs10 sa *]
\starttext
\tf ABCD
\tfa ABCD
\stoptext

The \tfa ABCD is displayed as rsfs as I wanted, but the \tf ABCD is 
displayed as default fonts. Why ? What could I change in order to have 
\tf ABCD in rsfs ?


In math mode, I am not able to have rsfs fonts :
\setupbodyfont[12pt]
\definebodyfont[12pt][mm][mr=rsfs10 sa *,ex=rsfs10 sa *,mi=rsfs10 sa 
*,sy=rsfs10 sa *,ma=rsfs10 sa *,mb=rsfs10 sa *]

\starttext
$ABCD$
\stoptext

That gives ABCD in default math mode fonts.
Is there a simple way to do it with the \definebodyfont command ?

Thank you in advance for your comments.
In mkiv we use a different model. If you want to use traditional type 1 
fonts you need to define a virtual (unicode) math font. You can look 
into px-math.lfg to see how that is done.


(Maybe I should remove these old family models from  mkiv/lmtx. probably 
no one would object.)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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] Documentation of change / Evolving documents

2019-09-29 Thread Axel Kielhorn

> Am 29.09.2019 um 10:50 schrieb Wolfgang Schuster 
> :
> 
> Henning Hraban Ramm schrieb am 29.09.2019 um 10:36:
>>> Am 2019-09-29 um 08:59 schrieb Axel Kielhorn :
>>> 
>>> But I would prefer to write
>>> 
>>> \startChangeA{V. 2.0}
>>> Mit den Befehlen \type{\Changea}, \type{\Changer} und \type{\Changec} 
>>> werden hinzugefügte, gelöschte oder geänderte Satzteile gekennzeichnet. Der 
>>> Befehl \type{\Changec} hat zwei Argumente: alter Text und neuer Text.
>>> \stopChangeA
>> See https://wiki.contextgarden.net/Command/definestartstop
> 
> Another option: https://wiki.contextgarden.net/Command/startuserdata
> 
> Wolfgang

Thanks!
I’ll look into next weekend.

Greetings Axel

___
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] Documentation of change / Evolving documents

2019-09-29 Thread Wolfgang Schuster

Henning Hraban Ramm schrieb am 29.09.2019 um 10:36:

Am 2019-09-29 um 08:59 schrieb Axel Kielhorn :

But I would prefer to write

\startChangeA{V. 2.0}
Mit den Befehlen \type{\Changea}, \type{\Changer} und \type{\Changec} werden 
hinzugefügte, gelöschte oder geänderte Satzteile gekennzeichnet. Der Befehl 
\type{\Changec} hat zwei Argumente: alter Text und neuer Text.
\stopChangeA

See https://wiki.contextgarden.net/Command/definestartstop


Another option: https://wiki.contextgarden.net/Command/startuserdata

Wolfgang

___
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] Documentation of change / Evolving documents

2019-09-29 Thread Henning Hraban Ramm

> Am 2019-09-29 um 08:59 schrieb Axel Kielhorn :
> 
> But I would prefer to write
> 
> \startChangeA{V. 2.0}
> Mit den Befehlen \type{\Changea}, \type{\Changer} und \type{\Changec} werden 
> hinzugefügte, gelöschte oder geänderte Satzteile gekennzeichnet. Der Befehl 
> \type{\Changec} hat zwei Argumente: alter Text und neuer Text.
> \stopChangeA

See https://wiki.contextgarden.net/Command/definestartstop

> Or maybe:
> \startChangeA[version={V. 2.0}]

This could help: https://wiki.contextgarden.net/System_Macros/Handling_Arguments

> Once this is fixed I’d like to translate it to english and put it into the 
> Wiki.

Looking forward to it.


Grüßlinge, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD

___
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] Documentation of change / Evolving documents

2019-09-29 Thread Axel Kielhorn

> Am 19.01.2019 um 09:06 schrieb Axel Kielhorn :

Earlier this year I wrote a first attempt to document evolving documents.
In the meantime this document has evolved and I included the current version 
here.

There is only one thing I don’t like:

Currently I write:

\ChangeA{V. 2.0}{Mit den Befehlen \type{\Changea}, \type{\Changer} und 
\type{\Changec} werden hinzugefügte, gelöschte oder geänderte Satzteile 
gekennzeichnet. Der Befehl \type{\Changec} hat zwei Argumente: alter Text und 
neuer Text.}

But I would prefer to write

\startChangeA{V. 2.0}
Mit den Befehlen \type{\Changea}, \type{\Changer} und \type{\Changec} werden 
hinzugefügte, gelöschte oder geänderte Satzteile gekennzeichnet. Der Befehl 
\type{\Changec} hat zwei Argumente: alter Text und neuer Text.
\stopChangeA

Or maybe:
\startChangeA[version={V. 2.0}]

Once this is fixed I’d like to translate it to english and put it into the Wiki.

Greetings
Axel



context_change.tex
Description: Binary data



___
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] Extracting a column from an array in lua

2019-09-20 Thread Otared Kavian
Hi,

Probably this is a silly question… 
In lua, I have an array named  t which is determined in a piece of lua code, 
having (say) two columns and I want to extract for example the first column of 
t and call the new array tt.
In Matlab, Scilab and friends, this can done by saying tt = t[:,1].

Is this possible in lua?
For the moment I have something like this, but I think it is not a good 
approach:

\starttext
\startluacode
t = {}  -- a silly example of a matrix...
for i = 1, 3 do
t[i] = {}
t[i]["columnOne"] = 10*i + 1
t[i]["columnTwo"] = 10*i + 2
end
tt = {}
for i = 1,3 do -- is it possible to avoid this ?
tt[i] = t[i]["columnOne"]
end
\stopluacode

The first column of the array  \type{t} is: 
\ctxlua{context.print(tt," ; ")}
\stoptext

Many thanks for any help,
Best regards: OK
___
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] Document with page 2 only

2019-09-04 Thread Mikael P. Sundqvist
gt; stop commandline options


system  > start commandline files

system  >1: ./pagetwo.tex

system  > stop commandline files


modules > start used modules


modules > stop used modules


mkiv lua stats  > used config file: selfautoparent:/texmf/web2c/texmfcnf.lua
mkiv lua stats  > used cache path: /home/mps/ConTeXt-lmtx/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e
mkiv lua stats  > resource resolver: loadtime 0.007 seconds, 0 scans with scantime 0.000 seconds, 0 shared scans, 11 found files, scanned paths: 
mkiv lua stats  > stored bytecode data: 460 modules (0.202 sec), 93 tables (0.009 sec), 553 chunks (0.212 sec)
mkiv lua stats  > traced context: maxstack: 1400, freed: 0, unreachable: 1400
mkiv lua stats  > cleaned up reserved nodes: 53 nodes, 9 lists of 441
mkiv lua stats  > node memory usage: 2 whatsit, 1 glue, 3 kern, 2 penalty, 4 attribute_list, 8 attribute, 51 glue_spec, 2 temp
mkiv lua stats  > node list callback tasks: 8 unique task lists, 7 instances (re)created, 36 calls
mkiv lua stats  > used backend: lmtx version 0.10, pdf (backend for directly generating pdf output)
mkiv lua stats  > jobdata time: 0.002 seconds saving, 0.000 seconds loading
mkiv lua stats  > callbacks: internal: 100, file: 140, direct: 2, late: 0, function 500, total: 742 (742 per page)
mkiv lua stats  > randomizer: resumed with value 0.28653466891799
mkiv lua stats  > result saved in file: pagetwo.pdf, compresslevel 3, objectcompresslevel 1
mkiv lua stats  > loaded patterns: en::1, load time: 0.000
mkiv lua stats  > loaded fonts: 2 files: latinmodern-math.otf, lmroman12-regular.otf
mkiv lua stats  > font engine: otf 3.109, afm 1.513, tfm 1.000, 7 instances, 3 shared in backend, 3 common vectors, 0 common hashes, load time 0.157 seconds 
mkiv lua stats  > font embedding time: 0.003 seconds, 1 fonts
mkiv lua stats  > used platform: linux-64, type: unix, binary subtree: texmf-linux-64
mkiv lua stats  > used engine: luametatex version 2.0, functionality level 20190729, format id 975
mkiv lua stats  > control sequences: 45460 of 65536 + 10
mkiv lua stats  > lua properties: engine: lua 5.4, used memory: 55 MB, ctx: 53 MB, max: 53 MB), hash chars: min(64,40), symbol mask: utf (τεχ)
mkiv lua stats  > runtime: 0.432 seconds, 2 processed pages, 2 shipped pages, 4.630 pages/second

___
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] ntg-context Digest, Vol 183, Issue 4

2019-09-02 Thread Hans Hagen

On 9/2/2019 8:48 PM, Jeong Dal wrote:

Dear Hans,

By adding “setuptex” in the task file, it runs well and makes a pdf output.

{
"label": "ConTeXt Compile",
"type": "shell",
"command": "source ~/ConTeXtLMTX/tex/setuptex;context '${file}'",


in that case, just entering the path to the binary is also an option

> "~/ConTeXtLMTX/tex/texmf-linux-64/bin/mtxrun --autogenerate --script 
context --autopdf '${file}'",



"args": [],
"group": {
"kind": "build",
"isDefault": true
}
},

Thank you.
Best regards,

Dalyoung




--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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] How to use ConTeXt extensions with VS Code

2019-09-02 Thread Julian G
On Monday, 2 September 2019 20:47, Hans Hagen  wrote:

> On 9/2/2019 7:35 PM, Jeong Dal wrote:
>
> > Dear Hans,
> >
> > > > But I cannot see any syntax coloring and don’t know how to compile a
> > > > TeX file.
> > > > Would you please help me more?
> > > > I think you also need to choose the context color scheme
> >
> > Yes, syntax coloring works after choosing the context color scheme.
> > I find a following task file to compile a file from vscode, but it
> > doesn’t work.
> > Here is the error message:
> > /bin/bash: context: command not found
> > The terminal process terminated with exit code: 127
> > %
> > {
> > // See https://go.microsoft.com/fwlink/?LinkId=
> > http://go.microsoft.com/fwlink/?LinkId=733558
> > // for the documentation about the tasks.json format
> > "version": "2.0.0",
> > "tasks": [
> > {
> > "label": "ConTeXt build",
> > "type": "shell",
> > // Keep in mind that the file path here has to be changed
> > "command": "context myfile.tex",
> > "group": {
> > "kind": "build",
> > "isDefault": true
> > // Since we set this task to the default build task, you can
> > // run it with a keyboard shortcut (Ctrl+Shift+B by default)
> > }
> > }
> > ]
> > }
> > %%%
> > i am using ConTeXtLMTX installed ~/ConTeXtLMTX/.
>
> you probably need to set the path before you start the editor
>
> Hans
>
>
> -
>
>Hans Hagen | PRAGMA ADE
>Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
>
>
> 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

Hello,

I tried searching for that file but didn't find it, there's also no "vscode" 
script listed when running "mtxrun --script"

I installed using texlive on windows, is the script only shipped on the 
standalone installation?


If it's possible to create a fully fledged ConTeXt extension for vscode with 
these files, I would try to create it. I'm not that experienced with 
javascript, but I think I should be able to get some stuff done. You could also 
utlize some code from the existing LaTeX workshop extension ( 
https://github.com/James-Yu/LaTeX-Workshop ), since it features a pdf preview 
with working synctex.

Best regards,
Julian
___
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] ntg-context Digest, Vol 183, Issue 4

2019-09-02 Thread Jeong Dal
Dear Hans,

By adding “setuptex” in the task file, it runs well and makes a pdf output.

{
"label": "ConTeXt Compile",
"type": "shell",
"command": "source ~/ConTeXtLMTX/tex/setuptex;context '${file}'",
"args": [],
"group": {
"kind": "build",
"isDefault": true
}
},

Thank you.
Best regards,

Dalyoung

___
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] How to use ConTeXt extensions with VS Code

2019-09-02 Thread Hans Hagen

On 9/2/2019 7:35 PM, Jeong Dal wrote:

Dear Hans,

But I cannot see any syntax coloring and don’t know how to compile a 
TeX file.

Would you please help me more?

I think you also need to choose the context color scheme



Yes, syntax coloring works after choosing the context color scheme.

I find a following task file to compile a file from vscode, but it 
doesn’t work.


Here is the error message:

/bin/bash: context: command not found
The terminal process terminated with exit code: 127

%
{
	// See https://go.microsoft.com/fwlink/?LinkId= 
<http://go.microsoft.com/fwlink/?LinkId=>733558

// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
    "label": "ConTeXt build",
"type": "shell",
// Keep in mind that the file path here has to be changed
"command": "context myfile.tex",
"group": {
"kind": "build",
"isDefault": true
// Since we set this task to the default build task, you can
// run it with a keyboard shortcut (Ctrl+Shift+B by default)
}
}
]
}

%%%
i am using ConTeXtLMTX installed ~/ConTeXtLMTX/.

you probably need to set the path before you start the editor

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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] How to use ConTeXt extensions with VS Code

2019-09-02 Thread Jeong Dal
Dear Hans,

>> But I cannot see any syntax coloring and don’t know how to compile a TeX 
>> file.
>> Would you please help me more?
> I think you also need to choose the context color scheme
> 

Yes, syntax coloring works after choosing the context color scheme.

I find a following task file to compile a file from vscode, but it doesn’t work.

Here is the error message:

/bin/bash: context: command not found
The terminal process terminated with exit code: 127

%
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
    "label": "ConTeXt build",
"type": "shell",
// Keep in mind that the file path here has to be 
changed
"command": "context myfile.tex", 
"group": {
"kind": "build",
"isDefault": true
// Since we set this task to the default build 
task, you can 
// run it with a keyboard shortcut 
(Ctrl+Shift+B by default)
}
}
]
}
%%%
i am using ConTeXtLMTX installed ~/ConTeXtLMTX/.

Thank you.
Best regards,

Dalyoung___
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] formatting index entries

2019-08-21 Thread Robert Zydenbos
Sorry, that works fine in MkIV, but not in MkII, which I need to use.

Robert

> On 21. Aug 2019, at 17:33, Wolfgang Schuster 
>  wrote:
> 
> Robert Zydenbos schrieb am 21.08.2019 um 10:59:
>> Dear list members,
>> 
>> In my book I am creating an index. I know that there are commands for 
>> formatting index entries, like:
>> 
>> \index{sl::īga}
>> 
>> if I want the word 'īga' to be printed in slanted type. I also know that we 
>> can create sub-entries, like
>> 
>> \index{īga+emphasized}
>> 
>> But now I want the word 'īga' to be slanted, but not the word 'emphasized'. 
>> I have tried things like \index{sl::īga+rm::emphasized}, but I can't figure 
>> this out.
>> 
>> Any suggestions?
> 
> \defineprocessor [sl] [style=slanted]
> \defineprocessor [bf] [style=bold]
> 
> \starttext
> 
> \dontleavehmode\index{sl->īga}
> 
> \dontleavehmode\index{īga+normal}
> 
> \dontleavehmode\index{bf->īga+bold}
> 
> \placeindex[balance=no]
> 
> \stoptext
> 
> Wolfgang
> 

___
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] balanced vertical spaces under \startcolumnset

2019-08-21 Thread Sytse Knypstra
Dear Jeong Dal,

I use the following functions to control the start and end of columns in a 
columnset:


\setuplayout[grid=yes]
\emptylines[...] % see the command \emptylines in ConTeXtgarden
\setupcolumnsetstart[...][...][...][...] % see the manual COLUMNS, page 9
\setupcolumnsetlines[...][...][...][...] % see the manual COLUMNS, page 9
%\showgrid % uncomment if you want to see the grid lines and line numbers

You find the manual COLUMNS under the heading 'Layout' on
https://wiki.contextgarden.net/Manuals.

With kind regards,

Sytse


> Op 20 augustus 2019 om 12:37 schreef Jeong Dal :
> 
> 
> Dear all,
> 
> I use the following code to make test.
> To make the same height blank spaces after the problems, I use \vfill before 
> \column.
> The problem is that the second \column creates extra blank page.
> But, without the second \column, the height of blank spaces of the second 
> column are different.
> 
> Is there a way to make the blank spaces height same while not to create a 
> blank page?
> 
> Thank you for reading.
> 
> Best regards,
> 
> Dalyoung
> 
> 
> \usetypescriptfile[type-siz]
> \usemodule[units]
> \setupbodyfont[10pt,rm]
> \definecolumnset
>  [exam]
>  [n=2]
> 
> \starttext
> 
> \startcolumnset[exam]
> 
> \startitemize[n]
> \item Answer to the questions:
>   \vfill
> 
>\item Answer to the questions:
>   \vfill
> 
> \column
> 
> \item Answer to the questions:
>   \vfill
> 
>\item Answer to the questions:
>   \vfill
> 
> %\column
> 
> \stopitemize
> \stopcolumnset
> 
> \stoptext
___
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] formatting index entries

2019-08-21 Thread Wolfgang Schuster

Robert Zydenbos schrieb am 21.08.2019 um 10:59:

Dear list members,

In my book I am creating an index. I know that there are commands for 
formatting index entries, like:

\index{sl::īga}

if I want the word 'īga' to be printed in slanted type. I also know that we can 
create sub-entries, like

\index{īga+emphasized}

But now I want the word 'īga' to be slanted, but not the word 'emphasized'. I 
have tried things like \index{sl::īga+rm::emphasized}, but I can't figure this 
out.

Any suggestions?


\defineprocessor [sl] [style=slanted]
\defineprocessor [bf] [style=bold]

\starttext

\dontleavehmode\index{sl->īga}

\dontleavehmode\index{īga+normal}

\dontleavehmode\index{bf->īga+bold}

\placeindex[balance=no]

\stoptext

Wolfgang

___
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] formatting index entries

2019-08-21 Thread Robert Zydenbos
Dear list members,

In my book I am creating an index. I know that there are commands for 
formatting index entries, like:

\index{sl::īga}

if I want the word 'īga' to be printed in slanted type. I also know that we can 
create sub-entries, like

\index{īga+emphasized}

But now I want the word 'īga' to be slanted, but not the word 'emphasized'. I 
have tried things like \index{sl::īga+rm::emphasized}, but I can't figure this 
out.

Any suggestions?

Robert
___
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] balanced vertical spaces under \startcolumnset

2019-08-20 Thread Jeong Dal
Dear all,

I use the following code to make test.
To make the same height blank spaces after the problems, I use \vfill before 
\column.
The problem is that the second \column creates extra blank page.
But, without the second \column, the height of blank spaces of the second 
column are different.

Is there a way to make the blank spaces height same while not to create a blank 
page?

Thank you for reading.

Best regards,

Dalyoung


\usetypescriptfile[type-siz]
\usemodule[units]
\setupbodyfont[10pt,rm]
\definecolumnset
 [exam]
 [n=2]

\starttext

\startcolumnset[exam]

\startitemize[n]
\item Answer to the questions:
\vfill

   \item Answer to the questions:
\vfill

\column

\item Answer to the questions:
\vfill

   \item Answer to the questions:
\vfill

%\column

\stopitemize
\stopcolumnset

\stoptext

___
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] Cross referencing by using \useexternaldoument

2019-08-18 Thread Wolfgang Schuster

Willi Egger schrieb am 18.08.2019 um 17:30:

Hi all,

there is an old thread concerning this issue from september 2015. It appears 
unfortunately, that this issue persists.

You can reference to places inside a document, but references to an outside 
document are broken. The links do not work and no page numbers or texts are 
typeset from the external document.

Can someone help me to solve this?

I tried your example and had no problem to get the page and section numbers
from the other document. What you have to ensure is that the tuc-file 
for the

other document you want to refer dies exist because context uses it to get
the values for the numbers etc.

Wolfgang

local utilitydata = { }

utilitydata.comment={
 ["escape"]="[===[ ... ]===]",
 ["file"]="two",
 ["format"]="cont-en",
 ["stamp"]="2019.08.17 11:46",
 ["version"]=1.31,
}

if not utilitydata.job then utilitydata.job = { } end
if not utilitydata.job.variables then utilitydata.job.variables = { } end

utilitydata.job.variables.checksums={
}

if not utilitydata.job then utilitydata.job = { } end
if not utilitydata.job.variables then utilitydata.job.variables = { } end

utilitydata.job.variables.collected={
 ["macros"]={},
 ["randomseed"]=0.20989990234375,
 ["sectionblockorder"]={},
}

if not utilitydata.job then utilitydata.job = { } end
if not utilitydata.job.structure then utilitydata.job.structure = { } end

utilitydata.job.structure.collected={
 ["branches"]={},
 ["name"]="",
 ["type"]="text",
}

if not utilitydata.job then utilitydata.job = { } end
if not utilitydata.job.positions then utilitydata.job.positions = { } end

utilitydata.job.positions.collected={
}

if not utilitydata.job then utilitydata.job = { } end
if not utilitydata.job.passes then utilitydata.job.passes = { } end

utilitydata.job.passes.collected={
}

if not utilitydata.job then utilitydata.job = { } end
if not utilitydata.job.datasets then utilitydata.job.datasets = { } end

utilitydata.job.datasets.collected={
}

if not utilitydata.job then utilitydata.job = { } end
if not utilitydata.job.pagestates then utilitydata.job.pagestates = { } end

utilitydata.job.pagestates.collected={
}

if not utilitydata.structures then utilitydata.structures = { } end
if not utilitydata.structures.specials then utilitydata.structures.specials = { 
} end

utilitydata.structures.specials.collected={
}

if not utilitydata.structures then utilitydata.structures = { } end
if not utilitydata.structures.sections then utilitydata.structures.sections = { 
} end

utilitydata.structures.sections.collected={
 {
  ["block"]="bodypart",
  ["conversionset"]="default",
  ["language"]="en",
  ["numbers"]=1,
  ["separatorset"]="default",
  ["set"]="all",
 },
}

if not utilitydata.structures then utilitydata.structures = { } end
if not utilitydata.structures.counters then utilitydata.structures.counters = { 
} end

utilitydata.structures.counters.collected={
 ["chemical"]={
  { 0, 0 },
 },
 ["combination"]={
  { 0 },
 },
 ["endnote"]={
  { 0 },
 },
 ["figure"]={
  { 0, 0 },
 },
 ["footnote"]={
  { 0 },
 },
 ["formula"]={
  { 0, 0 },
 },
 ["graphic"]={
  { 0, 0 },
 },
 ["intermezzo"]={
  { 0, 0 },
 },
 ["itemgroup:itemize"]={
  { 0, 0 },
 },
 ["linenote"]={
  { 0 },
 },
 ["paragraph"]={
  { 0, 0 },
 },
 ["realpage"]={
  { 4 },
 },
 ["subpage"]={
  { 4 },
 },
 ["table"]={
  { 0, 0 },
 },
 ["textnote:note"]={
  { 0 },
 },
 ["userpage"]={
  { 4 },
 },
}

if not utilitydata.structures then utilitydata.structures = { } end
if not utilitydata.structures.lists then utilitydata.structures.lists = { } end

utilitydata.structures.lists.collected={
 {
  ["metadata"]=2,
  ["numberdata"]=3,
  ["references"]={
   ["block"]="bodypart",
   ["internal"]=1,
   ["realpage"]=4,
   ["reference"]="sec:second",
   ["section"]=1,
   ["used"]="fit",
  },
  ["titledata"]={
   ["label"]="chapter",
   ["title"]="Second document",
  },
 },
}

if not utilitydata.structures then utilitydata.structures = { } end
if not utilitydata.structures.pages then utilitydata.structures.pages = { } end

utilitydata.structures.pages.collected={
 {
  ["block"]="bodypart",
  ["number"]=1,
  ["numberdata"]=4,
  ["prefixdata"]=5,
  ["state"]="start",
 },
 {
  ["block"]="bodypart",
  ["number"]=2,
  ["numberdata"]=4,
  ["prefixdata"]=5,
 

Re: [NTG-context] radiobuttons and other widgets

2019-08-05 Thread Henning Hraban Ramm
This is a feature request or wish:

I would be glad to have a module (e.g. "fakefields") as a drop-in replacement 
that overwrites the field commands (\setupfield, \definefield, \definesubfield, 
\field) with a version that doesn’t create form fields but just \inframeds that 
look the same.


\setupfield[setup name][options][keyval options] would map to 
\defineframed[setup name][keyval options]

\definefield[name][type][setup name][content values][default content] would map 
to \defineframed[nameField][keyval options] and inherit (how?) from "class 
name".

Don’t know how \definesubfield would work and how to setup the relationship to 
a special radiobutton type.

\field[name] would finally call \nameField{}

\setupfields doesn’t work anyway.

e.g.

\setupfield[MMshortString][reset,horizontal][width=45mm,option=printable,frame=off,bottomframe=on,height=2em,offset=0.5mm,frameoffset=1mm]

\definefield[Name][line][MMshortString][]

\field[Name]

would result in 

\inframed[width=45mm,frame=off,bottomframe=on,height=2em,offset=0.5mm,frameoffset=1mm]{}

while 

\setupfield[MMradio][frame=on, corner=round, height=0.75em, width=0.75em, 
align=bottom, offset=-0.5mm, frameoffset=0mm]
\definefield[GRB][radio][MMradio][RByes,RBno][RByes]
\definesubfield[RByes][][]
\definesubfield[RBno][][]

\field[RByes] I agree.
\field[RBno] I don’t agree.

would result in 

\inframed[frame=on, corner=round, height=0.75em, width=0.75em, align=bottom, 
offset=-0.5mm, frameoffset=0m]{} I agree.


I’d try it myself, but I know it’s over my head. I guess I loverlooked 
something important.
But probably it’s quite easy to do in Lua?



Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD

___
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] [dev-context] type key in \setupattachment

2019-07-24 Thread Henning Hraban Ramm

Zitat von Pablo Rodriguez :


Sorry, Wolfgang and Hans, this was totally my fault.

I even checked scrn-wid.mkiv (lines 76-93) and since I didn’t find
"type", I tought it wasn’t implemented (it’s on line 112.


Apparently the key is not in the interface, at least it’s missing in  
the autogenerated syntax section of  
https://wiki.contextgarden.net/Command/setupattachment



Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD

___
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] Strange error updatng LMTX

2019-07-10 Thread Henri Menke
\c!compressdistance is defined in strc-lnt.mkvi which is loaded *after*
strc-flt.mkvi (where it is used) in context.mkiv.  This has to be fixed
by Hans.

Cheers, Henri

On 11/07/19 2:45 PM, Andres Conrado wrote:
> When updating my LMTX installation today, I got this:
> 
> tex error   > tex error on line 179 in file
> /home/conrado/Apps/lmtx/tex/texmf-context/tex/context/base/mkiv/strc-flt.mkvi:
> ! Undefined control sequence
> 
>  \c!compressdistance
> =\emwidth
> \mult_interfaces_get_parameters_item ...2->\if ,#1
>   ,\expandafter 
> \mult_interf...
> \mult_interfaces_get_parameters_indeed ...tem #1,]
>   ,
> \setup_float ...es_get_parameters {\??float :}[#1]
>   \the \everysetupfloat \fi 
> ...
>  \syst_helpers_double_empty_two_nop
> \par
> l.179
> 
> 
> 169\c!bottomoffset=\zeropoint,
> 170\c!freeregion=\v!yes,
> 171   %\c!local=,
> 172   %\c!bottombefore=, % e.g. \vfill
> 173   %\c!bottomafter=,
> 174   %\c!default=, % default location
> 175\c!sidethreshold=.5\strutdp, % set to "old" to check with old 
> method
> 176\c!numbering=\v!yes,
> 177\c!compress=\v!yes, % when possible pack floats when flushing
> 178\c!compressdistance=\emwidth]
> 179 >>
> 180 \setupfloatframed
> 181   [\c!frame=\v!off,
> 182\c!offset=\v!overlay,
> 183\c!strut=\v!no]
> 184
> 185 \appendtoks
> 186 
> \doifelse{\floatparameter\c!compress}\v!yes\settrue\setfalse\c_page_floats_pack_flushed
> 187 
> \d_page_floats_compress_distance\floatparameter\c!compressdistance\relax
> 188 \to \everysetupfloat
> 189
> 
> 
> The control sequence at the end of the top line
> of your error message was never \def'ed. If you have
> misspelled it (e.g., '\hobx'), type 'I' and the correct
> spelling (e.g., 'I\hbox'). Otherwise just continue,
> and I'll forget about whatever was undefined.
> 
> Seems to affect the floats mechanism.
> 
> Andrés Conrado Montoya
> http://chiquitico.org
> 
> 
> ___
> 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
> ___
> 

___
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] Strange error updatng LMTX

2019-07-10 Thread Andres Conrado
When updating my LMTX installation today, I got this:

tex error   > tex error on line 179 in file
/home/conrado/Apps/lmtx/tex/texmf-context/tex/context/base/mkiv/strc-flt.mkvi:
! Undefined control sequence

 \c!compressdistance
=\emwidth
\mult_interfaces_get_parameters_item ...2->\if ,#1
  ,\expandafter \mult_interf...
\mult_interfaces_get_parameters_indeed ...tem #1,]
  ,
\setup_float ...es_get_parameters {\??float :}[#1]
  \the \everysetupfloat \fi ...
 \syst_helpers_double_empty_two_nop
\par
l.179


169\c!bottomoffset=\zeropoint,
170\c!freeregion=\v!yes,
171   %\c!local=,
172   %\c!bottombefore=, % e.g. \vfill
173   %\c!bottomafter=,
174   %\c!default=, % default location
175\c!sidethreshold=.5\strutdp, % set to "old" to check with old method
176\c!numbering=\v!yes,
177\c!compress=\v!yes, % when possible pack floats when flushing
178\c!compressdistance=\emwidth]
179 >>
180 \setupfloatframed
181   [\c!frame=\v!off,
182\c!offset=\v!overlay,
183\c!strut=\v!no]
184
185 \appendtoks
186 
\doifelse{\floatparameter\c!compress}\v!yes\settrue\setfalse\c_page_floats_pack_flushed
187 
\d_page_floats_compress_distance\floatparameter\c!compressdistance\relax
188 \to \everysetupfloat
189


The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., '\hobx'), type 'I' and the correct
spelling (e.g., 'I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

Seems to affect the floats mechanism.

Andrés Conrado Montoya
http://chiquitico.org
___
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] Typesetting Markdown – Part 5: Interpolation

2019-07-09 Thread Thangalin
That's another intriguing approach, Andrés, thank you.

The approach faces some hurdles. First, the template file (main.tex) is
written in ConTeXt, so it never sees the YAML variables, nor can it be used
to interpret pandoc's conditional expressions. Second, moving the
\completecontent macro out of main.tex and into Markdown (e.g., 01.md,
being the first chapter) so that the conditional expression can be
evaluated using pandoc mixes content with presentation logic.

Modes are a good approach in this case because the "context" command can
take a "mode" command-line argument. This provides presentation controls
that neither the YAML nor the Markdown need consider. Adding presentation
logic to the ConTeXt template (i.e., introducing \startmode and
\startnotmode into main.tex) is acceptable because ConTeXt is wholly
responsible for the appearance of the final document. See:
https://wiki.contextgarden.net/Modes

This then allows development of command-line arguments from shell scripts
to control how the document is presented when built, which is a little bit
more flexible than maintaining YAML variables. Also, ideally, the YAML
variables would be used for controlling only content, not presentation
logic.

Thanks again, Andrés.

On Mon, Jul 8, 2019 at 11:27 AM Andres Conrado 
wrote:

> You can do it on the template... you can use a yaml variable to determine
> if the toc should be printed or not. Like so:
>
> yaml file:
> ---
> toc: true
> ...
>
> template file:
> %%%
> $if(toc)$
> \completecontent
> $endif$
> %%%
>
>
> Andrés Conrado Montoya
> http://chiquitico.org
>
>
> El lun., 8 jul. 2019 a las 2:52,  escribió:
>
>> Send ntg-context mailing list submissions to
>> ntg-context@ntg.nl
>>
>> To subscribe or unsubscribe via the World Wide Web, visit
>> https://mailman.ntg.nl/mailman/listinfo/ntg-context
>> or, via email, send a message with subject or body 'help' to
>> ntg-context-requ...@ntg.nl
>>
>> You can reach the person managing the list at
>> ntg-context-ow...@ntg.nl
>>
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of ntg-context digest..."
>>
>>
>> Today's Topics:
>>
>>1. Re:  Typesetting Markdown – Part 5: Interpolation
>>   (Aditya Mahajan)
>>2. Re:  Typesetting Markdown – Part 5: Interpolation (Thangalin)
>>3. Re:  Typesetting Markdown – Part 5: Interpolation
>>   (Aditya Mahajan)
>>4. request for \definefontfamily and \definefallbackfamily
>>   (Pablo Rodriguez)
>>5. Re: crappy names in the fontloader (Hans Hagen)
>>6. problems with images, layers and crop marks (Henning Hraban Ramm)
>>7. Re: problems with images, layers and crop marks (Hans Hagen)
>>
>>
>> --
>>
>> Message: 1
>> Date: Sun, 7 Jul 2019 10:17:31 -0400 (EDT)
>> From: Aditya Mahajan 
>> To: mailing list for ConTeXt users 
>> Subject: Re: [NTG-context]  Typesetting Markdown – Part 5:
>> Interpolation
>> Message-ID: 
>> Content-Type: text/plain; charset=US-ASCII; format=flowed
>>
>> On Sat, 6 Jul 2019, Thangalin wrote:
>>
>> > Hello again!
>> >
>> > This part of the series describes how to reference *interpolated*
>> strings
>> > inside Markdown documents.
>> > https://dave.autonoma.ca/blog/2019/07/06/typesetting-markdown-part-5/
>> >
>> > There's a section at the end about eliminating the table of contents
>> from a
>> > reusable document template. I would have preferred using setups, rather
>> > than redefining the \completecontent macro, but didn't see an obvious
>> way
>> > to do so.
>>
>> Why not simply omit \compltecontent from the pandoc template?
>>
>> Aditya
>>
>>
>>
>> --
>>
>> Message: 2
>> Date: Sun, 7 Jul 2019 11:58:12 -0700
>> From: Thangalin 
>> To: mailing list for ConTeXt users 
>> Subject: Re: [NTG-context]  Typesetting Markdown – Part 5:
>> Interpolation
>> Message-ID:
>> > g...@mail.gmail.com>
>> Content-Type: text/plain; charset="utf-8"
>>
>> Thank you Aditya.
>>
>> The main.tex file is meant to be reusable for different document styles.
>> By
>> removing \completecontent altogether from the main template, it would
>> preclude a different document from reusing the main.tex template with a
>> table of contents. I'd like the template to be "re

Re: [NTG-context] Typesetting Markdown – Part 5: Interpolation

2019-07-08 Thread Andres Conrado
You can do it on the template... you can use a yaml variable to determine
if the toc should be printed or not. Like so:

yaml file:
---
toc: true
...

template file:
%%%
$if(toc)$
\completecontent
$endif$
%%%


Andrés Conrado Montoya
http://chiquitico.org


El lun., 8 jul. 2019 a las 2:52,  escribió:

> Send ntg-context mailing list submissions to
> ntg-context@ntg.nl
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://mailman.ntg.nl/mailman/listinfo/ntg-context
> or, via email, send a message with subject or body 'help' to
> ntg-context-requ...@ntg.nl
>
> You can reach the person managing the list at
> ntg-context-ow...@ntg.nl
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of ntg-context digest..."
>
>
> Today's Topics:
>
>1. Re:  Typesetting Markdown – Part 5: Interpolation
>   (Aditya Mahajan)
>2. Re:  Typesetting Markdown – Part 5: Interpolation (Thangalin)
>3. Re:  Typesetting Markdown – Part 5: Interpolation
>   (Aditya Mahajan)
>4. request for \definefontfamily and \definefallbackfamily
>   (Pablo Rodriguez)
>5. Re: crappy names in the fontloader (Hans Hagen)
>6. problems with images, layers and crop marks (Henning Hraban Ramm)
>7. Re: problems with images, layers and crop marks (Hans Hagen)
>
>
> --
>
> Message: 1
> Date: Sun, 7 Jul 2019 10:17:31 -0400 (EDT)
> From: Aditya Mahajan 
> To: mailing list for ConTeXt users 
> Subject: Re: [NTG-context]  Typesetting Markdown – Part 5:
> Interpolation
> Message-ID: 
> Content-Type: text/plain; charset=US-ASCII; format=flowed
>
> On Sat, 6 Jul 2019, Thangalin wrote:
>
> > Hello again!
> >
> > This part of the series describes how to reference *interpolated* strings
> > inside Markdown documents.
> > https://dave.autonoma.ca/blog/2019/07/06/typesetting-markdown-part-5/
> >
> > There's a section at the end about eliminating the table of contents
> from a
> > reusable document template. I would have preferred using setups, rather
> > than redefining the \completecontent macro, but didn't see an obvious way
> > to do so.
>
> Why not simply omit \compltecontent from the pandoc template?
>
> Aditya
>
>
>
> --
>
> Message: 2
> Date: Sun, 7 Jul 2019 11:58:12 -0700
> From: Thangalin 
> To: mailing list for ConTeXt users 
> Subject: Re: [NTG-context]  Typesetting Markdown – Part 5:
> Interpolation
> Message-ID:
>  g...@mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Thank you Aditya.
>
> The main.tex file is meant to be reusable for different document styles. By
> removing \completecontent altogether from the main template, it would
> preclude a different document from reusing the main.tex template with a
> table of contents. I'd like the template to be "reusable"; making
> modifications to "main.tex" --- or creating a copy --- would subvert that
> goal.
>
> On Sun, Jul 7, 2019 at 7:17 AM Aditya Mahajan  wrote:
>
> > On Sat, 6 Jul 2019, Thangalin wrote:
> >
> > > Hello again!
> > >
> > > This part of the series describes how to reference *interpolated*
> strings
> > > inside Markdown documents.
> > > https://dave.autonoma.ca/blog/2019/07/06/typesetting-markdown-part-5/
> > >
> > > There's a section at the end about eliminating the table of contents
> > from a
> > > reusable document template. I would have preferred using setups, rather
> > > than redefining the \completecontent macro, but didn't see an obvious
> way
> > > to do so.
> >
> > Why not simply omit \compltecontent from the pandoc template?
> >
> >
> >
> -- next part --
> An HTML attachment was scrubbed...
> URL: <
> http://mailman.ntg.nl/pipermail/ntg-context/attachments/20190707/25ca6215/attachment-0001.html
> >
>
> --
>
> Message: 3
> Date: Sun, 7 Jul 2019 15:17:50 -0400 (EDT)
> From: Aditya Mahajan 
> To: mailing list for ConTeXt users 
> Subject: Re: [NTG-context]  Typesetting Markdown – Part 5:
> Interpolation
> Message-ID: 
> Content-Type: text/plain; charset=US-ASCII; format=flowed
>
>
> On Sun, 7 Jul 2019, Thangalin wrote:
>
> > Thank you Aditya.
> >
> > The main.tex file is meant to be reusable for different document styles.
> By
> > removing \completecontent altogether from the main template, it would

Re: [NTG-context] feature request

2019-07-05 Thread Atsuhito Kohda
Hi Aditya,

> You can create a private module with the definitions that you need. If
> these are general enough, then you can also release it as a third party
> module for others to use. I don't see the value of adding (and
> maintaining!) a module that provides LaTeX compatibility as part of the
> core.

I began to learn ConTeXt since april and begin to write real
ConTeXt documents (mostly presentations) since june.
Please don't ask me too much.

My main request is not to provide LaTeX compatibility but
to provide not only one command of matrix but full set of commands
for various kind of matrices if possible.
Personally, it is true that I think LaTeX compatibility is useful
but it is not main issue.

Best regards,
Atsuhito Kohda

2019年7月5日(金) 0:18 Aditya Mahajan :

> On Thu, 4 Jul 2019, Atsuhito Kohda wrote:
>
> > Hi Henri,
> > Thanks for your suggestions, they are very instructive.
> > However, my request is not a smart way of displaying matrices
> > but to know why \bmatrix and \vmatrix are not provided
> > in core part of ConTeXt although \pmatrix is provided already
> > in math-pln.mkiv
>
> Henri has already answered this.
>
> [ ... ]
>
> > One might say ConTeXt is flexible but I've an impression
> > that ConTeXt is in a state of confusion/disorder.
> >
> > I think it is better if a standard command is provided
> > by core ConTeXt or by a module etc.
> >
> > Or is it ConTeXt way that each user defines his/her own commands
> > in setup area and uses them in text area?
> > I'm afraid consistency and/or portability is lost in such scenario.
>
> Let me provide an alternative point of view. The commands that you are
> suggesting are encode the _visual_ meaning: pmatrix is a matrix with
> parenthesis, bmatrix is a matrix with brackets, vmatrix is a matrix with
> vertical bars, and so on. One could also use _semantic_ commands: in my
> documents, I define a command called MATRIX for typesetting matrices, and
> DET for determinant of a matrix. So, I simply type
>
> \MATRIX{1, 2; 5, 6} and \DET{1, 2; 5, 6}, etc.
>
> Now, depending on the audience, I sometimes map \MATRIX to pmatrix and
> sometimes to bmatrix. I can simply copy paste the code without worrying
> about notation.
>
> If you take this view, then the predefined matrix:parentheses,
> matrix:brackets, and matrix:bars are sufficient.
>
> > BTW, I constantly convert Beamer documents into ConTeXt's
> > simpleslide documents recently and it is very convenient
> > if I can use \pmatrix{a\cr c\cr} style because it is similar
> > to LaTeX documents.
>
> You can create a private module with the definitions that you need. If
> these are general enough, then you can also release it as a third party
> module for others to use. I don't see the value of adding (and
> maintaining!) a module that provides LaTeX compatibility as part of the
> core.
>
> Aditya
>
>
> ___
> 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
>
> ___
>
___
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] feature request

2019-07-04 Thread Aditya Mahajan

On Thu, 4 Jul 2019, Atsuhito Kohda wrote:


Hi Henri,
Thanks for your suggestions, they are very instructive.
However, my request is not a smart way of displaying matrices
but to know why \bmatrix and \vmatrix are not provided
in core part of ConTeXt although \pmatrix is provided already
in math-pln.mkiv


Henri has already answered this.

[ ... ]


One might say ConTeXt is flexible but I've an impression
that ConTeXt is in a state of confusion/disorder.

I think it is better if a standard command is provided
by core ConTeXt or by a module etc.

Or is it ConTeXt way that each user defines his/her own commands
in setup area and uses them in text area?
I'm afraid consistency and/or portability is lost in such scenario.


Let me provide an alternative point of view. The commands that you are 
suggesting are encode the _visual_ meaning: pmatrix is a matrix with 
parenthesis, bmatrix is a matrix with brackets, vmatrix is a matrix with 
vertical bars, and so on. One could also use _semantic_ commands: in my 
documents, I define a command called MATRIX for typesetting matrices, and 
DET for determinant of a matrix. So, I simply type


\MATRIX{1, 2; 5, 6} and \DET{1, 2; 5, 6}, etc.

Now, depending on the audience, I sometimes map \MATRIX to pmatrix and 
sometimes to bmatrix. I can simply copy paste the code without worrying 
about notation.


If you take this view, then the predefined matrix:parentheses, 
matrix:brackets, and matrix:bars are sufficient.



BTW, I constantly convert Beamer documents into ConTeXt's
simpleslide documents recently and it is very convenient
if I can use \pmatrix{a\cr c\cr} style because it is similar
to LaTeX documents.


You can create a private module with the definitions that you need. If 
these are general enough, then you can also release it as a third party 
module for others to use. I don't see the value of adding (and 
maintaining!) a module that provides LaTeX compatibility as part of the 
core.


Aditya

___
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] ntg-context Digest, Vol 180, Issue 23

2019-06-23 Thread Andres Conrado
Thanks, Pablo. I am assuming I need to have Utopia installed in my usual
font folder. I tried with Erewhon (I have otf files for that) and it works.
Thank you.

In a related note, is there any reasonable way to use the latex math font *Math
Times Pro 2* (https://www.pctex.com/mtpro2.html)? I know a latex user who
bought that font and I wonder if I can convince him to get on the ConTeXt
boat.

Andrés Conrado Montoya
http://chiquitico.org


El dom., 23 jun. 2019 a las 5:00,  escribió:

> Send ntg-context mailing list submissions to
> ntg-context@ntg.nl
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://mailman.ntg.nl/mailman/listinfo/ntg-context
> or, via email, send a message with subject or body 'help' to
> ntg-context-requ...@ntg.nl
>
> You can reach the person managing the list at
> ntg-context-ow...@ntg.nl
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of ntg-context digest..."
>
>
> Today's Topics:
>
>1. Re: is it useful to use the option "--fonts=all" when running
>   first-setup-sh? (Pablo Rodriguez)
>2. Re: crosswords puzzles (Wolfgang Schuster)
>3. mkii to mkiv - section numbering with minimal example
>   (Duncan Hothersall)
>4. Re: mkii to mkiv - section numbering with minimal example
>   (Hans Hagen)
>
>
> --
>
> Message: 1
> Date: Sat, 22 Jun 2019 12:03:38 +0200
> From: Pablo Rodriguez 
> To: ntg-context@ntg.nl
> Subject: Re: [NTG-context] is it useful to use the option
> "--fonts=all" when running first-setup-sh?
> Message-ID: <9a3757f9-04d5-ae8b-655f-160c9bc91...@gmx.es>
> Content-Type: text/plain; charset=utf-8
>
> On 6/20/19 10:39 PM, Andres Conrado Montoya wrote:
> > As the subject says. I've been experimenting with having a by-project
> > context folder, so I can have a "frozen" version for each project. I see
> > there's an option to install more fonts (including utopia, useful for a
> > project I'm working on). However, I have no idea how to use these fonts.
> > Are they available in mkiv? only for mkii? Do we have typescripts for
> > those fonts? If so, how are they called? Are those fonts actually usable
> > or are they just remains from a past era?
>
> Hi Andrés,
>
> this sample works fine with both MkIV and LMTX (no --fonts=all required):
>
> \definefontfamily[mainface][rm][Utopia]
> \setupbodyfont[mainface]
> \starttext
> \input zapf
> \stoptext
>
> Just in case it helps,
>
> Pablo
> --
> http://www.ousia.tk
>
>
> --
>
> Message: 2
> Date: Sat, 22 Jun 2019 12:05:13 +0200
> From: Wolfgang Schuster 
> To: mailing list for ConTeXt users , DesdeChaves
> 
> Subject: Re: [NTG-context] crosswords puzzles
> Message-ID: 
> Content-Type: text/plain; charset="utf-8"; Format="flowed"
>
> DesdeChaves schrieb am 22.06.2019 um 11:42:
> > Dear sirs,
> >
> > Is there a way to make crosswords  or word puzzles in context?
> > In my hippocampus I have a vague idea that this has already been
> > tried, but I can't find this code anymore.
> AFAIK there are only packages for LaTeX to create crossword but you can
> use natural or extreme tables to create them. For the input Lua can be a
> better choice because you can put your words (or numbers) in a Lua table
> and use a loop to create a table for TeX.
>
> Wolfgang
>
> -- next part --
> An HTML attachment was scrubbed...
> URL: <
> http://mailman.ntg.nl/pipermail/ntg-context/attachments/20190622/ff819017/attachment-0001.html
> >
>
> --
>
> Message: 3
> Date: Sun, 23 Jun 2019 09:26:04 +0100
> From: Duncan Hothersall 
> To: mailing list for ConTeXt users 
> Subject: [NTG-context] mkii to mkiv - section numbering with minimal
> example
> Message-ID:
>  t...@mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Further to my previous query about updating from mkii to mkiv, I have
> solved some of the issues by trial and error but am beginning to identify
> the ones I can't resolve. My first minimal example is below.
>
> I want the sections and subsections not to prefix the part and chapter
> numbering, giving me this output:
>
> Part 1
> Chapter 1.1
> Section 1
> Subsection 1.1
>
> The line that used to achieve this result was
>
> \setupsection[section-3][previousnumber=no]
>
> and there was also
>
> \setuphead[section][partnumber=no,chapternum

Re: [NTG-context] [dev-context] type key in \setupattachment

2019-06-20 Thread Pablo Rodriguez
On 6/20/19 10:46 AM, Hans Hagen wrote:
> On 6/19/2019 9:28 PM, Pablo Rodriguez wrote:
>> [...]
>> Would it be possible that the \setupattachment command has a "type" key
>> to specify its MIME type? (Default should be "application/octet-stream"
>> [or so it seems].)
>
> there is a type key

Sorry, Wolfgang and Hans, this was totally my fault.

I even checked scrn-wid.mkiv (lines 76-93) and since I didn’t find
"type", I tought it wasn’t implemented (it’s on line 112.

Sorry for the noise again,

Pablo
--
http://www.ousia.tk
___
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] [dev-context] type key in \setupattachment

2019-06-20 Thread Wolfgang Schuster

Hans Hagen schrieb am 20.06.2019 um 10:46:

On 6/19/2019 9:28 PM, Pablo Rodriguez wrote:

Hi Wolfgang,

this comes from a previous message from this mailing list
(https://mailman.ntg.nl/pipermail/dev-context/2019/003574.html), which I
needed a long while to understand .

Would it be possible that the \setupattachment command has a "type" key
to specify its MIME type? (Default should be "application/octet-stream"
[or so it seems].)

This is required to add the value to the /Subtype entry in the
/Embeddedfile dictionary
(https://www.adobe.com/content/dam/acom/en/devnet/pdf/PDF32000_2008.pdf#nameddest=G6.1942814) 



This is optional information in PDF-1.7, but required in PDF/A-2.

Many thanks for your help,

there is a type key
I added it to the command but it shows only a generic name as argument 
because I can see no point to list all possible arguments.


@Hans: I put new files on your FTP server.

Wolfgang

___
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] [dev-context] type key in \setupattachment

2019-06-20 Thread Hans Hagen

On 6/19/2019 9:28 PM, Pablo Rodriguez wrote:

Hi Wolfgang,

this comes from a previous message from this mailing list
(https://mailman.ntg.nl/pipermail/dev-context/2019/003574.html), which I
needed a long while to understand .

Would it be possible that the \setupattachment command has a "type" key
to specify its MIME type? (Default should be "application/octet-stream"
[or so it seems].)

This is required to add the value to the /Subtype entry in the
/Embeddedfile dictionary
(https://www.adobe.com/content/dam/acom/en/devnet/pdf/PDF32000_2008.pdf#nameddest=G6.1942814)

This is optional information in PDF-1.7, but required in PDF/A-2.

Many thanks for your help,

there is a type key

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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] error in LMTX?

2019-06-11 Thread Hans van der Meer
Found the origin of the curious error message containing my name.
Comes from the inclusion of a file named type-loc.mkiv residing in a directory 
~/TeX/texmf/tex/context/user/ and containing:

\endinput

Op NTG ConTeXt nieuwsgroep, antwoord van Hans Hagen.

On 1/3/2014 2:33 PM, H. van der Meer wrote: (etc.)

How this got included? I have no idea.
But removing it did not make a difference, even after calling mtxrun --generate.


> On 10 Jun 2019, at 22:21, Hans van der Meer  wrote:
> 
>> 
>> On 10 Jun 2019, at 12:04, Hans van der Meer > <mailto:havdm...@ziggo.nl>> wrote:
>> 
>> This looks to me as an error in the LMTX distribution:
>> 
>> tex error   > tex error on line 6 in file 
>> /Users/hansm/TeX/context-lmtx/tex/texmf-context/tex/context/fonts/mkiv/type-imp-dejavu.mkiv:
>>  ! Missing } inserted
>> 
>>  
>> }
>>  
>> \aligntab 
>> l.6 fontclass\aligntab
>> \fontclass\cr
>> 
>> Because running under my old ConTeXtBeta does not aborts with the error.
>> system  > ConTeXt  ver: 2019.06.01 19:11 MKIV beta  fmt: 2019.6.4  
>> int: english/english
>> 
>> I looked into that file but could not see what causes the error.
> 
> I did some more research and as a result now wonder what is happening.
> 
> The error occurred in this piece of code of mine:
> 
> \tabskip=1em\halign{%
> \alignmark\hfil\aligntab\alignmark\hfil\cr
> fontclass\aligntab\fontclass\cr
> Regular\aligntab\truefontname{Regular}\cr
> }
> 
> \aligntab and \alignmark were advertised as LuaTeX equivalents for & and # 
> respectively.
> 
> Then I took the following example from Victor Eijkhout's book "TeX by Topic", 
> page 197, last example.
> That surely should work, was the idea.
> 
> \starttext
> \halign{a###\cr 1&2\cr 1\cr}
> \stoptext
> 
> However this fails! How can such a basic example in pure TeX fail? I wonder 
> and am curious what is happening here.
> 
> This is LuaMetaTeX, Version 2.00.0 
> tex error   > tex error on line 3 in file 
> /Users/hansm/TeX/texmf/tex/context/user/type-loc.mkiv: ! Only one # is 
> allowed per tab
> 
> l.3 \halign{a##
>#\cr 1&2\cr 1\cr}
> 
>  1 \endinput
>  2 
>  3 >>  Op NTG ConTeXt nieuwsgroep, antwoord van Hans Hagen.
>  4 
>  5 On 1/3/2014 2:33 PM, H. van der Meer wrote:
>  6 Has someone an idee what causes the unknown library message as in the
>  7 log below? Is it harmful?
>  8 
>  9 fonts   > typescripts > unknown library 'loc'
> 10 
> 11 you can add a file type-loc.mkiv someplace in your local tree with
> 12 
> 13 % dummy file
> 
> There should be exactly one # between &'s, when an
> \halign or \valign is being set up. In this case you had
> more than one, so I'm ignoring all but the first.
> 
> mtx-context | fatal error: return code: 256
> 
> and using \alignmark and \aligntab this results in:
> 
> \starttext
> \halign{a\alignmark\aligntab b\alignmark\aligntab c\alignmark\cr 1\aligntab 
> 2\cr 1\cr}
> \stoptext
> 
> And I am most curious how my name could turn up in the error message produced!
> 
> tex error   > tex error on line 3 in file 
> /Users/hansm/TeX/texmf/tex/context/user/type-loc.mkiv: ! Missing } inserted
> 
>  
> }
>  
> \aligntab 
> l.3 ...\alignmark\aligntab c\alignmark\cr 1\aligntab
>    2\cr 1\cr}
> 
>  1 \endinput
>  2 
>  3 >>  Op NTG ConTeXt nieuwsgroep, antwoord van Hans Hagen.
>  4 
>  5 On 1/3/2014 2:33 PM, H. van der Meer wrote:
>  6 Has someone an idee what causes the unknown library message as in the
>  7 log below? Is it harmful?
>  8 
>  9 fonts   > typescripts > unknown library 'loc'
> 10 
> 11 you can add a file type-loc.mkiv someplace in your local tree with
> 12 
> 13 % dummy file
> 
> I've put in what seems to be necessary to fix
> the current column of the current alignment.
> Try to go on, since this might almost work.
> 
> mtx-context | fatal error: return code: 256
> 
> 
> 
>> 
>> dr. Hans van der Meer
>> 
>> 
>> ___
>> If your question is of interest to others as well, please add an entry to 
>> the Wiki!
>> 
>> maillist : ntg-context@ntg.nl <mailto:ntg-context@ntg.nl> / 
>> http://www.ntg.nl/mailman/listinfo/ntg-context 
>> <http://www.ntg.nl/mailman/listinfo/ntg-context>
>> webpage  : http://www.pr

Re: [NTG-context] error in LMTX?

2019-06-10 Thread Hans van der Meer

> On 10 Jun 2019, at 12:04, Hans van der Meer  wrote:
> 
> This looks to me as an error in the LMTX distribution:
> 
> tex error   > tex error on line 6 in file 
> /Users/hansm/TeX/context-lmtx/tex/texmf-context/tex/context/fonts/mkiv/type-imp-dejavu.mkiv:
>  ! Missing } inserted
> 
>  
> }
>  
> \aligntab 
> l.6 fontclass\aligntab
> \fontclass\cr
> 
> Because running under my old ConTeXtBeta does not aborts with the error.
> system  > ConTeXt  ver: 2019.06.01 19:11 MKIV beta  fmt: 2019.6.4  
> int: english/english
> 
> I looked into that file but could not see what causes the error.

I did some more research and as a result now wonder what is happening.

The error occurred in this piece of code of mine:

\tabskip=1em\halign{%
\alignmark\hfil\aligntab\alignmark\hfil\cr
fontclass\aligntab\fontclass\cr
Regular\aligntab\truefontname{Regular}\cr
}

\aligntab and \alignmark were advertised as LuaTeX equivalents for & and # 
respectively.

Then I took the following example from Victor Eijkhout's book "TeX by Topic", 
page 197, last example.
That surely should work, was the idea.

\starttext
\halign{a###\cr 1&2\cr 1\cr}
\stoptext

However this fails! How can such a basic example in pure TeX fail? I wonder and 
am curious what is happening here.

This is LuaMetaTeX, Version 2.00.0 
tex error   > tex error on line 3 in file 
/Users/hansm/TeX/texmf/tex/context/user/type-loc.mkiv: ! Only one # is allowed 
per tab

l.3 \halign{a##
   #\cr 1&2\cr 1\cr}

 1 \endinput
 2 
 3 >>  Op NTG ConTeXt nieuwsgroep, antwoord van Hans Hagen.
 4 
 5 On 1/3/2014 2:33 PM, H. van der Meer wrote:
 6 Has someone an idee what causes the unknown library message as in the
 7 log below? Is it harmful?
 8 
 9 fonts   > typescripts > unknown library 'loc'
10 
11 you can add a file type-loc.mkiv someplace in your local tree with
12 
13 % dummy file

There should be exactly one # between &'s, when an
\halign or \valign is being set up. In this case you had
more than one, so I'm ignoring all but the first.

mtx-context | fatal error: return code: 256

and using \alignmark and \aligntab this results in:

\starttext
\halign{a\alignmark\aligntab b\alignmark\aligntab c\alignmark\cr 1\aligntab 
2\cr 1\cr}
\stoptext

And I am most curious how my name could turn up in the error message produced!

tex error   > tex error on line 3 in file 
/Users/hansm/TeX/texmf/tex/context/user/type-loc.mkiv: ! Missing } inserted

 
}
 
\aligntab 
l.3 ...\alignmark\aligntab c\alignmark\cr 1\aligntab
   2\cr 1\cr}

 1 \endinput
 2 
 3 >>  Op NTG ConTeXt nieuwsgroep, antwoord van Hans Hagen.
 4 
 5 On 1/3/2014 2:33 PM, H. van der Meer wrote:
 6 Has someone an idee what causes the unknown library message as in the
 7 log below? Is it harmful?
 8 
 9 fonts   > typescripts > unknown library 'loc'
10 
11 you can add a file type-loc.mkiv someplace in your local tree with
12 
13 % dummy file

I've put in what seems to be necessary to fix
the current column of the current alignment.
Try to go on, since this might almost work.

mtx-context | fatal error: return code: 256



> 
> dr. Hans van der Meer
> 
> 
> ___
> 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
> ___

___
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] error in LMTX?

2019-06-10 Thread Hans van der Meer
This looks to me as an error in the LMTX distribution:

tex error   > tex error on line 6 in file 
/Users/hansm/TeX/context-lmtx/tex/texmf-context/tex/context/fonts/mkiv/type-imp-dejavu.mkiv:
 ! Missing } inserted

 
}
 
\aligntab 
l.6 fontclass\aligntab
\fontclass\cr

Because running under my old ConTeXtBeta does not aborts with the error.
system  > ConTeXt  ver: 2019.06.01 19:11 MKIV beta  fmt: 2019.6.4  int: 
english/english

I looked into that file but could not see what causes the error.

dr. Hans van der Meer


___
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] Lua error using module pgfplots and shader=interp

2019-05-29 Thread Luca Donetti
Dear all,

The following example using module pgfplots does not work in an updated
context standalone nor with the texlive 2019 version.

%% Workaround for using tikz version in texlive 2019.
%% See https://github.com/pgf-tikz/pgf/issues/675
%\unprotect
%\def\XC@tgt@mod#1{#1}
%\def\XC@sdef#1#2{\edef#1{#2}}
%\protect

\setupcolors[state=start]
\usemodule[pgfplots]
\starttext
\starttikzpicture
  \startaxis
\addplot3 [
  surf,
  shader=interp, % works with shader=flat
  samples=10,
  domain=0:1,
  ] {x^2*y};
  \stopaxis
\stoptikzpicture
\stoptext

The  error is the following (where line 19 contains "\stopaxis")
lua error   > lua error on line 19 in file [...]:
...781ce0dde776fb1556f32e/formats/luatex/lpdf-ini-macro.lua:887: pdf.obj():
object "type" missing

I'm attaching the test file, with the .the log and  ...-error.log files.
Please note that to reproduce the error with the context version of texlive
2019 the first lines must be uncommented due to a bug in the newer version
of tikz.

I suspect that the problem is with context because same file works with
context from texlive 2018 (which has the same pgfplots version) and an
equivalent latex version works with lualatex.

Could you suggest any workaround? If not I'll file a bug with pgfplots.

Thank you in advance,
LD
open source > level 1, order 1, name '/home/luca/software/context/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv'
job > passes > version mismatch: 1.3 <> 1.31
system  > 
system  > ConTeXt  ver: 2019.05.25 10:45 MKIV beta  fmt: 2019.5.27  int: english/english
system  > 
system  > 'cont-new.mkiv' loaded
open source > level 2, order 2, name '/home/luca/software/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
system  > beware: some patches loaded from cont-new.mkiv
close source> level 2, order 2, name '/home/luca/software/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
system  > files > jobname 'minimal_shading', input './minimal_shading', result 'minimal_shading'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > level 2, order 3, name '/home/luca/Nextcloud/personal/tmpcontext/minimal_shading.tex'
colors  > 'rgb' color space is supported
colors  > 'cmyk' color space is supported
modules > 'pgfplots' is loaded
open source > level 3, order 4, name '/home/luca/software/context/tex/texmf-modules/tex/context/third/pgfplots/t-pgfplots.tex'
loading > ConTeXt User Module / Pgfplots
open source > level 4, order 5, name '/home/luca/software/context/tex/texmf-modules/tex/generic/pgfplots/pgfplots.revision.tex'
close source> level 4, order 5, name '/home/luca/software/context/tex/texmf-modules/tex/generic/pgfplots/pgfplots.revision.tex'
modules > 'tikz' is loaded
open source > level 4, order 6, name '/home/luca/software/context/tex/texmf-modules/tex/context/pgf/frontendlayer/t-tikz.tex'
loading > ConTeXt User Module / tikz
open source > level 5, order 7, name '/home/luca/software/context/tex/texmf-modules/tex/context/pgf/basiclayer/t-pgf.tex'
loading > ConTeXt User Module / pgf
open source > level 6, order 8, name '/home/luca/software/context/tex/texmf-modules/tex/context/pgf/basiclayer/t-pgfcor.tex'
loading > ConTeXt User Module / pgfcor
open source > level 7, order 9, name '/home/luca/software/context/tex/texmf-modules/tex/context/pgf/systemlayer/t-pgfsys.tex'
loading > ConTeXt User Module / pgfsys
open source > level 8, order 10, name '/home/luca/software/context/tex/texmf-modules/tex/context/pgf/utilities/t-pgfrcs.tex'
loading > ConTeXt User Module / pgfrcs
open source > level 9, order 11, name '/home/luca/software/context/tex/texmf-modules/tex/context/pgf/utilities/t-pgfmod.tex'
loading > ConTeXt User Module / pgfmodules
close source> level 9, order 11, name '/home/luca/software/context/tex/texmf-modules/tex/context/pgf/utilities/t-pgfmod.tex'
open source > level 9, order 12, name '/home/luca/software/context/tex/texmf-modules/tex/generic/pgf/utilities/pgfutil-common.tex'
open source > level 10, order 13, name '/home/luca/software/context/tex/texmf-modules/tex/generic/pgf/utilities/pgfutil-common-lists.tex'
close source> level 10, order 13, name '/home/luca/software/context/tex/texmf-modules/tex/generic/pgf/utilities/pgfutil-common-lists.tex'
close source> level 9, order 13, name '/home/luca/software/context/tex/texmf-modules/tex/generic/pgf/utilities/pgfutil-common.tex'
open source > level 9, order 14, name '/home/luca/software/context/tex/texmf-modules/tex/generic/pgf/utilities/pgfutil-context.def'
close source> level 9, order 14, name '/home/luca/s

[NTG-context] Strange behavior concerning pdf-output of .png-externalfigures

2019-05-21 Thread Rudolf Bahr
 
fullname=/home/sam/context-lmtx/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv
 usedmethod=database
system  >5: filename=lang-exc.lua filetype=scripts 
foundname=/home/sam/context-lmtx/tex/texmf-context/tex/context/base/mkiv/lang-exc.lua
 
fullname=/home/sam/context-lmtx/tex/texmf-context/tex/context/base/mkiv/lang-exc.lua
 usedmethod=database
system  >6: filename=lang-us.lua filetype=scripts 
foundname=/home/sam/context-lmtx/tex/texmf-context/tex/context/patterns/mkiv/lang-us.lua
 
fullname=/home/sam/context-lmtx/tex/texmf-context/tex/context/patterns/mkiv/lang-us.lua
 usedmethod=database
system  >7: 
filename=/home/sam/Dokumente-Extern/Husche-II/111---kandidaten/Artefakte.tex 
format=tex 
foundname=/home/sam/Dokumente-Extern/Husche-II/111---kandidaten/Artefakte.tex 
fullname=/home/sam/Dokumente-Extern/Husche-II/111---kandidaten/Artefakte.tex 
usedmethod=direct
system  >8: filename=lm.lfg filetype=tex 
foundname=/home/sam/context-lmtx/tex/texmf-context/tex/context/fonts/mkiv/lm.lfg
 
fullname=/home/sam/context-lmtx/tex/texmf-context/tex/context/fonts/mkiv/lm.lfg 
usedmethod=database
system  >9: filename=lmroman12-regular filetype=otf format=otf 
foundname=/home/sam/context-lmtx/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf
 
fullname=/home/sam/context-lmtx/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf
 usedmethod=database
system  >   10: filename=latinmodern-math.otf filetype=opentypefonts 
foundname=/home/sam/context-lmtx/tex/texmf/fonts/opentype/public/lm-math/latinmodern-math.otf
 
fullname=/home/sam/context-lmtx/tex/texmf/fonts/opentype/public/lm-math/latinmodern-math.otf
 usedmethod=database
system  >   11: filename=lpdf-pdx.xml filetype=tex 
foundname=/home/sam/context-lmtx/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml
 
fullname=/home/sam/context-lmtx/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml
 usedmethod=database

system  > stop used files


system  > start commandline options

system  > currentrun="1"
system  > fulljobname="./Artefakte"
system  > input="./Artefakte"
system  > kindofrun="1"
system  > maxnofruns="9"
system  > texmfbinpath="/home/sam/context-lmtx/tex/texmf-linux-64/bin"

system  > stop commandline options


system  > start commandline files

system  >1: ./Artefakte

system  > stop commandline files


modules > start used modules


modules > stop used modules


mkiv lua stats  > used config file: selfautoparent:/texmf/web2c/texmfcnf.lua
mkiv lua stats  > used cache path: 
/home/sam/context-lmtx/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e
mkiv lua stats  > resource resolver: loadtime 0.007 seconds, 0 scans with 
scantime 0.000 seconds, 0 shared scans, 11 found files, scanned paths: 
mkiv lua stats  > stored bytecode data: 454 modules (0.167 sec), 93 tables 
(0.008 sec), 547 chunks (0.175 sec)
mkiv lua stats  > traced context: maxstack: 1384, freed: 0, unreachable: 1384
mkiv lua stats  > cleaned up reserved nodes: 54 nodes, 9 lists of 440
mkiv lua stats  > node memory usage: 2 whatsit, 1 glue, 3 kern, 2 penalty, 8 
attribute, 50 glue_spec, 4 attribute_list, 2 temp
mkiv lua stats  > node list callback tasks: 8 unique task lists, 7 instances 
(re)created, 67 calls
mkiv lua stats  > used backend: lmtx version 0.10, pdf (backend for directly 
generating pdf output)
mkiv lua stats  > jobdata time: 0.002 seconds saving, 0.000 seconds loading
mkiv lua stats  > callbacks: internal: 169, file: 148, direct: 10, late: 4, 
function 581, total: 912
mkiv lua stats  > randomizer: resumed with value 0.60140219822971
mkiv lua stats  > result saved in file: Artefakte.pdf, compresslevel 3, 
objectcompresslevel 1
mkiv lua stats  > loaded patterns: en::1, load time: 0.000
mkiv lua stats  > loaded fonts: 2 files: latinmodern-math.otf, 
lmroman12-regular.otf
mkiv lua stats  > font engine: otf 3.108, afm 1.513, tfm 1.000, 7 instances, 3 
shared in backend, 3 common vectors, 0 common hashes, load time 0.155 seconds 
mkiv lua stats  > graphics processing time: 0.003 seconds including tex, 4 
processed images, 4 unique asked, 3 bad names
mkiv lua stats  > font embedding time: 0.003 seconds, 1 fonts
mkiv lua stats  > used platform: linux-64, type: unix, binary subtree: 
texmf-linux-64
mkiv lua stats  > used engine: luametatex version 2.0
mkiv lua stats  > control sequences: 45210 of 65536 + 10
mkiv lua stats  > lua properties: engine: lua 5.4, used memory: 51 MB (ctx: 50 
MB), hash chars: min(64,40), symbol mask: ascii (tex)
mkiv lua stats  > runtime: 0.392 seconds, 1 processed pages, 1 shipped pages, 
2.553 pages/second

_

Re: [NTG-context] EB Garamond works in TL2016 ConTeXt but not in latest ConTeXt

2019-05-19 Thread Wolfgang Schuster

Hans Hagen schrieb am 19.05.2019 um 12:22:

On 5/19/2019 11:46 AM, Wolfgang Schuster wrote:

nyssus schrieb am 19.05.2019 um 11:31:

In my source ConTeXt file I have the lines:

\usetypescriptfile[type-ebgaramond]
\setupbodyfont[ebgaramond,10pt]


ConTeXt from TL 2016 correctly formats the text in EB Garamond, as can
be shown by the prescence of

mkiv lua stats  > loaded fonts: 2 files: ebgaramond12-regular.otf,
texgyrebonum-math.otf

whereas the latest ConTeXt gives:

fonts   > defining > font with asked name 
'EBGaramond12-Regular'

is not found using lookup 'file'
fonts   > defining > unknown font 'EBGaramond12-Regular',
loading aborted
fonts   > defining > unable to define 'EBGaramond12-Regular' as
'ebgaramond-10pt-rm-tf-0--0'

and typesets the text with TeX Gyre Bonum Math. I have the EBGaramond
fonts installed, set the OSFONTDIR path in setuptex, etc. What exactly
is wrong here?
There is a newer version of the fonts (from October 2017) which uses 
different files names than the older version (from 2014) but the 
predefined typescripts work only with the older names.


the names are mapped in a goodie file .. where did you find the new 
fonts?

https://github.com/octaviopardo/EBGaramond12/tree/master/fonts/

About the newer version: 
https://en.wikipedia.org/wiki/EB_Garamond#Implementation_History


Wolfgang

___
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] EB Garamond works in TL2016 ConTeXt but not in latest ConTeXt

2019-05-19 Thread Hans Hagen

On 5/19/2019 11:46 AM, Wolfgang Schuster wrote:

nyssus schrieb am 19.05.2019 um 11:31:

In my source ConTeXt file I have the lines:

\usetypescriptfile[type-ebgaramond]
\setupbodyfont[ebgaramond,10pt]


ConTeXt from TL 2016 correctly formats the text in EB Garamond, as can
be shown by the prescence of

mkiv lua stats  > loaded fonts: 2 files: ebgaramond12-regular.otf,
texgyrebonum-math.otf

whereas the latest ConTeXt gives:

fonts   > defining > font with asked name 'EBGaramond12-Regular'
is not found using lookup 'file'
fonts   > defining > unknown font 'EBGaramond12-Regular',
loading aborted
fonts   > defining > unable to define 'EBGaramond12-Regular' as
'ebgaramond-10pt-rm-tf-0--0'

and typesets the text with TeX Gyre Bonum Math. I have the EBGaramond
fonts installed, set the OSFONTDIR path in setuptex, etc. What exactly
is wrong here?
There is a newer version of the fonts (from October 2017) which uses 
different files names than the older version (from 2014) but the 
predefined typescripts work only with the older names.


the names are mapped in a goodie file .. where did you find the new fonts?


Instead of using the existing typescripts you can use the 
\definefontfamily command to access the font.


\definefontfamily [ebgaramond] [serif] [EB Garamond]
\definefontfamily [ebgaramond] [math]  [TeX Gyre Bonum Math]

\setupbodyfont [ebgaramond,10pt]

\starttext
...
\stoptext

Wolfgang

___ 

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
___ 




--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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] EB Garamond works in TL2016 ConTeXt but not in latest ConTeXt

2019-05-19 Thread Wolfgang Schuster

nyssus schrieb am 19.05.2019 um 11:31:

In my source ConTeXt file I have the lines:

\usetypescriptfile[type-ebgaramond]
\setupbodyfont[ebgaramond,10pt]


ConTeXt from TL 2016 correctly formats the text in EB Garamond, as can
be shown by the prescence of

mkiv lua stats  > loaded fonts: 2 files: ebgaramond12-regular.otf,
texgyrebonum-math.otf

whereas the latest ConTeXt gives:

fonts   > defining > font with asked name 'EBGaramond12-Regular'
is not found using lookup 'file'
fonts   > defining > unknown font 'EBGaramond12-Regular',
loading aborted
fonts   > defining > unable to define 'EBGaramond12-Regular' as
'ebgaramond-10pt-rm-tf-0--0'

and typesets the text with TeX Gyre Bonum Math. I have the EBGaramond
fonts installed, set the OSFONTDIR path in setuptex, etc. What exactly
is wrong here?
There is a newer version of the fonts (from October 2017) which uses 
different files names than the older version (from 2014) but the 
predefined typescripts work only with the older names.


Instead of using the existing typescripts you can use the 
\definefontfamily command to access the font.


\definefontfamily [ebgaramond] [serif] [EB Garamond]
\definefontfamily [ebgaramond] [math]  [TeX Gyre Bonum Math]

\setupbodyfont [ebgaramond,10pt]

\starttext
...
\stoptext

Wolfgang

___
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] EB Garamond works in TL2016 ConTeXt but not in latest ConTeXt

2019-05-19 Thread nyssus
In my source ConTeXt file I have the lines:

\usetypescriptfile[type-ebgaramond]
\setupbodyfont[ebgaramond,10pt]


ConTeXt from TL 2016 correctly formats the text in EB Garamond, as can
be shown by the prescence of

mkiv lua stats  > loaded fonts: 2 files: ebgaramond12-regular.otf,
texgyrebonum-math.otf

whereas the latest ConTeXt gives:

fonts   > defining > font with asked name 'EBGaramond12-Regular'
is not found using lookup 'file'
fonts   > defining > unknown font 'EBGaramond12-Regular',
loading aborted
fonts   > defining > unable to define 'EBGaramond12-Regular' as
'ebgaramond-10pt-rm-tf-0--0'

and typesets the text with TeX Gyre Bonum Math. I have the EBGaramond
fonts installed, set the OSFONTDIR path in setuptex, etc. What exactly
is wrong here?

___
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] Questions on columnsetspan (and grids and backgrounds)

2019-05-18 Thread Mikael P. Sundqvist
On Wed, May 15, 2019 at 9:28 AM Hans Hagen  wrote:

> On 5/14/2019 11:36 AM, Mikael P. Sundqvist wrote:
> > On Tue, May 14, 2019 at 10:39 AM Hans Hagen  wrote:
> >>
> >> On 5/13/2019 5:59 PM, Mikael P. Sundqvist wrote:
> >>> Den lör 11 maj 2019 10:28Mikael P. Sundqvist  >>> <mailto:mic...@gmail.com>> skrev:
> >>>
> >>>  Hi,
> >>>
> >>>  I have for some hours tried to understand how to work with
> >>>  columnsetspans (I'm trying with an updated lmtx), and have some
> >>>  questions.
> >>>
> >>>  1) Is it only the floats that has the long list of placement
> options
> >>>  (given on p. 18 in the columnsets manual), or should they also
> apply
> >>>  to columnsetspans and columnsetareas? (I cannot get it to work
> with
> >>>  "default=fxtb:2*10" and similar options for other elements than
> >>>  floats). It would be useful to have it for other type of elements
> as
> >>>  well.
> >>>
> >>>  2) What is the current correct way to get back on grid after
> formulas?
> >>>  The only key that had lead me to something that seems to work in
> >>>  \setupformulas is "option=depth". Is that the way to go?
> >>>
> >>>  3) This is a bit unrelated, but is it possible to set page
> backgrounds
> >>>  on specific page. Something like \setupbackgrounds[page][page=3,
> ...]
> >>>  (I cannot find any keys for this in setup-en.pdf). Right now I
> can set
> >>>  it for an odd and an even page, but then if I want a background
> on the
> >>>  page after that, I have to put that code at the place where it
> will be
> >>>  used. (I got an error with \startpostponing[+1] ...
> \stoppostponing)
> >>>
> >>>  4) To be a bit more concrete on the first issue: In the example
> below,
> >>>  how can I place the columnsetspan at the bottom right? Second and
> >>>  third column, 10 lines down? I attach the result of running this
> file.
> >>>
> >>>  /Mikael
> >>>
> >>>  \setuplayout[grid=yes]
> >>>  \showgrid
> >>>  \definecolumnset[three][n=3]
> >>>
> >>>  \definecolumnsetspan[two][
> >>>  n=2,
> >>>  background=color,
> >>>  backgroundcolor=lightgray,
> >>>  ]
> >>>
> >>>  \starttext
> >>>  \startcolumnset[three]
> >>>  \samplefile{knuth}
> >>>
> >>>  \startcolumnsetspan[two][default=btrl]
> >>>  \samplefile{ward}
> >>>  \stopcolumnsetspan
> >>>
> >>>  \dorecurse{5}{\samplefile{knuth}\par}
> >>>  \stopcolumnset
> >>>  \stoptext
> >>>
> >>>
> >>> Hi!
> >>>
> >>> I have looked more carefully at the columnsets manual, and it looks
> like
> >>> (parts of) the columnsets mechanism is somehow broken at the moment,
> >>> since some of the examples there are not showing what they are
> supposed to.
> >>
> >> the mkii mechanism has been replaced by a new one but it's not
> >> completely compatible (these placements are actually for floats and
> >> spans were just a special kind abusing that mechanism)
> >>
> >>> Can this be confirmed? Is there a plan to get it to work soon again?
> >> i'll put it on the todo list
> >>
> >> -
> >> Hans Hagen | PRAGMA ADE
> >> Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> >>  tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> >> -
> >
> > Hi!
> >
> > Many thanks for your reply! Then I stop my playing with it now
> > (several things work and it looks quite nice!).
> >
> > I really appreciate any effort in this direction, since I think this
> > grid+column functionality is a very nice feature to have!!
> this will work in a next upload (watch out: columnsets operate on a spread)
>
> \setuppagenumbering[alternative={doublesided}]
>
> \showgrid
>
> \setupalign[verytolerant] \dontcomplain
>
> \definecolumnset[three][n=3]
>
> \definecolumnsetsp

Re: [NTG-context] Which math font for LinLibertine family?

2019-05-16 Thread Marcin Borkowski

On 2019-05-15, at 08:40, Tomas Hala  wrote:

> On the file type-imp-libertine.mkiv there is a (disabled) line joining math
> from times family. Is the times math the best for LinLibertine or
> would you recommend me something else (from the design point of view)?

https://tex.stackexchange.com/q/47139/5626

Hth,

-- 
Marcin Borkowski
http://mbork.pl
___
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] Bibliography APS Style without unpublished

2019-05-16 Thread Jan U. Hasecke
Hi Alan,
thanks a lot for these hints.

Am 16.05.19 um 02:05 schrieb Alan Braslau:
> On Wed, 15 May 2019 14:27:21 +0200
> "Jan U. Hasecke"  wrote:
> 
>> is there an option to eliminate the "unpublished" in aps bibliography?
> 
> I suppose you mean the APS setup when NO date field is given
> ("to be published" for an article, "in press" for a book, and
> "unpublished" otherwise)?
> 
> You can redefine the setup btx:aps:nd (no date) to give something else,
> but you might have to go further not to get empty parenthesis.
> 
> A better solution, using the APS specification is to have a correct
> database. Maybe a different publication type category might be more
> appropriate.

I browsed through the mailing list to see that bibliographies are not
that easy. ;-)

I think I found a solution by providing a "year" in my database. That's
good enough for me.

But as I collect my internet citations with zotero I always get a
urldate for all internet entries. I think that giving the urldate is
better than insert a publication year as nobody knows how long a website
was present and when it was published for the first time.

Is it possible to insert something like "last accessed on the internet
on -MM-DD" in that field automatically if no publication year is
provided but a urldate?

Greetings
juh
___
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] Bug or not?

2019-05-16 Thread Hans van der Meer
There is an interaction in the placement of float captions when their width is set and background coloring switched.Minimal example included here, the jpeg is arbitrary of course. Output shown.Setting the width of the caption effectively shifts the caption to the left.See the change between the last two floats where [background=] changes the game.I wonder, is this intended behaviour? Or should one expect something different?\starttextTesting figure captions with \tex{setupframed[background="">\setupframed[background="">\placefigure[][]{\tex{setupframed[background="">Add \tex{setupcaption[align=middle,width=\makeupwidth]} as setting here:\par\setupcaption[align=middle,width=\makeupwidth]\setupframed[background="">\placefigure[][]{\type{\setupcaption[align=middle,width=\makeupwidth]}}{\externalfigure[test.jpg]}\setupframed[background="">\placefigure[][]{\tex{setupframed[background="">\stoptext
dr. Hans van der Meer



captionshift.pdf
Description: Adobe PDF document
___
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] Bibliography APS Style without unpublished

2019-05-15 Thread Alan Braslau
On Wed, 15 May 2019 14:27:21 +0200
"Jan U. Hasecke"  wrote:

> is there an option to eliminate the "unpublished" in aps bibliography?

I suppose you mean the APS setup when NO date field is given
("to be published" for an article, "in press" for a book, and
"unpublished" otherwise)?

You can redefine the setup btx:aps:nd (no date) to give something else,
but you might have to go further not to get empty parenthesis.

A better solution, using the APS specification is to have a correct
database. Maybe a different publication type category might be more
appropriate.

--
Alan
___
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] Questions on columnsetspan (and grids and backgrounds)

2019-05-15 Thread Hans Hagen

On 5/14/2019 11:36 AM, Mikael P. Sundqvist wrote:

On Tue, May 14, 2019 at 10:39 AM Hans Hagen  wrote:


On 5/13/2019 5:59 PM, Mikael P. Sundqvist wrote:

Den lör 11 maj 2019 10:28Mikael P. Sundqvist mailto:mic...@gmail.com>> skrev:

 Hi,

 I have for some hours tried to understand how to work with
 columnsetspans (I'm trying with an updated lmtx), and have some
 questions.

 1) Is it only the floats that has the long list of placement options
 (given on p. 18 in the columnsets manual), or should they also apply
 to columnsetspans and columnsetareas? (I cannot get it to work with
 "default=fxtb:2*10" and similar options for other elements than
 floats). It would be useful to have it for other type of elements as
 well.

 2) What is the current correct way to get back on grid after formulas?
 The only key that had lead me to something that seems to work in
 \setupformulas is "option=depth". Is that the way to go?

 3) This is a bit unrelated, but is it possible to set page backgrounds
 on specific page. Something like \setupbackgrounds[page][page=3, ...]
 (I cannot find any keys for this in setup-en.pdf). Right now I can set
 it for an odd and an even page, but then if I want a background on the
 page after that, I have to put that code at the place where it will be
 used. (I got an error with \startpostponing[+1] ... \stoppostponing)

 4) To be a bit more concrete on the first issue: In the example below,
 how can I place the columnsetspan at the bottom right? Second and
 third column, 10 lines down? I attach the result of running this file.

 /Mikael

 \setuplayout[grid=yes]
 \showgrid
 \definecolumnset[three][n=3]

 \definecolumnsetspan[two][
 n=2,
 background=color,
 backgroundcolor=lightgray,
 ]

 \starttext
 \startcolumnset[three]
 \samplefile{knuth}

 \startcolumnsetspan[two][default=btrl]
 \samplefile{ward}
 \stopcolumnsetspan

 \dorecurse{5}{\samplefile{knuth}\par}
 \stopcolumnset
 \stoptext


Hi!

I have looked more carefully at the columnsets manual, and it looks like
(parts of) the columnsets mechanism is somehow broken at the moment,
since some of the examples there are not showing what they are supposed to.


the mkii mechanism has been replaced by a new one but it's not
completely compatible (these placements are actually for floats and
spans were just a special kind abusing that mechanism)


Can this be confirmed? Is there a plan to get it to work soon again?

i'll put it on the todo list

-
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-


Hi!

Many thanks for your reply! Then I stop my playing with it now
(several things work and it looks quite nice!).

I really appreciate any effort in this direction, since I think this
grid+column functionality is a very nice feature to have!!

this will work in a next upload (watch out: columnsets operate on a spread)

\setuppagenumbering[alternative={doublesided}]

\showgrid

\setupalign[verytolerant] \dontcomplain

\definecolumnset[three][n=3]

\definecolumnsetspan[two]
  [n=2,
   background=color,
   backgroundcolor=lightgray]

\starttext

\page[left]

\startcolumnset[three]

\startcolumnsetspan[two][c=1,r=5]
\samplefile{ward}
\stopcolumnsetspan

\startcolumnsetspan[two][method=btlr,c=2,r=3]
\samplefile{ward}
\stopcolumnsetspan

\dorecurse{6}{\samplefile{knuth}\par}

\stopcolumnset

\stoptext

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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] Which math font for LinLibertine family?

2019-05-15 Thread Mikael P. Sundqvist
On Wed, May 15, 2019 at 8:40 AM Tomas Hala  wrote:
>
> Hi all,
>
> the font family LinLibertine (ConTeXt from TL2018 and older) does not
> contain any math font.
>
> On the file type-imp-libertine.mkiv there is a (disabled) line joining math
> from times family. Is the times math the best for LinLibertine or
> would you recommend me something else (from the design point of view)?
>
> What is the best way how to add math to the existing typescript?
> (I would like to avoid changing the file from the installation.)
>
> Best wishes
>
> Tomáš
>
> ___
> 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
> ___

Hi,

Is this an option?

https://github.com/alif-type/libertinus

/Mikael
___
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] Which math font for LinLibertine family?

2019-05-15 Thread Tomas Hala
Hi all,

the font family LinLibertine (ConTeXt from TL2018 and older) does not
contain any math font. 

On the file type-imp-libertine.mkiv there is a (disabled) line joining math
from times family. Is the times math the best for LinLibertine or
would you recommend me something else (from the design point of view)?

What is the best way how to add math to the existing typescript?
(I would like to avoid changing the file from the installation.)

Best wishes

Tomáš

___
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] Questions on columnsetspan (and grids and backgrounds)

2019-05-14 Thread Mikael P. Sundqvist
On Tue, May 14, 2019 at 10:39 AM Hans Hagen  wrote:
>
> On 5/13/2019 5:59 PM, Mikael P. Sundqvist wrote:
> > Den lör 11 maj 2019 10:28Mikael P. Sundqvist  > <mailto:mic...@gmail.com>> skrev:
> >
> > Hi,
> >
> > I have for some hours tried to understand how to work with
> > columnsetspans (I'm trying with an updated lmtx), and have some
> > questions.
> >
> > 1) Is it only the floats that has the long list of placement options
> > (given on p. 18 in the columnsets manual), or should they also apply
> > to columnsetspans and columnsetareas? (I cannot get it to work with
> > "default=fxtb:2*10" and similar options for other elements than
> > floats). It would be useful to have it for other type of elements as
> > well.
> >
> > 2) What is the current correct way to get back on grid after formulas?
> > The only key that had lead me to something that seems to work in
> > \setupformulas is "option=depth". Is that the way to go?
> >
> > 3) This is a bit unrelated, but is it possible to set page backgrounds
> > on specific page. Something like \setupbackgrounds[page][page=3, ...]
> > (I cannot find any keys for this in setup-en.pdf). Right now I can set
> > it for an odd and an even page, but then if I want a background on the
> > page after that, I have to put that code at the place where it will be
> > used. (I got an error with \startpostponing[+1] ... \stoppostponing)
> >
> > 4) To be a bit more concrete on the first issue: In the example below,
> > how can I place the columnsetspan at the bottom right? Second and
> > third column, 10 lines down? I attach the result of running this file.
> >
> > /Mikael
> >
> > \setuplayout[grid=yes]
> > \showgrid
> > \definecolumnset[three][n=3]
> >
> > \definecolumnsetspan[two][
> > n=2,
> > background=color,
> > backgroundcolor=lightgray,
> > ]
> >
> > \starttext
> > \startcolumnset[three]
> > \samplefile{knuth}
> >
> > \startcolumnsetspan[two][default=btrl]
> > \samplefile{ward}
> > \stopcolumnsetspan
> >
> > \dorecurse{5}{\samplefile{knuth}\par}
> > \stopcolumnset
> > \stoptext
> >
> >
> > Hi!
> >
> > I have looked more carefully at the columnsets manual, and it looks like
> > (parts of) the columnsets mechanism is somehow broken at the moment,
> > since some of the examples there are not showing what they are supposed to.
>
> the mkii mechanism has been replaced by a new one but it's not
> completely compatible (these placements are actually for floats and
> spans were just a special kind abusing that mechanism)
>
> > Can this be confirmed? Is there a plan to get it to work soon again?
> i'll put it on the todo list
>
> -
>Hans Hagen | PRAGMA ADE
>Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -

Hi!

Many thanks for your reply! Then I stop my playing with it now
(several things work and it looks quite nice!).

I really appreciate any effort in this direction, since I think this
grid+column functionality is a very nice feature to have!!

/Mikael
___
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] Questions on columnsetspan (and grids and backgrounds)

2019-05-14 Thread Hans Hagen

On 5/13/2019 5:59 PM, Mikael P. Sundqvist wrote:
Den lör 11 maj 2019 10:28Mikael P. Sundqvist <mailto:mic...@gmail.com>> skrev:


Hi,

I have for some hours tried to understand how to work with
columnsetspans (I'm trying with an updated lmtx), and have some
questions.

1) Is it only the floats that has the long list of placement options
(given on p. 18 in the columnsets manual), or should they also apply
to columnsetspans and columnsetareas? (I cannot get it to work with
"default=fxtb:2*10" and similar options for other elements than
floats). It would be useful to have it for other type of elements as
well.

2) What is the current correct way to get back on grid after formulas?
The only key that had lead me to something that seems to work in
\setupformulas is "option=depth". Is that the way to go?

3) This is a bit unrelated, but is it possible to set page backgrounds
on specific page. Something like \setupbackgrounds[page][page=3, ...]
(I cannot find any keys for this in setup-en.pdf). Right now I can set
it for an odd and an even page, but then if I want a background on the
page after that, I have to put that code at the place where it will be
used. (I got an error with \startpostponing[+1] ... \stoppostponing)

4) To be a bit more concrete on the first issue: In the example below,
how can I place the columnsetspan at the bottom right? Second and
third column, 10 lines down? I attach the result of running this file.

/Mikael

\setuplayout[grid=yes]
\showgrid
\definecolumnset[three][n=3]

\definecolumnsetspan[two][
n=2,
background=color,
backgroundcolor=lightgray,
]

\starttext
\startcolumnset[three]
\samplefile{knuth}

\startcolumnsetspan[two][default=btrl]
\samplefile{ward}
\stopcolumnsetspan

\dorecurse{5}{\samplefile{knuth}\par}
\stopcolumnset
\stoptext


Hi!

I have looked more carefully at the columnsets manual, and it looks like 
(parts of) the columnsets mechanism is somehow broken at the moment, 
since some of the examples there are not showing what they are supposed to.


the mkii mechanism has been replaced by a new one but it's not 
completely compatible (these placements are actually for floats and 
spans were just a special kind abusing that mechanism)



Can this be confirmed? Is there a plan to get it to work soon again?

i'll put it on the todo list

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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] Questions on columnsetspan (and grids and backgrounds)

2019-05-13 Thread Mikael P. Sundqvist
Den lör 11 maj 2019 10:28Mikael P. Sundqvist  skrev:

> Hi,
>
> I have for some hours tried to understand how to work with
> columnsetspans (I'm trying with an updated lmtx), and have some
> questions.
>
> 1) Is it only the floats that has the long list of placement options
> (given on p. 18 in the columnsets manual), or should they also apply
> to columnsetspans and columnsetareas? (I cannot get it to work with
> "default=fxtb:2*10" and similar options for other elements than
> floats). It would be useful to have it for other type of elements as
> well.
>
> 2) What is the current correct way to get back on grid after formulas?
> The only key that had lead me to something that seems to work in
> \setupformulas is "option=depth". Is that the way to go?
>
> 3) This is a bit unrelated, but is it possible to set page backgrounds
> on specific page. Something like \setupbackgrounds[page][page=3, ...]
> (I cannot find any keys for this in setup-en.pdf). Right now I can set
> it for an odd and an even page, but then if I want a background on the
> page after that, I have to put that code at the place where it will be
> used. (I got an error with \startpostponing[+1] ... \stoppostponing)
>
> 4) To be a bit more concrete on the first issue: In the example below,
> how can I place the columnsetspan at the bottom right? Second and
> third column, 10 lines down? I attach the result of running this file.
>
> /Mikael
>
> \setuplayout[grid=yes]
> \showgrid
> \definecolumnset[three][n=3]
>
> \definecolumnsetspan[two][
> n=2,
> background=color,
> backgroundcolor=lightgray,
> ]
>
> \starttext
> \startcolumnset[three]
> \samplefile{knuth}
>
> \startcolumnsetspan[two][default=btrl]
> \samplefile{ward}
> \stopcolumnsetspan
>
> \dorecurse{5}{\samplefile{knuth}\par}
> \stopcolumnset
> \stoptext
>

Hi!

I have looked more carefully at the columnsets manual, and it looks like
(parts of) the columnsets mechanism is somehow broken at the moment, since
some of the examples there are not showing what they are supposed to.

Can this be confirmed? Is there a plan to get it to work soon again?

Best regards, Mikael

>
___
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] Questions on columnsetspan (and grids and backgrounds)

2019-05-11 Thread Mikael P. Sundqvist
Hi,

I have for some hours tried to understand how to work with
columnsetspans (I'm trying with an updated lmtx), and have some
questions.

1) Is it only the floats that has the long list of placement options
(given on p. 18 in the columnsets manual), or should they also apply
to columnsetspans and columnsetareas? (I cannot get it to work with
"default=fxtb:2*10" and similar options for other elements than
floats). It would be useful to have it for other type of elements as
well.

2) What is the current correct way to get back on grid after formulas?
The only key that had lead me to something that seems to work in
\setupformulas is "option=depth". Is that the way to go?

3) This is a bit unrelated, but is it possible to set page backgrounds
on specific page. Something like \setupbackgrounds[page][page=3, ...]
(I cannot find any keys for this in setup-en.pdf). Right now I can set
it for an odd and an even page, but then if I want a background on the
page after that, I have to put that code at the place where it will be
used. (I got an error with \startpostponing[+1] ... \stoppostponing)

4) To be a bit more concrete on the first issue: In the example below,
how can I place the columnsetspan at the bottom right? Second and
third column, 10 lines down? I attach the result of running this file.

/Mikael

\setuplayout[grid=yes]
\showgrid
\definecolumnset[three][n=3]

\definecolumnsetspan[two][
n=2,
background=color,
backgroundcolor=lightgray,
]

\starttext
\startcolumnset[three]
\samplefile{knuth}

\startcolumnsetspan[two][default=btrl]
\samplefile{ward}
\stopcolumnsetspan

\dorecurse{5}{\samplefile{knuth}\par}
\stopcolumnset
\stoptext


span.pdf
Description: Adobe PDF document
___
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] No menu bar option for Adobe Reader

2019-04-27 Thread Paul Schalck
Hi,

I use the "Hide menu bar" option extensively in Adobe Acrobat Reader to get a 
cleaner interface. To this end, I usually hack lpdf-mis.lua after a ConTeXt 
upgrade to create a \setupinteractionscreen[option=nomenubar] switch.

I wonder if it would be possible to add this little feature to the source code. 
Perhaps it can be useful to others as well.

Greetings!

Paul

Attachment: patch + modified lpdf-mis.lua (from ConTeXt MkVI 2019.04.25)if not modules then modules = { } end modules ['lpdf-mis'] = {
version   = 1.001,
comment   = "companion to lpdf-ini.mkiv",
author= "Hans Hagen, PRAGMA-ADE, Hasselt NL",
copyright = "PRAGMA ADE / ConTeXt Development Team",
license   = "see context related readme files"
}

-- Although we moved most pdf handling to the lua end, we didn't change
-- the overall approach. For instance we share all resources i.e. we
-- don't make subsets for each xform or page. The current approach is
-- quite efficient. A big difference between MkII and MkIV is that we
-- now use forward references. In this respect the MkII code shows that
-- it evolved over a long period, when backends didn't provide forward
-- referencing and references had to be tracked in multiple passes. Of
-- course there are a couple of more changes.

local next, tostring, type = next, tostring, type
local format, gsub, formatters = string.format, string.gsub, string.formatters
local flattened = table.flattened

local backends, lpdf, nodes = backends, lpdf, nodes

local nodeinjections   = backends.pdf.nodeinjections
local codeinjections   = backends.pdf.codeinjections
local registrations= backends.pdf.registrations

local nuts = nodes.nuts
local copy_node= nuts.copy

local nodepool = nuts.pool
local pageliteral  = nodepool.pageliteral
local register = nodepool.register

local pdfdictionary= lpdf.dictionary
local pdfarray = lpdf.array
local pdfconstant  = lpdf.constant
local pdfreference = lpdf.reference
local pdfunicode   = lpdf.unicode
local pdfverbose   = lpdf.verbose
local pdfstring= lpdf.string
local pdfflushobject   = lpdf.flushobject
local pdfflushstreamobject = lpdf.flushstreamobject
local pdfaction= lpdf.action
local pdfminorversion  = lpdf.minorversion

local formattedtimestamp   = lpdf.pdftimestamp
local adddocumentextgstate = lpdf.adddocumentextgstate
local addtocatalog = lpdf.addtocatalog
local addtoinfo= lpdf.addtoinfo
local addtopageattributes  = lpdf.addtopageattributes
local addtonames   = lpdf.addtonames

local pdfgetmetadata   = lpdf.getmetadata

local texset   = tex.set

local variables= interfaces.variables

local v_stop   = variables.stop
local v_none   = variables.none
local v_max= variables.max
local v_bookmark   = variables.bookmark
local v_fit= variables.fit
local v_doublesided= variables.doublesided
local v_singlesided= variables.singlesided
local v_default= variables.default
local v_auto   = variables.auto
local v_fixed  = variables.fixed
local v_landscape  = variables.landscape
local v_portrait   = variables.portrait
local v_page   = variables.page
local v_paper  = variables.paper
local v_attachment = variables.attachment
local v_layer  = variables.layer
local v_lefttoright= variables.lefttoright
local v_righttoleft= variables.righttoleft
local v_title  = variables.title
local v_nomenubar  = variables.nomenubar

local positive = register(pageliteral("/GSpositive gs"))
local negative = register(pageliteral("/GSnegative gs"))
local overprint= register(pageliteral("/GSoverprint gs"))
local knockout = register(pageliteral("/GSknockout gs"))

local omitextraboxes   = false

directives.register("backend.omitextraboxes", function(v) omitextraboxes = v end)

local function initializenegative()
local a = pdfarray { 0, 1 }
local g = pdfconstant("ExtGState")
local d = pdfdictionary {
FunctionType = 4,
Range= a,
Domain   = a,
}
local negative = pdfdictionary { Type = g, TR = pdfreference(pdfflushstreamobject("{ 1 exch sub }",d)) } -- can be shared
local positive = pdfdictionary { Type = g, TR = pdfconstant("Identity") }
adddocumentextgstate("GSnegative", pdfreference(pdfflushobject(negative)))
adddocumentextgstate("GSpositive", pdfreference(pdfflushobject(positive)))
    initializenegative = nil
end

local function initializeoverprint()
    local g = pdfconstant(&q

Re: [NTG-context] tikz is not found

2019-04-24 Thread Gour
On Wed, 24 Apr 2019 09:29:26 -0600
Alan Braslau  wrote:

> Hans explained that third party modules are not automatically
> distributed or installed (yet) by the lmtx install.sh script. 

Ahh...I apologize for creating extra noise then. :-(

> All that you need to do is to copy the texmf-modules directory from a
> standard context distribution to the lmtx tree.

OK. Will try to do it.

> If you are intending on preparing math exams, I may suggest that
> native MetaPost IS better adapted for many reasons AND easier to use
> in ConTeXt.

I believe it is, but it seems that learning curve is steeper, while
GeoGebra is quite easy to easy...However, I downloaded MetaPost manual
and will test how it goes.

> Because your (or someone's) mail application replaced -- with
> emdashes.

That I spotted and corrected, but I'm getting another error, I suppose:

$ cat  mp.tex
\starttext
Lorem Ipsum…

\startMPcode
draw ( (0,0)--(1,0)--(0,1)) with color red ;
\stopMPcode

\stoptext

gives:

$ context mp.tex 
mtx-context | run 1: luatex
--fmt="/var/lib/texmf/luatex-cache/context/b47c3d3cee7cb6c86268d0595268c442/formats/luatex/cont-en"
--jobname="mp"
--lua="/var/lib/texmf/luatex-cache/context/b47c3d3cee7cb6c86268d0595268c442/formats/luatex/cont-en.lui"
--no-parse-first-line --c:currentrun=1 --c:fulljobname="./mp.tex"
--c:input="./mp.tex" --c:kindofrun=1 --c:maxnofruns=9 "cont-yes.mkiv"

This is LuaTeX, Version 1.07.0 (TeX Live 2019/dev/Debian) 
 system commands enabled.
open source > level 1, order 1, name
'/usr/share/texmf/tex/context/base/mkiv/cont-yes.mkiv' system
> system  > ConTeXt  ver: 2018.04.04 00:51 MKIV beta  fmt:
> 2019.4.24  int: english/english
system  > 
system  > 'cont-new.mkiv' loaded
open source > level 2, order 2, name
'/usr/share/texmf/tex/context/base/mkiv/cont-new.mkiv' close source
> level 2, order 2, name
> '/usr/share/texmf/tex/context/base/mkiv/cont-new.mkiv'
> system  > files > jobname 'mp', input './mp', result 'mp'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > level 2, order 3, name '/home/gour/prj/tex/mp.tex'
fonts   > preloading latin modern fonts (second stage)
fonts   > 'fallback modern-designsize rm 12pt' is loaded
metapost> initializing instance 'metafun' using format 'metafun'
metapost> loading 'metafun' as
'/usr/share/texmf/metapost/context/base/mpiv/metafun.mpiv' using method
'default' metapost> initializing number mode 'scaled'

tex error   > mp error on line 6 in file /home/gour/prj/tex/mp.tex:

>> currentpen.with
! Improper type.

color
<*> draw ( (0,0)--(1,0)--(0,1)) with color
red ; ;
Next time say `withpen ';
I'll ignore the bad `with' clause and look for another.

! Extra tokens will be flushed.

color
<*> draw ( (0,0)--(1,0)--(0,1)) with color
red ; ;
I've just read as much of that statement as I could fathom,
so a semicolon should have been next. It's very puzzling...
but I'll try to get myself back together, by ignoring
everything up to the next `;'. Please insert a semicolon
now in front of anything that you don't want me to delete.
(See Chapter 27 of The METAFONTbook for an example.)

[1]

1 \starttext
2 Lorem Ipsum…
3 
4 \startMPcode
5 draw ( (0,0)--(1,0)--(0,1)) with color red ;
6 >>  \stopMPcode
7 
8 \stoptext
9 


? 


Any hint?


Sincerely,
Gour

-- 
An intelligent person does not take part in the sources of misery,
which are due to contact with the material senses. O son of Kuntī,
such pleasures have a beginning and an end, and so the wise man does
not delight in them.

-- 
One must deliver himself with the help of his mind, and not
degrade himself. The mind is the friend of the conditioned soul,
and his enemy as well.


___
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] preparing math exams

2019-04-24 Thread Gour
On Tue, 23 Apr 2019 11:57:34 -0400
Fabrice L  wrote:

> Metapost (Metafun) is your best friend here. You can insert directly
> in context some MetaFun code, like this:
> 
> \starttext
> Lorem Ipsum…
> 
> \startMPcode
> draw ( (0,0) — (1,0) — (0,1)) with color red ;
> \stopMPcode
> 
> \stoptext
> 

That example does not work for me, but I've got a clue.

However, someone in other forum suggested me to use GeoGebra - that's
what even math textboooks use here which is interactive and can, amongst
several other formats, export to TikZ, and in the beginning it seems as
quicker/easier start.


Sincerely,
Gour

-- 
In this endeavor there is no loss or diminution,
and a little advancement on this path can protect
one from the most dangerous type of fear.


___
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] \abovedisplayshortskip

2019-04-22 Thread Mikael P. Sundqvist
On Sat, Apr 20, 2019 at 7:55 PM Wolfgang Schuster
 wrote:
>
> Mikael P. Sundqvist schrieb am 20.04.2019 um 15:30:
> > On Mon, Apr 15, 2019 at 1:42 PM Mikael P. Sundqvist  
> > wrote:
> >> Hi,
> >>
> >> is \abovedisplayshortskip inserted in formulas that come after short
> >> lines? Or is there a more ConTeXt-way to tune this? Small example file
> >> below, but I see no change after I set it, so I guess it is not used?
> >>
> >> /Mikael
> >>
> >> \starttext
> >> Foo
> >> \startformula
> >> 1+1=2
> >> \stopformula
> >>
> >> \abovedisplayshortskip = -12pt
> >>
> >> Foo
> >> \startformula
> >> 1+1=2
> >> \stopformula
> >> \stoptext
> > Bump. Nobody knows?
> ConTeXt inserts always the same vertical space before a formula
> independent of the length of the previous line.
>
> Wolfgang
>

Thanks Wolfgang!

Hans, is there a chance to add support for this (that seems to be
supported in TeX)?

As of now, I have defined a new type of formula which has less
vertical space above the formulas, but that is something one has to
check manually.

/Mikael
___
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] Adjust kerning with superscript

2019-04-15 Thread Hans Hagen

On 4/15/2019 11:23 AM, Henri Menke wrote:



On 15/04/19 9:06 PM, Hans Hagen wrote:

On 4/15/2019 9:50 AM, Henri Menke wrote:

Dear list,

I am unhappy with how some fonts kern particular subscripts.  For example in
the default Latin Modern, subscripts to the Greek capital gamma could use some
negative kerning.  Because I can't (and don't want to) fix the font, I thought
that I could patch the font on-the-fly in ConTeXt.

The usual approach with fonts.handlers.otf.addfeature works well in math mode,
but does not extend into subscripts (MWE below).  Is there a method to adjust
subscript kernings?  Could this be done using mathkerns?  Latin Modern doesn't
have any but maybe they can be added on the fly.

Cheers, Henri

---

\startluacode
fonts.handlers.otf.addfeature {
  type = "kern",
  name = "kern",
  data = { [0x0393] = { [0x0030] = -200 } }
}
\stopluacode

\setupbodyfont[modern]

\starttext
$\Gamma0$ % works fine :)

$\Gamma_0$ % doesn't work :(
\stoptext

see pagella-math.lfg


Thanks for the hint.  Is there a possibility to do this without goodies?  They
are not available in generic.


i suppose that you can use one of the hooks that adapt fonts beforehand: 
just add features after the font gets loaded but before it gets passed 
to tex (it's character.mathkerns)


(at some point i'll probably add such stacked kern definitions in 
context but it depends on how the gyre fonts evolve)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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] Adjust kerning with superscript

2019-04-15 Thread Henri Menke


On 15/04/19 9:06 PM, Hans Hagen wrote:
> On 4/15/2019 9:50 AM, Henri Menke wrote:
>> Dear list,
>>
>> I am unhappy with how some fonts kern particular subscripts.  For example in
>> the default Latin Modern, subscripts to the Greek capital gamma could use 
>> some
>> negative kerning.  Because I can't (and don't want to) fix the font, I 
>> thought
>> that I could patch the font on-the-fly in ConTeXt.
>>
>> The usual approach with fonts.handlers.otf.addfeature works well in math 
>> mode,
>> but does not extend into subscripts (MWE below).  Is there a method to adjust
>> subscript kernings?  Could this be done using mathkerns?  Latin Modern 
>> doesn't
>> have any but maybe they can be added on the fly.
>>
>> Cheers, Henri
>>
>> ---
>>
>> \startluacode
>> fonts.handlers.otf.addfeature {
>>  type = "kern",
>>  name = "kern",
>>  data = { [0x0393] = { [0x0030] = -200 } }
>> }
>> \stopluacode
>>
>> \setupbodyfont[modern]
>>
>> \starttext
>> $\Gamma0$ % works fine :)
>>
>> $\Gamma_0$ % doesn't work :(
>> \stoptext
> see pagella-math.lfg

Thanks for the hint.  Is there a possibility to do this without goodies?  They
are not available in generic.

Cheers, Henri

> 
> 
> -
>Hans Hagen | PRAGMA ADE
>Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -
> ___
> 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
> ___
> 

___
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] Adjust kerning with superscript

2019-04-15 Thread Hans Hagen

On 4/15/2019 9:50 AM, Henri Menke wrote:

Dear list,

I am unhappy with how some fonts kern particular subscripts.  For example in
the default Latin Modern, subscripts to the Greek capital gamma could use some
negative kerning.  Because I can't (and don't want to) fix the font, I thought
that I could patch the font on-the-fly in ConTeXt.

The usual approach with fonts.handlers.otf.addfeature works well in math mode,
but does not extend into subscripts (MWE below).  Is there a method to adjust
subscript kernings?  Could this be done using mathkerns?  Latin Modern doesn't
have any but maybe they can be added on the fly.

Cheers, Henri

---

\startluacode
fonts.handlers.otf.addfeature {
 type = "kern",
 name = "kern",
 data = { [0x0393] = { [0x0030] = -200 } }
}
\stopluacode

\setupbodyfont[modern]

\starttext
$\Gamma0$ % works fine :)

$\Gamma_0$ % doesn't work :(
\stoptext

see pagella-math.lfg


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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] Adjust kerning with superscript

2019-04-15 Thread Henri Menke
Dear list,

I am unhappy with how some fonts kern particular subscripts.  For example in
the default Latin Modern, subscripts to the Greek capital gamma could use some
negative kerning.  Because I can't (and don't want to) fix the font, I thought
that I could patch the font on-the-fly in ConTeXt.

The usual approach with fonts.handlers.otf.addfeature works well in math mode,
but does not extend into subscripts (MWE below).  Is there a method to adjust
subscript kernings?  Could this be done using mathkerns?  Latin Modern doesn't
have any but maybe they can be added on the fly.

Cheers, Henri

---

\startluacode
fonts.handlers.otf.addfeature {
type = "kern",
name = "kern",
data = { [0x0393] = { [0x0030] = -200 } }
}
\stopluacode

\setupbodyfont[modern]

\starttext
$\Gamma0$ % works fine :)

$\Gamma_0$ % doesn't work :(
\stoptext

___
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] gnuplot-module broken under lmtx

2019-04-10 Thread Hans Hagen

On 4/10/2019 4:34 PM, Christian Prim wrote:

Hi

It's little off-topic as there are officially no modules included in 
lmtx. But when I used the modules from a mkiv-installation, there was 
little to no problem. But with the gnuplot-module I can't fix the error 
myself.


not off-topic .. as modules should also work ok in lmtx

fixed in next beta (probably tommorrow an upload)

Hans


MWE:
\usemodule[gnuplot]
\startGNUPLOTscript[sin]
    plot sin(x)
\stopGNUPLOTscript

\starttext
\placefigure[here]{Sine Test}{\useGNUPLOTgraphic[sin]}
\stoptext

Under mkiv everything is fine. mkiv creates a 
file gnuplot-gnuplot-1.plt, sends this file to gnuplot and uses the 
output gnuplot-gnuplot-1-ctx.tex.


Under lmtx only the files gnuplot-gnuplot-1.tmp 
and gnuplot-gnuplot-inclusions.tmp are created. When I copy the correct 
.plt file from a mkiv-run, no gnuplot-gnuplot-1-ctx.tex is generated. If 
I copy the correct -ctx.tex file from a mkiv-run, I still get an error.


Relevant part from the logfile of a working mkiv-run:
modules         > 'gnuplot' is loaded
open source     > level 3, order 4, name 
'/home/user/context/tex/texmf-modules/tex/context/third/gnuplot/t-gnuplot.mkiv'

loading         > Gnuplot module
open source     > level 4, order 5, name 
'/home/user/context/tex/texmf-context/tex/context/fonts/mkiv/type-imp-texgyre.mkiv'
close source    > level 4, order 5, name 
'/home/user/context/tex/texmf-context/tex/context/fonts/mkiv/type-imp-texgyre.mkiv'
close source    > level 3, order 5, name 
'/home/user/context/tex/texmf-modules/tex/context/third/gnuplot/t-gnuplot.mkiv'

fonts           > preloading latin modern fonts (second stage)
fonts           > 'fallback modern-designsize rm 12pt' is loaded
open source     > level 3, order 6, name 'gnuplot-gnuplot-1-ctx.tex'
close source    > level 3, order 6, name 'gnuplot-gnuplot-1-ctx.tex'
metapost        > initializing instance 'metafun:1' using format 
'metafun' and method 'default'
metapost        > loading 'metafun' as 
'/home/user/context/tex/texmf-context/metapost/context/base/mpiv/metafun.mpiv' 
using method 'default'

metapost        > initializing number mode 'scaled'
floatblocks     > '1' placed (here)

from a lmtx-run (no .plt-file and -ctx.tex given):

modules         > 'gnuplot' is loaded
open source     > level 3, order 4, name 
'/home/user/lmtx/tex/texmf-modules/tex/context/third/gnuplot/t-gnuplot.mkiv'

loading         > Gnuplot module
open source     > level 4, order 5, name 
'/home/user/lmtx/tex/texmf-context/tex/context/fonts/mkiv/type-imp-texgyre.mkiv'
close source    > level 4, order 5, name 
'/home/user/lmtx/tex/texmf-context/tex/context/fonts/mkiv/type-imp-texgyre.mkiv'
close source    > level 3, order 5, name 
'/home/user/lmtx/tex/texmf-modules/tex/context/third/gnuplot/t-gnuplot.mkiv'

fonts           > preloading latin modern fonts (second stage)
fonts           > 'fallback modern-designsize rm 12pt' is loaded
mtxrun          |
mtxrun          | executing: gnuplot gnuplot-gnuplot-1.plt
mtxrun          |
mtxrun          |
/home/user/lmtx/tex/texmf-linux-64/bin/mtxrun.lua:26166: attempt to call 
a nil value (field 'exec')

aaa             > mtxrun --direct gnuplot gnuplot-gnuplot-1.plt
floatblocks     > no block given
floatblocks     > '1' placed (here)

lmtx with given .plt and -ctx.tex-file:

modules         > 'gnuplot' is loaded
open source     > level 3, order 4, name 
'/home/user/lmtx/tex/texmf-modules/tex/context/third/gnuplot/t-gnuplot.mkiv'

loading         > Gnuplot module
open source     > level 4, order 5, name 
'/home/user/lmtx/tex/texmf-context/tex/context/fonts/mkiv/type-imp-texgyre.mkiv'
close source    > level 4, order 5, name 
'/home/user/lmtx/tex/texmf-context/tex/context/fonts/mkiv/type-imp-texgyre.mkiv'
close source    > level 3, order 5, name 
'/home/user/lmtx/tex/texmf-modules/tex/context/third/gnuplot/t-gnuplot.mkiv'

fonts           > preloading latin modern fonts (second stage)
fonts           > 'fallback modern-designsize rm 12pt' is loaded
mtxrun          |
mtxrun          | executing: gnuplot gnuplot-gnuplot-1.plt
mtxrun          |
mtxrun          |
/home/user/lmtx/tex/texmf-linux-64/bin/mtxrun.lua:26166: attempt to call 
a nil value (field 'exec')

aaa             > mtxrun --direct gnuplot gnuplot-gnuplot-1.plt
open source     > level 3, order 6, name 'gnuplot-gnuplot-1-ctx.tex'
close source    > level 3, order 6, name 'gnuplot-gnuplot-1-ctx.tex'
metapost        > initializing instance 'metafun:1' using format 
'metafun' and method 'default'
metapost        > loading 'metafun' as 
'/home/user/lmtx/tex/texmf-context/metapost/context/base/mpiv/metafun.mpiv' 
using method 'default'

metapost        > initializing number mode 'scaled'
floatblocks     > '1' placed (here)

tex error       > tex error on line 1 in file gnuplot-gnuplot-1-ctx.tex: 
! Undefined c

[NTG-context] gnuplot-module broken under lmtx

2019-04-10 Thread Christian Prim
Hi

It's little off-topic as there are officially no modules included in lmtx.
But when I used the modules from a mkiv-installation, there was little to
no problem. But with the gnuplot-module I can't fix the error myself.

MWE:
\usemodule[gnuplot]
\startGNUPLOTscript[sin]
   plot sin(x)
\stopGNUPLOTscript

\starttext
\placefigure[here]{Sine Test}{\useGNUPLOTgraphic[sin]}
\stoptext

Under mkiv everything is fine. mkiv creates a file gnuplot-gnuplot-1.plt,
sends this file to gnuplot and uses the output gnuplot-gnuplot-1-ctx.tex.

Under lmtx only the files gnuplot-gnuplot-1.tmp
and gnuplot-gnuplot-inclusions.tmp are created. When I copy the correct
.plt file from a mkiv-run, no gnuplot-gnuplot-1-ctx.tex is generated. If I
copy the correct -ctx.tex file from a mkiv-run, I still get an error.

Relevant part from the logfile of a working mkiv-run:
modules > 'gnuplot' is loaded
open source > level 3, order 4, name
'/home/user/context/tex/texmf-modules/tex/context/third/gnuplot/t-gnuplot.mkiv'
loading > Gnuplot module
open source > level 4, order 5, name
'/home/user/context/tex/texmf-context/tex/context/fonts/mkiv/type-imp-texgyre.mkiv'
close source> level 4, order 5, name
'/home/user/context/tex/texmf-context/tex/context/fonts/mkiv/type-imp-texgyre.mkiv'
close source> level 3, order 5, name
'/home/user/context/tex/texmf-modules/tex/context/third/gnuplot/t-gnuplot.mkiv'
fonts   > preloading latin modern fonts (second stage)
fonts   > 'fallback modern-designsize rm 12pt' is loaded
open source > level 3, order 6, name 'gnuplot-gnuplot-1-ctx.tex'
close source> level 3, order 6, name 'gnuplot-gnuplot-1-ctx.tex'
metapost> initializing instance 'metafun:1' using format 'metafun'
and method 'default'
metapost> loading 'metafun' as
'/home/user/context/tex/texmf-context/metapost/context/base/mpiv/metafun.mpiv'
using method 'default'
metapost> initializing number mode 'scaled'
floatblocks > '1' placed (here)

from a lmtx-run (no .plt-file and -ctx.tex given):

modules > 'gnuplot' is loaded
open source > level 3, order 4, name
'/home/user/lmtx/tex/texmf-modules/tex/context/third/gnuplot/t-gnuplot.mkiv'
loading > Gnuplot module
open source > level 4, order 5, name
'/home/user/lmtx/tex/texmf-context/tex/context/fonts/mkiv/type-imp-texgyre.mkiv'
close source> level 4, order 5, name
'/home/user/lmtx/tex/texmf-context/tex/context/fonts/mkiv/type-imp-texgyre.mkiv'
close source> level 3, order 5, name
'/home/user/lmtx/tex/texmf-modules/tex/context/third/gnuplot/t-gnuplot.mkiv'
fonts   > preloading latin modern fonts (second stage)
fonts   > 'fallback modern-designsize rm 12pt' is loaded
mtxrun  |
mtxrun  | executing: gnuplot gnuplot-gnuplot-1.plt
mtxrun  |
mtxrun  |
/home/user/lmtx/tex/texmf-linux-64/bin/mtxrun.lua:26166: attempt to call a
nil value (field 'exec')
aaa > mtxrun --direct gnuplot gnuplot-gnuplot-1.plt
floatblocks > no block given
floatblocks > '1' placed (here)

lmtx with given .plt and -ctx.tex-file:

modules > 'gnuplot' is loaded
open source > level 3, order 4, name
'/home/user/lmtx/tex/texmf-modules/tex/context/third/gnuplot/t-gnuplot.mkiv'
loading > Gnuplot module
open source > level 4, order 5, name
'/home/user/lmtx/tex/texmf-context/tex/context/fonts/mkiv/type-imp-texgyre.mkiv'
close source> level 4, order 5, name
'/home/user/lmtx/tex/texmf-context/tex/context/fonts/mkiv/type-imp-texgyre.mkiv'
close source> level 3, order 5, name
'/home/user/lmtx/tex/texmf-modules/tex/context/third/gnuplot/t-gnuplot.mkiv'
fonts   > preloading latin modern fonts (second stage)
fonts   > 'fallback modern-designsize rm 12pt' is loaded
mtxrun  |
mtxrun  | executing: gnuplot gnuplot-gnuplot-1.plt
mtxrun  |
mtxrun  |
/home/user/lmtx/tex/texmf-linux-64/bin/mtxrun.lua:26166: attempt to call a
nil value (field 'exec')
aaa > mtxrun --direct gnuplot gnuplot-gnuplot-1.plt
open source > level 3, order 6, name 'gnuplot-gnuplot-1-ctx.tex'
close source> level 3, order 6, name 'gnuplot-gnuplot-1-ctx.tex'
metapost> initializing instance 'metafun:1' using format 'metafun'
and method 'default'
metapost> loading 'metafun' as
'/home/user/lmtx/tex/texmf-context/metapost/context/base/mpiv/metafun.mpiv'
using method 'default'
metapost> initializing number mode 'scaled'
floatblocks > '1' placed (here)

tex error   > tex error on line 1 in file gnuplot-gnuplot-1-ctx.tex: !
Undefined control sequence

 \GNUPLOTfile
 -ctx.tex
\fourthoffivearguments #1#2#3#4#5->#4

 set output "\@@GNUPLOTresult
 "

}\endwrite
 \shipoutscratchbox

\page_shipout_box #1->\clf_shipoutpage

Re: [NTG-context] Emacs with context lmtx

2019-04-09 Thread Fabrice Couvreur
Hi Vladimir,
This seems to work well :


(eval-after-load "context"
  '(setq TeX-command-list
(append
  '(
("context"
"PATH=/home/viserion/context/tex/texmf-linux-64/bin:$PATH context
--purgeall %s"
  TeX-run-command nil t :help "Run context (MarkIV)")
("luametatex"
"PATH=/home/viserion/data/context/tex/texmf-linux-64/bin:$PATH context
--purgeall %s"
  TeX-run-command nil t :help "Run context (LMTX)")
  ) TeX-command-list
)
  )
)



Thank you so much.
Fabrice


Le mar. 9 avr. 2019 à 09:04, Vladimir Lomov  a écrit :

> Hello,
> ** Fabrice Couvreur [2019-04-09 00:58:46 +0200]:
>
> > Hi Vladimir,
> > I use AUCTeX and I compile with the command C-c C-c. The configuration
> you
> > proposed for my .emacs file last time works perfectly. So I tried to do
> the
> > same thing with context lmtx and if I add this
> >
> > ("ConTeXt" "PATH = /home/viserion/data/context/tex/texmf-linux-64/bin: $
> > PATH context --purgeall% s"
> >      TeX-run-command nil t: help "Run context (LMTX)") TeX-command-list)
> > I get the message
> >
> > For information about GNU Emacs and the GNU system, type C-h C-a.
> > File mode specification error: (wrong-type-argument symbolp (ConTeXt
> PATH =
> > / home / viserion / data / context / tex / texmf-linux-64 / bin: $ PATH
> > context -purgeall% s TeX-run-command nil t : help Run context (LMTX)))
>
> This message tells that something wrong with your settings (I assume the
> spaces in above strings are side effect of mail system). The 'cons'
> function that you use allows to add only one element to a list (see
> Emacs Lisp documentation). I'm not familiar very well with Emacs Lisp
> but tested a bit and think this should work:
>
>  8< 
> (eval-after-load "context"
>   '(setq TeX-command-list
> (append
>   '(
> ("ConTeXt" "PATH=...:$PATH context --purgeall %s"
>   TeX-run-command nil t :help "Run context (MarkIV)")
> ("LMTX""PATH=...:$PATH context --purgeall %s"
>   TeX-run-command t   t :help "Run context (LMTX)")
>   ) TeX-command-list
> )
>   )
> )
>  8< 
>
> I'm not absolutely sure about 'TeX-run-command' (code of AUCTeX uses
> 'TeX-run-TeX' for TeX stuff). You may test and use 'TeX-run-TeX' instead
> of 'TeX-run-command'. Also you may change the 'nil t' to 't
> (context-mode)' if you what to edit (expanded) string and only want to
> see these entries for buffers set in 'context' mode.
>
> And please check the binary name and it's location (I didn't play with
> LMTX yet).
>
> > Fabrice
>
> ---
> WBR, Vladimir Lomov
>
> --
>  Anyone here knowledgable in matters of water fowl?  If you
>  walk through a park, and a goose starts following you... and
>  ends up following you more than half a mile until you reach
>  your car... at 11pm.  Is the goose rabid or something?
>
___
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] Emacs with context lmtx

2019-04-09 Thread Vladimir Lomov
Hello,
** Fabrice Couvreur [2019-04-09 00:58:46 +0200]:

> Hi Vladimir,
> I use AUCTeX and I compile with the command C-c C-c. The configuration you
> proposed for my .emacs file last time works perfectly. So I tried to do the
> same thing with context lmtx and if I add this
> 
> ("ConTeXt" "PATH = /home/viserion/data/context/tex/texmf-linux-64/bin: $
> PATH context --purgeall% s"
>  TeX-run-command nil t: help "Run context (LMTX)") TeX-command-list)
> I get the message
> 
> For information about GNU Emacs and the GNU system, type C-h C-a.
> File mode specification error: (wrong-type-argument symbolp (ConTeXt PATH =
> / home / viserion / data / context / tex / texmf-linux-64 / bin: $ PATH
> context -purgeall% s TeX-run-command nil t : help Run context (LMTX)))

This message tells that something wrong with your settings (I assume the
spaces in above strings are side effect of mail system). The 'cons'
function that you use allows to add only one element to a list (see
Emacs Lisp documentation). I'm not familiar very well with Emacs Lisp
but tested a bit and think this should work:

 8< 
(eval-after-load "context"
  '(setq TeX-command-list
(append
  '(
("ConTeXt" "PATH=...:$PATH context --purgeall %s"
  TeX-run-command nil t :help "Run context (MarkIV)")
("LMTX""PATH=...:$PATH context --purgeall %s"
  TeX-run-command t   t :help "Run context (LMTX)")
  ) TeX-command-list
)
  )
)
 8< 

I'm not absolutely sure about 'TeX-run-command' (code of AUCTeX uses
'TeX-run-TeX' for TeX stuff). You may test and use 'TeX-run-TeX' instead
of 'TeX-run-command'. Also you may change the 'nil t' to 't
(context-mode)' if you what to edit (expanded) string and only want to
see these entries for buffers set in 'context' mode.

And please check the binary name and it's location (I didn't play with
LMTX yet).

> Fabrice

---
WBR, Vladimir Lomov

-- 
 Anyone here knowledgable in matters of water fowl?  If you
 walk through a park, and a goose starts following you... and
 ends up following you more than half a mile until you reach
 your car... at 11pm.  Is the goose rabid or something?


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


Re: [NTG-context] Emacs with context lmtx

2019-04-08 Thread Fabrice Couvreur
Hi Vladimir,
I use AUCTeX and I compile with the command C-c C-c. The configuration you
proposed for my .emacs file last time works perfectly. So I tried to do the
same thing with context lmtx and if I add this

("ConTeXt" "PATH = /home/viserion/data/context/tex/texmf-linux-64/bin: $
PATH context --purgeall% s"
 TeX-run-command nil t: help "Run context (LMTX)") TeX-command-list)
I get the message

For information about GNU Emacs and the GNU system, type C-h C-a.
File mode specification error: (wrong-type-argument symbolp (ConTeXt PATH =
/ home / viserion / data / context / tex / texmf-linux-64 / bin: $ PATH
context -purgeall% s TeX-run-command nil t : help Run context (LMTX)))

Fabrice

Le lun. 8 avr. 2019 à 14:01, Vladimir Lomov  a écrit :

> Hello,
> ** Fabrice Couvreur [2019-04-08 12:08:44 +0200]:
>
> > Hi,
> > I compile all my files with Emacs and standalone context. I would like to
> > compare context lmtx.
> > I added this in my .emacs file but it does not work.
>
> Does Emacs prints error messages? How do you run the command in Emacs?
> Do you use AUCTeX or not? What messages do you see in *Messages* buffer?
>
> >
> #
> > (eval-after-load "context"
> >   '(setq TeX-command-list
> >(cons '("ConTeXt"
> > "PATH=/home/viserion/context/tex/texmf-linux-64/bin:$PATH context
> > --purgeall %s"
> > TeX-run-command nil t :help "Run context (MarkIV)")
> > TeX-command-list)
> >("ConTeXt"
> > "PATH=/home/viserion/data/context/tex/texmf-linux-64/bin:$PATH context
> > --purgeall %s"
> > TeX-run-command t t :help "Run context (LMTX)") t)
> > )
> >
> #
> >
> >
> > For information about GNU Emacs and the GNU system, type C-h C-a.
> > File mode specification error: (wrong-type-argument symbolp (ConTeXt
> > PATH=/home/viserion/data/context/tex/texmf-linux-64/bin:$PATH context
> > --purgeall %s TeX-run-command t t :help Run context (LMTX)))
> >
> > Thank you.
> > Fabrice
>
> P.S. I didn't try lmtx yet, on my agenda.
>
> P.P.S. It might be more useful to discuss this topic on AUCTeX mailing
> list if you use AUCTeX.
>
> ---
> WBR, Vladimir Lomov
>
> --
> Nothing recedes like success.
> -- Walter Winchell
>
> ___
> 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
>
> ___
>
___
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] follow up

2019-04-08 Thread Jeong Dal
Dear Otared,

I checked the both cases in the terminal and found that there is no problem in 
the installation.
It call “mtxrun" in right place depending on MKIV or LMTX.

Actually, files which doesn’t need  files in texmf-local folder are compiled 
well in both installations.
The problem is occurred when the file tried to read files in texmf-local 
folder. 
In that case, if it is compiled well in MKIV, then it had a problem in LMTX and 
vice versa.
I didn’t try to use a symbolic link.

Since I don’t have any problem to compile files under LMTX so far, I will use 
LMTX mainly.
So I’ll left my previous problem for a while.

Thank you for your help.

Best regards,
Dalyoung



> Subject: Re: [NTG-context] follow up
> Message-ID:  <mailto:f894514c-8e72-4743-b05d-b438efe4f...@gmail.com>>
> Content-Type: text/plain; charset="utf-8"
> 
> Dear Dalyoung,
> 
> Actually when you have added 
> 
>   export 
> PATH=/context-osx-64/tex/texmf-osx-64/bin:/context-osx-64/bin:/context-osx-64/tex/texmf-osx-64/bin
> 
> either in your engine file (using TeXShop), or when typesetting from the 
> Terminal, then you don't need to use mtxrun --autogenerate in order to 
> typeset a file with LuaMetaTeX: you can just have
> 
>   /context-osx-64/tex/texmf-osx-64/bin/context myfile.tex
> 
> in this way you can use any mode you wish.
> 
> Or have I misunderstood the issue you are asking about?
> 
> Best regards: OK

___
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] Emacs with context lmtx

2019-04-08 Thread Vladimir Lomov
Hello,
** Fabrice Couvreur [2019-04-08 12:08:44 +0200]:

> Hi,
> I compile all my files with Emacs and standalone context. I would like to
> compare context lmtx.
> I added this in my .emacs file but it does not work.

Does Emacs prints error messages? How do you run the command in Emacs?
Do you use AUCTeX or not? What messages do you see in *Messages* buffer?

> #
> (eval-after-load "context"
>   '(setq TeX-command-list
>(cons '("ConTeXt"
> "PATH=/home/viserion/context/tex/texmf-linux-64/bin:$PATH context
> --purgeall %s"
> TeX-run-command nil t :help "Run context (MarkIV)")
> TeX-command-list)
>("ConTeXt"
> "PATH=/home/viserion/data/context/tex/texmf-linux-64/bin:$PATH context
> --purgeall %s"
> TeX-run-command t t :help "Run context (LMTX)") t)
> )
> #####
> 
> 
> For information about GNU Emacs and the GNU system, type C-h C-a.
> File mode specification error: (wrong-type-argument symbolp (ConTeXt
> PATH=/home/viserion/data/context/tex/texmf-linux-64/bin:$PATH context
> --purgeall %s TeX-run-command t t :help Run context (LMTX)))
> 
> Thank you.
> Fabrice

P.S. I didn't try lmtx yet, on my agenda.

P.P.S. It might be more useful to discuss this topic on AUCTeX mailing
list if you use AUCTeX.

---
WBR, Vladimir Lomov

-- 
Nothing recedes like success.
-- Walter Winchell


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


[NTG-context] Emacs with context lmtx

2019-04-08 Thread Fabrice Couvreur
Hi,
I compile all my files with Emacs and standalone context. I would like to
compare context lmtx.
I added this in my .emacs file but it does not work.

#
(eval-after-load "context"
  '(setq TeX-command-list
   (cons '("ConTeXt"
"PATH=/home/viserion/context/tex/texmf-linux-64/bin:$PATH context
--purgeall %s"
TeX-run-command nil t :help "Run context (MarkIV)")
TeX-command-list)
   ("ConTeXt"
"PATH=/home/viserion/data/context/tex/texmf-linux-64/bin:$PATH context
--purgeall %s"
TeX-run-command t t :help "Run context (LMTX)") t)
)
#####


For information about GNU Emacs and the GNU system, type C-h C-a.
File mode specification error: (wrong-type-argument symbolp (ConTeXt
PATH=/home/viserion/data/context/tex/texmf-linux-64/bin:$PATH context
--purgeall %s TeX-run-command t t :help Run context (LMTX)))

Thank you.
Fabrice
___
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] Can not update Context Standalone

2019-04-08 Thread Fabrice Couvreur
Hi,
I just updated this morning and it works well now !
Fabrice

Le dim. 7 avr. 2019 à 13:23, Fabrice Couvreur 
a écrit :

> Hi,
> I have just updated context standalone and I get the following errors :
>
> When you want to use context, you need to initialize the tree by typing:
>
>   . /home/viserion/context/tex/setuptex
>
> in your shell or add
>   "/home/viserion/context/tex/texmf-linux-64/bin"
> to PATH variable if you want to set it permanently.
> This can usually be done in .bashrc, .bash_profile
> (or whatever file is used to initialize your shell).
>
> [viserion@archlinux context]$ mtxrun --generate
> bash: /home/viserion/bin/mtxrun: Aucun fichier ou dossier de ce type
> [viserion@archlinux context]$ context --make
> /home/viserion/texlive/2018/bin/x86_64-linux/context: ligne 2:
> /home/viserion/bin/mtxrun: Aucun fichier ou dossier de ce type
> [viserion@archlinux context]$
>
> Thanks
> Fabrice
>
___
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] follow up

2019-04-08 Thread Otared Kavian
Dear Dalyoung,

Actually when you have added 

export 
PATH=/context-osx-64/tex/texmf-osx-64/bin:/context-osx-64/bin:/context-osx-64/tex/texmf-osx-64/bin

either in your engine file (using TeXShop), or when typesetting from the 
Terminal, then you don't need to use mtxrun --autogenerate in order to typeset 
a file with LuaMetaTeX: you can just have

/context-osx-64/tex/texmf-osx-64/bin/context myfile.tex

in this way you can use any mode you wish.

Or have I misunderstood the issue you are asking about?

Best regards: OK

> On 5 Apr 2019, at 16:30, Jeong Dal  wrote:
> 
> 
> Dear Hans and Otared,
> 
> Thank you for your help.
> It is OK to use ConTeXt-LMTX in TeXShop and in Atom.
> 
> I’d like to compile it in LMTX mode or in MKIV mode without running "mtxrun 
> —geneate” when I change mode.
> Set path to absolute path of mtxrun in the setting doesn’t help.
> 
> Actually, it is not a problem of ConTeXt.
> 
> I’ll try it once more.
> 
> Thank you.
> 
> Best regards,
> 
> Dalyoung
> 
> 
>> 2019. 4. 5. 오후 7:00, ntg-context-requ...@ntg.nl 작성:
>> 
>> Send ntg-context mailing list submissions to
>>  ntg-context@ntg.nl
>> 
>> To subscribe or unsubscribe via the World Wide Web, visit
>>  https://mailman.ntg.nl/mailman/listinfo/ntg-context
>> or, via email, send a message with subject or body 'help' to
>>  ntg-context-requ...@ntg.nl
>> 
>> You can reach the person managing the list at
>>  ntg-context-ow...@ntg.nl
>> 
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of ntg-context digest..."
>> 
>> 
>> Today's Topics:
>> 
>>  1. Re: How to update LMTX? (Hans Hagen)
>>  2. Re: follow up (Hans Hagen)
>>  3. Re: (no subject) (Hans Hagen)
>>  4. Re: follow up (Otared Kavian)
>> 
>> 
>> --
>> 
>> Message: 1
>> Date: Fri, 5 Apr 2019 00:20:32 +0200
>> From: Hans Hagen 
>> To: mailing list for ConTeXt users 
>> Subject: Re: [NTG-context] How to update LMTX?
>> Message-ID: <4ab6b1ec-62cd-90c8-0f54-b303f025c...@xs4all.nl>
>> Content-Type: text/plain; charset=utf-8; format=flowed
>> 
>> On 4/5/2019 12:09 AM, Alan Braslau wrote:
>>> On Thu, 4 Apr 2019 23:11:42 +0200
>>> Hans Hagen  wrote:
>>> 
>>>> (we just don't use rsync)
>>> 
>>> As rsync can be problematic for some locations
>>> (TCP port 873 blocked) without the ability to
>>> tunnel.
>> 
>> indeed, especially in schools
>> 
>>> http is most often open.
>> right and rsync is also very unix centric so on windows one has to use 
>> cygwin (bah) or a mingw version (hard to get); also the rsync protocol 
>> is sometimes updated so then you need matching versions
>> 
>> Hans
>> 
>> -
>>  Hans Hagen | PRAGMA ADE
>>  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>>   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
>> -
>> 
>> 
>> --
>> 
>> Message: 2
>> Date: Fri, 5 Apr 2019 00:28:19 +0200
>> From: Hans Hagen 
>> To: mailing list for ConTeXt users 
>> Subject: Re: [NTG-context] follow up
>> Message-ID: <8f908232-5516-b2a7-df76-51eba0c51...@xs4all.nl>
>> Content-Type: text/plain; charset=utf-8; format=flowed
>> 
>> On 4/5/2019 12:17 AM, Jeong Dal wrote:
>>> Dear Hans,
>>> 
>>> I have installed both ConTeXt LMTX and ConTeXt MKIV side by side.
>>> But I have a problem to run it.
>>> 
>>> If it is OK to run a file in LMTX environment, then I got a following 
>>> error when I run it in MKIV environment.
>>> “I can’t fine a file …../defFonts.tex” even though it is there.
>>> To resolve it, I run “mtxrun —generate” in MKIV.
>>> But it invoke the same type error in LMTX.
>>> Here are the command in Atom editor which I use to run it.
>>> 
>>> LMTX:
>>> source /Users/graph/ConTeXtLMTX/tex/setuptex;
>>> context {filePath}
>>> MKIV:
>>> source /Users/graph/ConTeXt/tex/setuptex;
>>> context {filePath}
>>> 
>>> I may avoid it by adding “mtxrun —generate” before compiling it.
>>> But it isn’t a good solution.
>>> I think that there is a better way to do this.
>>> Would you pleas

[NTG-context] Can not update Context Standalone

2019-04-07 Thread Fabrice Couvreur
Hi,
I have just updated context standalone and I get the following errors :

When you want to use context, you need to initialize the tree by typing:

  . /home/viserion/context/tex/setuptex

in your shell or add
  "/home/viserion/context/tex/texmf-linux-64/bin"
to PATH variable if you want to set it permanently.
This can usually be done in .bashrc, .bash_profile
(or whatever file is used to initialize your shell).

[viserion@archlinux context]$ mtxrun --generate
bash: /home/viserion/bin/mtxrun: Aucun fichier ou dossier de ce type
[viserion@archlinux context]$ context --make
/home/viserion/texlive/2018/bin/x86_64-linux/context: ligne 2:
/home/viserion/bin/mtxrun: Aucun fichier ou dossier de ce type
[viserion@archlinux context]$

Thanks
Fabrice
___
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] follow up

2019-04-05 Thread Jeong Dal

Dear Hans and Otared,

Thank you for your help.
It is OK to use ConTeXt-LMTX in TeXShop and in Atom.

I’d like to compile it in LMTX mode or in MKIV mode without running "mtxrun 
—geneate” when I change mode.
Set path to absolute path of mtxrun in the setting doesn’t help.

Actually, it is not a problem of ConTeXt.

I’ll try it once more.

Thank you.

Best regards,

Dalyoung


> 2019. 4. 5. 오후 7:00, ntg-context-requ...@ntg.nl 작성:
> 
> Send ntg-context mailing list submissions to
>   ntg-context@ntg.nl
> 
> To subscribe or unsubscribe via the World Wide Web, visit
>   https://mailman.ntg.nl/mailman/listinfo/ntg-context
> or, via email, send a message with subject or body 'help' to
>   ntg-context-requ...@ntg.nl
> 
> You can reach the person managing the list at
>   ntg-context-ow...@ntg.nl
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of ntg-context digest..."
> 
> 
> Today's Topics:
> 
>   1. Re: How to update LMTX? (Hans Hagen)
>   2. Re: follow up (Hans Hagen)
>   3. Re: (no subject) (Hans Hagen)
>   4. Re: follow up (Otared Kavian)
> 
> 
> --
> 
> Message: 1
> Date: Fri, 5 Apr 2019 00:20:32 +0200
> From: Hans Hagen 
> To: mailing list for ConTeXt users 
> Subject: Re: [NTG-context] How to update LMTX?
> Message-ID: <4ab6b1ec-62cd-90c8-0f54-b303f025c...@xs4all.nl>
> Content-Type: text/plain; charset=utf-8; format=flowed
> 
> On 4/5/2019 12:09 AM, Alan Braslau wrote:
>> On Thu, 4 Apr 2019 23:11:42 +0200
>> Hans Hagen  wrote:
>> 
>>> (we just don't use rsync)
>> 
>> As rsync can be problematic for some locations
>> (TCP port 873 blocked) without the ability to
>> tunnel.
> 
> indeed, especially in schools
> 
>> http is most often open.
> right and rsync is also very unix centric so on windows one has to use 
> cygwin (bah) or a mingw version (hard to get); also the rsync protocol 
> is sometimes updated so then you need matching versions
> 
> Hans
> 
> -
>   Hans Hagen | PRAGMA ADE
>   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -
> 
> 
> ------
> 
> Message: 2
> Date: Fri, 5 Apr 2019 00:28:19 +0200
> From: Hans Hagen 
> To: mailing list for ConTeXt users 
> Subject: Re: [NTG-context] follow up
> Message-ID: <8f908232-5516-b2a7-df76-51eba0c51...@xs4all.nl>
> Content-Type: text/plain; charset=utf-8; format=flowed
> 
> On 4/5/2019 12:17 AM, Jeong Dal wrote:
>> Dear Hans,
>> 
>> I have installed both ConTeXt LMTX and ConTeXt MKIV side by side.
>> But I have a problem to run it.
>> 
>> If it is OK to run a file in LMTX environment, then I got a following 
>> error when I run it in MKIV environment.
>> “I can’t fine a file …../defFonts.tex” even though it is there.
>> To resolve it, I run “mtxrun —generate” in MKIV.
>> But it invoke the same type error in LMTX.
>> Here are the command in Atom editor which I use to run it.
>> 
>> LMTX:
>> source /Users/graph/ConTeXtLMTX/tex/setuptex;
>> context {filePath}
>> MKIV:
>> source /Users/graph/ConTeXt/tex/setuptex;
>> context {filePath}
>> 
>> I may avoid it by adding “mtxrun —generate” before compiling it.
>> But it isn’t a good solution.
>> I think that there is a better way to do this.
>> Would you please tell me how to fix it or what is a better way?
> Does
> 
> /mtxrun --autogenerate --script context --autopdf {filePath}
> 
> work in your editor?
> 
> Hans
> 
> -
>   Hans Hagen | PRAGMA ADE
>   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -
> 
> 
> --
> 
> Message: 3
> Date: Fri, 5 Apr 2019 00:37:27 +0200
> From: Hans Hagen 
> To: mailing list for ConTeXt users , Dmitry
>   Starostin 
> Subject: Re: [NTG-context] (no subject)
> Message-ID: <2a626d5a-4378-e1f9-2278-d1496f62f...@xs4all.nl>
> Content-Type: text/plain; charset=utf-8; format=flowed
> 
> On 4/4/2019 9:30 PM, Dmitry Starostin wrote:
>> In terminal:
>> 
>> mtxrun --autogenerate --script context --autopdf 

Re: [NTG-context] follow up

2019-04-05 Thread Otared Kavian
Hi Dalyoung,

If this can be of any help, here is what I did in order to install LuaMetaTeX 
on MacOS in order to use it with TeXShop:

1) I downloaded from 
http://www.pragma-ade.nl/install.htm
the version of the installer for MacOS and installed a folder named 
context-osx-64 at an appropriate place (actually at /context-osx-64)

2) Then I did
sh install.sh
in that folder, and once the download was finished I replaced the directory 
texmf-local with a symbolic link to my texmf-local directory (which sits 
somewhere else)

3) In the directory
~/Library/TeXShop/Engines
I created a new file named LuaMetaTeX.engine containing the following three 
lines:

#!/bin/bash

export 
PATH=/context-osx-64/tex/texmf-osx-64/bin:/context-osx-64/bin:/context-osx-64/tex/texmf-osx-64/bin

/context-osx-64/tex/texmf-osx-64/bin/mtxrun --autogenerate --script context 
--autopdf "$1" --purgeall 

4) Then when opening TeXShop, I can choose from the scroll menu which shows up 
on the top left of each a tex file, the engine LuaMetaTeX (or I can set it as 
default in the Preferences) in order to typeset with LuaMetaTeX engine.

5) When I need to update the installation I just run again
sh install.sh
from within the directory /context-osx-64
(The symlink to my texmf-local is not destroyed).

6) If I need to typeset a file from a command line in Terminal, then I need to 
say

export 
PATH=/context-osx-64/tex/texmf-osx-64/bin:/context-osx-64/bin:/context-osx-64/tex/texmf-osx-64/bin

before typesetting myfile.tex by saying

/context-osx-64/tex/texmf-osx-64/bin/mtxrun --autogenerate --script 
context --autopdf myfile.tex

(Note that the above command should be issued when one is already in the 
directory containing myfile.tex, beacuse otherwise the corresponding pdf file 
will be created in the wrong place…).

Best regards: OK

> On 5 Apr 2019, at 00:17, Jeong Dal  wrote:
> 
> Dear Hans,
> 
> I have installed both ConTeXt LMTX and ConTeXt MKIV side by side.
> But I have a problem to run it.
> 
> If it is OK to run a file in LMTX environment, then I got a following error 
> when I run it in MKIV environment.
>   “I can’t fine a file …../defFonts.tex” even though it is there.
> To resolve it, I run “mtxrun —generate” in MKIV.
> But it invoke the same type error in LMTX.
> Here are the command in Atom editor which I use to run it.
> 
> LMTX:
>   source /Users/graph/ConTeXtLMTX/tex/setuptex; 
>   context {filePath} 
> MKIV:
>   source /Users/graph/ConTeXt/tex/setuptex; 
>   context {filePath} 
> 
> I may avoid it by adding “mtxrun —generate” before compiling it.
> But it isn’t a good solution.
> I think that there is a better way to do this.
> Would you please tell me how to fix it or what is a better way?
> 
> Thank you for reading.
> 
> Best regards,
> 
> Dalyoung
> 
> 
>> 
>> Hi,
>> 
>> We have worked furiously all day kicking-out extra code, and are pleased 
>> to present a lean-and-mean version of luatex with your favorite ConTeXt. 
>> Same good taste but only half the calories and a new name: luametatex 
>> and ConTeXt LMTX. No more Mk-whatever, no more dependencies for we can 
>> now stand on our own. Of course, good-old luatex and MkIV (as well as 
>> MkII) will continue to coexist and be maintained. However, now you will 
>> be able to run ConTeXt lmtx on your smart thermostat or on your 
>> refrigerator for the Internet of Things - the dawn of a new era!
>> 
>> Stay tuned,
>> 
>> Alan and Hans
> 
> ___
> 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
> ___

___
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] follow up

2019-04-04 Thread Hans Hagen

On 4/5/2019 12:17 AM, Jeong Dal wrote:

Dear Hans,

I have installed both ConTeXt LMTX and ConTeXt MKIV side by side.
But I have a problem to run it.

If it is OK to run a file in LMTX environment, then I got a following 
error when I run it in MKIV environment.

“I can’t fine a file …../defFonts.tex” even though it is there.
To resolve it, I run “mtxrun —generate” in MKIV.
But it invoke the same type error in LMTX.
Here are the command in Atom editor which I use to run it.

LMTX:
source /Users/graph/ConTeXtLMTX/tex/setuptex;
context {filePath}
MKIV:
source /Users/graph/ConTeXt/tex/setuptex;
context {filePath}

I may avoid it by adding “mtxrun —generate” before compiling it.
But it isn’t a good solution.
I think that there is a better way to do this.
Would you please tell me how to fix it or what is a better way?

Does

/mtxrun --autogenerate --script context --autopdf {filePath}

work in your editor?

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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] follow up

2019-04-04 Thread Jeong Dal
Dear Hans,

I have installed both ConTeXt LMTX and ConTeXt MKIV side by side.
But I have a problem to run it.

If it is OK to run a file in LMTX environment, then I got a following error 
when I run it in MKIV environment.
“I can’t fine a file …../defFonts.tex” even though it is there.
To resolve it, I run “mtxrun —generate” in MKIV.
But it invoke the same type error in LMTX.
Here are the command in Atom editor which I use to run it.

LMTX:
source /Users/graph/ConTeXtLMTX/tex/setuptex; 
context {filePath} 
MKIV:
source /Users/graph/ConTeXt/tex/setuptex; 
context {filePath} 

I may avoid it by adding “mtxrun —generate” before compiling it.
But it isn’t a good solution.
I think that there is a better way to do this.
Would you please tell me how to fix it or what is a better way?

Thank you for reading.

Best regards,

Dalyoung


> 
> Hi,
> 
> We have worked furiously all day kicking-out extra code, and are pleased 
> to present a lean-and-mean version of luatex with your favorite ConTeXt. 
> Same good taste but only half the calories and a new name: luametatex 
> and ConTeXt LMTX. No more Mk-whatever, no more dependencies for we can 
> now stand on our own. Of course, good-old luatex and MkIV (as well as 
> MkII) will continue to coexist and be maintained. However, now you will 
> be able to run ConTeXt lmtx on your smart thermostat or on your 
> refrigerator for the Internet of Things - the dawn of a new era!
> 
> Stay tuned,
> 
> Alan and Hans

___
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] How to repeat the hyphen?

2019-03-25 Thread Sam May
Sounds like you've got it working, but just to provide an alternative 
that should* work, according to the sources:


 \setuplanguage[cz]
[compoundhyphen=-,%Or, to keep the \setuphyphenmark
 rightcompoundhyphen=-,%   configuration mentioned in Taco's link:
 leftcompoundhyphen=-]%`*compoundhyphen=\compoundhyphen`

That does require you to replace all the hyphens with `||`, which it 
understandably sounds like you want to avoid, but it can be good for 
someone like me who likes that explicit markup, or for someone who needs 
more control over which symbols go where (I'm using for Esperanto -- 
slightly non-standard -- a vertical tick mark for the inner-line and the 
left but the hyphen for the right).  The main benefit, though, is that 
you can do the same thing for line-breaking hyphenation if you need to 
change that, just drop the `compound` in the keys.


* I've been running into it working for the first break or two but than 
switching back to the default for the rest of the document, and haven't 
been able to track down why.  Though it might have something to do with 
me still using the ridiculously out-of-date 2016.05.17 because I haven't 
gotten around to overriding the Gentoo package manager yet...


Sam

On Fri, Mar 22, 2019 at 04:57:24PM +0100, Tomas Hala wrote:

Hi Taco,

this is exactly what I needed, thank you very much.

Fri, Mar 22, 2019 ve 04:16:20PM +0100 Taco Hoekwater napsal(a):
# Somewhat cleaner is to do it this way:
#   %%%
#   \definebreakpoints[czcompound]
#   \definebreakpoint[czcompound][-][nleft=3,nright=3,type=4]
#
#   \appendtoks
#\ifx\mylanguage\currentlanguage
#   \setbreakpoints[czcompound]
#\else
#   \resetbreakpoints
#\fi
#   \to\everylanguage
#
# It would be nice if that language= key would work, though (it is ignored, it 
seems)

I agree...

Best wishes,

Tomá??

# Taco
#
#
# > On 22 Mar 2019, at 15:38, Tomas Hala  wrote:
# >
# > Hi Taco,
# >
# > good idea, I tried it but the problem is that it does not switch itself off
# > automatically when the language is changed again.
# >
# > The following code works but I guess that must be some more sophisticated
# > ConTeXt way.
# >
# > Best wishes,
# >
# > Tomá??
# >
# >
# > %%
# > 
\def\myboxik#1#2{\start\setuphyphenation[cz][method=#1]\startframedtext[width=1dd]\hbox{{\bf#1}}\crlf#2\stopframedtext\stop\par}
# > 
\def\mybox#1{\myboxik{traditional}{#1}\myboxik{default}{#1}\myboxik{expanded}{#1}\myboxik{original}{#1}\myboxik{tex}{#1}\myboxik{hyphenate}{#1}\myboxik{none}{#1}\par\thinrule}
# >
# > \starttext
# > \definebreakpoints[czcompound]
# >
# > \let\oldlanguage=\language
# > \def\language[#1]{\oldlanguage[#1]
# >  \ifx\mylanguage\currentlanguage 
\definebreakpoint[czcompound][-][nleft=3,nright=3,type=4] 
\setbreakpoints[czcompound]
# >    \else 
\definebreakpoint[czcompound][-][nleft=3,nright=3,type=1] 
\setbreakpoints[czcompound]
# >  \fi} and the same for \mainlanguage
# >
# > \def\mylanguage{cs}
# >
# > \language[en] \mybox{modro-zelený}
# > \language[cz] \mybox{modro-zelený}
# > \language[en] \mybox{modro-zelený}
# >
# > \stoptext
# > 
# >
# > Fri, Mar 22, 2019 ve 01:56:40PM +0100 Taco Hoekwater napsal(a):
# > # Hi Tomá??,
# > #
# > # Sorry but I do not know. I *do* know that you can do this:
# > #
# > #   \definebreakpoints [czcompound]
# > #   \definebreakpoint  [czcompound] [-] [nleft=3,nright=3,type=4]
# > #   \setbreakpoints[czcompound]
# > #
# > # And perhaps hook that into a language switch. Does that help?
# > #
# > #
# > #
# > # > On 22 Mar 2019, at 10:37, Tomas Hala  wrote:
# > # >
# > # > Hi,
# > # >
# > # > thanks, that's it. I did some tests and no side-effects appeared.
# > # > Moreover, it seems that it has no influence on \hyphentatedurl which is 
also ok.
# > # >
# > # > But only one point I do not understand -- when I used the key
# > # > language=cz, repeated hyphens disappeared. It would by fine if one
# > # > can set it only for the given language(s), eg. for cz+sk yes and for en 
no.
# > # > Is there any way for this?
# > # >
# > # > Best wishes,
# > # >
# > # > Tomá??
# > # >
# > # >
# > # > \definebreakpoint [compound] [-] [nleft=3,nright=3,type=4, language=cz]
# > # > \setbreakpoints[compound]
# > # >
# > # >
# > # > Thu, Mar 21, 2019 ve 04:45:49PM +0100 Taco Hoekwater napsal(a):
# > # > # Hi,
# > # > #
# > # > # \definebreakpoint [compound] [-] [nleft=3,nright=3,type=4]
# > # > # \setbreakpoints[compound]
# > # > #
# > # > # But also check the wiki, there can be side-effects to 
\setbreakpoints[compound]
# > # > #
# > # > #   https://wiki.conte

Re: [NTG-context] broken links in PDF included via \copypages (PoC fix attached)

2019-03-22 Thread Hans Hagen

On 3/22/2019 3:35 PM, Tomas Janousek wrote:

Hello,

I happen to need to include a PDF which uses unusual link annotations. Instead
of something like:

 << /A << /D (aff1a) /S /GoTo >> /Border [ 0 0 0 ] /C [ 1 0 0 ] /F 4 /H /I /Rect 
[ 104.214 577.913 110.231 586.941 ] /Subtype /Link /Type /Annot >>

there's

 << /Border [ 0 0 0 ] /C [ 1 0 0 ] /Dest (aff0001) /H /I /Rect [ 109.005 570.781 
115.335 584.308 ] /Subtype /Link /Type /Annot >>

The error I'm getting is:

 backend > link > missing link annotation

This appears to be okay according to PDF reference [PDFref, pages 492 and
501], and it's also supported in poppler [poppler-link]. But it's not
supported in lpdf-epd.lua.

[PDFref]: 
https://www.adobe.com/content/dam/acom/en/devnet/pdf/pdfs/pdf_reference_archives/PDFReference.pdf
[popplet-link]: 
https://github.com/danigm/poppler/blob/0011805e22193b690b99a53dcb9986ce04eb3eb4/poppler/Link.cc#L914-L924

I applied this workaround and it fixed the issue for me:

--- /usr/share/texmf/tex/context/base/mkiv/lpdf-epa.lua 2018-03-20 
23:10:59.0 +0100
+++ lpdf-epa-fixed.lua  2019-03-22 15:11:49.078873530 +0100
@@ -230,6 +230,12 @@
  local w = xscale * (a_urx - a_llx)
  local h = yscale * (a_ury - a_lly)
  if subtype == "Link" then
+if not annotation.A and annotation.Dest then
+annotation.A = {}
+annotation.A.S = "GoTo"
+annotation.A.D = annotation.Dest
+end
+
  local a = annotation.A
  if not a then
  report_link("missing link annotation")

Please consider applying a similar fix to the ConTeXt source code. Thanks!


sure, it's a harmless patch and if it works ok ...


I'm not sure I can attach the actual PDF as it's a recent Elsevier pub, but I
managed to manually craft one from the ConTeXt hello world using qpdf
--stream-data=uncompress --object-streams=disable and vim, and I'm attaching
that. The equation references work in PDF readers but stop working after
passing through \copypages[Hello-world-weird.pdf][][interaction=yes].


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




--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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
___


<    5   6   7   8   9   10   11   12   13   14   >