Am Dienstag, den 13.12.2011, 13:49 +0100 schrieb Wolfgang Schuster:
Am 13.12.2011 um 13:36 schrieb Paul Menzel:
sometimes you need to insert a line for signature. I could not find
anything usefull especially `\underbar{\hspace[10*\big]}` [2] did not
work. I ended up abusing `\framed` [3].
\starttext
\startstandardmakeup[align=right]
Alles rechtens. Everything is fine and nobody cheated.
\blank[medium]
London, den 28.\,June 2011
\blank[3*big]
\framed[width=5cm, frame=off, topframe=on]{\small John Doe}
\stopstandardmakeup
\stoptext
The down side is, that its widths is not perfectly aligned with the
location and date.
I guess there is something simpler to do it. I looked at Wolfgang’s
letter module but could not figure out how it is done there.
The module doesn’t draw a rule for the signature.
I see. I thought I was just missing something.
Something like the examples posted for LaTeX on Stack Exchange [3] for
ConTeXt would be nice.
\startTABLE[frame=off,align=middle]
\NC London, den 28.\,June 2011\NC\NR
\NC[height=1cm] \NC\NR
\NC[topframe=on,style=smallbodyfont] John Doe \NC\NR
\stopTABLE
As always thank you so much for the fast answer. I am always a bit
reluctant to use tables for this, thinking of it only as displaying data
with a table. This is from back in the HTML days were tables were used
for formatting. But I guess tables are perfect for aligning things.
Thanks,
Paul
signature.pdf
Description: Adobe PDF document
\starttext
\startTABLE[frame=off,align=middle]
\NC London, den 28.\,June 2011\NC\NR
\NC[height=1cm] \NC\NR
\NC[topframe=on,style=smallbodyfont] John Doe \NC\NR
\stopTABLE
\blank[5*big]
\CONTEXT\ \contextmark\ \contextversion
\stoptext
signature.asc
Description: This is a digitally signed message part
___
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
___