* Re: Large Figure on Landscape Orientation
2011-06-27 2:07 Large Figure on Landscape Orientation Kip Warner
@ 2011-06-27 3:06 ` Aditya Mahajan
2011-06-27 7:35 ` Kip Warner
2011-06-27 7:52 ` Wolfgang Schuster
2011-06-28 5:35 ` Aditya Mahajan
2 siblings, 1 reply; 16+ messages in thread
From: Aditya Mahajan @ 2011-06-27 3:06 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Large Figure on Landscape Orientation
2011-06-27 3:06 ` Aditya Mahajan
@ 2011-06-27 7:35 ` Kip Warner
0 siblings, 0 replies; 16+ messages in thread
From: Kip Warner @ 2011-06-27 7:35 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 345 bytes --]
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
[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Large Figure on Landscape Orientation
2011-06-27 2:07 Large Figure on Landscape Orientation Kip Warner
2011-06-27 3:06 ` Aditya Mahajan
@ 2011-06-27 7:52 ` Wolfgang Schuster
2011-06-28 1:55 ` Kip Warner
2011-06-28 5:35 ` Aditya Mahajan
2 siblings, 1 reply; 16+ messages in thread
From: Wolfgang Schuster @ 2011-06-27 7:52 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Large Figure on Landscape Orientation
2011-06-27 7:52 ` Wolfgang Schuster
@ 2011-06-28 1:55 ` Kip Warner
2011-06-28 7:28 ` Hans Hagen
0 siblings, 1 reply; 16+ messages in thread
From: Kip Warner @ 2011-06-28 1:55 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1.1: Type: text/plain, Size: 468 bytes --]
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
[-- Attachment #1.1.2: Figure.svg.bz2 --]
[-- Type: application/x-bzip, Size: 3673 bytes --]
[-- Attachment #1.1.3: sample.tex --]
[-- Type: text/x-tex, Size: 385 bytes --]
\starttext
\definepapersize[main][A4][A4]
\definepapersize[diagram][A4,landscape][A4,landscape]
Some stuff in portrait.
\page
\setuppapersize[diagram]
\placefigure
[][figure:SomeFigure]
{Figure's caption.}
{\externalfigure[Figure.svg][width=\textwidth,height=\textheight,factor=max]}
\page
\setuppapersize[main]
More stuff in portrait.
\stoptext
[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Large Figure on Landscape Orientation
2011-06-28 1:55 ` Kip Warner
@ 2011-06-28 7:28 ` Hans Hagen
2011-06-28 21:38 ` Kip Warner
0 siblings, 1 reply; 16+ messages in thread
From: Hans Hagen @ 2011-06-28 7:28 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Kip Warner
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
-----------------------------------------------------------------
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Large Figure on Landscape Orientation
2011-06-28 7:28 ` Hans Hagen
@ 2011-06-28 21:38 ` Kip Warner
2011-06-28 21:41 ` luigi scarso
` (2 more replies)
0 siblings, 3 replies; 16+ messages in thread
From: Kip Warner @ 2011-06-28 21:38 UTC (permalink / raw)
To: Hans Hagen; +Cc: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 522 bytes --]
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
[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Large Figure on Landscape Orientation
2011-06-28 21:38 ` Kip Warner
@ 2011-06-28 21:41 ` luigi scarso
2011-06-28 21:41 ` Wolfgang Schuster
2011-06-28 21:59 ` Hans Hagen
2 siblings, 0 replies; 16+ messages in thread
From: luigi scarso @ 2011-06-28 21:41 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 513 bytes --]
On Tue, Jun 28, 2011 at 11:38 PM, Kip Warner <kip@thevertigo.com> 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?
>
> yes
--
luigi
[-- Attachment #1.2: Type: text/html, Size: 912 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Large Figure on Landscape Orientation
2011-06-28 21:38 ` Kip Warner
2011-06-28 21:41 ` luigi scarso
@ 2011-06-28 21:41 ` Wolfgang Schuster
2011-06-28 21:59 ` Hans Hagen
2 siblings, 0 replies; 16+ messages in thread
From: Wolfgang Schuster @ 2011-06-28 21:41 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Large Figure on Landscape Orientation
2011-06-28 21:38 ` Kip Warner
2011-06-28 21:41 ` luigi scarso
2011-06-28 21:41 ` Wolfgang Schuster
@ 2011-06-28 21:59 ` Hans Hagen
2011-06-28 22:03 ` Kip Warner
2 siblings, 1 reply; 16+ messages in thread
From: Hans Hagen @ 2011-06-28 21:59 UTC (permalink / raw)
To: Kip Warner; +Cc: mailing list for ConTeXt users
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
-----------------------------------------------------------------
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Large Figure on Landscape Orientation
2011-06-28 21:59 ` Hans Hagen
@ 2011-06-28 22:03 ` Kip Warner
2011-06-28 23:10 ` luigi scarso
0 siblings, 1 reply; 16+ messages in thread
From: Kip Warner @ 2011-06-28 22:03 UTC (permalink / raw)
To: Hans Hagen; +Cc: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 367 bytes --]
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
[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Large Figure on Landscape Orientation
2011-06-27 2:07 Large Figure on Landscape Orientation Kip Warner
2011-06-27 3:06 ` Aditya Mahajan
2011-06-27 7:52 ` Wolfgang Schuster
@ 2011-06-28 5:35 ` Aditya Mahajan
2011-06-28 8:20 ` Wolfgang Schuster
2011-06-28 23:10 ` Kip Warner
2 siblings, 2 replies; 16+ messages in thread
From: Aditya Mahajan @ 2011-06-28 5:35 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Large Figure on Landscape Orientation
2011-06-28 5:35 ` Aditya Mahajan
@ 2011-06-28 8:20 ` Wolfgang Schuster
2011-06-28 15:22 ` Aditya Mahajan
2011-06-28 23:10 ` Kip Warner
1 sibling, 1 reply; 16+ messages in thread
From: Wolfgang Schuster @ 2011-06-28 8:20 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Large Figure on Landscape Orientation
2011-06-28 5:35 ` Aditya Mahajan
2011-06-28 8:20 ` Wolfgang Schuster
@ 2011-06-28 23:10 ` Kip Warner
1 sibling, 0 replies; 16+ messages in thread
From: Kip Warner @ 2011-06-28 23:10 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 422 bytes --]
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
[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 16+ messages in thread