* Figure caption on different page?
@ 2006-04-12 5:23 Johannes Graumann
2006-04-13 11:38 ` Hans Hagen
0 siblings, 1 reply; 7+ messages in thread
From: Johannes Graumann @ 2006-04-12 5:23 UTC (permalink / raw)
Hello,
Is it possible to place (for page sized figures) the caption on the
next/previous page?
Thanks, Joh
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Figure caption on different page?
2006-04-12 5:23 Figure caption on different page? Johannes Graumann
@ 2006-04-13 11:38 ` Hans Hagen
2006-04-19 4:53 ` Johannes Graumann
0 siblings, 1 reply; 7+ messages in thread
From: Hans Hagen @ 2006-04-13 11:38 UTC (permalink / raw)
Johannes Graumann wrote:
> Hello,
>
> Is it possible to place (for page sized figures) the caption on the
> next/previous page?
>
\definefloat[caption]
\setupfloat[caption][location=right]
\defineframedtext
[captiontext]
[width=.5\textwidth]
\setuppagenumbering[alternative=doublesided]
\starttext
test \page
\placefigure
[page,none]
{}
{\blackrule[width=\textwidth,height=\textheight]}
\placecaption
[bottom,none]
{}
{\startcaptiontext
\placefloatcaption
[figure]
{\input tufte \relax}
\stopcaptiontext}
\dorecurse{10}{\input tufte \endgraf}
\stoptext
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Figure caption on different page?
2006-04-13 11:38 ` Hans Hagen
@ 2006-04-19 4:53 ` Johannes Graumann
2006-04-19 6:50 ` nico
2006-04-19 7:16 ` Hans Hagen
0 siblings, 2 replies; 7+ messages in thread
From: Johannes Graumann @ 2006-04-19 4:53 UTC (permalink / raw)
Hans Hagen wrote:
> <expertadvice>
> ...
> </expertadvice>
Thank you. I have modified that code and it does what I want (see below).
There is however one generalization issue: the
line '\externalfigure[\XMLflush{graphic}][width=\textwidth]' should really
be able to use scaling to '\textwidth' or \'textheight' depending on what
fills the page better without overflowing it. Is there any way I can make
ConTeXt check which one is better: 'width=\textwidth' or
height='\textheight'?
Thanks, Joh
\definefloat[caption]
\setupfloat[caption][location=right]
\defineframedtext
[captiontext]
[width=\textwidth,style={{\smallbodyfont}\setupinterlinespace[line=2.8ex]},frame=off,topframe=on]
\defineXMLenvironment
[fpfigure]
{
\bgroup
\defineXMLsave[caption]
\defineXMLsave[graphic]
}
{
\placefigure
[page,none]
[\XMLpar{figure}{label}{}]
{}
{\externalfigure[\XMLflush{graphic}][width=\textwidth]}
\placecaption
[bottom,none]
{}
{\startcaptiontext
\placefloatcaption
[figure]
{\XMLflush{caption}}
\stopcaptiontext}
\egroup
}
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Figure caption on different page?
2006-04-19 4:53 ` Johannes Graumann
@ 2006-04-19 6:50 ` nico
2006-04-19 16:56 ` Johannes Graumann
2006-04-19 7:16 ` Hans Hagen
1 sibling, 1 reply; 7+ messages in thread
From: nico @ 2006-04-19 6:50 UTC (permalink / raw)
On Tue, 18 Apr 2006 21:53:02 -0700, Johannes Graumann
<johannes_graumann@web.de> wrote:
> Hans Hagen wrote:
>
>> <expertadvice>
>> ...
>> </expertadvice>
>
> Thank you. I have modified that code and it does what I want (see below).
> There is however one generalization issue: the
> line '\externalfigure[\XMLflush{graphic}][width=\textwidth]' should
> really
> be able to use scaling to '\textwidth' or \'textheight' depending on what
> fills the page better without overflowing it. Is there any way I can make
> ConTeXt check which one is better: 'width=\textwidth' or
> height='\textheight'?
Doing [width=\textwidth,height=\textheight,factor=max] should do it (it's
in the big manual).
Regards,
BG
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Figure caption on different page?
2006-04-19 4:53 ` Johannes Graumann
2006-04-19 6:50 ` nico
@ 2006-04-19 7:16 ` Hans Hagen
1 sibling, 0 replies; 7+ messages in thread
From: Hans Hagen @ 2006-04-19 7:16 UTC (permalink / raw)
Johannes Graumann wrote:
> Hans Hagen wrote:
>
>
>> <expertadvice>
>> ...
>> </expertadvice>
>>
>
> Thank you. I have modified that code and it does what I want (see below).
> There is however one generalization issue: the
> line '\externalfigure[\XMLflush{graphic}][width=\textwidth]' should really
> be able to use scaling to '\textwidth' or \'textheight' depending on what
> fills the page better without overflowing it. Is there any way I can make
> ConTeXt check which one is better: 'width=\textwidth' or
> height='\textheight'?
>
> Thanks, Joh
>
> \definefloat[caption]
>
> \setupfloat[caption][location=right]
>
> \defineframedtext
> [captiontext]
> [width=\textwidth,style={{\smallbodyfont}\setupinterlinespace[line=2.8ex]},frame=off,topframe=on]
>
factor=max
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Figure caption on different page?
2006-04-19 6:50 ` nico
@ 2006-04-19 16:56 ` Johannes Graumann
2006-04-19 17:34 ` Hans Hagen
0 siblings, 1 reply; 7+ messages in thread
From: Johannes Graumann @ 2006-04-19 16:56 UTC (permalink / raw)
nico wrote:
> [width=\textwidth,height=\textheight,factor=max]
Thank you very much! Very convenient functionality!
Joh
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Figure caption on different page?
2006-04-19 16:56 ` Johannes Graumann
@ 2006-04-19 17:34 ` Hans Hagen
0 siblings, 0 replies; 7+ messages in thread
From: Hans Hagen @ 2006-04-19 17:34 UTC (permalink / raw)
Johannes Graumann wrote:
> nico wrote:
>
>
>> [width=\textwidth,height=\textheight,factor=max]
>>
>
> Thank you very much! Very convenient functionality!
>
pretty old too -)
(one of the reasons for writing context is that we needed that kind of
features)
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2006-04-19 17:34 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-12 5:23 Figure caption on different page? Johannes Graumann
2006-04-13 11:38 ` Hans Hagen
2006-04-19 4:53 ` Johannes Graumann
2006-04-19 6:50 ` nico
2006-04-19 16:56 ` Johannes Graumann
2006-04-19 17:34 ` Hans Hagen
2006-04-19 7:16 ` Hans Hagen
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).