I get a decidedly odd (or, at least, unexpected by me) result from this, based
on the example on the contextgarden page for definestartstop:
\starttext
\defineblank[ExtractDistance][3pt]
\definestartstop[Extract][
style=slanted,
before={\blank[ExtractDistance]
\setupnarrower[left
the
width, and repeatedly try .5, .333, .25 of the hbox width until it fits in the
allocated space)? How to go about this?
\defineblank[EpigraphDistance][3pt]
\definestartstop[EpigraphText][
style=\ssa,
before={\blank[EpigraphDistance]
\setupnarrower[left=.25\textwidth,right=0pt
of the hbox width until it fits in the
allocated space)? How to go about this?
\defineblank[EpigraphDistance][3pt]
\definestartstop[EpigraphText][
style=\ssa,
before={\blank[EpigraphDistance]
\setupnarrower[left=.25\textwidth,right=0pt]
\startnarrower[left,right]
\setupalign
On 2/14/2017 7:17 PM, Pablo Rodriguez wrote:
On 02/14/2017 06:41 PM, Hans Hagen wrote:
[...]
I don’t understand why \setupblank[ab][big] doesn’t work (with a
previous \defineblank[ab]).
I mean, for most elements \setupelement is possible after \defineelement.
What is different
On 02/14/2017 06:41 PM, Hans Hagen wrote:
>> [...]
>> I don’t understand why \setupblank[ab][big] doesn’t work (with a
>> previous \defineblank[ab]).
>>
>> I mean, for most elements \setupelement is possible after \defineelement.
>>
>> What is differe
On 2/14/2017 5:27 PM, Pablo Rodriguez wrote:
On 02/14/2017 01:13 PM, Hans Hagen wrote:
On 2/13/2017 9:16 PM, Pablo Rodriguez wrote:
Dear list,
I have the following sample:
\defineblank[ab][none]
\starttext
\defineblank[ab][big]
a
\blank[ab]
b
\stoptext
Am I
On 02/14/2017 01:13 PM, Hans Hagen wrote:
> On 2/13/2017 9:16 PM, Pablo Rodriguez wrote:
>> Dear list,
>>
>> I have the following sample:
>>
>> \defineblank[ab][none]
>> \starttext
>> \defineblank[ab][big]
>> a
>>
On 2/13/2017 9:16 PM, Pablo Rodriguez wrote:
Dear list,
I have the following sample:
\defineblank[ab][none]
\starttext
\defineblank[ab][big]
a
\blank[ab]
b
\stoptext
Am I missing something or is there a reason to force the new definition
(instead of the setup
Dear list,
I have the following sample:
\defineblank[ab][none]
\starttext
\defineblank[ab][big]
a
\blank[ab]
b
\stoptext
Am I missing something or is there a reason to force the new definition
(instead of the setup) of already defined blank spaces?
I mean
Hello everybody,
Currently I am typesetting a small dictionary. I want to have hanging indents
if the text joined to the expression is longer than one line.
In the past I had this definitions:
\defineblank[Afterhangingparagraph][1pc]
\starttext
\def\Hangindent{\hangafter=1\hangindent=1em
Am 10.03.2015 um 22:00 schrieb Willi Egger cont...@boede.nl:
Hello everybody,
Currently I am typesetting a small dictionary. I want to have hanging indents
if the text joined to the expression is longer than one line.
In the past I had this definitions:
\defineblank
due to a \setuphead[section][..]. Shouldn't
the summary behaviour be independend of what one sets for section?
Here is a MWE that shows the problem:
example 1:
\defineblank[sprong][.5cm]
\definehead[summary][section]
\setuphead[section][number=no,style=bold,before={\blank[sprong]},after
I forgot to add the basic example, with neither for section nor for
summary an option set in \setuphead[..] for alternative.
So, read this as example 0: = test5.pdf
Example 0:
\defineblank[sprong][.5cm]
\definehead[summary][section]
\setuphead[section][number=no,style=bold,before={\blank[sprong
][location=outer]
\starttext
\MyMarginData{Zapf}\input zapf
\stoptext
My question is; why are blank elements different?
\defineblank[MyBlank][10*big]
\starttext
\input zapf
\blank[MyBlank]
\input zapf
\stoptext
Sorry for the basic question, but I’m trying to understand
the identifier as a command.
\definemargindata[MyMarginData][location=outer]
\starttext
\MyMarginData{Zapf}\input zapf
\stoptext
My question is; why are blank elements different?
\defineblank[MyBlank][10*big]
\starttext
\input zapf
\blank[MyBlank]
\input zapf
}\input zapf
\stoptext
My question is; why are blank elements different?
\defineblank[MyBlank][10*big]
\starttext
\input zapf
\blank[MyBlank]
\input zapf
\stoptext
Sorry for the basic question, but I’m trying to understand the reason
why to explain it to others.
Are there other
]
| \setupfloat [listing] [topframe=on, bottomframe=on]
| \setupheadtext [listings=Quellcodelistings]
|
| \defineblank [aroundcode] [medium]
| \definetyping [code]
| \setuptyping [code]
| [option=color, bodyfont=8.0pt, margin=yes,
| before={\blank[aroundcode]\startlinenumbering},
| after
Hi all,
two questions here:
1. Is it possible to define a blank so that the paragraph
after it will not be indented (in a document which
otherwise does have indents)? I looked at \defineblank and
the new \definevspacing, but couldn't find anything
appropriate.
2. I want footnotes placed
does have indents)? I looked at
\defineblank and the new \definevspacing, but couldn't
find anything appropriate.
You can use the fancybreak module for this.
Ah yes, I see! Thanks Wolfgang, I will use that.
2. I want footnotes placed at the bottom of the page so
that the vertical place
Am 08.02.10 02:10, schrieb Aditya Mahajan:
Hi,
Blanks with glue do not work with MkIV.
The old commands to define own blank values do not work in MkIV, the old
MkII commands are mapped to the new ones but MkII and MkIV expect
different settings for them.
The old \defineblank command
Hi,
Blanks with glue do not work with MkIV. For example,
\defineblank[test][3pt plus 1pt minus 1pt]
\starttext
some text
\blank[test]
some text
\stoptext
gives
! Missing number, treated as zero.
to be read again
p
argument p
lus
\addaskedblankskip ...nce
{}{, }{}}{.}{}%
% \insertnote{}{.}{}%
% }%
\protect
\startmodule IEEE
\usemodule [abr-aditya]
\usemodule [bib]
% Bib Setup {{{
\setuppublications[alternative=ieee]
\defineblank[ieeebibblank]
[0.3\baselineskip plus 0.1\baselineskip minus 0.1\baselineskip]
\defineblank
.
There is a previous mailing in the archives which suggests that columns
don't use \setupwhitespace,
and there's a suggestion to use
\defineblank[default][3mm]
but that doesn't seem to do anything either.
Any suggestions?
Regards,
Richard
]or [big].
\setupwhitespace[none] gives no space.
There is a previous mailing in the archives which suggests that columns
don't use \setupwhitespace,
and there's a suggestion to use
\defineblank[default][3mm]
but that doesn't seem to do anything either.
This is a feature of the columns
.
There is a previous mailing in the archives which suggests that columns
don't use \setupwhitespace,
and there's a suggestion to use
\defineblank[default][3mm]
but that doesn't seem to do anything either.
This is a feature of the columns environment.
Any suggestions
[medium]or [big].
\setupwhitespace[none] gives no space.
There is a previous mailing in the archives which suggests that columns
don't use \setupwhitespace,
and there's a suggestion to use
\defineblank[default][3mm]
but that doesn't seem to do anything either.
This is a feature
][name]
\coupledregister[text]{text}
\couplemarking[name][name]
\couplepage[names][options]
\couplepaper[name]
\coupleregister[name]
\crlf
\currentdate[syntax]
\currentheadnumber
\date[date][syntax]
\decouplemarking[name]
# \decrement
\define[number]\command{text}
\defineblank[name][settings
is to implement an extended vertical spacing model;
actually it is already active, but we need a higher level interface, like:
\defineblank[mine][category=1,priority=5,skip=10pt,penalty=1]
penalty
largest wins
priority
highest wins
categories
discard
only if larger
}
\stopformula
If $c$ is any number other than zero, then
\placeformula[-]
\startformula
\frac ac=\frac bc.\index{equations+division}
\stopformula
\stopproperty
Where property is defined:
\defineframedtext[MyBox]
\definemeasure[BoxWidth][\textwidth]
\defineblank[BoxBlank][medium]
\setupframedtexts
]
But what to do if small is still too big?
And yet the stretch is needed?
While I can say ... \blank[.75*medium] ... this operation is not
allowed for the two above. So, what to do?
define a new blank
like this (?) ...
\defineblank[smaller][8pt plus 1pt minus 1pt
the stretch is needed?
While I can say ... \blank[.75*medium] ... this operation is not
allowed for the two above. So, what to do?
define a new blank
like this (?) ...
\defineblank[smaller][8pt plus 1pt minus 1pt]
... and then ...
\setupinterlinespace[smaller]
... provides a similar stretch
definitions for setting extracts in the body text.
\defineblank[extractdistance][3pt]
\definestartstop[extract][
before={[extractdistance]
\setupnarrower[left=1.5pc,right=1.5pc]
\startnarrower[left,right]
\noindent},
after={\stopnarrower
\blank
]
\definemeasure[BoxWidth][\textwidth]
\defineblank[BoxBlank][1em plus 1em minus 1em]
\setupframedtexts
[MyBox]
[width=\measure{BoxWidth},
before={\blank[BoxBlank]},
after={\blank[BoxBlank]},
background=color,
frame=no,
location=middle
]
\setuplabeltext [summary=\bigstar\quad Summary]
\definemeasure[BoxWidth][.8\textwidth]
\defineblank[BoxBlank][1em plus 1em minus 1em]
\setupframedtexts
[MyBox]
[width=\measure{BoxWidth},
before={\blank[BoxBlank]},
after={\blank[BoxBlank]},
background=color,
frame=no,
location=middle
Summary]
\definemeasure[BoxWidth][.8\textwidth]
\defineblank[BoxBlank][1em plus 1em minus 1em]
Wow. Did not know about labeltexts. This goes one more step in
separating content from presentation.
well, the code in the lang-* files is pretty old (therw you can see how do deal
]
\setuplabeltext [tip=\checkmark]
\setuplabeltext [summary=\bigstar\quad Summary]
\definemeasure[BoxWidth][.8\textwidth]
\defineblank[BoxBlank][1em plus 1em minus 1em]
Wow. Did not know about labeltexts. This goes one more step in
separating content from presentation.
well, the code
vertical spacing is done with blank (and \defineblank)
watch how hspace cleans up preceding spaces and ignores following ones
Hans
-
Hans Hagen | PRAGMA ADE
Ridderstraat 27
background graphics that adapt
- a bit of tuning of margins
\starttext
\setupcolors[state=start]
\defineblank[myquotation][3*medium]
\definetextbackground
[myquotation]
[state=start,
location=paragraph,
%before={\blank[myquotation]\startnarrower},
%after={\stopnarrower\blank
;
y2:=-y4=height/2;
fill z1..z2..z3 z3..z4..z1 cycle withcolor \MPvar{color};
\stopuniqueMPgraphic
\defineblank
[EnglishRule]
[medium]
\def\EnglishRule%
{\startlinecorrection[EnglishRule]
\setlocalhsize
\noindent \reuseMPgraphic{EnglishRule}
\stoplinecorrection}
Why is this called
into the same problem. A.
% Extracts or Long Quotations
//
In body text
\defineblank[extractdistance][3pt]
\definestartstop[extract][
before={ \blank[extractdistance,force]
\setupnarrower[left=1.5pc,right=1.5pc]
\startnarrower
//
In body text
\defineblank[extractdistance][3pt]
\definestartstop[extract][
before={ \blank[extractdistance,force]
\setupnarrower[left=1.5pc,right=1.5pc]
\startnarrower[left,right]
\noindent},
after={\stopnarrower
\blank[extractdistance,force]
\indenting
the amount of
thinking an coder has to do, and so would really like to define the
startextract..\stopextract environment more effectively.
don't use \godown, use \blank since it is more clever in accumulating
cq. handling vertical spaces; also,
\defineblank[footnotedistance][.1pc
. A.
% Extracts or Long
Quotations//
In body text
\defineblank[extractdistance][3pt]
\definestartstop[extract][
before={ \blank[extractdistance,force]
\setupnarrower[left=1.5pc,right=1.5pc]
\startnarrower[left,right
preferably should follow the
indirect approach, thereby avoiding hard coded numbers in the document source
\defineblank[mybig][33pt]
\blank[mybig]
Hans
-
Hans Hagen | PRAGMA ADE
it on the wiki then.
Anyway, addressing the original poster's requirements, allowing *no*
stretch in the inter-paragraph spacing (whitespace) makes it hard for the
interline space to handle the whole job of reaching the text block on its
own. I'd suggest looking at the definition of \defineblank and how small
(whitespace) makes it
hard for the
interline space to handle the whole job of reaching the text
block on its
own. I'd suggest looking at the definition of \defineblank
and how small/
medium/big are defined in order to get a better balance. In
the following
example (modified from the wiki
Hello,
in general, the suggested method to get LaTeX \flushbottom behaviour, shown
on http://contextgarden.net/Flush_bottom, works quite well.
But here I have a situation, where I do not understand, why the first page
is not filled:
\setupwhitespace[0pt plus 1fill]
\defineblank[aroundfloat][0.8
47 matches
Mail list logo