ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \pagewidth undefined?
@ 2020-05-19  9:58 Gerben Wierda
  2020-05-19 11:42 ` Gerben Wierda
  0 siblings, 1 reply; 6+ messages in thread
From: Gerben Wierda @ 2020-05-19  9:58 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Why doesn't

\starttext
\externalfigure[foo.pdf][width=\pagewidth]
\stoptext

work? Without [width=\pagewidth] it works.
___________________________________________________________________________________
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: \pagewidth undefined?
  2020-05-19  9:58 \pagewidth undefined? Gerben Wierda
@ 2020-05-19 11:42 ` Gerben Wierda
  2020-05-19 14:39   ` Pablo Rodriguez
  2020-05-19 15:37   ` Wolfgang Schuster
  0 siblings, 2 replies; 6+ messages in thread
From: Gerben Wierda @ 2020-05-19 11:42 UTC (permalink / raw)
  To: mailing list for ConTeXt users

OK. I just noticed in lmtx documentation that \paperheight and \paperwidth primitives have been removed, but there is no information what rteplaces them. So, all the documentation that contains them has been invalidated (e.g. examples in details.pdf)

I have been unable to find out how to get the page width and page height dimens for use in my macros.

G

> On 19 May 2020, at 11:58, Gerben Wierda <gerben.wierda@rna.nl> wrote:
> 
> Why doesn't
> 
> \starttext
> \externalfigure[foo.pdf][width=\pagewidth]
> \stoptext
> 
> work? Without [width=\pagewidth] it works.
> ___________________________________________________________________________________
> 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: \pagewidth undefined?
  2020-05-19 11:42 ` Gerben Wierda
@ 2020-05-19 14:39   ` Pablo Rodriguez
  2020-05-19 15:37   ` Wolfgang Schuster
  1 sibling, 0 replies; 6+ messages in thread
From: Pablo Rodriguez @ 2020-05-19 14:39 UTC (permalink / raw)
  To: ntg-context

On 5/19/20 1:42 PM, Gerben Wierda wrote:
> OK. I just noticed in lmtx documentation that \paperheight and
> \paperwidth primitives have been removed, but there is no information
> what rteplaces them. So, all the documentation that contains them has
> been invalidated (e.g. examples in details.pdf)
Hi Gerben,

doesn’t this work for you?

  \setuplayout[page]
  \starttext
  \externalfigure[foo.pdf][width=\paperwidth]
  \stoptext

Just in case it helps,

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: \pagewidth undefined?
  2020-05-19 11:42 ` Gerben Wierda
  2020-05-19 14:39   ` Pablo Rodriguez
@ 2020-05-19 15:37   ` Wolfgang Schuster
  2020-05-19 18:11     ` Hans Hagen
  1 sibling, 1 reply; 6+ messages in thread
From: Wolfgang Schuster @ 2020-05-19 15:37 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Gerben Wierda

Gerben Wierda schrieb am 19.05.2020 um 13:42:
> OK. I just noticed in lmtx documentation that \paperheight and \paperwidth primitives have been removed, but there is no information what rteplaces them. So, all the documentation that contains them has been invalidated (e.g. examples in details.pdf)
I can't find \pagewidth in the current versison of details.pdf.

As Pablo wrote you can use \paperwidth (or \printpaperwidth) or one of 
the following methods.

%%%% begin example
\setupexternalfigures[location=default]

\setuplayout[tight]

\showframe

\starttext

\centerbox{\externalfigure[mill.png][width=\textwidth]}

\page

\centerbox{\externalfigure[mill.png][width=\paperwidth]}

\page

\centerbox{\externalfigure[mill.png][factor=max]}

\page

\centerbox{\externalfigure[mill.png][factor=min]}

\stoptext
%%%% end example

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: \pagewidth undefined?
  2020-05-19 15:37   ` Wolfgang Schuster
@ 2020-05-19 18:11     ` Hans Hagen
  2020-05-19 22:54       ` Gerben Wierda
  0 siblings, 1 reply; 6+ messages in thread
From: Hans Hagen @ 2020-05-19 18:11 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Wolfgang Schuster, Gerben Wierda

On 5/19/2020 5:37 PM, Wolfgang Schuster wrote:
> Gerben Wierda schrieb am 19.05.2020 um 13:42:
>> OK. I just noticed in lmtx documentation that \paperheight and 
>> \paperwidth primitives have been removed, but there is no information 
>> what rteplaces them. So, all the documentation that contains them has 
>> been invalidated (e.g. examples in details.pdf)
> I can't find \pagewidth in the current versison of details.pdf.
> 
> As Pablo wrote you can use \paperwidth (or \printpaperwidth) or one of 
> the following methods.
> 
> %%%% begin example
> \setupexternalfigures[location=default]
> 
> \setuplayout[tight]
> 
> \showframe
> 
> \starttext
> 
> \centerbox{\externalfigure[mill.png][width=\textwidth]}
> 
> \page
> 
> \centerbox{\externalfigure[mill.png][width=\paperwidth]}
> 
> \page
> 
> \centerbox{\externalfigure[mill.png][factor=max]}
> 
> \page
> 
> \centerbox{\externalfigure[mill.png][factor=min]}
> 
> \stoptext
> %%%% end example

\pagewidth etc were low level engine primitives that were never meant to 
be used directly (backend related, and even then very sensitive for 
confusion); as Wolfgang indicated, these were never supposed to be used 
directly

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: \pagewidth undefined?
  2020-05-19 18:11     ` Hans Hagen
@ 2020-05-19 22:54       ` Gerben Wierda
  0 siblings, 0 replies; 6+ messages in thread
From: Gerben Wierda @ 2020-05-19 22:54 UTC (permalink / raw)
  To: Hans Hagen; +Cc: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1840 bytes --]


> On 19 May 2020, at 20:11, Hans Hagen <j.hagen@xs4all.nl> wrote:
> 
> On 5/19/2020 5:37 PM, Wolfgang Schuster wrote:
>> Gerben Wierda schrieb am 19.05.2020 um 13:42:
>>> OK. I just noticed in lmtx documentation that \paperheight and \paperwidth primitives have been removed, but there is no information what rteplaces them. So, all the documentation that contains them has been invalidated (e.g. examples in details.pdf)
>> I can't find \pagewidth in the current versison of details.pdf.
>> As Pablo wrote you can use \paperwidth (or \printpaperwidth) or one of the following methods.
>> %%%% begin example
>> \setupexternalfigures[location=default]
>> \setuplayout[tight]
>> \showframe
>> \starttext
>> \centerbox{\externalfigure[mill.png][width=\textwidth]}
>> \page
>> \centerbox{\externalfigure[mill.png][width=\paperwidth]}
>> \page
>> \centerbox{\externalfigure[mill.png][factor=max]}
>> \page
>> \centerbox{\externalfigure[mill.png][factor=min]}
>> \stoptext
>> %%%% end example
> 
> \pagewidth etc were low level engine primitives that were never meant to be used directly (backend related, and even then very sensitive for confusion); as Wolfgang indicated, these were never supposed to be used directly

Thanks all. I moved to this:

\setuppapersize[A4]
\setuplayout
  [page]
  [backspace=5mm,
   topspace=5mm]
\setuplayout [page]

and using \textwidth and \textheight.

G

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


[-- Attachment #1.2: Type: text/html, Size: 11076 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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-19 22:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-19  9:58 \pagewidth undefined? Gerben Wierda
2020-05-19 11:42 ` Gerben Wierda
2020-05-19 14:39   ` Pablo Rodriguez
2020-05-19 15:37   ` Wolfgang Schuster
2020-05-19 18:11     ` Hans Hagen
2020-05-19 22:54       ` Gerben Wierda

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