it in a better way.
Finally instead of
\blackrule[color=black, height=0.10ex, width=13.50cm]
you can use just \hairline, and the thickness and color of such a \hairline can
be adjusted by
\setupthinrules[rulethickness=4pt,color=darkgreen]
(for instance), which should be put before
Hello list, and developers in particular,
I note that thinrules (and its setup, setupthinrules, and relatives
thinrule and hairline) does not have a width setting, and always sets a
rule (or rules) the full width of the text area (less any text set on
the same line.
No problem, but I do see
; prefix=no,
> align={flushleft,nothyphenated},
> way=bytext]
> \setupcaption[table][location=top]
>
> \setupthinrules[width=15em] % width of horizontal rules
>
> \setupxtable[frame=off,option=stretch,bodyfont=small,foregroundstyle=
~}]
\setupcaptions[style={\sans\small},
width=max,
prefix=no,
align={flushleft,nothyphenated},
way=bytext]
\setupcaption[table][location=top]
\setupthinrules[width=15em] % width of horizontal rules
\setupxtable[frame=off,option=stretch,bodyfont=small
[rulethickness=...]
\setupparagraphs[rulethickness=...]
\setupsidebar[rulethickness=...]
\setuptables[rulethickness=...]
\setuptabulation[rulethickness=...]
\setuptextbackground[rulethickness=...]
\setuptextrules[rulethickness=...]
\setupthinrules[rulethickness=...]
\setupxtable[rulethickness
il.fm tala...@fastmail.fm wrote:Thank you very much for this, Idris. It works nicely in the sample file you sent. But it goes off again once you add \setupdirections[bidi=global]. Consider the following:==snip\setupdirections[bidi=global]\setupthinrules[color=white]\setupwhitespace[big]\section
,
]
\setupbodyfont [mainface]
\starttext \showframe
\setupdirections[bidi=global]
\setupthinrules[color=white]
\setupwhitespace[big]
\section{Incorrect}
\startlinenumbering
\startalignment[r2l]
هذه رسالة لطيفة ألفها العالم الكبير الفهامة النحرير.
هذه رسالة جامعة مانعة ألفها الشيخ الفاضل
\showframe
\setupthinrules[color=white]
\setupwhitespace[big]
\section{Incorrect}
\startlinenumbering
\startalignment[r2l]
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque
molestie dictum quam non congue. Integer ut dolor vel mi vestibulum
molestie vel et nulla.\thinrule
:
==
snip
\setupdirections[bidi=global]
\setupthinrules[color=white]
\setupwhitespace[big]
\section{Incorrect}
\startlinenumbering
\startalignment[r2l]
هذه رسالة لطيفة ألفها العالم الكبير الفهامة النحرير.
هذه رسالة جامعة مانعة ألفها الشيخ الفاضل...
\thinrule
===
You're right
[bidi=global]
\setupthinrules[color=white]
\setupwhitespace[big]
\section{Incorrect}
\startlinenumbering
\startalignment[r2l]
هذه رسالة لطيفة ألفها العالم الكبير الفهامة النحرير.
هذه رسالة جامعة مانعة ألفها الشيخ الفاضل...
\thinrule
===
You're right. \thinrule has LR unicode
On Wed, 15 Apr 2015, Thangalin wrote:
Pandoc uses thinrule (probably because it spans the page by default)
when generating ConTeXt documents.
Using only thinrule, how would you go about making a totally sweet
(ornamental) horizontal rule, such as those shown at:
Thank you.
Here is an example that changes the \thinrule to something fancier:
\usemodule[fancybreak]
\setupfancybreak[symbol=star]
\define\thinrule\fancybreak
___
If your question is of interest to others as well,
Wikified.
http://wiki.contextgarden.net/Command/setupfancybreak
http://wiki.contextgarden.net/Modules/fancybreak
Might need some corrections and additions.
___
If your question is of interest to others as well,
On Thu, 16 Apr 2015, Thangalin wrote:
\define\thinrule\fancybreak
Or
\definefancybreak[thinrule][symbol=star]
I wish there was a custom context-writer for pandoc, where markdown
elements were mapped to semantic commands rather than visual commands
(pandoc maps **text** to {\bf text},
Hi,
From http://wiki.contextgarden.net/Command/setupthinrules :
\define\BeforeCommand{Before}
\define\AfterCommand{After}
\define\BetweenCommand{Between}
\setupthinrules[
before=\BeforeCommand,
after=\AfterCommand,
inbetween=\BetweenCommand,
color=gray,
height=1em,
]
\starttext
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.kreu
\thinrule]
\starttext
\dorecurse{12}{\input knuth\par}
\stoptext
Thanks, that works. I wonder if you can configure this with \setupthinrules.
\setupthinrules[before=\vskip-0.8em] does no work.
Florian
___
If your question
]
\setupheader[text][after=\vskip-0.8em\thinrule]
\starttext
\dorecurse{12}{\input knuth\par}
\stoptext
Thanks, that works. I wonder if you can configure this with \setupthinrules.
\setupthinrules[before=\vskip-0.8em] does no work.
Hm, if you use:
\setupthinrules[n=1, before=\vskip-0.8em
Thanks, that works. I wonder if you can configure this with \setupthinrules.
\setupthinrules[before=\vskip-0.8em] does no work.
Hm, if you use:
\setupthinrules[n=1, before=\vskip-0.8em]
\setupheader[text][after=\thinrules]
it can work.
However ConTeXt advises to use \blank instead
is essentially a fancy wrapper around \thinrules.
I don't know if \thinrules are documented in a manual, but pack-rul.mkiv
gives a few examples:
\starttext
A couple of examples are given below.
\startbuffer
\setupthinrules[n=3,inbetween=,color=gray]
test test \thinrules\ test test \par
test test
, \hairline and \thinrule (which seem to do the same from looking at
their definition in pack-rul.mkiv, though \hairline does not seem to respond
to \setupthinrules for some reason I cannot discern...).
However, \setupthinrules accepts a lot of options (including height and depth,
which get passed
,
subsubsectionFont=SansBold at 18pt,
titleFont=SansBold at 36pt]
% The following setup defines the attributes for drawing horizontal lines
% across the page. These lines are drawn with macros \thinline and \hairline.
%\setupthinrules[color=black,rulethickness=0.5mm
the attributes for drawing horizontal lines
% across the page. These lines are drawn with macros \thinline and \hairline.
%\setupthinrules[color=black,rulethickness=0.5mm]
\setupthinrules[color=black]
\setuphead[title][style=\titleFont,
color=black]
\setuphead
]
# \setuptextbackground
\setuptextposition[name][settings]
\setuptextrules[options]
\setuptexttexts[text|margin|edge][text|section|date|mark|pagenumber][text|section|date|mark|pagenumber]
\setuptextvariable[name][options]
\setupthinrules[options]
\setuptolerance[options]
\setuptop[text|margin|edge][options
\setupheadertexts ...
Instead of the \hrule command above you could also resort to
\thinrule. The global behaviour of \thinrule can then be customized
via \setupthinrules ... However, this comes at the cost of
introducing additional vertical space between your header text and
the rule
change the actual content of your headers via
\setupheadertexts ...
Instead of the \hrule command above you could also resort to
\thinrule. The global behaviour of \thinrule can then be customized
via \setupthinrules ... However, this comes at the cost of
introducing additional vertical space
behaviour of \thinrule can then be customized
via \setupthinrules ... However, this comes at the cost of
introducing additional vertical space between your header text and
the rule. On the contrary \hrule sticks to the text. Choose whatever
suits you best.
(To the experts: is this \thinrule
,
frameradius=2cm,
framecolor=darkblue]
\setupthinrules
[rulethickness=2mm,
color=darkblue]
% Other style settings
\setupwhitespace[big]
\setupbodyfont[sans,21pt]
\setupitemize
[each]
[packed,joinedup]
\setuphead
[chapter]
[number=no,
style=\tfa\bf,
page=no,
after=,
color
to one another I tried
\setupthinrules[height=2pt,depth=0pt,interlinespace=medium]
\thinrule\godown[1pt]\thinrule
But the natural height of the lines then interfers. Setting \godown
[negative amount] will work, of course, but seems unnatural to me.
At least I feel it condems me
:
---
\setuppapersize [A4][A4]
\setupcolors[state=start]
\setuppagenumbering[location={footer,right}]
\setupheadertexts[][section]
% Solution from
http://archive.contextgarden.net/message/20050515.201803.67299570.html
\setupthinrules[color=red,height=1mm]
\setupheader[text][after=\thinrule
30 matches
Mail list logo