Hi Pablo,
Thank you for the links and for your help. I'm going to look at Metafun for
the vertical line.
Fabrice
2017-10-22 9:48 GMT+02:00 Pablo Rodriguez
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
____________________________________________________________ _______________________ 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 ____________________________________________________________ _______________________