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
Dnia 2013-03-24, o godz. 13:32:28
Thomas Kreuzer
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
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
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 -----------------------------------------------------------------
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!
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
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 ___________________________________________________________________________________
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
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
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 ___________________________________________________________________________________
participants (6)
-
Aditya Mahajan
-
Hans Hagen
-
Marcin Borkowski
-
Otared Kavian
-
Thomas Kreuzer
-
Thomas Kreuzer