ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* A thinner hrule for headers
@ 2013-03-24 12:32 Thomas Kreuzer
  2013-03-24 19:43 ` Marcin Borkowski
  2013-03-24 20:20 ` Otared Kavian
  0 siblings, 2 replies; 8+ messages in thread
From: Thomas Kreuzer @ 2013-03-24 12:32 UTC (permalink / raw)
  To: ntg-context

Hello everyone,

I'd like to know if it is possible to get a thinner hrule in headers (mkiv).

Right now I am using

\setupheader[after=\hrule]

replacing hrule with thinrule or hairline results in space below the 
header text and the line, and the line actually spans two lines.

How can I control the thickness of the line, I remember having read 
something about using frames, but I can't find the post anymore.

Thanks in advance, and regards,
Thomas

___________________________________________________________________________________
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] 8+ messages in thread

* Re: A thinner hrule for headers
  2013-03-24 12:32 A thinner hrule for headers Thomas Kreuzer
@ 2013-03-24 19:43 ` Marcin Borkowski
  2013-03-28 15:36   ` Thomas Kreuzer
  2013-03-28 21:58   ` Thomas Kreuzer
  2013-03-24 20:20 ` Otared Kavian
  1 sibling, 2 replies; 8+ messages in thread
From: Marcin Borkowski @ 2013-03-24 19:43 UTC (permalink / raw)
  To: ntg-context

Dnia 2013-03-24, o godz. 13:32:28
Thomas Kreuzer <thomas.kreuzer@rwth-aachen.de> napisał(a):

> Hello everyone,
> 
> I'd like to know if it is possible to get a thinner hrule in headers
> (mkiv).
> 
> Right now I am using
> 
> \setupheader[after=\hrule]

If this \hrule is TeX's primitive \hrule, then you can (maybe) type
[after={\hrule height 0.4pt\relax}] for the default (and change the
height for other dimensions).

That said, this is a low-level hack and not very ConTeXt-y (even if it
works, which I don't know.)

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University
___________________________________________________________________________________
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] 8+ messages in thread

* Re: A thinner hrule for headers
  2013-03-24 12:32 A thinner hrule for headers Thomas Kreuzer
  2013-03-24 19:43 ` Marcin Borkowski
@ 2013-03-24 20:20 ` Otared Kavian
  2013-03-24 20:35   ` Aditya Mahajan
  1 sibling, 1 reply; 8+ messages in thread
From: Otared Kavian @ 2013-03-24 20:20 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

Maybe you need something like \hairline:

\setupthinrules[height=.1pt,depth=.1pt]
\setupheader[after=\hairline]

You can also enclose your header in a \framed commande, such as
	\framed[frame=off,bottomframe=on]

Best regards: OK

On 24 mars 2013, at 13:32, Thomas Kreuzer <thomas.kreuzer@rwth-aachen.de> wrote:

> Hello everyone,
> 
> I'd like to know if it is possible to get a thinner hrule in headers (mkiv).
> 
> Right now I am using
> 
> \setupheader[after=\hrule]
> 
> replacing hrule with thinrule or hairline results in space below the header text and the line, and the line actually spans two lines.
> 
> How can I control the thickness of the line, I remember having read something about using frames, but I can't find the post anymore.
> 
> Thanks in advance, and regards,
> Thomas
> 
> ___________________________________________________________________________________
> 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] 8+ messages in thread

* Re: A thinner hrule for headers
  2013-03-24 20:20 ` Otared Kavian
@ 2013-03-24 20:35   ` Aditya Mahajan
  2013-03-24 21:07     ` Otared Kavian
  0 siblings, 1 reply; 8+ messages in thread
From: Aditya Mahajan @ 2013-03-24 20:35 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Sun, 24 Mar 2013, Otared Kavian wrote:

> You can also enclose your header in a \framed commande, such as
> 	\framed[frame=off,bottomframe=on]

A header is already enclosed in a frame! Something like

\setupbackgrounds[header][text][bottomframe=on, framethickness=0.4pt]

should work.

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] 8+ messages in thread

* Re: A thinner hrule for headers
  2013-03-24 20:35   ` Aditya Mahajan
@ 2013-03-24 21:07     ` Otared Kavian
  0 siblings, 0 replies; 8+ messages in thread
From: Otared Kavian @ 2013-03-24 21:07 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi Aditya,

Yes indeed you are right… 
	\setupbackgrounds[header][text][bottomframe=on, framethickness=0.4pt]
works fine but then the ruler of the bottomframe is too close to the text.
Since Thomas Kreuzer did not provide a minimal example, it is not clear what he wants exactly.

Best regards: OK

On 24 mars 2013, at 21:35, Aditya Mahajan <adityam@umich.edu> wrote:

> On Sun, 24 Mar 2013, Otared Kavian wrote:
> 
>> You can also enclose your header in a \framed commande, such as
>> 	\framed[frame=off,bottomframe=on]
> 
> A header is already enclosed in a frame! Something like
> 
> \setupbackgrounds[header][text][bottomframe=on, framethickness=0.4pt]
> 
> should work.
> 
> 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
> ___________________________________________________________________________________

___________________________________________________________________________________
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] 8+ messages in thread

* Re: A thinner hrule for headers
  2013-03-24 19:43 ` Marcin Borkowski
@ 2013-03-28 15:36   ` Thomas Kreuzer
  2013-03-29  9:31     ` Hans Hagen
  2013-03-28 21:58   ` Thomas Kreuzer
  1 sibling, 1 reply; 8+ messages in thread
From: Thomas Kreuzer @ 2013-03-28 15:36 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Am 3/24/2013 20:43, schrieb Marcin Borkowski:
> If this \hrule is TeX's primitive \hrule, then you can (maybe) type
> [after={\hrule height 0.4pt\relax}] for the default (and change the
> height for other dimensions).
>
> That said, this is a low-level hack and not very ConTeXt-y (even if it
> works, which I don't know.)
>
> Best,
>

Strangly, it DOES work for a value of 0.01pt (it looks like 0.2pt for 
framethickness), a value of 0.2pt doesn't make a noticable difference 
somehow.

This is the most convenient solution for me, but it has a weird 
aftertaste, given that I do nut understand why I have to give it such a 
low parameter.

Thank you very much,
Thomas

___________________________________________________________________________________
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] 8+ messages in thread

* Re: A thinner hrule for headers
  2013-03-24 19:43 ` Marcin Borkowski
  2013-03-28 15:36   ` Thomas Kreuzer
@ 2013-03-28 21:58   ` Thomas Kreuzer
  1 sibling, 0 replies; 8+ messages in thread
From: Thomas Kreuzer @ 2013-03-28 21:58 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Am 3/24/2013 20:43, schrieb Marcin Borkowski:
> If this \hrule is TeX's primitive \hrule, then you can (maybe) type
> [after={\hrule height 0.4pt\relax}] for the default (and change the
> height for other dimensions).
>
> That said, this is a low-level hack and not very ConTeXt-y (even if it
> works, which I don't know.)
>
> Best,
>

Oddly enough, it works well, but somehow I had to use 0.01pt to make it 
noticable.

regards!
___________________________________________________________________________________
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] 8+ messages in thread

* Re: A thinner hrule for headers
  2013-03-28 15:36   ` Thomas Kreuzer
@ 2013-03-29  9:31     ` Hans Hagen
  0 siblings, 0 replies; 8+ messages in thread
From: Hans Hagen @ 2013-03-29  9:31 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Thomas Kreuzer

On 3/28/2013 4:36 PM, Thomas Kreuzer wrote:
> Am 3/24/2013 20:43, schrieb Marcin Borkowski:
>> If this \hrule is TeX's primitive \hrule, then you can (maybe) type
>> [after={\hrule height 0.4pt\relax}] for the default (and change the
>> height for other dimensions).
>>
>> That said, this is a low-level hack and not very ConTeXt-y (even if it
>> works, which I don't know.)
>>
>> Best,
>>
>
> Strangly, it DOES work for a value of 0.01pt (it looks like 0.2pt for
> framethickness), a value of 0.2pt doesn't make a noticable difference
> somehow.
>
> This is the most convenient solution for me, but it has a weird
> aftertaste, given that I do nut understand why I have to give it such a
> low parameter.

In print or on screen? TeX is very precise but displays and printers can 
do rounding and snapping.

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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] 8+ messages in thread

end of thread, other threads:[~2013-03-29  9:31 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-24 12:32 A thinner hrule for headers Thomas Kreuzer
2013-03-24 19:43 ` Marcin Borkowski
2013-03-28 15:36   ` Thomas Kreuzer
2013-03-29  9:31     ` Hans Hagen
2013-03-28 21:58   ` Thomas Kreuzer
2013-03-24 20:20 ` Otared Kavian
2013-03-24 20:35   ` Aditya Mahajan
2013-03-24 21:07     ` Otared Kavian

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).