[NTG-context] Re: About Pgfplot.-

2023-07-22 Thread Aditya Mahajan
On Sat, 22 Jul 2023, Freddy Omar López Quintero wrote:

> I’m trying to reproduce the example in https://wiki.contextgarden.net/Pgfplot 
> and I’m getting this error:

That example is a little hard to test because you need to download a bunch of 
data files to test it, but pgfplots is working in the latest version.

> I’m on macOS 13.4.1 and this is the version of context I’m running:
> 
> > context --version 
> mtx-context | ConTeXt Process Management 1.04
> mtx-context |
> mtx-context | main context file: 
> /usr/local/texlive/2023/texmf-dist/tex/context/base/mkiv/context.mkiv
> mtx-context | current version: 2023.03.10 12:15
> mtx-context | main context file: 
> /usr/local/texlive/2023/texmf-dist/tex/context/base/mkxl/context.mkxl
> mtx-context | current version: 2023.03.10 12:15

Tikz (and related modules) needed to be adapted for LMTX, and this was done 
around April or May. So you will need to upgrade. 

If texlive does not include the latest version, then you would need to manually 
install context lmtx: https://wiki.contextgarden.net/Installation

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

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

[NTG-context] About Pgfplot.-

2023-07-22 Thread Freddy Omar López Quintero
Hello!

I’m trying to reproduce the example in https://wiki.contextgarden.net/Pgfplot 
and I’m getting this error:


tex error   > tex error on line 926 in file pgfcorepoints.code.tex: Missing 
control sequence inserted



\inaccessible


"
 \pgfsetzvec
\catcode `\==12 \catcode `\,=12 \catcode `\|=12 \catcode `\&=12 \let "
\pgfmath@char@quote
 \pgfsetzvec
\begingroup \pgfmath@catcodes
\pgfmath@quickparsefalse \ifpgfmathfloat \let \pgfmath@parse@next 
=\pgfmathfloatparsenumber \else \let \pgfmath@parse@next =\pgfmathparse@ \fi 
\pgfmath@parse@next

\pgfmathparse
{1cm}\ifpgfmathmathunitsdeclared \pgf@x \pgfmathresult mu\relax \else 
\pgf@x \pgfmathresult pt\relax \fi
 \pgfmath@next
#1#2->#2
 ...


\pgfsetxvec{\pgfpoint{1cm}{0cm}}


Please don't say '\def cs{...}', say '\def\cs{...}'. I've inserted an
inaccessible control sequence so that your definition will be completed without
mixing me up too badly.
mtx-context | fatal error: return code: 1


I’m on macOS 13.4.1 and this is the version of context I’m running:

> context --version 
mtx-context | ConTeXt Process Management 1.04
mtx-context |
mtx-context | main context file: 
/usr/local/texlive/2023/texmf-dist/tex/context/base/mkiv/context.mkiv
mtx-context | current version: 2023.03.10 12:15
mtx-context | main context file: 
/usr/local/texlive/2023/texmf-dist/tex/context/base/mkxl/context.mkxl
mtx-context | current version: 2023.03.10 12:15

If you have some hint to solve this, please let me know.

Thank you in advance!


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

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

[NTG-context] Re: Fira Math: goodies needed?

2023-07-22 Thread Mikael Sundqvist
Hi Leah,

On Sat, Jul 22, 2023 at 12:19 AM Leah Neukirchen  wrote:
>
> Hi,
>
> I'm trying to use Fira Math (https://github.com/firamath/firamath).
>
> But this small example yields both limits on the same horizontal axis,
> i.e. the 0 is far away from the integral sign:
>
>
> \definefontfamily [mainface] [mm] [Fira Math]
> \setupbodyfont[mainface]
>
> \starttext
> \startformula
>   \int_0^1 e^x
> \stopformula
> \stoptext
>
>
> Meanwhile, when I use LaTeX, the 0 is moved to the left and close to
> the integral sign:
>
>
> \documentclass{article}
> \usepackage{amsmath}
> \usepackage[mathrm=sym]{unicode-math}
> \setmathfont{Fira Math}
>
> \begin{document}
> \[
>   \int_0^1 e^x
> \]
> \end{document}
>
>
> In both cases
> /opt/texlive/2023/texmf-dist/fonts/opentype/public/firamath/FiraMath-Regular.otf
> is used...
>

As far as I remember, we did not consider firamath usable last time we
tested. Is it OK?

Attached you find a very basic goodie file that 1) set the
primeshiftup parameter and 2) enables presets.moveintegrals. Also add

\definefontfeature[default][default][goodies=fira-math.lfg]

to use it.

/Mikael


fira-math.lfg
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 / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___

[NTG-context] Re: Link from a PDF to a reference of an embedded PDF

2023-07-22 Thread Pablo Rodriguez
On 7/20/23 16:25, Gerion Entrup wrote:
> [...]
> Can I somehow access the references of inner.tex from outer.tex?
> For me, it is not that relevant, that the correct number is set, but the
> interaction within the outer PDF should work, so clicking on the
> reference should scroll to the correct content.

Hi Gerion,

not sure I’m getting your point right.

As such, one of the features of PDF are named destinations, such as in:

  https://www.pragma-ade.com/general/manuals/luametatex.pdf#%2381

I consider them as identifiers:

  https://wiki.contextgarden.net/Installation#Unix

If that could be what you might need, here is a sample.

First you have the destination file:

  \setupinteraction[state=start,
focus=standard,
prefix=n_,]
  \starttext
  \dorecurse{50}
{a\footnote{b} }
  \startluacode
  luatex.wrapup(
function()
  os.rename(tex.jobname .. ".pdf", "ba.pdf")
end
  )
  \stopluacode
  \stoptext

Then you have calling file (with file:///):

  \setupinteraction[state=start,
focus=standard]
  \def\MyURL#1{\goto{\tt#1}[url(#1)]}
  \starttext
  Link to other document: \MyURL{file:///path/ba.pdf\letterhash n_73}

  Link to the web:
 \MyURL{https://www.pragma-ade.com/general/manuals/luametatex.pdf#%2381}
  \stoptext

file:/// requires an absolute path. It might be handled right or not,
depending on your PDF viewer.

On Linux, Evince cannot open a file with named destination specified as
doc.pdf#destination (or doc.pdf#nameddest=destination). But it
understands file:///.

MuPDF-GL seems also not to handle named destinations, but it understands
file:/// too.

PDF.js (the default PDF viewer that comes with Firefox) handles named
destinations, but doesn‘t seem to understand file:/// as a link.

> Background of my question: I normally do graphics in a separate PDFs.
> Some graphics consists of source code together with a graphical
> representation and I want to be able to link to single source code lines.

I think it may be possible, but I don’t know how to generate named
destinations for source code lines.

Just in case it may help,

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

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