Large Figure on Landscape Orientation
Hey folks, I'm having difficulty getting an external image to display on its own page, with the page in landscape mode, and the image uniformly scaled as large as can fit on that page. Relevant portions of my environment file include... \setuplayout [\c!location=\v!middle, \c!style=\ss, \c!backspace=2.5cm, \c!topspace=1.5cm, \c!width=16cm, \c!margindistance=.25cm, \c!margin=2.5cm, \c!height=\v!middle] \definelayout [fullpage] [\c!backspace=0pt, \c!topspace=0pt, \c!width=\v!middle, \c!height=\v!middle, \c!header=0pt, \c!footer=0pt] \definepapersize[main][A4][A4] \definepapersize[diagram][A4,landscape][A4,landscape] And the actual image in my component is here: \page \setuppapersize[diagram] \placefigure [force][figure:MyImage] {My image caption.} {\externalfigure[MyImage][factor=max]} \page \setuppapersize[main] The document is all in portrait mode, save the page with the figure which is landscaped, as intended. But the image sits only occupying the top left quarter of the page. I've tried changing factor from max to broad and fit, and to no avail. -- Kip Warner -- Software Engineer OpenPGP encrypted/signed mail preferred http://www.thevertigo.com
On Sun, 26 Jun 2011, Kip Warner wrote:
I'm having difficulty getting an external image to display on its own page, with the page in landscape mode, and the image uniformly scaled as large as can fit on that page.
Relevant portions of my environment file include...
\setuplayout [\c!location=\v!middle, \c!style=\ss, \c!backspace=2.5cm, \c!topspace=1.5cm, \c!width=16cm, \c!margindistance=.25cm, \c!margin=2.5cm, \c!height=\v!middle]
\definelayout [fullpage] [\c!backspace=0pt, \c!topspace=0pt, \c!width=\v!middle, \c!height=\v!middle, \c!header=0pt, \c!footer=0pt]
\definepapersize[main][A4][A4] \definepapersize[diagram][A4,landscape][A4,landscape]
And the actual image in my component is here:
\page \setuppapersize[diagram] \placefigure [force][figure:MyImage] {My image caption.} {\externalfigure[MyImage][factor=max]} \page \setuppapersize[main]
The document is all in portrait mode, save the page with the figure which is landscaped, as intended. But the image sits only occupying the top left quarter of the page. I've tried changing factor from max to broad and fit, and to no avail.
(untested) try \externalfigure[...][width=\textwidth,height=\textheight,factor=max] Aditya
On Sun, 2011-06-26 at 23:06 -0400, Aditya Mahajan wrote:
(untested)
try
\externalfigure[...][width=\textwidth,height=\textheight,factor=max]
Aditya
Thanks Aditya, but no luck. It still looks exactly the same. -- Kip Warner -- Software Engineer OpenPGP encrypted/signed mail preferred http://www.thevertigo.com
Am 27.06.2011 um 04:07 schrieb Kip Warner:
Hey folks,
I'm having difficulty getting an external image to display on its own page, with the page in landscape mode, and the image uniformly scaled as large as can fit on that page.
Relevant portions of my environment file include...
\setuplayout [\c!location=\v!middle, \c!style=\ss, \c!backspace=2.5cm, \c!topspace=1.5cm, \c!width=16cm, \c!margindistance=.25cm, \c!margin=2.5cm, \c!height=\v!middle]
\definelayout [fullpage] [\c!backspace=0pt, \c!topspace=0pt, \c!width=\v!middle, \c!height=\v!middle, \c!header=0pt, \c!footer=0pt]
\definepapersize[main][A4][A4] \definepapersize[diagram][A4,landscape][A4,landscape]
And the actual image in my component is here:
\page \setuppapersize[diagram] \placefigure [force][figure:MyImage] {My image caption.} {\externalfigure[MyImage][factor=max]} \page \setuppapersize[main]
The document is all in portrait mode, save the page with the figure which is landscaped, as intended. But the image sits only occupying the top left quarter of the page. I've tried changing factor from max to broad and fit, and to no avail.
Make a working minimal example. BTW: Why do you use “\c!” and “\v!” for the setups, the aren’t necessary? Wolfgang
On Mon, 2011-06-27 at 09:52 +0200, Wolfgang Schuster wrote:
Make a working minimal example.
Thank you. See attached.
BTW: Why do you use \c! and \v! for the setups, the arent necessary?
I don't know what any of that means, but I saw them in the reference manual's environment source and copied and pasted. I'm new to typesetting with ConTeXt. -- Kip Warner -- Software Engineer OpenPGP encrypted/signed mail preferred http://www.thevertigo.com
On 28-6-2011 3:55, Kip Warner wrote:
On Mon, 2011-06-27 at 09:52 +0200, Wolfgang Schuster wrote:
Make a working minimal example.
Thank you. See attached.
BTW: Why do you use \c! and \v! for the setups, the arent necessary?
I don't know what any of that means, but I saw them in the reference manual's environment source and copied and pasted. I'm new to typesetting with ConTeXt.
consider them keys and values that adapt to the interface language, so it's only needed for core code and modules and styles that are meant to run under the dutch, german, etc interface as well so, you probably don't need those prefixes Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On Tue, 2011-06-28 at 09:28 +0200, Hans Hagen wrote:
consider them keys and values that adapt to the interface language, so it's only needed for core code and modules and styles that are meant to run under the dutch, german, etc interface as well
so, you probably don't need those prefixes
Hans
So I can just remove all the \v! and \c! and everything should still be fine? -- Kip Warner -- Software Engineer OpenPGP encrypted/signed mail preferred http://www.thevertigo.com
On Tue, Jun 28, 2011 at 11:38 PM, Kip Warner
On Tue, 2011-06-28 at 09:28 +0200, Hans Hagen wrote:
consider them keys and values that adapt to the interface language, so it's only needed for core code and modules and styles that are meant to run under the dutch, german, etc interface as well
so, you probably don't need those prefixes
Hans
So I can just remove all the \v! and \c! and everything should still be fine?
yes -- luigi
Am 28.06.2011 um 23:38 schrieb Kip Warner:
On Tue, 2011-06-28 at 09:28 +0200, Hans Hagen wrote:
consider them keys and values that adapt to the interface language, so it's only needed for core code and modules and styles that are meant to run under the dutch, german, etc interface as well
so, you probably don't need those prefixes
Hans
So I can just remove all the \v! and \c! and everything should still be fine?
Yes. Wolfgang
On 28-6-2011 11:38, Kip Warner wrote:
On Tue, 2011-06-28 at 09:28 +0200, Hans Hagen wrote:
consider them keys and values that adapt to the interface language, so it's only needed for core code and modules and styles that are meant to run under the dutch, german, etc interface as well
so, you probably don't need those prefixes
Hans
So I can just remove all the \v! and \c! and everything should still be fine?
Sure, I guess that apart from module writers, no one on this list uses that notation. Also, when you look at the wiki or discussions on this list you will seldom see them, Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On Tue, 2011-06-28 at 23:59 +0200, Hans Hagen wrote:
Sure, I guess that apart from module writers, no one on this list uses that notation. Also, when you look at the wiki or discussions on this list you will seldom see them,
Noted. Thanks. -- Kip Warner -- Software Engineer OpenPGP encrypted/signed mail preferred http://www.thevertigo.com
After my answer, Wolfgang's answer and Hans's answer, I think that we can officially conclude that : "Yes: if you are not a module writer then you can just remove all the \v! and \c! and everything will be fine" -- luigi
On Sun, 26 Jun 2011, Kip Warner wrote:
Hey folks,
I'm having difficulty getting an external image to display on its own page, with the page in landscape mode, and the image uniformly scaled as large as can fit on that page.
Relevant portions of my environment file include...
\setuplayout[....] \definelayout[fullpage][....]
\definepapersize[main][A4][A4] \definepapersize[diagram][A4,landscape][A4,landscape]
And the actual image in my component is here:
You don't switch layout to fullpage!
\page \setuppapersize[diagram] \placefigure [force][figure:MyImage] {My image caption.} {\externalfigure[MyImage][factor=max]} \page \setuppapersize[main]
Here is a complete working example: \unprotect \setuplayout [\c!location=\v!middle, \c!style=\ss, \c!backspace=2.5cm, \c!topspace=1.5cm, \c!width=16cm, \c!margindistance=.25cm, \c!margin=2.5cm, \c!height=\v!middle] \definelayout [fullpage] [\c!backspace=0pt, \c!topspace=0pt, \c!width=\v!middle, \c!height=\v!middle, \c!header=0pt, \c!footer=0pt] \protect \definepapersize[main][A4][A4] \definepapersize[diagram][A4,landscape][A4,landscape] \starttext And the actual image in my component is here: \page \setuppapersize[diagram] \setuplayout[fullpage] \placefigure [force][figure:MyImage] {My image caption.} {\externalfigure[cow][factor=max]} \page \setuppapersize[main] \setuplayout[reset] The document is all in portrait mode, save the page with the figure which is landscaped, as intended. But the image sits only occupying the top left quarter of the page. I've tried changing factor from max to broad and fit, and to no avail. \stoptext @Hans: Does it make sense to modify \adaptlayout so that it will also accept pre-defined layout. So that we could use: \page \adaptpapersize[diagram] \adaptlayout[fullpage] Current, \adaptlayout only accepts key-values. Aditya
Am 28.06.2011 um 07:35 schrieb Aditya Mahajan:
@Hans: Does it make sense to modify \adaptlayout so that it will also accept pre-defined layout. So that we could use:
\page \adaptpapersize[diagram] \adaptlayout[fullpage]
Current, \adaptlayout only accepts key-values.
\page \setuplayout[page] ... \page \setuplayout[reset] Wolfgang
On Tue, 28 Jun 2011, Wolfgang Schuster wrote:
Am 28.06.2011 um 07:35 schrieb Aditya Mahajan:
@Hans: Does it make sense to modify \adaptlayout so that it will also accept pre-defined layout. So that we could use:
\page \adaptpapersize[diagram] \adaptlayout[fullpage]
Current, \adaptlayout only accepts key-values.
\page \setuplayout[page] ... \page \setuplayout[reset]
That's what I used in my solution. But I think that for situations, \adaptlayout is better (for example, when you don't know when the current page will end).
On Tue, 2011-06-28 at 01:35 -0400, Aditya Mahajan wrote:
You don't switch layout to fullpage! (...)
Here is a complete working example:
Thanks Aditya. That worked =) How can I have the figure centred in that page, uniformly scaled to the maximum size of the page, save, say, 1 cm around the edge? -- Kip Warner -- Software Engineer OpenPGP encrypted/signed mail preferred http://www.thevertigo.com
participants (5)
-
Aditya Mahajan
-
Hans Hagen
-
Kip Warner
-
luigi scarso
-
Wolfgang Schuster