er
> [before=\blank\blackrule\startnarrower\BufferStyle,
> after=\stopnarrower\blackrule\blank]
>
> %% alternatively define custom buffers
> \definebuffer
> [foobar]
>
> \setupblackrules
> [width=1cm,
>height=1pt,
>color=gray]
>
> \defi
er has before and after keys which can be used. Example:
\setupbuffer
[before=\blank\blackrule\startnarrower\BufferStyle,
after=\stopnarrower\blackrule\blank]
%% alternatively define custom buffers
\definebuffer
[foobar]
\setupblackrules
[width=1cm,
height=1pt,
color=gray]
\definehighli
\hairline
> or
> \hairline[color=red]
\setupblackrules
[height=1pt,
color=blue,
width=\textwidth]
\starttext
\blackrule
\blackrule [color=red, height=1ex, width=5cm]
\stoptext
http://w
es the vertical position of the content (by putting it
into an \hbox and changing the height/depth values).
\setupblackrules[width=2cm,height=2cm]
\setuplayout[grid=yes]\showgrid
\starttext
XXX {\blackrule}
XXX \tbox{\blackrule}
XXX \bbox{\blackrule}
XXX
\stoptext
Wo
On 5/14/2013 11:00 PM, Sietse Brouwer wrote:
\setupcolors[state=start]
this is no longer needed in mkiv where colors are enabled by default
\setupblackrules[depth=\strutdepth,height=\strutheight,width=1mm,color=red]
> ...
.. added to test
etupcolors[state=start]
\setupblackrules[depth=\strutdepth,height=\strutheight,width=1mm,color=red]
\starttext
\ruledhbox
{A
\framed[width=2cm,align=middle,location=]
{location\\equals\\(nothing)}%
\blackrule
\framed[width=2cm,align=middle,location=depth]
{location\\equ
ly to all floats using
%% \setupcaptions. For the prefix value it works.
\setupblackrules
[width=4cm, height=1cm]
%% prefix is applied, way is not
\setupcaptions
[prefix=no,
way=bytext]
%% prefix and way are applied
%% \setupcaption
%% [figure, table]
%% [prefix=no,
%%way=bytext]
\
Hi,
the `way` setting cannot be applied globally to all floats using
`\setupcaptions`. For the `prefix` value it works. Can this be
fixed?
\setupblackrules
[width=4cm, height=1cm]
%% prefix is applied, way is not
%% \setupcaptions
%% [prefix=no,
%% way=bytext]
%% prefix and way is applied
of how it should look like.
I could come up with a hackish solution on my own but maybe someone
has an idea how to achieve this with built-in support.
Marco
floatmargin.pdf
Description: Adobe PDF document
\setupexternalfigures
[height=2cm]
\setupblackrules
[height=2cm]
\def\graph
>> \setupcombinations[distance=10mm,inbetween=\vskip10mm]
>> %\setupcombinations[distance=10mm,inbetween={\blank[10mm]}]
>>
>> \setupblackrules[width=40mm,height=40mm]
>> \startcombination[2*2]
>> {\blackrule}{}
>> {\blackrule}{}
>> {\blackrule}{}
ce=10mm,inbetween={\blank[10mm]}]
>
> \setupblackrules[width=40mm,height=40mm]
> \startcombination[2*2]
> {\blackrule}{}
> {\blackrule}{}
> {\blackrule}{}
> {\blackrule}{}
> \stopcombination
> \stoptext
The inbetween key controls the space between the content and capti
Hi,
the following code does not work in mkiv (also tested with latest beta).
\setuppagenumber[state=stop]
\starttext
\setupcombinations[distance=10mm,inbetween=\vskip10mm]
%\setupcombinations[distance=10mm,inbetween={\blank[10mm]}]
\setupblackrules[width=40mm,height=40mm]
\startcombination[2
n the Wiki using both search options [1] the results
indicate that it should just work [2]. Also there seems to be a command
named `setupblackrules` [3].
Thanks,
Paul
[1] http://wiki.contextgarden.net/Main_Page (left side)
[2] http://archive.contextgarden.net/message/20030919.063916.160d34bb.
Am 12.04.10 00:07, schrieb Vyatcheslav Yatskovsky:
Hello,
What is the difference between a and b alternatives in \blackrule?
http://wiki.contextgarden.net/Reference/en/setupblackrules#Description
Can you see it?
\setupblackrules[width=2cm]
\starttext
text \blackrules[alternative=a] tex\par
Hello,
What is the difference between a and b alternatives in \blackrule?
http://wiki.contextgarden.net/Reference/en/setupblackrules#Description
Regards,
Vyatcheslav
___
If your question is of interest to others as
\stopbuffer
Despite its name, \blackrules can be of any color. The default
options are
\setupblackrules
[\c!n=3,
\c!width=1em,
\c!height=1ex,
\c!depth=\!!zeropoint,
\c!alternative=\c!a,
\c!distance=.25ex,
\c!color=]
Aditya
_
ng to the \blackrules[n=6]?
%D These \blackrules[alternativevariant=b,n=10,distance=.2em,width=4cm]
are quite clear.
%D \stopbuffer
Despite its name, \blackrules can be of any color. The default options are
\setupblackrules
[\c!n=3,
\c!width=1em,
\c!height=1ex,
\c!depth=\!!zeropoin
\setcollector
# \setevalue
# \setevariables
# \setflag
# \setfontstrut
# \setgvalue
# \setgvariables
# \setlayer
# \setlayerframed
# \setlocalhsize
# \setstrut
\settextvariable[name]{text}
\setupalign[options]
\setuparranging[options]
# \setupattachments
\setupbackground[options]
\setupbackgrounds[
talking about?,
My most optimistic version: [all] of the commands defined in ConTeXt
(see also the comments above), together with some additional checking
if \start-s have their corresponding \stop-s and if parameters in the
brackets are applicable for the command they belong too.
\adaptla
19 matches
Mail list logo