* How to create horizontal line for signature?
@ 2011-12-13 12:36 Paul Menzel
2011-12-13 12:49 ` Wolfgang Schuster
0 siblings, 1 reply; 4+ messages in thread
From: Paul Menzel @ 2011-12-13 12:36 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1.1.1: Type: text/plain, Size: 1186 bytes --]
Dear ConTeXt folks,
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.
Something like the examples posted for LaTeX on Stack Exchange [3] for
ConTeXt would be nice.
Thanks,
Paul
[1] http://wiki.contextgarden.net/FAQ#How_can_I_get_a_horizontal_space_with_a_defined_width.2C_so_as_ex._.22.5Chspace.7B3em.7D.22_or_.22.5Chspace.2A.7B3em.7D.22_in_LaTeX.3F
[2] http://wiki.contextgarden.net/Framed
[3] http://tex.stackexchange.com/questions/35942/how-to-create-a-signature-date-page
[-- Attachment #1.1.2: signature.pdf --]
[-- Type: application/pdf, Size: 8476 bytes --]
[-- Attachment #1.1.3: signature.tex --]
[-- Type: text/x-tex, Size: 255 bytes --]
\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
[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 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: How to create horizontal line for signature?
2011-12-13 12:36 How to create horizontal line for signature? Paul Menzel
@ 2011-12-13 12:49 ` Wolfgang Schuster
2011-12-13 12:58 ` [solved] " Paul Menzel
0 siblings, 1 reply; 4+ messages in thread
From: Wolfgang Schuster @ 2011-12-13 12:49 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 13.12.2011 um 13:36 schrieb Paul Menzel:
> Dear ConTeXt folks,
>
>
> 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.
> 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
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] 4+ messages in thread
* Re: [solved] How to create horizontal line for signature?
2011-12-13 12:49 ` Wolfgang Schuster
@ 2011-12-13 12:58 ` Paul Menzel
2011-12-13 18:40 ` Philipp A.
0 siblings, 1 reply; 4+ messages in thread
From: Paul Menzel @ 2011-12-13 12:58 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1.1.1: Type: text/plain, Size: 1667 bytes --]
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
[-- Attachment #1.1.2: signature.pdf --]
[-- Type: application/pdf, Size: 9291 bytes --]
[-- Attachment #1.1.3: signature.tex --]
[-- Type: text/x-tex, Size: 292 bytes --]
\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
[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 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: [solved] How to create horizontal line for signature?
2011-12-13 12:58 ` [solved] " Paul Menzel
@ 2011-12-13 18:40 ` Philipp A.
0 siblings, 0 replies; 4+ messages in thread
From: Philipp A. @ 2011-12-13 18:40 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 356 bytes --]
i always use tikz anyway, so i can as well use it for something like this:
\tikz[baseline=(start)]\draw (0,0) coordinate (start) edge[label=below:Your
Name here] (4cm,0);
untested, tell me if it doesn’t work.
it should do the following: name a coordinate “start” and draw a line
horizontally 3cm with “Your Name here” as label below.
[-- Attachment #1.2: Type: text/html, Size: 778 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 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
end of thread, other threads:[~2011-12-13 18:40 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-13 12:36 How to create horizontal line for signature? Paul Menzel
2011-12-13 12:49 ` Wolfgang Schuster
2011-12-13 12:58 ` [solved] " Paul Menzel
2011-12-13 18:40 ` Philipp A.
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).