Hello, I have printed this document and the page on the back is printed upside down in fact you have to turn the page to read it. How to correct this ? Thank you Fabrice \setuppapersize[A4,landscape] \setuppagenumbering[alternative=,location=] \definemixedcolumns [MyColumns] [ n=2, separator=rule, rulecolor=, balance=yes, ] \setupalign[verytolerant,stretch,hanging] \starttext \startMyColumns \dorecurse{6}{\input knuth} \stopMyColumns \stoptext
On 10/16/2017 05:59 PM, Fabrice Couvreur wrote:
Hello, I have printed this document and the page on the back is printed upside down in fact you have to turn the page to read it. How to correct this ? Thank you Fabrice
\setuppapersize[A4,landscape]
Hi Fabrice, [the command above is the only relevant one, lanscape page orientation.] If you use a recent version of Acrobat, you may use: \setupinteractionscreen[option=landscape] This will automatically print it in the right way. In that case, you don’t have to select anything in Acrobat, the program will read it from the PDF document itself. If you use another viewer, select flip long edge of the paper. Just in case it helps, Pablo -- http://www.ousia.tk
Hi Pablo,
I'm not sure I understand but I'll test tomorrow in high school.
With the file below, using what you offer, will the dimensions of my page
be respected ?
\setuplayout
[header=\zeropoint,
headerdistance=\lineheight,
backspace=2cm,
width=middle,
topspace=\dimexpr 2cm-\headerheight-\headerdistance\relax,
footer=\lineheight,
height=middle]
\setupinteractionscreen[option=landscape]
\setuppagenumbering[alternative=,location=]
\definemixedcolumns
[MyColumns]
[
n=2,
separator=rule,
rulecolor=,
balance=yes,
]
\setupalign[verytolerant,stretch,hanging]
\starttext
\startMyColumns
\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
\dorecurse{6}{\input knuth}
\stopMyColumns
\stoptext
2017-10-16 19:35 GMT+02:00 Pablo Rodriguez
On 10/16/2017 05:59 PM, Fabrice Couvreur wrote:
Hello, I have printed this document and the page on the back is printed upside down in fact you have to turn the page to read it. How to correct this ? Thank you Fabrice
\setuppapersize[A4,landscape]
Hi Fabrice,
[the command above is the only relevant one, lanscape page orientation.]
If you use a recent version of Acrobat, you may use:
\setupinteractionscreen[option=landscape]
This will automatically print it in the right way. In that case, you don’t have to select anything in Acrobat, the program will read it from the PDF document itself.
If you use another viewer, select flip long edge of the paper.
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 ____________________________________________________________ _______________________
Hi Pablo,
I printed the file at my high school yesterday and the output is not the
one expected. I get a document in portrait format and the mathematical
formulas overflow in the other column.
Fabrice
2017-10-16 20:53 GMT+02:00 Fabrice Couvreur
Hi Pablo, I'm not sure I understand but I'll test tomorrow in high school. With the file below, using what you offer, will the dimensions of my page be respected ?
\setuplayout [header=\zeropoint, headerdistance=\lineheight, backspace=2cm, width=middle, topspace=\dimexpr 2cm-\headerheight-\headerdistance\relax, footer=\lineheight, height=middle]
\setupinteractionscreen[option=landscape]
\setuppagenumbering[alternative=,location=]
\definemixedcolumns [MyColumns] [ n=2, separator=rule, rulecolor=, balance=yes, ]
\setupalign[verytolerant,stretch,hanging]
\starttext \startMyColumns \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 \dorecurse{6}{\input knuth} \stopMyColumns \stoptext
2017-10-16 19:35 GMT+02:00 Pablo Rodriguez
: On 10/16/2017 05:59 PM, Fabrice Couvreur wrote:
Hello, I have printed this document and the page on the back is printed upside down in fact you have to turn the page to read it. How to correct this ? Thank you Fabrice
\setuppapersize[A4,landscape]
Hi Fabrice,
[the command above is the only relevant one, lanscape page orientation.]
If you use a recent version of Acrobat, you may use:
\setupinteractionscreen[option=landscape]
This will automatically print it in the right way. In that case, you don’t have to select anything in Acrobat, the program will read it from the PDF document itself.
If you use another viewer, select flip long edge of the paper.
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/list info/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ____________________________________________________________ _______________________
Hi,
With this
\setuppapersize[A4,landscape]
\setupinteractionscreen[option=landscape]
I get a double-sided page that I can read without having to return the
page on the back. But I wish I could fold the sheet to have a booklet.
The output is:
1 | 2
3 | 4
it would be necessary to have:
3 | 4
1 | 2
Difficult to explain without showing. Is it possible ?
Thank you
Fabrice
2017-10-18 9:05 GMT+02:00 Fabrice Couvreur
Hi Pablo, I printed the file at my high school yesterday and the output is not the one expected. I get a document in portrait format and the mathematical formulas overflow in the other column. Fabrice
2017-10-16 20:53 GMT+02:00 Fabrice Couvreur
: Hi Pablo, I'm not sure I understand but I'll test tomorrow in high school. With the file below, using what you offer, will the dimensions of my page be respected ?
\setuplayout [header=\zeropoint, headerdistance=\lineheight, backspace=2cm, width=middle, topspace=\dimexpr 2cm-\headerheight-\headerdistance\relax, footer=\lineheight, height=middle]
\setupinteractionscreen[option=landscape]
\setuppagenumbering[alternative=,location=]
\definemixedcolumns [MyColumns] [ n=2, separator=rule, rulecolor=, balance=yes, ]
\setupalign[verytolerant,stretch,hanging]
\starttext \startMyColumns \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 \dorecurse{6}{\input knuth} \stopMyColumns \stoptext
2017-10-16 19:35 GMT+02:00 Pablo Rodriguez
: On 10/16/2017 05:59 PM, Fabrice Couvreur wrote:
Hello, I have printed this document and the page on the back is printed upside down in fact you have to turn the page to read it. How to correct this ? Thank you Fabrice
\setuppapersize[A4,landscape]
Hi Fabrice,
[the command above is the only relevant one, lanscape page orientation.]
If you use a recent version of Acrobat, you may use:
\setupinteractionscreen[option=landscape]
This will automatically print it in the right way. In that case, you don’t have to select anything in Acrobat, the program will read it from the PDF document itself.
If you use another viewer, select flip long edge of the paper.
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/list info/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ____________________________________________________________ _______________________
On 10/18/2017 06:00 PM, Fabrice Couvreur wrote:
Hi, With this
\setuppapersize[A4,landscape] \setupinteractionscreen[option=landscape]
I get a double-sided page that I can read without having to return the page on the back. But I wish I could fold the sheet to have a booklet.
Difficult to explain without showing. Is it possible ?
Hi Fabrice, for a booklet I would recommend imposition. 1. Generate the document in the standard way (no landscape). 2. Impose it using the following code: \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 A sample for document would be: \setupbodyfont[600pt] \starttext \dorecurse{4}{\startstandardmakeup[style={\bf\ss}, align=center] \recurselevel \stopstandardmakeup} \stoptext Althought the paper size from the document is A4, imposition handles it as A5, so it works fine. BTW, page order in the final booklet is different (you may see it yourself :-)). I hope it helps, Pablo -- http://www.ousia.tk
Hi Pablo,
Sorry for the late response. I did some tests before answering to
understand your explanations.
- With the commands \ setuppapersize [A4, landscape] and \
setupinteractionscreen [option = landscape] and without selecting anything
in Acrobat, I get the desired double-sided document
- 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
- With the command \ setuppapersize [A4, landscape] and without selecting
anything in Acrobat, I get two documents in landscape mode in the same
direction
I think it's clear now, thank you.
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
###################################
document.tex
###################################
\definemixedcolumns
[MyColumns]
[
n=2,
separator=rule,
rulecolor=,
balance=yes,
]
\setupalign[verytolerant,stretch,hanging]
\starttext
\startMyColumns
\dorecurse{6}{\input knuth}
\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
\stopMyColumns
\stoptext
Fabrice
2017-10-18 18:44 GMT+02:00 Pablo Rodriguez
On 10/18/2017 06:00 PM, Fabrice Couvreur wrote:
Hi, With this
\setuppapersize[A4,landscape] \setupinteractionscreen[option=landscape]
I get a double-sided page that I can read without having to return the page on the back. But I wish I could fold the sheet to have a booklet.
Difficult to explain without showing. Is it possible ?
Hi Fabrice,
for a booklet I would recommend imposition.
1. Generate the document in the standard way (no landscape).
2. Impose it using the following code:
\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
A sample for document would be:
\setupbodyfont[600pt] \starttext \dorecurse{4}{\startstandardmakeup[style={\bf\ss}, align=center] \recurselevel \stopstandardmakeup} \stoptext
Althought the paper size from the document is A4, imposition handles it as A5, so it works fine.
BTW, page order in the final booklet is different (you may see it yourself :-)).
I hope 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 ____________________________________________________________ _______________________
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-... is the basis to be imposed in the final booklet https://github.com/ousia/from-pandoc-to-context/blob/master/doc/from-pandoc-.... The approach I’m suggesting is simpler and easier to implement. Just in case it helps, Pablo -- http://www.ousia.tk
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 ____________________________________________________________ _______________________
On 10/23/2017 12:34 PM, Fabrice Couvreur wrote:
Hi Pablo, Thank you for the links and for your help. I'm going to look at Metafun for the vertical line.
Hi Fabrice, I know that curiosity killed the cat, but why do you need the vertical line? Pablo -- http://www.ousia.tk
Hi Pablo,
I like to separate so that students concentrate their reading, but it's my
point of view that is not scientific.
Fabrice
2017-10-23 17:22 GMT+02:00 Pablo Rodriguez
On 10/23/2017 12:34 PM, Fabrice Couvreur wrote:
Hi Pablo, Thank you for the links and for your help. I'm going to look at Metafun for the vertical line.
Hi Fabrice,
I know that curiosity killed the cat, but why do you need the vertical line?
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 ____________________________________________________________ _______________________
On 10/18/2017 09:05 AM, Fabrice Couvreur wrote:
Hi Pablo, I printed the file at my high school yesterday and the output is not the one expected. I get a document in portrait format and the mathematical formulas overflow in the other column.
Sorry, Fabrice, but I’m afraid that you switched topics. In your first message (https://mailman.ntg.nl/pipermail/ntg-context/2017/090051.html), you were interested in (duplex) printing. My reply answered that question. In your second message (your reply to my answer), you wanted to know about a sample document. Let me explain what went wrong: First of all, paper orientation is totally different from how the printer should rotate the paper when printing the document. My first sample would be printed fine if you have a decent Acrobat version and a printer that can print on both sides of the paper sheet automatically (duplex printing). Your second sample from only needs \setuppapersize[A4, landscape] at the very beginning. Since it wasn’t added, page orientation is portrait by default. [landscape] in \setuppapersize defines the page orientation. Adding it should change the display in your PDF browser. [option=landscape] in \setupinteractionscreen won’t change anything in the display of the document. The info added by this command is only relevant if and only if the PDF document is printed. Both commands are independent and related to different features. If you want to have lanscape page orientation, use \setuppapersize. If you want double sided printing, you need \setupinteractionscreen. For PDF print options, you may be interested in http://wiki.contextgarden.net/PDF_Print_Options. Let me know whether this is clear now. Pablo -- http://www.ousia.tk
participants (2)
-
Fabrice Couvreur
-
Pablo Rodriguez