Dear list, I have the following sample: \definemakeup [custom] [location=middle, width=.5\textwidth] \starttext \startmakeup [custom] \input ward \stopmakeup \stoptext How can I center the makeup in the page? \definemakeup[custom][align=middle] centers the lines, but this is something different. It is not a question of paragraph orientation. It is rather a question of placing the makeup in the middle of the page (also horizontally) Many thanks for your help, Pablo -- http://www.ousia.tk
On Sun, 14 Sep 2014, Pablo Rodriguez wrote:
Dear list,
I have the following sample:
\definemakeup [custom] [location=middle, width=.5\textwidth]
\starttext
\startmakeup [custom] \input ward \stopmakeup
\stoptext
How can I center the makeup in the page?
\definemakeup[custom][align=middle] centers the lines, but this is something different.
It is not a question of paragraph orientation. It is rather a question of placing the makeup in the middle of the page (also horizontally)
(Untested): \definemakeup[...][top=\vss, bottom=\vss] Aditya
Am 14.09.2014 um 17:38 schrieb Pablo Rodriguez
Dear list,
I have the following sample:
\definemakeup [custom] [location=middle, width=.5\textwidth]
\starttext
\startmakeup [custom] \input ward \stopmakeup
\stoptext
How can I center the makeup in the page?
\definemakeup[custom][align=middle] centers the lines, but this is something different.
It is not a question of paragraph orientation. It is rather a question of placing the makeup in the middle of the page (also horizontally)
You have to change the layout for the page with your makeup environments and set both margins to the same value. Changing the layout for a makeup environment is very easy because when you create a new environment with \definemakup context creates also a new page layout with the same name which can be changed with the \setuplayout command. \definemakeup [custom] [width=.5\textwidth] \setuplayout [custom] [width=middle] \showframe \starttext \startmakeup [custom] \input ward \stopmakeup \input ward \stoptext Wolfgang
On 09/14/2014 07:57 PM, Wolfgang Schuster wrote:
Am 14.09.2014 um 17:38 schrieb Pablo Rodriguez
: [...] How can I center the makeup in the page?
You have to change the layout for the page with your makeup environments and set both margins to the same value. Changing the layout for a makeup environment is very easy because when you create a new environment with \definemakup context creates also a new page layout with the same name which can be changed with the \setuplayout command.
\definemakeup [custom] [width=.5\textwidth]
\setuplayout [custom] [width=middle]
\showframe
\starttext
\startmakeup [custom] \input ward \stopmakeup
\input ward
\stoptext
Many thanks for your reply, Wolfgang. I’m afraid that it doesn’t work using latest beta from 2014.09.06 20:59. Is this a bug? Many thanks for your help, Pablo -- http://www.ousia.tk
Am 14.09.2014 um 21:34 schrieb Pablo Rodriguez
On 09/14/2014 07:57 PM, Wolfgang Schuster wrote:
Am 14.09.2014 um 17:38 schrieb Pablo Rodriguez
: [...] How can I center the makeup in the page?
You have to change the layout for the page with your makeup environments and set both margins to the same value. Changing the layout for a makeup environment is very easy because when you create a new environment with \definemakup context creates also a new page layout with the same name which can be changed with the \setuplayout command.
\definemakeup [custom] [width=.5\textwidth]
\setuplayout [custom] [width=middle]
\showframe
\starttext
\startmakeup [custom] \input ward \stopmakeup
\input ward
\stoptext
Many thanks for your reply, Wolfgang.
I’m afraid that it doesn’t work using latest beta from 2014.09.06 20:59.
Is this a bug?
I didn’t notice your width setting for the makeup environment. What you try to achieve doesn’t work this way, when you want a narrow and centered are for the text you have to set wide margins in the layout, e.g. \definemakeup[custom] \setuplayout [custom] [backspace=6cm, width=middle] \showframe \starttext \startmakeup [custom] \input ward \stopmakeup \input ward \stoptext or you put the text in a centered framed text environment (your still need \setuplayout to get equal margins for the page), e.g. \definemakeup[custom] \setuplayout [custom] [width=middle] \showframe \starttext \startmakeup [custom] \startframedtext[middle][frame=off,width=.5\textwidth] \input ward \stopframedtext \stopmakeup \input ward \stoptext Wolfgang
On 09/14/2014 10:10 PM, Wolfgang Schuster wrote:
I didn’t notice your width setting for the makeup environment. What you try to achieve doesn’t work this way, when you want a narrow and centered are for the text you have to set wide margins in the layout, e.g. [...] or you put the text in a centered framed text environment (your still need \setuplayout to get equal margins for the page), e.g. [...]
Many thanks for your reply, Wolfgang. Everything works fine now. I prefer the pure layout option (without framed text). It is simpler. Many thanks again for your help, Pablo -- http://www.ousia.tk
participants (3)
-
Aditya Mahajan
-
Pablo Rodriguez
-
Wolfgang Schuster