* Left and centered text on the same line
@ 2011-03-05 22:01 C.
2011-03-05 23:07 ` Aditya Mahajan
2011-03-06 4:44 ` Wolfgang Schuster
0 siblings, 2 replies; 4+ messages in thread
From: C. @ 2011-03-05 22:01 UTC (permalink / raw)
To: Context-Mailinglist
[-- Attachment #1.1: Type: text/plain, Size: 698 bytes --]
Good evening,
How can I place left aligned and centered text on one line?
So that the centered text is in the same place as with \startaligned[middle]
I experimented with the following code:
\startalignment[middle]
I'm centered % this serves as a reference, its right in the middle of the
paper
\stopalignment
% now to the tricky part
\starttabulate[|lw(\dimexpr 0.5\textwidth\relax)|c|]
\NC I'm left \NC I'm centered \NC \NR
\NC I'm also left \NC I'm also centered \NC \NR
\stoptabulate
I tried various versions with the dimensions, subtracting \leftmarginwidth
and what not. to no avail.
The tabulate solution is always a tad off. What am I missing here?
-Christian
[-- Attachment #1.2: Type: text/html, Size: 3408 bytes --]
[-- Attachment #2: Type: text/plain, Size: 486 bytes --]
___________________________________________________________________________________
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] 4+ messages in thread
* Re: Left and centered text on the same line
2011-03-05 22:01 Left and centered text on the same line C.
@ 2011-03-05 23:07 ` Aditya Mahajan
2011-03-06 4:44 ` Wolfgang Schuster
1 sibling, 0 replies; 4+ messages in thread
From: Aditya Mahajan @ 2011-03-05 23:07 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Sat, 5 Mar 2011, C. wrote:
> Good evening,
>
>
>
> How can I place left aligned and centered text on one line?
\starttext
\hbox to \textwidth{\rlap{Left aligned} \hss Center aligned \hss}
\stoptext
Aditya
___________________________________________________________________________________
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] 4+ messages in thread
* Re: Left and centered text on the same line
2011-03-05 22:01 Left and centered text on the same line C.
2011-03-05 23:07 ` Aditya Mahajan
@ 2011-03-06 4:44 ` Wolfgang Schuster
2011-03-06 10:57 ` C.
1 sibling, 1 reply; 4+ messages in thread
From: Wolfgang Schuster @ 2011-03-06 4:44 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 350 bytes --]
Am 05.03.2011 um 23:01 schrieb C.:
> Good evening,
>
> How can I place left aligned and centered text on one line?
> So that the centered text is in the same place as with \startaligned[middle]
\starttext
\startoverlay
{\leftaligned{left}}
{\midaligned{middle}}
% {\rightaligned{right}}
\stopoverlay
\stoptext
Wolfgang
[-- Attachment #1.2: Type: text/html, Size: 2040 bytes --]
[-- Attachment #2: Type: text/plain, Size: 486 bytes --]
___________________________________________________________________________________
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] 4+ messages in thread
* Re: Left and centered text on the same line
2011-03-06 4:44 ` Wolfgang Schuster
@ 2011-03-06 10:57 ` C.
0 siblings, 0 replies; 4+ messages in thread
From: C. @ 2011-03-06 10:57 UTC (permalink / raw)
To: 'mailing list for ConTeXt users'
Thank you Wolfgang and Aditya, both solutions work.
___________________________________________________________________________________
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] 4+ messages in thread
end of thread, other threads:[~2011-03-06 10:57 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-05 22:01 Left and centered text on the same line C.
2011-03-05 23:07 ` Aditya Mahajan
2011-03-06 4:44 ` Wolfgang Schuster
2011-03-06 10:57 ` C.
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).