From: "José de Mattos Neto" <josepmneto@gmail.com>
To: ntg-context@ntg.nl
Subject: Full page image and caption in another page?
Date: Tue, 22 Sep 2020 14:42:57 -0300 [thread overview]
Message-ID: <CAF3vEt_r+EdyJAgsHU5F2uxSoEbX4RkbcHmZP6=-obvqtOTQKQ@mail.gmail.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 1923 bytes --]
Hi, it's my first message on this list.
I've searched in ConTeXt manuals, TeX.SX and here, but couldn't find a way
to achieve these 4 requirements altogether:
1. Place a figure as full-page figure
2. Change orientation accordingly (if it's a landscape PDF, for instance)
3. Make that using \setupfloat (or other setup), not directly in
\placefloat
4. Place captions in another page (ideally on opposite page)
Problems:
- I can't get # 1 and # 3 at same time
- \setupfloat doesn't have before option, which I could use to change
orientation
- I have no idea how to accomplish # 4
A minimal working example (PDF in attachment):
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\definepapersize[default][A4, portrait]
\definelayout[default][topspace=0.6cm, topdistance=0cm, header=1cm,
headerdistance=0cm,
height=27.3cm, footer=0cm,
backspace=4.2cm, width=13.6cm]
\setuppapersize[default]
\setuplayout[default]
\setuppagenumbering[alternative=doublesided, location={header}]
\setupexternalfigures[location={default}]
\definepapersize[rotate][A4, landscape]
\definefloat[bigfigure][bigfigures][figure]
\setupfloat[bigfigure][default={page},
width=1\textwidth, height=1\textheight,
before={\setuppapersize[rotate]}] % there's no
before in setupfloat
\setupcaption[bigfigure][location={opposite}] % there's no opposite
location in setupcaption
\starttext
\showframe
\dorecurse{2}{\input{knuth}}
\setuppapersize[rotate] % this doesn't work because is in same page
\startplacebigfigure[title={A cow}]{\externalfigure[cow]}\stopplacebigfigure
\setuppapersize[default]
\dorecurse{2}{\input{knuth}}
\stoptext
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Thanks in advance!
José Neto
[-- Attachment #1.2: Type: text/html, Size: 3020 bytes --]
[-- Attachment #2: mwe.pdf --]
[-- Type: application/pdf, Size: 19297 bytes --]
[-- Attachment #3: 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
___________________________________________________________________________________
next reply other threads:[~2020-09-22 17:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-22 17:42 José de Mattos Neto [this message]
2020-09-23 13:08 ` Taco Hoekwater
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAF3vEt_r+EdyJAgsHU5F2uxSoEbX4RkbcHmZP6=-obvqtOTQKQ@mail.gmail.com' \
--to=josepmneto@gmail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).