ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Pablo Rodriguez <oinos@gmx.es>
To: ntg-context@ntg.nl
Subject: Re: Page printed upside down
Date: Sun, 22 Oct 2017 09:48:20 +0200	[thread overview]
Message-ID: <7e9d9429-8759-0df0-11d9-eb71b36392c2@gmx.es> (raw)
In-Reply-To: <CACyK-eqRwEGsmBtYQcjw5nzjc_jMdX_9Yn8L0OCNF=ztvZ4q+A@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 3423 bytes --]

On 10/21/2017 11:45 PM, Fabrice Couvreur wrote:
> Hi Pablo,
> Sorry for the late response. I did some tests before answering to
> understand your explanations.

Hi Fabrice,

the basic idea is the paper orientation matches the printing option (if
any).

> - With the command \setupinteractionscreen [option = landscape] and
> without selecting anything in Acrobat, I get a document in double-sided
> portrait mode but the back side is upside down

\setupinteractionscreen[option=portrait] would be the right option here.
It is double-sided (duplex) printing for portrait orientation.

Consider that ConTeXt has \setuppapersize[A4, portrait] as default.

> - With the command \setuppapersize [A4, landscape] and without
> selecting anything in Acrobat, I get two documents in landscape mode in
> the same direction

You got two printed sheets instead of one. To get only one, you need to
specify duplex printing (as explained above). Otherwise, your printer
would print as its default properties specify.

There is even a \setupinteractionscreen[option=page] option, which
enables single-sided (or simplex) printing. This is required for
printers that are configured to print doublesided per default.

> I think it's clear now, thank you.

I hope it may be clearer after my explanation.

> I did a try to get a booklet but the result is not correct because the
> text or formulas of mathematics are overflowing in the colums

Sorry, but overflowing is normal here, the formula has too many data to
fit in that column width.

I would discourage the use of columns to create the booklet.

My advice would be to compose the standard text and then impose the pages:

\starttext
  \dorecurse{4}{\chapter{Chapter \Romannumerals{\recurselevel}}
  \section{\TeX}\input knuth\par
                \section{Zapf}\input zapf\par
\section{Math}
\startformula
    \startmathalignment[n=2,align={left,left}]
    \NC P_1 + P_2 + \dots + P_{12} \NC = 400 + 400\times 1,05 +
400\times 1,05^2 + \dots + 400 \times 1,05^{11}\NR
    \NC  \NC = 400\times (1 + 1,05 + 1,05^2 + \dots + 1,05^{11})\NR
    \NC  \NC = 400\times \frac{1-1,05^{12}}{1-1,05}\approx 6\,367.\NR
    \stopmathalignment
\stopformula}
\stoptext

And then use the following code with the output PDF document from the
code above:

    \setuppapersize [A5][A4,landscape]
    \setupexternalfigures[interaction=all]
    \enabledirectives[references.border]
    \setuparranging [2UP]
    \setuplayout
      [backspace=0pt,
        topspace=0pt,
           width=middle,
          height=middle,
        location=middle,
          header=0pt,
          footer=0pt]
    \setupinteraction[state=start]
    \setupinteractionscreen[option={landscape, fixed, paper}]
    \starttext
    \insertpages[document.pdf][width=0pt]
    \stoptext

You should get something similar to the attached booklet.

Of course, you may have to increase font size in the original document.
But to know which increase in size the font needs, you have to check it
in the printed version of the final booklet.

With an already released booklet,
https://github.com/ousia/from-pandoc-to-context/blob/master/doc/from-pandoc-to-context_A4.pdf
is the basis to be imposed in the final booklet
https://github.com/ousia/from-pandoc-to-context/blob/master/doc/from-pandoc-to-context_A4-booklet.pdf.

The approach I’m suggesting is simpler and easier to implement.

Just in case it helps,

Pablo
-- 
http://www.ousia.tk

[-- Attachment #2: A5-to-A4_landscape-booklet.pdf --]
[-- Type: application/pdf, Size: 28738 bytes --]

[-- Attachment #3: Type: text/plain, Size: 492 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
___________________________________________________________________________________

  reply	other threads:[~2017-10-22  7:48 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-16 15:59 Fabrice Couvreur
2017-10-16 17:35 ` Pablo Rodriguez
2017-10-16 18:53   ` Fabrice Couvreur
2017-10-18  7:05     ` Fabrice Couvreur
2017-10-18 16:00       ` Fabrice Couvreur
2017-10-18 16:44         ` Pablo Rodriguez
2017-10-21 21:45           ` Fabrice Couvreur
2017-10-22  7:48             ` Pablo Rodriguez [this message]
2017-10-23 10:34               ` Fabrice Couvreur
2017-10-23 15:22                 ` Pablo Rodriguez
2017-10-24  9:48                   ` Fabrice Couvreur
2017-10-18 16:26       ` Pablo Rodriguez

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=7e9d9429-8759-0df0-11d9-eb71b36392c2@gmx.es \
    --to=oinos@gmx.es \
    --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).