* paperformat=landscape not working
@ 2020-05-20 8:34 Peter Münster
2020-05-20 11:34 ` Hans Hagen
0 siblings, 1 reply; 6+ messages in thread
From: Peter Münster @ 2020-05-20 8:34 UTC (permalink / raw)
To: ntg-context
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: paperformat=landscape not working
2020-05-20 8:34 paperformat=landscape not working Peter Münster
@ 2020-05-20 11:34 ` Hans Hagen
2020-05-20 12:01 ` Peter Münster
0 siblings, 1 reply; 6+ messages in thread
From: Hans Hagen @ 2020-05-20 11:34 UTC (permalink / raw)
To: ntg-context
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
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: paperformat=landscape not working
2020-05-20 11:34 ` Hans Hagen
@ 2020-05-20 12:01 ` Peter Münster
2020-05-20 12:46 ` Wolfgang Schuster
0 siblings, 1 reply; 6+ messages in thread
From: Peter Münster @ 2020-05-20 12:01 UTC (permalink / raw)
To: ConTeXt users
On Wed, May 20 2020, Hans Hagen wrote:
>> [offset=\getdocumentargumentdefault{paperformat_to}{0pt}]
>
> shouldn't that one then become
>
> \setuppaper
> [offset=\getdocumentargumentdefault{paperformat_print}{0pt}]
Yes, I guess.
>> 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
Ok, I've found the problem: context.lua and mtxrun.lua in
texmf-linux-64/bin did not have the execute permissions. It works after
adding the permissions.
Thanks,
--
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: paperformat=landscape not working
2020-05-20 12:01 ` Peter Münster
@ 2020-05-20 12:46 ` Wolfgang Schuster
2020-05-20 14:12 ` Hans Hagen
0 siblings, 1 reply; 6+ messages in thread
From: Wolfgang Schuster @ 2020-05-20 12:46 UTC (permalink / raw)
To: ConTeXt users
Peter Münster schrieb am 20.05.2020 um 14:01:
> On Wed, May 20 2020, Hans Hagen wrote:
>
>>> [offset=\getdocumentargumentdefault{paperformat_to}{0pt}]
>>
>> shouldn't that one then become
>>
>> \setuppaper
>> [offset=\getdocumentargumentdefault{paperformat_print}{0pt}]
>
> Yes, I guess.
I think this is better.
\setuppaper
[offset=\getdocumentargumentdefault{paperoffset}{0pt}]
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: paperformat=landscape not working
2020-05-20 12:46 ` Wolfgang Schuster
@ 2020-05-20 14:12 ` Hans Hagen
2020-05-20 14:28 ` Wolfgang Schuster
0 siblings, 1 reply; 6+ messages in thread
From: Hans Hagen @ 2020-05-20 14:12 UTC (permalink / raw)
To: mailing list for ConTeXt users, Wolfgang Schuster
On 5/20/2020 2:46 PM, Wolfgang Schuster wrote:
> Peter Münster schrieb am 20.05.2020 um 14:01:
>> On Wed, May 20 2020, Hans Hagen wrote:
>>
>>>> [offset=\getdocumentargumentdefault{paperformat_to}{0pt}]
>>>
>>> shouldn't that one then become
>>>
>>> \setuppaper
>>> [offset=\getdocumentargumentdefault{paperformat_print}{0pt}]
>>
>> Yes, I guess.
>
> I think this is better.
>
> \setuppaper
> [offset=\getdocumentargumentdefault{paperoffset}{0pt}]
indeed, you got me there,
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: paperformat=landscape not working
2020-05-20 14:12 ` Hans Hagen
@ 2020-05-20 14:28 ` Wolfgang Schuster
0 siblings, 0 replies; 6+ messages in thread
From: Wolfgang Schuster @ 2020-05-20 14:28 UTC (permalink / raw)
To: Hans Hagen; +Cc: mailing list for ConTeXt users
Hans Hagen schrieb am 20.05.2020 um 16:12:
> On 5/20/2020 2:46 PM, Wolfgang Schuster wrote:
>> Peter Münster schrieb am 20.05.2020 um 14:01:
>>> On Wed, May 20 2020, Hans Hagen wrote:
>>>
>>>>> [offset=\getdocumentargumentdefault{paperformat_to}{0pt}]
>>>>
>>>> shouldn't that one then become
>>>>
>>>> \setuppaper
>>>> [offset=\getdocumentargumentdefault{paperformat_print}{0pt}]
>>>
>>> Yes, I guess.
>>
>> I think this is better.
>>
>> \setuppaper
>> [offset=\getdocumentargumentdefault{paperoffset}{0pt}]
> indeed, you got me there,
Also wrong are ()
o mtx-context-arrange.tex
o mtx-context-markdown.tex
\doifdocumentargument {paperoffset} {
- \definepapersize
- [offset=\getdocumentargument{paperoffset}]
+ \setuppaper
+ [offset=\getdocumentargumentdefault{paperoffset}{0pt}]
}
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2020-05-20 14:28 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-20 8:34 paperformat=landscape not working Peter Münster
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
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).