[NTG-context] Definestartstop, Narrower, and Blockquotej

2022-12-17 Thread Michael Urban via ntg-context
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

Re: [NTG-context] Calculating Best Box Width?

2021-06-09 Thread Hans Hagen
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

[NTG-context] Calculating Best Box Width?

2021-06-09 Thread Michael Urban
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

Re: [NTG-context] defining bug not setting up blank spaces

2017-02-14 Thread Hans Hagen
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

Re: [NTG-context] defining bug not setting up blank spaces

2017-02-14 Thread Pablo Rodriguez
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

Re: [NTG-context] defining bug not setting up blank spaces

2017-02-14 Thread Hans Hagen
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

Re: [NTG-context] defining bug not setting up blank spaces

2017-02-14 Thread Pablo Rodriguez
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 >>

Re: [NTG-context] defining bug not setting up blank spaces

2017-02-14 Thread Hans Hagen
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

[NTG-context] defining bug not setting up blank spaces

2017-02-13 Thread Pablo Rodriguez
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

[NTG-context] Hanging indent

2015-03-10 Thread Willi Egger
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

Re: [NTG-context] Hanging indent

2015-03-10 Thread Wolfgang Schuster
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

[NTG-context] section with \sethupead[section][alternative=text]; other type of section misbehaves..

2015-01-31 Thread Rob Heusdens
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

Re: [NTG-context] section with \sethupead[section][alternative=text]; other type of section misbehaves..

2015-01-31 Thread Rob Heusdens
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

Re: [NTG-context] understanding elements and \blank

2014-06-15 Thread Hans Hagen
][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

Re: [NTG-context] understanding elements and \blank

2014-06-15 Thread Wolfgang Schuster
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

[NTG-context] understanding elements and \blank

2014-06-14 Thread Pablo Rodriguez
}\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

[NTG-context] Problem with codelistings and linenumbers

2012-09-07 Thread Markus Hubig
] | \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

[NTG-context] footnotes, blank

2011-07-01 Thread Thomas Schmitz
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

Re: [NTG-context] footnotes, blank

2011-07-01 Thread Thomas Schmitz
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

Re: [NTG-context] blanks with glue in mkiv

2010-02-08 Thread Wolfgang Schuster
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

[NTG-context] blanks with glue in mkiv

2010-02-07 Thread Aditya Mahajan
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

Re: [NTG-context] specific document layout with ConTeXt

2008-12-28 Thread Aditya Mahajan
{}{, }{}}{.}{}% % \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

[NTG-context] setupwhitespace

2008-11-13 Thread richard . stephens
. 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

Re: [NTG-context] setupwhitespace

2008-11-13 Thread Wolfgang Schuster
]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

Re: [NTG-context] setupwhitespace

2008-11-13 Thread richard . stephens
. 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

Re: [NTG-context] setupwhitespace

2008-11-13 Thread Wolfgang Schuster
[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

Re: [NTG-context] ConTeXt-ifying Kile

2008-01-02 Thread Matija Šuklje
][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

Re: [NTG-context] mkiv update - section problem

2007-08-21 Thread Hans Hagen
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

Re: [NTG-context] We have a problem --- Old file no longer compiles

2007-07-04 Thread David Arnold
} \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

Re: [NTG-context] small smaller and vertical stretch

2006-12-13 Thread Steffen Wolfrum
] 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

Re: [NTG-context] small smaller and vertical stretch

2006-12-12 Thread Steffen Wolfrum
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

Re: [NTG-context] problem with \startnarrower (?)

2006-11-22 Thread Alan Bowen
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

[NTG-context] Why doesn't this inherit?

2006-07-18 Thread David Arnold
] \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

Re: [NTG-context] Oh no! Never update in the middle of a project. I am in trouble.

2006-06-27 Thread Hans Hagen
] \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

Re: [NTG-context] Oh no! Never update in the middle of a project. I am in trouble.

2006-06-27 Thread Hans Hagen
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

Re: [NTG-context] Oh no! Never update in the middle of a project. I am in trouble.

2006-06-27 Thread David Arnold
] \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

Re: [NTG-context] horizontal space

2006-06-12 Thread Hans Hagen
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

Re: [NTG-context] Quotations

2006-03-31 Thread Hans Hagen
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

[NTG-context] \startMPpage ... \stopMPpage

2005-12-26 Thread David Arnold
; 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

Re: [NTG-context] long quotation problem

2005-11-09 Thread Hans Hagen
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

Re: [NTG-context] long quotation problem

2005-11-09 Thread Alan Bowen
// 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

Re: [NTG-context] long quotation problem

2005-10-21 Thread Hans Hagen Test
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

Re: [NTG-context] long quotation problem

2005-10-21 Thread Alan Bowen
. 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

Re: [NTG-context] Re: customizing footnote numbers

2005-04-06 Thread Hans Hagen
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

Re: [NTG-context] Widows, flush bottom, and word breaks

2005-02-12 Thread Adam Lindsay
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

RE: [NTG-context] Widows, flush bottom, and word breaks

2005-02-12 Thread Jack M. Lyon
(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

[NTG-context] figure placement and flushbottom

2004-08-11 Thread Peter Mnster
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