* Help with Long Titles
@ 2012-10-19 0:29 Malte Stien
2012-10-19 6:11 ` Otared Kavian
2012-10-19 6:59 ` Wolfgang Schuster
0 siblings, 2 replies; 5+ messages in thread
From: Malte Stien @ 2012-10-19 0:29 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hello,
I am using a the startsetups mechanism that defines a title page in my environment file. That way anyone creating a document in my organisation can create a new document and get a consistent look of the title page. There is one problem with this: On occasions I get very long document titles and then the title extends over the left-hand edge of the page. I would like to incorporate a new line into the document title; I'd even be happy to do that manually, ie. it does not have to be automatic.
There are two problems here:
1. I had not had any success with putting a newline into the title; it will need to be not where the titlepage is defined but where it is used (see below). I have tried \par and \\ and none of them work.
2. Assuming I found a way to do this, I would need to also find a way of reducing the \blank[170mm] by the amount that the second line of the title takes up to render the information down the bottom in roughly the same place. If push comes to shove, I could create a second titlepage setup for two-line titles, but I much rather not. Is there a solution to that? Is there maybe a way to position the information down the bottom absolute?
Here is minimal example (or something very close to that):
% The title page
\startsetups titlepage
\startstandardmakeup[style=sans]
\blank[50mm]
\rightaligned{\bfd\getvariable{titlepage}{project}}
\textrule
\rightaligned{\tfc\color[darkgray]{\getvariable{titlepage}{title}}}
\blank[170mm]
\starttabulate[|plf{\tfa}|prf{\tfa}|]
\NC\tfa\copyright\thinspace Pearson Pty Ltd \NC \getvariable{titlepage}{author} \NC\NR
\TB[small]
\NC \color[darkgray]{Commercial in Confidence} \NC \color[darkgray]{\getvariable{titlepage}{version}} \NC\NR
\stoptabulate
\tfx Uncontrolled copy if printed.
\stopstandardmakeup
\stopsetups
% ...and this is how it is being used
\starttext
\setvariables
[titlepage]
[set=\texsetup{titlepage},
project={Pearson},
title={This document title is very long, so I'd like to \par break it into two lines},
author={Tony Mueller},
version={Version 1.0.0}]
\stoptext
Thank you very much for all the help I have received so far.
Regards,
Malte.
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Help with Long Titles
2012-10-19 0:29 Help with Long Titles Malte Stien
@ 2012-10-19 6:11 ` Otared Kavian
2012-10-19 6:59 ` Wolfgang Schuster
1 sibling, 0 replies; 5+ messages in thread
From: Otared Kavian @ 2012-10-19 6:11 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi Malte,
If you say
\setvariables
[titlepage]
[set=\texsetup{titlepage},
project={Pearson},
title={\startframedtext[width=\textwidth,frame=off] This document title is very long, \crlf so I'd like to break it into two lines \stopframedtext},
author={Tony Mueller},
version={Version 1.0.0}]
the title is broken where you put \crlf.
Is that what you want?
Best regards: OK
On 19 oct. 2012, at 02:29, Malte Stien <malte@stien.de> wrote:
> Hello,
>
> I am using a the startsetups mechanism that defines a title page in my environment file. That way anyone creating a document in my organisation can create a new document and get a consistent look of the title page. There is one problem with this: On occasions I get very long document titles and then the title extends over the left-hand edge of the page. I would like to incorporate a new line into the document title; I'd even be happy to do that manually, ie. it does not have to be automatic.
>
> There are two problems here:
> 1. I had not had any success with putting a newline into the title; it will need to be not where the titlepage is defined but where it is used (see below). I have tried \par and \\ and none of them work.
> 2. Assuming I found a way to do this, I would need to also find a way of reducing the \blank[170mm] by the amount that the second line of the title takes up to render the information down the bottom in roughly the same place. If push comes to shove, I could create a second titlepage setup for two-line titles, but I much rather not. Is there a solution to that? Is there maybe a way to position the information down the bottom absolute?
>
> Here is minimal example (or something very close to that):
>
> % The title page
> \startsetups titlepage
> \startstandardmakeup[style=sans]
> \blank[50mm]
> \rightaligned{\bfd\getvariable{titlepage}{project}}
> \textrule
> \rightaligned{\tfc\color[darkgray]{\getvariable{titlepage}{title}}}
> \blank[170mm]
> \starttabulate[|plf{\tfa}|prf{\tfa}|]
> \NC\tfa\copyright\thinspace Pearson Pty Ltd \NC \getvariable{titlepage}{author} \NC\NR
> \TB[small]
> \NC \color[darkgray]{Commercial in Confidence} \NC \color[darkgray]{\getvariable{titlepage}{version}} \NC\NR
> \stoptabulate
> \tfx Uncontrolled copy if printed.
> \stopstandardmakeup
> \stopsetups
>
> % ...and this is how it is being used
> \starttext
> \setvariables
> [titlepage]
> [set=\texsetup{titlepage},
> project={Pearson},
> title={This document title is very long, so I'd like to \par break it into two lines},
> author={Tony Mueller},
> version={Version 1.0.0}]
> \stoptext
>
> Thank you very much for all the help I have received so far.
>
> Regards,
> Malte.
>
> ___________________________________________________________________________________
> 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://tex.aanhet.net
> archive : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___________________________________________________________________________________
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Help with Long Titles
2012-10-19 0:29 Help with Long Titles Malte Stien
2012-10-19 6:11 ` Otared Kavian
@ 2012-10-19 6:59 ` Wolfgang Schuster
1 sibling, 0 replies; 5+ messages in thread
From: Wolfgang Schuster @ 2012-10-19 6:59 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 19.10.2012 um 02:29 schrieb Malte Stien <malte@stien.de>:
> Hello,
>
> I am using a the startsetups mechanism that defines a title page in my environment file. That way anyone creating a document in my organisation can create a new document and get a consistent look of the title page. There is one problem with this: On occasions I get very long document titles and then the title extends over the left-hand edge of the page. I would like to incorporate a new line into the document title; I'd even be happy to do that manually, ie. it does not have to be automatic.
>
> There are two problems here:
> 1. I had not had any success with putting a newline into the title; it will need to be not where the titlepage is defined but where it is used (see below). I have tried \par and \\ and none of them work.
> 2. Assuming I found a way to do this, I would need to also find a way of reducing the \blank[170mm] by the amount that the second line of the title takes up to render the information down the bottom in roughly the same place. If push comes to shove, I could create a second titlepage setup for two-line titles, but I much rather not. Is there a solution to that? Is there maybe a way to position the information down the bottom absolute?
>
> Here is minimal example (or something very close to that):
>
> % The title page
> \startsetups titlepage
> \startstandardmakeup[style=sans]
> \blank[50mm]
> \rightaligned{\bfd\getvariable{titlepage}{project}}
> \textrule
> \rightaligned{\tfc\color[darkgray]{\getvariable{titlepage}{title}}}
Replace the line above with this block:
\startframed[frame=off,align=normal,offset=none,foregroundstyle=\tfc,foregroundcolor=darkgray]
\getvariable{titlepage}{title}
\stopframed
Wolfgang
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <mailman.566.1350639008.2084.ntg-context@ntg.nl>]
* Re: Help with Long Titles
[not found] <mailman.566.1350639008.2084.ntg-context@ntg.nl>
@ 2012-10-21 10:51 ` Malte Stien
2012-10-21 13:56 ` Wolfgang Schuster
0 siblings, 1 reply; 5+ messages in thread
From: Malte Stien @ 2012-10-21 10:51 UTC (permalink / raw)
To: ntg-context
Wolfgang,
Thank you. That is very close.
> Replace the line above with this block:
>
> \startframed[frame=off,align=normal,offset=none,foregroundstyle=\tfc,foregroundcolor=darkgray]
> \getvariable{titlepage}{title}
> \stopframed
That left-aligns it; I need to right align it. Already tried align=right and align=flushright, none of which worked. I am just guessing here as there does not seem to be any documentation available on \startframed. How can I right-align this?
Thank you.
Malte.
Am 19.10.2012 um 02:29 schrieb Malte Stien <malte@stien.de>:
> Hello,
>
> I am using a the startsetups mechanism that defines a title page in my environment file. That way anyone creating a document in my organisation can create a new document and get a consistent look of the title page. There is one problem with this: On occasions I get very long document titles and then the title extends over the left-hand edge of the page. I would like to incorporate a new line into the document title; I'd even be happy to do that manually, ie. it does not have to be automatic.
>
> There are two problems here:
> 1. I had not had any success with putting a newline into the title; it will need to be not where the titlepage is defined but where it is used (see below). I have tried \par and \\ and none of them work.
> 2. Assuming I found a way to do this, I would need to also find a way of reducing the \blank[170mm] by the amount that the second line of the title takes up to render the information down the bottom in roughly the same place. If push comes to shove, I could create a second titlepage setup for two-line titles, but I much rather not. Is there a solution to that? Is there maybe a way to position the information down the bottom absolute?
>
> Here is minimal example (or something very close to that):
>
> % The title page
> \startsetups titlepage
> \startstandardmakeup[style=sans]
> \blank[50mm]
> \rightaligned{\bfd\getvariable{titlepage}{project}}
> \textrule
> \rightaligned{\tfc\color[darkgray]{\getvariable{titlepage}{title}}}
Replace the line above with this block:
\startframed[frame=off,align=normal,offset=none,foregroundstyle=\tfc,foregroundcolor=darkgray]
\getvariable{titlepage}{title}
\stopframed
Wolfgang
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Help with Long Titles
2012-10-21 10:51 ` Malte Stien
@ 2012-10-21 13:56 ` Wolfgang Schuster
0 siblings, 0 replies; 5+ messages in thread
From: Wolfgang Schuster @ 2012-10-21 13:56 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 21.10.2012 um 12:51 schrieb Malte Stien <malte@stien.de>:
> Wolfgang,
>
> Thank you. That is very close.
>
>> Replace the line above with this block:
>>
>> \startframed[frame=off,align=normal,offset=none,foregroundstyle=\tfc,foregroundcolor=darkgray]
>> \getvariable{titlepage}{title}
>> \stopframed
>
> That left-aligns it; I need to right align it. Already tried align=right and align=flushright, none of which worked. I am just guessing here as there does not seem to be any documentation available on \startframed. How can I right-align this?
When I use “align=flushright” the text is right aligned but you have change to change also the width with “width=broad”.
\startframed … \stopframed is only a different way to write \framed{…}.
Wolfgang
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-10-21 13:56 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-19 0:29 Help with Long Titles Malte Stien
2012-10-19 6:11 ` Otared Kavian
2012-10-19 6:59 ` Wolfgang Schuster
[not found] <mailman.566.1350639008.2084.ntg-context@ntg.nl>
2012-10-21 10:51 ` Malte Stien
2012-10-21 13:56 ` Wolfgang Schuster
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).