[NTG-context] paperformat=landscape not working

Hans Hagen j.hagen at xs4all.nl
Wed May 20 13:34:29 CEST 2020


On 5/20/2020 10:34 AM, Peter M√ľnster wrote:
> Hi,
> 
> When the PDF-document is in landscape format, this does not work:
> 
> context --extra=select --selection=X
>          --paperformat=A4,landscape*A4,landscape file.pdf
> 
> This patch helps:
> 
> --- mtx-context-select.tex~     2020-05-20 10:28:42.702314061 +0200
> +++ mtx-context-select.tex      2020-05-20 10:28:53.730225887 +0200
> @@ -31,8 +31,8 @@
>   \input mtx-context-common.tex
>   
>   \setuppapersize
> -  [\getdocumentargumentdefault{paperformat_from}{A4}]
> -  [\getdocumentargumentdefault{paperformat_to}{A4}]
> +  [\getdocumentargumentdefault{paperformat_paper}{A4}]
> +  [\getdocumentargumentdefault{paperformat_print}{A4}]
>   
>   \setuppaper
>     [offset=\getdocumentargumentdefault{paperformat_to}{0pt}]

shouldn't that one then become

\setuppaper
   [offset=\getdocumentargumentdefault{paperformat_print}{0pt}]

> 
> With LMTX, --extra=select is not working at all. I get this error:
> 
> mtx-context     | processing extra: mtx-context-select.tex
> mtx-context     | redirect luametatex -> luatex: luatex --luaonly "/opt/context-lmtx/tex/texmf-linux-64/bin/mtxrun.lua" --script mtx-context --extra=select --selection=2 file.pdf --redirected
> mtx-context     | processing extra: mtx-context-select.tex
> mtx-context     | warning: lua mismatch (luv: 0 <> bin: 5.2), forcing remake
> /usr/share/texmf/scripts/context/lua/mtx-context.lua:1176: attempt to index field 'instance' (a nil value)
that's not lmtx, but mkiv that you call

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


More information about the ntg-context mailing list