* Centring text on a page
@ 2006-07-20 3:51 Jeffrey Drake
2006-07-20 9:16 ` Renaud AUBIN
2006-07-20 11:21 ` Wolfgang Schuster
0 siblings, 2 replies; 3+ messages in thread
From: Jeffrey Drake @ 2006-07-20 3:51 UTC (permalink / raw)
I have a title page I would like to centre some text on. I can easily
do the horizontal text with:
\startalignment[middle]
...
\stopalignment
But I can't figure out how to get it to do verticle centring.
A \startlocal block modifying the layout might work, but I wonder if
there is a better way.
Regards,
Jeffrey Drake
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Centring text on a page
2006-07-20 3:51 Centring text on a page Jeffrey Drake
@ 2006-07-20 9:16 ` Renaud AUBIN
2006-07-20 11:21 ` Wolfgang Schuster
1 sibling, 0 replies; 3+ messages in thread
From: Renaud AUBIN @ 2006-07-20 9:16 UTC (permalink / raw)
Hi Jeffrey,
* The long:
My title page is not perfect but it can help:
t-title.tex:
\unprotect
\def\doctitle#1{\gdef\@title{#1}}
\def\author#1{\gdef\@author{#1}}
\def\docdate#1{\gdef\@docdate{#1}}
\docdate{\today} % Default to today unless specified otherwise.
%\def\UVSQLogo{\externalfigure[src/images/logouvsq.pdf][height=2cm]}
%\definelogo[logo][top][left][command=\UVSQLogo]
\def\maketitle{%
\setupinterlinespace[big]
\showframe
\startalignment[center]
\vskip10mm plus2fil {\rm \bfd \@title \par}
\vskip10mm plus2fil {\rm \bfd THÈSE \par}
\vskip5mm plus2fil {\tfa présentée et soutenue publiquement le
\@docdate \par}
\vskip3mm plus1fil {\tfa pour l'obtention du \par}
\vskip5mm plus1fil {\rm \bfb Doctorat de l'université de
Versailles-Saint-Quentin-en-Yvelines \par}
\vskip3mm {\rm \bfb(Spécialité robotique)}
\vskip3mm plus1fil {\tfb par \par}
\vskip3mm plus1fil {\tfa \@author \par}
\stopalignment
\vskip5mm plus2fil \hskip1cm {\bfa Composition du jury \par}
\definefloat[centered][table]
\setupfloat[centered][default={none}]
\placecentered{testtest}{
\starttabulate[|l|l|l|]
\NC {\sl Directeur de thèse :} \NC Truc {\sc Machin} \NC Professeur
UVSQ \NC \NR
\NC {\sl Président :} \NC Prénom {\sc Nom} \NC UVSQ \NC \NR
\NC \NC \NC \NC \NR
\NC {\sl Rapporteurs :} \NC M. Prénom {\sc Bidule} \NC Professeur \NC \NR
\NC \NC Prénom {\sc Nom} \NC Professeur \NC \NR
\NC {\sl Examinateurs :} \NC Prénom {\sc Nom} \NC Professeur \NC \NR
\NC \NC Prénom {\sc Nom} \NC Professeur \NC \NR
\NC \NC Prénom {\sc Nom} \NC MCF \NC \NR
\NC {\sl Invités :} \NC Prénom {\sc Nom} \NC \NC \NR
\stoptabulate}
\vskip5mm plus2fil
}
%\placelogos[logo]
\protect
Then in your main doc or product:
\usemodule[title]
\doctitle{\setupinterlinespace[small]
Contribution à l'étude, à la simulation et à la commande d'un
robot de type serpent
}
\author{Renaud {\sc Aubin}}
\docdate{\date[d=10,m=05,y=2060]}
\starttext
\startstandardmakeup
\maketitle
\stopstandardmakeup
\stoptext
* The short:
Use \hbox{} and \vfill (I can make an example if you want)
Cheers,
Renaud
Jeffrey Drake a écrit :
>I have a title page I would like to centre some text on. I can easily
>do the horizontal text with:
>
>\startalignment[middle]
>
>...
>
>\stopalignment
>
>But I can't figure out how to get it to do verticle centring.
>
>A \startlocal block modifying the layout might work, but I wonder if
>there is a better way.
>
>Regards,
>Jeffrey Drake
>_______________________________________________
>ntg-context mailing list
>ntg-context@ntg.nl
>http://www.ntg.nl/mailman/listinfo/ntg-context
>
>
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Centring text on a page
2006-07-20 3:51 Centring text on a page Jeffrey Drake
2006-07-20 9:16 ` Renaud AUBIN
@ 2006-07-20 11:21 ` Wolfgang Schuster
1 sibling, 0 replies; 3+ messages in thread
From: Wolfgang Schuster @ 2006-07-20 11:21 UTC (permalink / raw)
[-- Attachment #1.1: Type: text/plain, Size: 959 bytes --]
2006/7/20, Jeffrey Drake <jptdrake@gmail.com>:
>
> I have a title page I would like to centre some text on. I can easily
> do the horizontal text with:
>
> \startalignment[middle]
>
> ...
>
> \stopalignment
>
> But I can't figure out how to get it to do verticle centring.
>
> A \startlocal block modifying the layout might work, but I wonder if
> there is a better way.
>
> Regards,
> Jeffrey Drake
2006/7/20, Jeffrey Drake <jptdrake@gmail.com>:
> I have a title page I would like to centre some text on. I can easily
> do the horizontal text with:
>
> \startalignment[middle]
>
> ...
>
> \stopalignment
>
> But I can't figure out how to get it to do verticle centring.
>
> A \startlocal block modifying the layout might work, but I wonder if
> there is a better way.
You can use
\startstandardmakeup[align=middle]
In the middle
\stopstandardmakeup
or
\centerbox{In the middle}
Gruß
Wolfgang
[-- Attachment #1.2: Type: text/html, Size: 1626 bytes --]
[-- Attachment #2: Type: text/plain, Size: 139 bytes --]
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-07-20 11:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-20 3:51 Centring text on a page Jeffrey Drake
2006-07-20 9:16 ` Renaud AUBIN
2006-07-20 11:21 ` 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).