Hello, Is it possible to place (for page sized figures) the caption on the next/previous page? Thanks, Joh
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 -----------------------------------------------------------------
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 }
On Tue, 18 Apr 2006 21:53:02 -0700, Johannes Graumann
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
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 -----------------------------------------------------------------
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 -----------------------------------------------------------------
participants (3)
-
Hans Hagen
-
Johannes Graumann
-
nico