ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Peter Münster" <pm@a16n.net>
To: ntg-context@ntg.nl
Subject: paperformat=landscape not working
Date: Wed, 20 May 2020 10:34:35 +0200	[thread overview]
Message-ID: <875zcrdmxw.fsf@a16n.net> (raw)

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


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)


Kind regards,
-- 
           Peter
___________________________________________________________________________________
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
___________________________________________________________________________________

             reply	other threads:[~2020-05-20  8:34 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-20  8:34 Peter Münster [this message]
2020-05-20 11:34 ` Hans Hagen
2020-05-20 12:01   ` Peter Münster
2020-05-20 12:46     ` Wolfgang Schuster
2020-05-20 14:12       ` Hans Hagen
2020-05-20 14:28         ` Wolfgang Schuster

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=875zcrdmxw.fsf@a16n.net \
    --to=pm@a16n.net \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).