[NTG-context] Wiki - question about Command/ pages which start with a space character

2024-04-14 Thread garulfo
Hi all,

Is it on purpose that 128 pages "https://wiki.contextgarden.net/Command/ 
" start with a space character ?
I didn't find an explanation in https://wiki.contextgarden.net/Command

For example, these two pages exist :
- https://wiki.contextgarden.net/Command/startbuffer
- https://wiki.contextgarden.net/Command/_startbuffer

If it is on purpose: 
- What is the purpose, and which page should contain which documentation?

If it is not: 
- Is there a way to automatically merge the content of the couple of pages, and 
to remove the "wrong" pages, or should it be done manually ?

Thanks for your help.

List :
Command/ attachment
Command/ background
Command/ bar
Command/ beginblock
Command/ button
Command/ characterkerning
Command/ comment
Command/ completecombinedlist
Command/ completelistoffloats
Command/ completelistofsorts
Command/ completelistofsynonyms
Command/ completeregister
Command/ copylabeltext
Command/ ctxfunction
Command/ ctxfunctiondefinition
Command/ currentlabel
Command/ delimitedtext
Command/ description
Command/ enumeration
Command/ fence
Command/ fraction
Command/ framed
Command/ framedtext
Command/ getbuffer
Command/ hbox
Command/ help
Command/ high
Command/ highlight
Command/ label
Command/ labellanguage
Command/ labeltext
Command/ labeltexts
Command/ language
Command/ leftlabeltext
Command/ linenote
Command/ low
Command/ lowhigh
Command/ lowmidhigh
Command/ margindata
Command/ mathcommand
Command/ mathdoubleextensible
Command/ mathextensible
Command/ mathframed
Command/ mathmatrix
Command/ mathornament
Command/ mathoverextensible
Command/ mathovertextextensible
Command/ mathradical
Command/ mathtriplet
Command/ mathunderextensible
Command/ mathundertextextensible
Command/ mathunstacked
Command/ nextparagraphs
Command/ note
Command/ ornament
Command/ paragraphs
Command/ placecombinedlist
Command/ placefloat
Command/ placelistoffloats
Command/ placelistofsorts
Command/ placelistofsynonyms
Command/ placement
Command/ placepairedbox
Command/ placeregister
Command/ presetlabeltext
Command/ referenceformat
Command/ register
Command/ rightlabeltext
Command/ script
Command/ section
Command/ seeregister
Command/ setupcombinedlist
Command/ setupitemgroup
Command/ setuplabeltext
Command/ setuppairedbox
Command/ setupregister
Command/ shift
Command/ sorting
Command/ startattachment
Command/ startbackground
Command/ startbuffer
Command/ startcolumnset
Command/ startcomment
Command/ startdelimitedtext
Command/ startdescription
Command/ starteffect
Command/ startenumeration
Command/ startfittingpage
Command/ startfloattext
Command/ startformula
Command/ startframedtext
Command/ starthelp
Command/ startindentedtext
Command/ startitemgroup
Command/ startlabeltext
Command/ startlinenote
Command/ startlines
Command/ startmakeup
Command/ startmathalignment
Command/ startmathcases
Command/ startmathmatrix
Command/ startmixedcolumns
Command/ startnarrower
Command/ startnote
Command/ startpagecolumns
Command/ startparagraphs
Command/ startparallel
Command/ startplacefloat
Command/ startplacepairedbox
Command/ startsection
Command/ startsectionblock
Command/ startstartstop
Command/ startstop
Command/ startstyle
Command/ starttabulate
Command/ starttextbackground
Command/ starttyping
Command/ startviewerlayer
Command/ startxtable
Command/ stoplinenote
Command/ style
Command/ synonym
Command/ textbackground
Command/ textnote
Command/ tooltip
Command/ type
Command/ typebuffer
Command/ unit
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: How can I do this?

2024-03-08 Thread Otared Kavian
Hi Ursula,

The reason for which you did not get the expected result is that you have « } » 
missing in your file, that is the closing brace after your italic command
« {\it » at the end of your document. 
Moreover you did not have a \stoptext in your file, and a math command « \m » 
was not written correctly. Talking of math, I personnaly prefer to enclose 
in-line math between dollar signs $, that is writing « $\exists x \in H$ » 
instead of  « \m{\exists x \in H} ».

Also the way you write your text is somewhat « incorrect » (or as Mikael 
Sundqvist would put it, « interesting »…), since in principle all the setups 
and definitions must be before the body of your document which begns with 
\starttext. Another point i sthat instead of using \par you can leave a blank 
line, which makes the document more readable. And you don’t need to break the 
lines by « hand », since ConTeXt does 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 \starttext.

Best regards: Otared

% begin textbackground-Ursula.tex
\definetextbackground[myBG][
  location=paragraph,
  background=color,
  backgroundcolor=lightgray,
  leftoffset=.8\bodyfontsize,
  rightoffset=.8\bodyfontsize,
  topoffset=.5\bodyfontsize,
  bottomoffset=.5\bodyfontsize,
  frame=off]

\setupnarrower[left=0.80cm, right=0.80cm]
\definehspace[oneem][0.5em]
\setupinteraction
   [state=start,
color=blue]

\usecolors[svg]
\setupinteraction
  [state=start,
   contrastcolor=cornflowerblue]
   
   
\starttext
\margintext {1.1.1} {\bf Beispiel 3.2.17 (Vertauschung von All- und 
Existenzquantor).}

{\it Sei M die Menge aller Männer und F die Menge aller Frauen. Die Aussage 
h(m, f) sei ”m ist verliebt in f“. Unter diesen Voraussetzungen machen Sie sich 
die Bedeutung der beiden Aussagen klar.}

\startitemize[n,packed,broad]
\item \m{\forall m ∈ M : ∃f ∈ F : h(m, f)}  

\item $∃f ∈ F : ∀m ∈ M : h(m, f)$.

\stopitemize


\startmyBG
Mitunter ist es aus der Formulierung nur schwer zu erkennen, dass
ein $∃\forall∀ $ oder ein $\forall∀\m∃$ versteckt ist. Dann ist es besonders 
wichtig, die
Formulierung sehr lange zu prüfen und eventuell auch formalisiert
noch einmal aufzuschreiben.”
\blank

\startnarrower[left, right]

Der\hspace[oneem] Wert \hspace[oneem] von \hspace[oneem] 
\m{y = f(x)} ist unabhängig von der Wahl

von \m{x\doubleprime} ist gleichbedeutend mit \m{∃y : ∀x : f(x) = y} 

(Beutelspacher [10, S.54])

\blank
\stopnarrower
\stopmyBG


\blank

\blackrule[color=black, height=0.10ex, width=13.50cm]

\reference[Regel:1]{3.1}

{\bf Aufgabe 3.2.18} Formulieren Sie gemäß der Regel (\goto{3.1}[Regel:1]) 
äquivalent

\startitemize[n,packed,broad]

\item \m{\forall n \in \naturalnumbers\mtp{:} n^2 > n \implies n > 1},

\item \m{\forall n \in \naturalnumbers\mtp{:} 3\divides n \implies 4 \divides 
n},

\item \m{\forall n \in \naturalnumbers\mtp{:} n^3 \mtext{ ungerade }\nospace
\implies n \mtext{ ungerade}}.

\stopitemize

\blackrule[color=black, height=0.10ex, width=13.50cm]

{\bf Aufgabe 3.2.19} Bilden Sie die Verneinung der folgenden Aussagen:

\startitemize[n,packed,broad]
\item Alle Rosen sind verwelkt oder teuer.

\item Alle rosen sind entweder verwelkt oder teuer.

\stopitemize


\reference[Abschnitt:1]{3.2.1.1}

{\it Hinweis: Beachten Sie die Konvention aus Abschnitt 
\goto{3.2.1.1}[Abschnitt:1] die Formulierung \quotation {entweder ... oder} 
entspricht dem ausschließenden Oder
und die Formulierung \quotation{oder} dem (mathematischen) einschließenden
Oder.}

\blackrule[color=black, height=0.10ex, width=13.50cm]

\stoptext
% end textbackground-Ursula.tex


> On 6 Mar 2024, at 13:52, Ursula Hermann  wrote:
> 
> Dear List,
> I need a tip how to do this:
> In the command \definepapersize[Mybook] the height should be not 24 cm, but a 
> little bit longer. My Problem is, as you can see on the PDF, that there are 
> troubles with the Gray Background. The Gray Background should begin with : 
> Mitunter. . I think it should be the topoffset, and the bottomoffset, but how 
> many .\bodyfontsize should I try?
> Many thanks 
> Uschi 
> \mainlanguage[de]
> \definepapersize[MyBook][width=19cm,height=24cm]
> \setuppapersize[MyBook][MyBook] % Prints on paper the size of MyBook 
> %\setuppapersize[MyBook][A4] %Would print MyBook-size pages on A4 paper
> \setupbodyfont[Times New Roman,12.55pt]
> \definemargindata  [MyInMargin][inright]
> \definemarginframed[MyInMargin][topframe=on,bottomframe=on,rulethickness=1pt,width=1.90cm]
> \defineenumeration
>   [theorem]
>   [
> text=Theorem,
> title=yes,
> width=fit,
> distance=0.2em,
> alternative=serried,
>   ]
> \definetextbackground[GrayBackground][
>   location=p

[NTG-context] How can I do this?

2024-03-06 Thread Ursula Hermann
Dear List,
I need a tip how to do this:
In the command \definepapersize[Mybook] the height should be not 24 cm, but a 
little bit longer. My Problem is, as you can see on the PDF, that there are 
troubles with the Gray Background. The Gray Background should begin with : 
Mitunter. . I think it should be the topoffset, and the bottomoffset, but how 
many .\bodyfontsize should I try?
Many thanks
Uschi
\mainlanguage[de]
\definepapersize[MyBook][width=19cm,height=24cm]
\setuppapersize[MyBook][MyBook] % Prints on paper the size of MyBook 
%\setuppapersize[MyBook][A4] %Would print MyBook-size pages on A4 paper
\setupbodyfont[Times New Roman,12.55pt]
\definemargindata  [MyInMargin][inright]
\definemarginframed[MyInMargin][topframe=on,bottomframe=on,rulethickness=1pt,width=1.90cm]
\defineenumeration
  [theorem]
  [
text=Theorem,
title=yes,
width=fit,
distance=0.2em,
alternative=serried,
  ]
\definetextbackground[GrayBackground][
  location=paragraph,
  background=color,
  backgroundcolor=lightgray,
  leftoffset=.8\bodyfontsize,
  rightoffset=.8\bodyfontsize,
  topoffset=.5\bodyfontsize,
  bottomoffset=.5\bodyfontsize,
  frame=off,]
  \margintext{\blackrule[color=black, height=0.10ex, width=1cm]\\}
  \blackrule[color=black, height=0.10ex, width=13.50cm]
\starttext
\margintext {1.1.1} {\bf Beispiel 3.2.17 (Vertauschung von All- und 
Existenzquantor).}
\par {\it Sei M die Menge aller Männer und F die Menge aller Frauen. Die 
Aus-\par
sage h(m, f) sei ”m ist verliebt in f“. Unter diesen Voraussetzungen machen Sie 
sich die Bedeutung der beiden Aussagen klar.}
\par
\startitemize[n,packed,broad]
\item \m{\forall m ∈ M : ∃f ∈ F : h(m, f)}  \item ∃f ∈ F : ∀m ∈ M : h(m, f).
\stopitemize
\startGrayBackground
\tf Mitunter ist es aus der Formulierung nur schwer zu erkennen, dass
ein \m ∃\forall∀ oder ein \m \forall∀\m∃ versteckt ist. Dann ist es besonders 
wichtig, die
Formulierung sehr lange zu prüfen und eventuell auch formalisiert
noch einmal aufzuschreiben.”
\blank
\setupnarrower [left=0.80cm, right=0.80cm]
\startnarrower[left, right]
\definehspace[oneem][0.5em]
Der\hspace[oneem] Wert\hspace[oneem] von\hspace[oneem] \m{y = f(x)} ist 
unabhängig von der Wahl\\
von \m{x\doubleprime} ist gleichbedeutend mit \m{∃y : ∀x : f(x) = y} \\ 
(Beutelspacher [10, S.54])\par
\blank
\stopnarrower
\stopGrayBackground
\blank
\blackrule[color=black, height=0.10ex, width=13.50cm]
\setupinteraction
   [state=start,
color=blue]
\reference[Regel:1]{3.1}\par
{\bf Aufgabe 3.2.18} Formulieren Sie gemäß der Regel (\goto{3.1}[Regel:1]) 
äquivalent
\startitemize[n,packed,broad]
\item \m{\forall n \in \naturalnumbers\mtp{:} n^2 > n \implies n > 1},\item 
\m{\forall n \in \naturalnumbers\mtp{:} 3\divides n \implies 4 \divides 
n},\item \m{\forall n \in \naturalnumbers\mtp{:} n^3 \mtext{ ungerade }\nospace
\implies n \mtext{ ungerade}}.
\stopitemize
\blackrule[color=black, height=0.10ex, width=13.50cm]\par
{\bf Aufgabe 3.2.19} Bilden Sie die Verneinung der folgenden Aussagen:
\startitemize[n,packed,broad]
\item Alle Rosen sind verwelkt oder teuer.
\item Alle rosen sind entweder verwelkt oder teuer.
\stopitemize
\par
\usecolors[svg]
\setupinteraction
  [state=start,
   contrastcolor=cornflowerblue]
\reference[Abschnitt:1]{3.2.1.1}
{\it Hinweis: Beachten Sie die Konvention aus Abschnitt \goto 
{3.2.1.1}[Abschnitt:1]die For-\par
mulierung \quotation {entweder ... oder} entspricht dem ausschließenden Oder\par
und die Formulierung \quotation{oder} dem (mathematischen) einschließenden\par
Oder.\par
\blackrule[color=black, height=0.10ex, width=13.50cm]



Bruce.pdf
Description: Bruce.pdf
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Wiki page : Mixed languages sample (French, Ancient Greek, Arabic, Chinese)

2024-03-01 Thread Jean-Pierre Delange

Dear List,

Several years ago I tried to write documents, mainly lectures, but also 
essays, in which I tried to make several languages (Romance and 
non-Romance) coexist.
Here below is an example of an attempt to compose an acceptable 
document, in the form of an exercise in which Arabic and Chinese are 
introduced into a document written in French. With footnotes and a few 
framed lines.


I submit this example for your perusal and ask you whether it could 
possibly appear on a wiki page devoted to the combination of 
non-European languages in the same text. In English translation, of course.


%We are giving below an example of a text written in a Latin language, 
in which we want to print here and there some text in ancient Greek, 
Arabic and Chinese.


\setuplanguage[fr][patterns={fr,agr}]

\mainlanguage[fr]

\setuplayout [backspace=40mm]

\setuppagenumbering[alternative=doublesided, location={header, inmargin}]

\setupmargindata[inmargin][location=inner, 
style={\ssx\setupinterlinespace[line=2.8ex]}]


\setupmarginframed[inmargin][align=right]

\setupbodyfontenvironment[default][em=italic]

% Use Theano Didot as Ancient Greek font

\definefallbackfamily[mainface][serif][Theano Didot][preset=range:greek, 
it={Old Standard Italic}, force=yes]


% Choose between Ipaexmincho font and NotoSansTC (Traditional Chinese)

%\definefallbackfamily [mainface] [rm] [ipaexmincho] 
[range=cjkunifiedideographs]


\definefallbackfamily [mainface] [rm] [notosanstc] 
[range=cjkunifiedideographs]


% Choose between two Arabic fonts

%\definefallbackfamily[mainface] [serif] [nafeesnastaleeq] [range=arabic]

\definefallbackfamily[mainface] [serif] [hussaininastaleeq] [range=arabic]

\definefontfamily [mainface] [serif] [GaramondNo8][sc=NewG8 Regular SC]

\definefontfamily [mainface] [sans] [FreeSans] [rscale=0.7]

\definefontfamily[mainface] [serif] [GFS Didot]

\setupbodyfont[mainface]

\setupindenting[1.5em]

\setupindenting[yes]

\setupcolors[state=start]


\defineframedtext

[MyFrame]

[before={\blank},

after={\blank},

frame=off,

background=MyFrame,

%width=\textwidth,

width=max,

height=fit,

style=italic]


\definelabel

[Définition]

[headstyle=\bf\smallcaps]


\startuseMPgraphic{MyFrame}

path b;

picture p;

%p := textext.rt("\white\Définition");

p := textext.rt("\white\framedtextparameter{Title}");

%p := textext.rt("\white\getvariable{text}{text1}");

p := p shifted (2BodyFontSize,OverlayHeight-ypart center p+.25ExHeight);

b := boundingbox p leftenlarged .5EmWidth rightenlarged .5EmWidth;

fill OverlayBox withcolor lightgray; %\MPcolor{

fill b withcolor darkred;

draw bottomboundary OverlayBox withpen pencircle scaled 1pt withcolor

darkred;

draw topboundary OverlayBox withpen pencircle scaled 1pt withcolor

darkred;

draw p;

setbounds currentpicture to boundingbox currentpicture enlarged 2mm;

\stopuseMPgraphic


\defineoverlay

[MyFrame]

[\useMPgraphic{MyFrame}]



\setupwhitespace[medium]

\setupinterlinespace[line=3.2ex]


\setupitemize[each][margin=yes]


\setuphead[title][header=empty]


\setupheader[style={\sc}]

\setupfooter[style={\itxx}]

\setupheadertexts[Utilisation de plusieurs langues dans un même texte 
avec \ConTeXt][][][{\getmarking[section]}]


\setupfootertexts[][][][© J.-P. Delange, 2016 — La reproduction de ce 
texte est soumise à autorisation.]


\defineparagraphs[TwoColumns][n=2, align={hz, hanging}]

\setupparagraphs[TwoColumns][1][width=210pt, style=rm, align=left]

\starttext

\title{\ConTeXt, ou comment imprimer des langues non-romanes}

\section {\sc Préambule}


Lorsqu'il s'agit de proposer un document dans une langue nationale (le 
français), tout va bien. Lorsqu'il s'agit de rédiger en français un 
document un peu complexe, avec des citations — ou des références — dans 
une autre langue, qui en particulier n'a pas les mêmes exigences que le 
français, ni les mêmes {\em signes diacritiques} on se heurte à quelques 
difficultés. Les suites logicielles comme Microsoft Office ou 
LibreOffice ne manquent pas de puissance, mais à vrai dire, dès que nous 
entrons dans les exigences de l'édition professionnelle, qui consistent 
à présenter un texte lisible et enrichi (en notes, etc.), la situation 
devient vite techniquement assez pénible. La situation la plus courante 
que nous rencontrons dans les Lettres, en Philosophie, en Histoire, et 
plus généralement dans les Humanités, est celle d'un texte dans lequel 
il y a des citations d'auteurs grecs ou latin, avec des références en 
notes de bas de page, qui contiennent du grec. Cela pourrait être 
quelque chose comme ceci :


\blank\startnarrower[1*left,1*right]\tfx\setupinterlinespace

\noindent \quotation{Ἔφη γάρ οἱ Σωκράτη ἐντυχεῖν λελουμένον τε καὶ τὰς 
βλαύτας ὑποδεδεμένον, ἃ ἐκεῖνος ὀλιγάκις ἐποίει· καὶ ἐρέσθαι αὐτὸν ὅποι 
ἴοι οὕτω καλὸς γεγενημένος. καὶ τὸν εἰπεῖν ὅτι· Ἐπὶ δεῖπνον εἰς 
Ἀγάθωνος. χθὲς γὰρ αὐτὸν διέφυγον τοῖς ἐπινικίοις, φοβηθεὶς τὸν ὄχλον· 
ὡμολόγησα δ᾽ εἰς τήμερον παρέσεσθα

[NTG-context] Re: Works now! At Work, and a question to paragraphs in an Theorem

2024-02-27 Thread Pablo Rodriguez via ntg-context
On 2/27/24 10:10, Ursula Hermann wrote:
>[...]
> I have a question to my paragraphs:
>
> \definetextbackground[Paragaph][
> [...]
>   \startparagraph

Hi Uschi,

if you define Paragaph, then you should use \startParagaph (and
\stopParagaph).

> \starttext

Even if that works, it would be better to nest commands (\starttext
before \startparagraph).

> [...]
> So this is the example. What I like to do: The first paragraph should be
> normal written, but the second one should have more space between the
> words. Because of Math: Is \hspace the right way? The right command? And
> using \startnarrower, \stopnarrower?

Narrower refers to margins. Extra space between words would be something
different (at least, as far as I get it).

That being said, I have no idea how to get different inter-word spacing.

Just in case it might help,

Pablo
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Works now! At Work, and a question to paragraphs in an Theorem

2024-02-27 Thread Ursula Hermann
Dear List,

At Work everything works fine now. Many thanks for those, who have written me.

I have a question to my paragraphs:

\definetextbackground[Paragaph][
  location=paragraph,
  background=color,
  backgroundcolor=lightgray,
  leftoffset=.5\bodyfontsize,
  rightoffset=.5\bodyfontsize,
  topoffset=.5\bodyfontsize,
  bottomoffset=.5\bodyfontsize,
  frame=off,]
  \startparagraph
\starttext
Mitunter ist es aus der Formulierung nur schwer zu erkennen, dass ein 
\m{∃\forall} oder ein \m{\forall\m∃} versteckt ist. Dann ist es besonders 
wichtig, die Formulierung sehr lange zu prüfen und eventuell auch formalisiert 
noch einmal aufzuschreiben.”
\blank
Der Wert von \m{y = f(x)} ist unabhängig von der Wahl\par von \m{x\doubleprime} 
ist gleichbedeutend mit \m{∃y : ∀x : f(x) = y} \par (Beutelspacher [10, S.54]).
\stopparagraph
\stoptext

So this is the example. What I like to do: The first paragraph should be normal 
written, but the second one should have more space between the words. Because 
of Math: Is \hspace the right way? The right command? And using \startnarrower, 
\stopnarrower?

Many thanks

Uschi

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Colored Paragraph

2023-12-05 Thread Ursula Hermann
Dear Hraban, 

It was \startnarrower \stopnarrower, I put it out, now it is perfekt. I also 
send the pdf. 

Many thanks. 
Uschi 

-Ursprüngliche Nachricht-
Von: Henning Hraban Ramm  
Gesendet: Dienstag, 05. Dezember 2023 15:47
An: ntg-context@ntg.nl
Betreff: [NTG-context] Re: Colored Paragraph

Hi Uschi,
unfortunately you also forgot the source code.

I’m not sure if the examples in the wiki are good – the combination with 
\startnarrower might be a problem.

Maybe setting the width helps (e.g. to \makeupwidth).

Hraban

Am 05.12.23 um 15:29 schrieb Ursula Hermann:
> Dear Hraban,
> Sorry, forgot my name
> Uschi
> 
> -Ursprüngliche Nachricht-
> Von: Ursula Hermann
> Gesendet: Dienstag, 05. Dezember 2023 15:27
> An: 'mailing list for ConTeXt users' 
> Betreff: AW: [NTG-context] Re: Colored Paragraph
> 
> Dear Hraban,
> 
> I have tried it now, I have sent you the pdf. This works. But the paragraph 
> should fill the whole blackrule.
> 
> -Ursprüngliche Nachricht-
> Von: Henning Hraban Ramm 
> Gesendet: Dienstag, 05. Dezember 2023 14:58
> An: mailing list for ConTeXt users 
> Betreff: [NTG-context] Re: Colored Paragraph
> 
> Am 05.12.23 um 14:16 schrieb Ursula Hermann:
>> The paragraph should have a color in the background. How can I get an 
>> colored paragraph?
> 
> Did you try \definetextbackground?
> 
> https://wiki.contextgarden.net/TextBackground
> https://wiki.contextgarden.net/Command/definetextbackground
> 
> Hraban
> __
> _ If your question is of interest to others as well, 
> please add an entry to the Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) 
> archive  : https://github.com/contextgarden/context
> wiki : https://wiki.contextgarden.net
> __
> _ 
> __
> _ If your question is of interest to others as well, 
> please add an entry to the Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net 
> (mirror) archive  : https://github.com/contextgarden/context
> wiki : https://wiki.contextgarden.net
> __
> _

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) 
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


u.pdf
Description: u.pdf
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Colored Paragraph

2023-12-05 Thread Henning Hraban Ramm

Hi Uschi,
unfortunately you also forgot the source code.

I’m not sure if the examples in the wiki are good – the combination with 
\startnarrower might be a problem.


Maybe setting the width helps (e.g. to \makeupwidth).

Hraban

Am 05.12.23 um 15:29 schrieb Ursula Hermann:

Dear Hraban,
Sorry, forgot my name
Uschi

-Ursprüngliche Nachricht-
Von: Ursula Hermann
Gesendet: Dienstag, 05. Dezember 2023 15:27
An: 'mailing list for ConTeXt users' 
Betreff: AW: [NTG-context] Re: Colored Paragraph

Dear Hraban,

I have tried it now, I have sent you the pdf. This works. But the paragraph 
should fill the whole blackrule.

-Ursprüngliche Nachricht-
Von: Henning Hraban Ramm 
Gesendet: Dienstag, 05. Dezember 2023 14:58
An: mailing list for ConTeXt users 
Betreff: [NTG-context] Re: Colored Paragraph

Am 05.12.23 um 14:16 schrieb Ursula Hermann:

The paragraph should have a color in the background. How can I get an
colored paragraph?


Did you try \definetextbackground?

https://wiki.contextgarden.net/TextBackground
https://wiki.contextgarden.net/Command/definetextbackground

Hraban
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) 
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Very strange error:

2023-08-14 Thread Xavier B.
nsumiria si fes 56 km? \item Si tenc només 7 
litres al dipòsit, quin recorregut podria fer?\stopitemize \stopexercici \par 
\startexercici [exercici:proporcionalitat-directa-antic-4]{temps per trajecte} 
Per anar de Palma a Campos una persona tarda 32 minuts. Quant tardaria aquesta 
persona per anar a Inca? Quan dugui 10 minuts després de partir, a quina distà
ncia estarà? \par \bigskip Dades necessàries: \startitemize [a, packed] \item 
Distància Palma-Campos: $38,7 \unit {kilo meter}$ \item Distància Palma-Inca: 
$33,4 \unit {kilo meter}$ \stopitemize \stopexercici \par \startexercici 
[exercici:proporcionalitat-directa-antic-5]{xampú} Na Carme es pot rentar els 
cabells durant 48 dies amb un pot de xampú de 150 ml. Què necessita per 
rentar-se'ls durant 3 mesos? \stopexercici \par \startexercici 
[exercici:proporcionalitat-directa-antic-6]{ensalada de fruites} Per fer una 
ensalada de fruites, necessitam tallar a bocinets 4 taronges per a cada 10 plà
tans. Quantes taronges hem de tallar a bocinets si disposem de 25 plàtans? 
\stopexercici \par \startexercici 
[exercici:proporcionalitat-directa-antic-7]{pintura} Pintar $50 \unit {square 
meter}$ de paret costa 625 euros. Quant costaria pintar $420 \unit {square 
meter}$? Quants metres podrem pintar si només tenim 500 €? \stopexercici 
\par \startexercici [exercici:proporcionalitat-directa-antic-8]{càries} Segons 
les estadístiques, 2 de cada 5 persones tenen càries. Si són 360 les 
persones enquestades, quantes tenen càries? \stopexercici \par \par 
\startexercici [exercici:proporcionalitat-directa-antic-9]{retoladors} Tres 
retoladors costen 4,80 euros. Quant costaran 5 retoladors? \stopexercici \par 
\startexercici [exercici:proporcionalitat-directa-antic-10]{rellotge} Un 
rellotge s'ha endarrerit 18 minuts en 6 dies. Quants minuts s'haurà endarrerit 
d'aquí a 9 dies ? Quants dies han de passar per a què s'endarrereixi tres 
quarts d'hora? \stopexercici \par \startexercici 
[exercici:proporcionalitat-directa-antic-11]{tren} Si un tren recorre 430 km en 
sis hores, llavors quants de quilòmetres recorrerà en nou hores? 
\stopexercici \par \startexercici 
[exercici:proporcionalitat-directa-antic-12]{sou} Na Laia treballa de 
dependenta durant les vacances de Nadal. Per 5 dies de feina cobra 250 €. Si 
ha treballat 14 dies, quant cobrarà? \stopexercici \par \startexercici 
[exercici:proporcionalitat-directa-antic-13]{arbre} Un arbre als 12 mesos 
mesura 1,54 m d'altura. Si creixés al mateix ritme tot el temps, quant 
mesuraria als 24 mesos? \stopexercici \par \startexercici 
[exercici:proporcionalitat-directa-antic-14]{Comparació de camises} En una 
botiga tenen dues ofertes: 3 camises a 57 € o bé 5 camises a 92 €. Quina 
és millor? \stopexercici \par \startexercici 
[exercici:proporcionalitat-directa-antic-15]{màquines d'impressió} Tres mà
quines imprimeixen 1500 llibres cada una al mes. Si un empresari compràs 5 mà
quines més, quants llibres podrà imprimir al cap del mes? \stopexercici \par 
\startexercici [exercici:proporcionalitat-directa-antic-16]{taronja} Una bossa 
de taronges de 3 kg costa 5,82 €. Calculeu quant costarà una bossa de 5 kg. 
\stopexercici \par \startexercici 
[exercici:proporcionalitat-directa-antic-17]{examen} Na Júlia ha contestat bé 
14 de les 18 preguntes d’un examen. Quina nota tindrà? \stopexercici \par 
\startexercici [exercici:proporcionalitat-directa-antic-18]{Dieta recomanada} A 
un pot de iogurt de 125 g. hi ha una inscripció que posa \par \startnarrower 
[2*middle] \quotation {Contingut en calci 104 mg. (26\% del consum diari 
recomanat)} \stopnarrower \par \startitemize [a] \item Quants mil·ligrams de 
calci hauria de prendre (per a arribar al 100\% de la quantitat de calci 
recomanada)? \item Per tant, quants iogurts hauria de prendre, si no
més s'alimentàs de iogurts? \stopitemize \stopexercici \par \startexercici 
[exercici:proporcionalitat-directa-antic-19]{caixes de llibres} A cinc caixes 
caben 24 llibres de 5 cm. d'amplària. Quants llibres cabrien a deu caixes? I a 
21? \stopexercici \par \startexercici 
[exercici:proporcionalitat-directa-antic-20]{preu dels polígrafs} Quatre 
bolígrafs costen 1,20 €. Completeu aquesta taula: \par \placetable 
[here,none] [taula:preu-boli] {Preu dels bolígrafs} { \bTABLE 
[setups={table3:header, table3:frame, table3:style}] \bTR \bTD Bolígrafs \eTD 
\bTD 1 \eTD \bTD 2 \eTD \bTD 3 \eTD \bTD 4 \eTD \bTD 5 \eTD \bTD 10 \eTD \bTD 
15 \eTD \bTD 20 \eTD \bTD 30 \eTD \bTD 50 \eTD \eTR \bTR \bTD € \eTD \bTD 
\eTD \bTD \eTD \bTD \eTD \bTD \eTD \bTD \eTD \bTD \eTD \bTD \eTD \bTD \eTD \bTD 
\eTD \eTR \eTABLE } \stopexercici \par \startexercici 
[exercici:proporcionalitat-directa-antic-21]{màquina embotelladora} Una mà
quina embotelladora ha omplert 45 ampolles en 5 minuts. Quant tardarà en 
omplir 180 ampolles? Empleneu la taula següent: \par \placetable [here,none] 
[taula:preu-ampolles] {Preu de les ampolles} { \bTABLE

[NTG-context] Very strange error:

2023-08-14 Thread Xavier B.
directa-antic-3]{consum de benzina} El meu cotxe 
consumeix 4,5 litres cada cent quilòmetres. \\startitemize [a,text] \\item 
Quants litres consumiria si fes 56 km? \\item Si tenc només 7 litres al 
dipòsit, quin recorregut podria fer?\\stopitemize \\stopexercici \\par 
\\startexercici [exercici:proporcionalitat-directa-antic-4]{temps per trajecte} 
Per anar de Palma a Campos una persona tarda 32 minuts. Quant tardaria aquesta 
persona per anar a Inca? Quan dugui 10 minuts després de partir, a quina distà
ncia estarà? \\par \\bigskip Dades necessàries: \\startitemize [a, packed] 
\\item Distància Palma-Campos: $38,7 \\unit {kilo meter}$ \\item Distància 
Palma-Inca: $33,4 \\unit {kilo meter}$ \\stopitemize \\stopexercici \\par 
\\startexercici [exercici:proporcionalitat-directa-antic-5]{xampú} Na Carme es 
pot rentar els cabells durant 48 dies amb un pot de xampú de 150 ml. Què 
necessita per rentar-se'ls durant 3 mesos? \\stopexercici \\par \\startexercici 
[exercici:proporcionalitat-directa-antic-6]{ensalada de fruites} Per fer una 
ensalada de fruites, necessitam tallar a bocinets 4 taronges per a cada 10 plà
tans. Quantes taronges hem de tallar a bocinets si disposem de 25 plàtans? 
\\stopexercici \\par \\startexercici 
[exercici:proporcionalitat-directa-antic-7]{pintura} Pintar $50 \\unit {square 
meter}$ de paret costa 625 euros. Quant costaria pintar $420 \\unit {square 
meter}$? Quants metres podrem pintar si només tenim 500 €? \\stopexercici 
\\par \\startexercici [exercici:proporcionalitat-directa-antic-8]{càries} 
Segons les estadístiques, 2 de cada 5 persones tenen càries. Si són 360 les 
persones enquestades, quantes tenen càries? \\stopexercici \\par \\par 
\\startexercici [exercici:proporcionalitat-directa-antic-9]{retoladors} Tres 
retoladors costen 4,80 euros. Quant costaran 5 retoladors? \\stopexercici \\par 
\\startexercici [exercici:proporcionalitat-directa-antic-10]{rellotge} Un 
rellotge s'ha endarrerit 18 minuts en 6 dies. Quants minuts s'haurà endarrerit 
d'aquí a 9 dies ? Quants dies han de passar per a què s'endarrereixi tres 
quarts d'hora? \\stopexercici \\par \\startexercici 
[exercici:proporcionalitat-directa-antic-11]{tren} Si un tren recorre 430 km en 
sis hores, llavors quants de quilòmetres recorrerà en nou hores? 
\\stopexercici \\par \\startexercici 
[exercici:proporcionalitat-directa-antic-12]{sou} Na Laia treballa de 
dependenta durant les vacances de Nadal. Per 5 dies de feina cobra 250 €. Si 
ha treballat 14 dies, quant cobrarà? \\stopexercici \\par \\startexercici 
[exercici:proporcionalitat-directa-antic-13]{arbre} Un arbre als 12 mesos 
mesura 1,54 m d'altura. Si creixés al mateix ritme tot el temps, quant 
mesuraria als 24 mesos? \\stopexercici \\par \\startexercici 
[exercici:proporcionalitat-directa-antic-14]{Comparació de camises} En una 
botiga tenen dues ofertes: 3 camises a 57 € o bé 5 camises a 92 €. Quina 
és millor? \\stopexercici \\par \\startexercici 
[exercici:proporcionalitat-directa-antic-15]{màquines d'impressió} Tres mà
quines imprimeixen 1500 llibres cada una al mes. Si un empresari compràs 5 mà
quines més, quants llibres podrà imprimir al cap del mes? \\stopexercici 
\\par \\startexercici [exercici:proporcionalitat-directa-antic-16]{taronja} Una 
bossa de taronges de 3 kg costa 5,82 €. Calculeu quant costarà una bossa de 
5 kg. \\stopexercici \\par \\startexercici 
[exercici:proporcionalitat-directa-antic-17]{examen} Na Júlia ha contestat bé 
14 de les 18 preguntes d’un examen. Quina nota tindrà? \\stopexercici \\par 
\\startexercici [exercici:proporcionalitat-directa-antic-18]{Dieta recomanada} 
A un pot de iogurt de 125 g. hi ha una inscripció que posa \\par 
\\startnarrower [2*middle] \\quotation {Contingu
t en calci 104 mg. (26\\% del consum diari recomanat)} \\stopnarrower \\par 
\\startitemize [a] \\item Quants mil·ligrams de calci hauria de prendre (per a 
arribar al 100\\% de la quantitat de calci recomanada)? \\item Per tant, quants 
iogurts hauria de prendre, si només s'alimentàs de iogurts? \\stopitemize 
\\stopexercici \\par \\startexercici 
[exercici:proporcionalitat-directa-antic-19]{caixes de llibres} A cinc caixes 
caben 24 llibres de 5 cm. d'amplària. Quants llibres cabrien a deu caixes? I a 
21? \\stopexercici \\par \\startexercici 
[exercici:proporcionalitat-directa-antic-20]{preu dels polígrafs} Quatre 
bolígrafs costen 1,20 €. Completeu aquesta taula: \\par \\placetable 
[here,none] [taula:preu-boli] {Preu dels bolígrafs} { \\bTABLE 
[setups={table3:header, table3:frame, table3:style}] \\bTR \\bTD Bolígrafs 
\\eTD \\bTD 1 \\eTD \\bTD 2 \\eTD \\bTD 3 \\eTD \\bTD 4 \\eTD \\bTD 5 \\eTD 
\\bTD 10 \\eTD \\bTD 15 \\eTD \\bTD 20 \\eTD \\bTD 30 \\eTD \\bTD 50 \\eTD 
\\eTR \\bTR \\bTD € \\eTD \\bTD \\eTD \\bTD \\eTD \\bTD \\eTD \\bTD \\eTD 
\\bTD \\eTD \\bTD \\eTD \\bTD \\eTD \\bTD \\eTD \\bTD \\eTD \\eTR \\eTABLE } 
\\stopexercici \\par \\startexercici 
[exercici:proporcio

Re: [NTG-context] Bug with \startnarrow?

2023-03-03 Thread Denis Maier via ntg-context
> -Ursprüngliche Nachricht-
> Von: peter.hopcr...@icloud.com 
> Gesendet: Donnerstag, 23. Februar 2023 21:15
> An: mailing list for ConTeXt users 
> Cc: Maier, Denis Christian (UB) 
> Betreff: Re: [NTG-context] Bug with \startnarrow?
> 
> It's the documentation that has the bug. With \startnarrow, you need two
> sets of square brackets, 1 for the \setupnarrower data and 1 for the
> \startnarrower data. Like this:
> 
> \starttext
> Some text before
> \startnarrow[left=5cm,right=1cm,before={\blank[2*line]},after={\blank[halfli
> ne]}][left, right] narrower text \stopnarrow some text after \stoptext

Thanks, good to know. I'll update the documentation.

Best,
Denis
> 
> > On 23/02/2023, at 11:14 PM, Denis Maier via ntg-context  cont...@ntg.nl> wrote:
> >
> > Hi,
> >  While doing some more tests with my example from yesterday (tables in
> \startnarrow), I’ve realized that the example from the wiki doesn’t seem to
> quite work as expected:
> >  %%
> > \starttext
> > Some text before
> > \startnarrow[left=2cm,right=1cm,before={\blank[2*line]},after={\blank[
> > halfline]}]
> > narrower text
> > \stopnarrow
> > some text after
> > \stoptext
> > %%
> >  Already here, the extra margins on both sides seem to be equal. Changing
> the size of the left extra margin has no effect at all.
> >  %%
> > \starttext
> > \startnarrow[left=10cm,right=2cm]
> > \input ward
> > \stopnarrow
> >  but:
> >  \setupnarrower[left=5cm, right=2cm]
> > \startnarrower[left,right]
> > \input ward
> > \stopnarrower
> > \stoptext
> > %%
> >  Is this a bug or intended behaviour ?
> >  Best,
> > Denis
> >
> 
> __
> > _ If your question is of interest to others as well,
> > please add an entry to the Wiki!
> >
> > maillist : ntg-context@ntg.nl /
> > https://www.ntg.nl/mailman/listinfo/ntg-context
> > webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> > archive  : https://bitbucket.org/phg/context-mirror/commits/
> > wiki : https://contextgarden.net
> >
> 
> __
> > _
> 

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Bug with \startnarrow?

2023-02-23 Thread peter.hopcroft--- via ntg-context
It's the documentation that has the bug. With \startnarrow, you need two sets 
of square brackets, 1 for the \setupnarrower data and 1 for the \startnarrower 
data. Like this:

\starttext
Some text before
\startnarrow[left=5cm,right=1cm,before={\blank[2*line]},after={\blank[halfline]}][left,
 right]
narrower text
\stopnarrow
some text after
\stoptext

> On 23/02/2023, at 11:14 PM, Denis Maier via ntg-context  
> wrote:
> 
> Hi,
>  While doing some more tests with my example from yesterday (tables in 
> \startnarrow), I’ve realized that the example from the wiki doesn’t seem to 
> quite work as expected:
>  %%
> \starttext
> Some text before
> \startnarrow[left=2cm,right=1cm,before={\blank[2*line]},after={\blank[halfline]}]
> narrower text
> \stopnarrow
> some text after
> \stoptext
> %%
>  Already here, the extra margins on both sides seem to be equal. Changing the 
> size of the left extra margin has no effect at all.
>  %%
> \starttext
> \startnarrow[left=10cm,right=2cm]
> \input ward
> \stopnarrow
>  but:
>  \setupnarrower[left=5cm, right=2cm]
> \startnarrower[left,right]
> \input ward
> \stopnarrower
> \stoptext
> %%
>  Is this a bug or intended behaviour ?
>  Best,
> Denis
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] Bug with \startnarrow?

2023-02-23 Thread Denis Maier via ntg-context
Hi,

While doing some more tests with my example from yesterday (tables in 
\startnarrow), I've realized that the example from the wiki doesn't seem to 
quite work as expected:

%%
\starttext
Some text before
\startnarrow[left=2cm,right=1cm,before={\blank[2*line]},after={\blank[halfline]}]
narrower text
\stopnarrow
some text after
\stoptext
%%

Already here, the extra margins on both sides seem to be equal. Changing the 
size of the left extra margin has no effect at all.

%%
\starttext
\startnarrow[left=10cm,right=2cm]
\input ward
\stopnarrow

but:

\setupnarrower[left=5cm, right=2cm]
\startnarrower[left,right]
\input ward
\stopnarrower
\stoptext
%%

Is this a bug or intended behaviour ?

Best,
Denis
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[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=2in,right=1in]
  \startnarrower[left,right]
  \noindent},
   after={\stopnarrower
  \blank[ExtractDistance]
  \indenting[next]}]
%Now the following commands are available: \startExtract and \stopExtract

\starttext
The extract from Knuth
\startExtract \input knuth \stopExtract
\stoptext

But now, blockquote is altered:

\startblockquote
\input lorem
\stopblockquote

But not narrower itself:

\startnarrower
\input lorem
\stopnarrower

\stoptext
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] missing space with French quotation

2022-09-22 Thread Peter Münster via ntg-context
On Thu, Sep 22 2022, Jean-Pierre Delange via ntg-context wrote:

> But why use \startquotation when \quotation{something} does the job
> just fine?

It's not the same:

\starttext
bla \quotation{quotation} bla
\blank[big]
bla
\startquotation
  quotation
\stopquotation
bla
\stoptext


> I use the command \startnarrower and \stopnarrower.

It's not the same:

\starttext
\startquotation
  quotation\\quotation
\stopquotation
\startnarrower
  \quotation{quotation\\quotation}
\stopnarrower
\stoptext

-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] missing space with French quotation

2022-09-22 Thread Jean-Pierre Delange via ntg-context

Hi Peter,

I know that's not the expected answer and I'm sorry about that. But why 
use \startquotation when \quotation{something} does the job just fine?


I've looked to replicate your MWE and for my part, there's just a space 
missing at the end of the quote before the last quote (but I'm working 
with an older version of CTX). To get the quote indented, instead of 
\startquotation, I use the command \startnarrower and \stopnarrower.


What about something like this :

\mainlanguage[fr] \setcharacterspacing[frenchpunctuation]

\starttext bla \quotation{Que d'hommes entre Dieu et moi !} bla\\ bla 
«OK» bla


\startnarrower

\quotation{\tfx{On cherche à mieux cerner les effets des commandes de 
\ConTeXt sur les citations et les espaces entre les guillemets}}


\stopnarrower

\stoptext


Sorry if my answer is not very helpful !

JP




Le 21/09/2022 à 18:12, Peter Münster via ntg-context a écrit :

Hi,

With the latest ConTeXt version, there is a missing space:

\mainlanguage[fr]
\setcharacterspacing[frenchpunctuation]
\starttext
bla \quotation{OK} bla\\
bla «OK» bla
\startquotation
   Here is missing space
\stopquotation
\stoptext

How could I get back the space before "»" please?

TIA for any help,


--
Jean-Pierre Delange
Agrégé de philosophie
Ancients
"Few discoveries are more irritating than those which expose the pedigree of 
ideas" - Lord Acton
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Count (and limit) glyphs per line?

2022-07-18 Thread Benjamin Buchmuller via ntg-context
Dear Hans,

This is the friendly reminder you requested for the "crappyspecs" parbuilder as 
per your example in early July.

With 

ConTeXt  ver: 2022.07.06 21:42 LMTX  fmt: 2022.7.8

I get 

tex error > tex error on line 12 in file ./test-wrapping2.tex: Undefined 
control sequence \crappyspeccount

potentially as there is no crappyspec parbuilder yet?

\defineparbuilder [crappyspec] % implemented in the builder namespace 
\defineparbuilder [default] % implemented in the builder namespace
\setmainparbuilder[crappyspec]
\setuptolerance[verytolerant,stretch] \dontcomplain
\protected\def\CrappyTraced
{\par \strut \rlap \bgroup\infofont
(\enspace
max = \the\crappyspeccount \quad step = \the\crappyspecstep \quad hsize = 
\the\hsize \quad used = \the\crappyspecdimen \enspace
)
\egroup \par}
\starttext
\crappyspeccount60 \samplefile{tufte} \CrappyTraced \par
\crappyspeccount40 \samplefile{tufte} \CrappyTraced \par % \crappyspecstep 2pt 
\samplefile{tufte} \CrappyTraced \par
\samplefile{tufte} \CrappyTraced \startitemize
\startitem
\samplefile{tufte} \CrappyTraced
\stopitem
\startitem
\samplefile{ward} \CrappyTraced \stopitem
\stopitemize
\startnarrower[6*left,right] \samplefile{tufte} \CrappyTraced
\stopnarrower
\starthanging [distance=4em,n=2] {test} \samplefile{tufte} \CrappyTraced
\stophanging
\page % \stoptext \setuppapersize[landscape,letter]
\samplefile{knuth} \CrappyTraced \startitemize[width=5em]
\startitem
\samplefile{knuth} \CrappyTraced
\stopitem
\startitem
{\smallcaps \darkblue \samplefile{knuth}} \CrappyTraced \stopitem
\stopitemize
\crappyspeccount60 \startitemize[width=5em]
\startitem
\samplefile{knuth} \CrappyTraced
\stopitem
\startitem
{\smallcaps \darkgreen \samplefile{knuth}} \CrappyTraced \stopitem
\stopitemize
\page



Thank you once again for your help!


Benjamin

--

The problem with these thing is that there is more involved than just counting, 
like font features, hyphenation, current paragrph properties, etc. and you 
don't want interference with other features. You also want the paragraphs to 
look somewhat ok. Folks who enforce such demands on authors never wonder where 
the tools do do that come from (publishers and probably most designers are not 
interested in that anyway: thinking probably stops at the number '120').
Attached a proof of concept that gives an idea. No upload as first we need to 
do some wrapping up of math. Not that we needed something in the engine other 
than the linebreak helper to accept direct modes (no need to go back and forth 
then and i only want write this crap once). Could be a module although it's 
only some 70 lines of code in the end. Maybe it makes a nice (lmtx) demo for 
the ctx meeting too.
Here we work per paragraph not per line which looks better on the average. One 
could mess with parshapes but why bother.
(The todo in the name refers to the fact that it might do into a th elow level 
paragraph manual.)
(No more time now but we can add later; remind me if I forget.)

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-

> On Jun 26, 2022, at 18:32, Max Chernoff  wrote:
> 
> On 2022-06-26 9:59 a.m., Benjamin Buchmuller wrote:
>> Hi Max,
>> Thank you so much for your help and pointing me to the documents; always a 
>> lot of things to learn in TeX!
> 
> No problem :)
> 
>> I'm afraid that including the hyphen width doesn't solve the issue yet. It 
>> seems to move the problem to other parts of the text.
> 
> Ah, too bad. My next step would have been to insert \penalty1's (prevent 
> breaks) at the potential breaks before/after the "selected" break, but Hans 
> provided a _much_ better solution that you should use instead.
> 
>> My guess is that one could equivalently have said "local max_length = 111", 
>> right?
> 
> Not really; the hyphen is added to the accumulated width, not the accumulated 
> character count.
> 
>> I made the following MWE (reproducible also online) to illustrate what I see:
> 
> My code assumes that each line has _roughly_ "max_length" characters before 
> it runs. These lines each only have ~60 characters, so I'm not entirely 
> surprised that there are issues. Just use Hans's solution, which is much less 
> of a total hack than this is :)
> 
>> * Running with hsize only makes the problem worse in itemizations, so I 
>> think localhsize is the way to go. My guess, localhsize is the width of the 
>> "text" part of a paragraph, for example, excluding the symbols in the 
>> itemization.

Re: [NTG-context] Switching fonts changes framedtext justification

2022-04-07 Thread Thangalin via ntg-context
Works flawlessly, thank you!

Here's a demo with left and right speech bubbles:

\definefont [TextFontEmoji] [OpenSansEmoji]

\startuseMPgraphic{TextBubble}{side}
  z1 = (0, 0) ;
  z2 = (OverlayWidth, 0) ;
  z3 = (OverlayWidth, OverlayHeight) ;
  z4 = (0, OverlayHeight) ;

  offset := 1 ;
  tail := 1 ;

  % Flip the tail's location and direction.
  if \MPvar{side} = 1:
offset := 5 ;
tail := -1 ;
  fi

  (offset/6)[x1,x2] = x8 + .25cm * tail = x7 + .25cm = x9 - .25cm ;
  y7 =  0cm ;
  y8 = -.5cm ;
  y9 =  0cm ;

  path p ;
  p = (z1--z7--z8--z9--z2--z3--z4--cycle) cornered .25cm ;
  draw p withpen pencircle scaled 0.75 ;

  setbounds currentpicture to OverlayBox ;
\stopuseMPgraphic

\defineframedtext[TextBubbleFrame][
  style=TextFontEmoji,
  frame=off,
  width=.618\textwidth,
  autowidth=force,
  offset=.75em,
  after={\blank[2*big]},
]

% Receive text (left-facing).
\defineoverlay[TextBubbleRxOverlay][\useMPgraphic{TextBubble}{side=0}]
\defineframedtext[TextBubbleRxFrame][TextBubbleFrame][
  background=TextBubbleRxOverlay,
  location=left,
]

% Send text (right-facing).
\defineoverlay[TextBubbleTxOverlay][\useMPgraphic{TextBubble}{side=1}]
\defineframedtext[TextBubbleTxFrame][TextBubbleFrame][
  background=TextBubbleTxOverlay,
  location=right,
]

% Map XHTML class names to start/stop environments.
\definestartstop[bubblerx][
  before={\startnarrower\startTextBubbleRxFrame},
  after={\stopTextBubbleRxFrame\stopnarrower},
]

\definestartstop[bubbletx][
  before={\startnarrower\startTextBubbleTxFrame},
  after={\stopTextBubbleTxFrame\stopnarrower},
]

\starttext
  \startbubblerx
Welcome to the future, human !  \input zapf
  \stopbubblerx

  \startbubbletx
Welcome to the future, human !  \input zapf
  \stopbubbletx
\stoptext
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Odd Font Behavior in startstop Group

2022-02-06 Thread Wolfgang Schuster via ntg-context

Michael Urban via ntg-context schrieb am 05.02.2022 um 20:28:

I am experiencing an odd behavior switching text styles in a defined startstop group 
("blockquote").   I get different behavior depending on whether the 
switchtobodyfont in the startstop definition includes the dummy {\it } and {\bf } text.   
If they are not there, the italic and boldface switches in the second blockquote revert 
to the gyreschola body font of the main text; but this only happens if there is an 
earlier blockquote with no style changes.  This is with:

[...]

Do I need a newer version of ConTeXt, or am I doing something wrong?
Fonts in ConTeXt are always perilous, alas.  For me, anyway.


\definefallbackfamily[story][serif][notoserif][range={greekandcoptic,greekextended},force=yes]
\definefontfamily[story][serif][TeX Gyre Schola]


The following two font settings are wrong, you're passing the name of a 
typescript for the third argument while \definefontfamily expects the 
family name of a font.


Even though the usage of the command is wrong you didn't notice it 
because as a fallback \definefontfamily uses the Latin Modern version of 
the requested style when no font was found.



\definefontfamily[story][sans][modern]
\definefontfamily[story][mono][modern]


The correct settings for both settings are

    \definefontfamily [story] [sans] [Latin Modern Sans]
    \definefontfamily [story] [mono] [Latin Modern Mono] [features=none]

with the "features=none" for the mono font to ensure no ligatures are 
formed.


An alternative for \definefontfamily is to use \definetypeface and 
choose a predefined typescript for the Latin Modern family. You can 
either use


    \definetypeface [story] [ss] [sans] [modern] [default]
    \definetypeface [story] [ss] [mono] [modern] [default]

which uses the 10pt optical size even for smaller and bigger sizes or 
you enable optical sizes with the following typescript


    \definetypeface [story] [ss] [sans] [modern-designsize] [default]
    \definetypeface [story] [ss] [mono] [modern-designsize] [default]



\definefontfamily[story][mm][TeX Gyre Pagella Math]


I recommend to load the math font with the provided typescript because 
they ensure existing patches (e.g. spacing corrections) for the selected 
font are applied.


    \definetypeface [story] [mm] [math] [pagella] [default]


\setupbodyfont[story,11pt]

\definestartstop[blockquote]
  [
   before={ \blank \startnarrower \setupwhitespace[2pt] \setupindenting[none]
\switchtobodyfont[termes]{\it }{\bf }% This is so weird.  Put a 
comment marker after [termes] for a different result
   },
   after={ \stopnarrower \blank \indenting[next]},
  ]%


ConTeXt already provides a blockquote-environment which can be 
configured to have the same style as your custom environment.


\startsetups [blockquote:style]
    \switchtobodyfont[termes]
    \setupwhitespace[2pt]
\stopsetups

\setupdelimitedtext
  [blockquote]
  [spacebefore=big,
 style=\directsetup{blockquote:style},
 indenting=none,
    indentnext=yes]

Wolfgang

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Odd Font Behavior in startstop Group

2022-02-05 Thread śrīrāma via ntg-context
On Sunday, February 6, 2022 12:58:06 AM IST Michael Urban via ntg-context 
wrote:
> Do I need a newer version of ConTeXt, or am I doing something wrong?
> Fonts in ConTeXt are always perilous, alas.  For me, anyway.

(pre)loading the typescripts 'fixes' the issue.
\usebodyfont[termes]

See below a modified version of your MWE:

\definefallbackfamily[story][serif][notoserif]
[range={greekandcoptic,greekextended},force=yes]
\definefontfamily[story][serif][TeX Gyre Schola]
\definefontfamily[story][sans][modern]
\definefontfamily[story][mono][modern]
\definefontfamily[story][mm][TeX Gyre Pagella Math]
\setupbodyfont[story,11pt]
\usebodyfont[termes]

\definestartstop
[blockquote]
[before={\blank\startnarrower\setupwhitespace[2pt]\setupindenting[none]},
 style={\switchtobodyfont[termes]},
 after={\stopnarrower\blank\indenting[next]}]

\starttext
\input knuth

\startblockquote
\input knuth
\stopblockquote

this is normal text
\par
{\bf this is bold}
\par
{\it this is italics}

\startblockquote
this is normal text
\par
{\bf this is bold}
\par
{\it this is italics}
\stopblockquote
\stoptext

Best,
Sreeram


___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Odd Font Behavior in startstop Group

2022-02-05 Thread Michael Urban via ntg-context
I am experiencing an odd behavior switching text styles in a defined startstop 
group ("blockquote").   I get different behavior depending on whether the 
switchtobodyfont in the startstop definition includes the dummy {\it } and {\bf 
} text.   If they are not there, the italic and boldface switches in the second 
blockquote revert to the gyreschola body font of the main text; but this only 
happens if there is an earlier blockquote with no style changes.  This is with:

$  context --version
mtx-context | ConTeXt Process Management 1.03
mtx-context |
mtx-context | main context file: 
/usr/local/texlive/texmf-local/tex/context/base/mkiv/context.mkiv
mtx-context | current version: 2020.03.10 14:44
mtx-context | main context file: 
/usr/local/texlive/texmf-local/tex/context/base/mkiv/context.mkxl
mtx-context | current version: 2020.03.10 14:44

Do I need a newer version of ConTeXt, or am I doing something wrong?
Fonts in ConTeXt are always perilous, alas.  For me, anyway.





\definefallbackfamily[story][serif][notoserif][range={greekandcoptic,greekextended},force=yes]
\definefontfamily[story][serif][TeX Gyre Schola]
\definefontfamily[story][sans][modern]
\definefontfamily[story][mono][modern]
\definefontfamily[story][mm][TeX Gyre Pagella Math]
\setupbodyfont[story,11pt]

\definestartstop[blockquote]
 [
  before={ \blank \startnarrower \setupwhitespace[2pt] \setupindenting[none]
   \switchtobodyfont[termes]{\it }{\bf }% This is so weird.  Put a 
comment marker after [termes] for a different result
  },
  after={ \stopnarrower \blank \indenting[next]},
 ]%
\starttext
\chapter{Testing}
\input ward

\startblockquote
\input knuth

\stopblockquote

\input zapf

{\it This is what Italic letters look like.} {\bf And these are bold.}


\startblockquote
This is what it said, in {\it Italic} and {\bf bold} letters:

\bgroup
\it\noindent This is what Italic letters look like here.
\egroup

\bgroup
\bf\noindent This is what Bold letters look like here.
\egroup
\stopblockquote
\stoptext

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Critical Editions?

2022-01-04 Thread Pablo Rodriguez via ntg-context
On 12/21/21 10:50 AM, hanneder--- via ntg-context wrote:
>
> Details:
> I was able to find the article "Ediciones críticas con ConTeXt" (is
> this in use?)

Hi Jürgen,

if you mean http://www.ediciones-criticas.tk/pdf/criticas-context.pdf,
this is outdated. I hope to update it in a not so distant future...  .

> I also found out that for simple editions context already works. For
> critical editions in my field we need both footnote references based
> on linenumbers (for prose), but also references to verse number,
> which can be entered manually.
As far as I can remember linenotes are footnotes with references to line
numbers.

I don’t think it makes a difference if the line number is set
automatically by ConTeXt or the user specifies a given value.

> So far, so good. Any hints to a more sophisticated solution are highly
> welcome. (I am a simple TeX user)

I’m only a ConTeXt newbie (who has been using it for about a decade ).

There might be other solutions, but I’m afraid I don’t know which is
exactly the problem you are facing.

Sorry, but the text structure isn’t clear to me (this is independent
from the fact that I don’t understand a word from the language you may
be using).

BTW, I could only make your sample work in the following form:

\starttext
\setupnotation[linenote]
[alternative=serried,width=broad,distance=.5em,display=no]
\setupnote[linenote][way=bypage,paragraph=yes,rule=off]

\definenote [variant]
\setupnotation[variant][number=no]
\setupnote[variant][way=bypage,paragraph=yes,rule=off]

\definelines[slokaed][][indenting={yes, small, even},
before={\startnarrower\startlinenumbering},
after={\stoplinenumbering\stopnarrower}]

\definelines[slokaedplain][][indenting={yes, small, even},
before=\startnarrower, after=\stopnarrower]

\startslokaed
mano buddhir ahaṃ prāṇās tanmātrendriyajīvanam yaṃ
dṛṣṭvā\linenote{dṛṣṭvā ] dṛṣṭva G\lohi{pc}{1}} vinivartante tam
\linenote{tam ] tat} upāsyam upāsmahe
\stopslokaed

\startslokaedplain
mano buddhir ahaṃ prāṇās tanmātrendriyajīvanam
yaṃ dṛṣṭvā\variant{2c dṛṣṭvā ] dṛṣṭva} vinivartante tam \variant{2d
tam ] tat} upāsyam upāsmahe (2)
\stopslokaedplain
\stoptext

Just in case it might help,

Pablo
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Critical Editions?

2021-12-21 Thread Denis Maier via ntg-context
Thanks for bringing this topic up again. I'd also be highly interested in this!

Denis

> -Ursprüngliche Nachricht-
> Von: ntg-context  Im Auftrag von hanneder--
> - via ntg-context
> Gesendet: Dienstag, 21. Dezember 2021 10:51
> An: ntg-context@ntg.nl
> Cc: hanne...@staff.uni-marburg.de
> Betreff: [NTG-context] Critical Editions?
> 
> 
> I just started switching after long years of typesetting with La-/Omega-
> /pdfTeX to Context and was exploring the capabilities of the program for
> typesetting critical editions. So I was wondering whether there is any
> updated information on how to produce critical editions?
> 
> 
> Details:
> I was able to find the article "Ediciones críticas con ConTeXt" (is this in 
> use?)
> as well as a plan of and a remark concerning critTeXt: "As I learned from a
> thread on NTG-context from early 2010 we shouldn't expect a dedicated
> package, but that ConTeXt will eventually incorporate the needed
> functionalities."  What is the status of that?
> 
> 
> I also found out that for simple editions context already works. For critical
> editions in my field we need both footnote references based on
> linenumbers (for prose), but also references to verse number, which can be
> entered manually. The main problem for me was to find the command
> \linenote :)
> 
> %  Setup of \linenote
> \setupnotation[linenote]
> [alternative=serried,width=broad,distance=.5em,display=no]
> \setupnote[linenote][way=bypage,paragraph=yes,rule=off]
> 
> %  \variant as a footnote without reference number \definenote [variant]
> [footnote] \setupnotation[variant][number=no]
> \setupnote[variant][way=bypage,paragraph=yes,rule=off]
> 
> % Two "environments" for Sanskrit verses, one with, one without
> linenumbers.
> 
> % SANSKRIT EDITION linenumbers
> \definelines[slokaed][][indenting={yes, small, even},
> 
> before=\startnarrower\startlinenumbering,after=\stoplinenumbering\stopn
> arrower]
> 
> % SANSKRIT EDITION plain (referring to verses)
> \definelines[slokaedplain][][indenting={yes, small, even},
>before=\startnarrower,after=\stopnarrower]
> 
> With this the code of the edition can be pleasently minimalistic:
> 
> \startslokaed
> mano buddhir ahaṃ prāṇās tanmātrendriyajīvanam
>yaṃ dṛṣṭvā\linenote{dṛṣṭvā ] dṛṣṭva G\lohi{pc}{1}} vinivartante tam
> \linenote{tam ] tat} upāsyam upāsmahe} \stopslokaed
> 
> 
> \startslokaedplain
> mano buddhir ahaṃ prāṇās tanmātrendriyajīvanam yaṃ dṛṣṭvā\variant{2c
> dṛṣṭvā ] dṛṣṭva} vinivartante tam \variant{2d tam ] tat} upāsyam upāsmahe
> (2) \stopslokaedplain
> 
> So far, so good. Any hints to a more sophisticated solution are highly
> welcome. (I am a simple TeX
> user)
> Thanks
> Jürgen
> 
> 
> 
> ---
> 
> Prof. Dr. Juergen Hanneder
> Philipps-Universitaet Marburg
> FG Indologie u. Tibetologie
> Deutschhausstr.12
> 35032 Marburg
> Germany
> Tel. 0049-6421-28-24930
> hanne...@staff.uni-marburg.de
> 
> __
> _
> 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://context.aanhet.net archive  :
> https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> __
> _
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Critical Editions?

2021-12-21 Thread hanneder--- via ntg-context


I just started switching after long years of typesetting with  
La-/Omega-/pdfTeX to Context and was exploring the capabilities of the  
program for typesetting critical editions. So I was
wondering whether there is any updated information on how to produce  
critical editions?



Details:
I was able to find the article "Ediciones críticas con ConTeXt" (is  
this in use?) as well as a
plan of and a remark concerning critTeXt: "As I learned from a thread  
on NTG-context from early 2010 we shouldn't expect a dedicated  
package, but that ConTeXt will eventually incorporate the needed  
functionalities."  What is the status of that?



I also found out that for simple editions context already works. For  
critical editions in my
field we need both footnote references based on linenumbers (for  
prose), but also references to
verse number, which can be entered manually. The main problem for me  
was to find the command \linenote :)


%  Setup of \linenote
\setupnotation[linenote]  
[alternative=serried,width=broad,distance=.5em,display=no]

\setupnote[linenote][way=bypage,paragraph=yes,rule=off]

%  \variant as a footnote without reference number
\definenote [variant] [footnote]
\setupnotation[variant][number=no]
\setupnote[variant][way=bypage,paragraph=yes,rule=off]

% Two "environments" for Sanskrit verses, one with, one without
linenumbers.

% SANSKRIT EDITION linenumbers
\definelines[slokaed][][indenting={yes, small, even},
   
before=\startnarrower\startlinenumbering,after=\stoplinenumbering\stopnarrower]


% SANSKRIT EDITION plain (referring to verses)
\definelines[slokaedplain][][indenting={yes, small, even},
  before=\startnarrower,after=\stopnarrower]

With this the code of the edition can be pleasently minimalistic:

\startslokaed
mano buddhir ahaṃ prāṇās tanmātrendriyajīvanam
  yaṃ dṛṣṭvā\linenote{dṛṣṭvā ] dṛṣṭva G\lohi{pc}{1}} vinivartante tam  
\linenote{tam ] tat} upāsyam upāsmahe}

\stopslokaed


\startslokaedplain
mano buddhir ahaṃ prāṇās tanmātrendriyajīvanam
yaṃ dṛṣṭvā\variant{2c dṛṣṭvā ] dṛṣṭva} vinivartante tam \variant{2d  
tam ] tat} upāsyam upāsmahe (2)

\stopslokaedplain

So far, so good. Any hints to a more sophisticated solution are highly  
welcome. (I am a simple TeX

user)
Thanks
Jürgen



---

Prof. Dr. Juergen Hanneder
Philipps-Universitaet Marburg
FG Indologie u. Tibetologie
Deutschhausstr.12
35032 Marburg
Germany
Tel. 0049-6421-28-24930
hanne...@staff.uni-marburg.de

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] new upload, new trickery

2021-11-16 Thread Marcus Vinicius Mesquita via ntg-context
Hi, Hans

I tried to run your first example, but ConTeXt throws an error and
complains that \resetleftparbox was never defined.
Using version: 2021.11.13

Regards

Marcus Vinicius


On Thu, Oct 28, 2021 at 6:24 AM Hans Hagen via ntg-context <
ntg-context@ntg.nl> wrote:

> Hi,
>
> Among the 'can they be made better' candidates in the engine are
> \vadjust and \local[left|right]box primitives that are not really used
> in context (okay, vadjust is used in mkii).
>
> The \vadjust vertical injector can be illustrated with
>
> \starttext
>  \ignorespaces\input tufte \removeunwantedspaces
>  we want a break before this line \vadjust pre {\break}%
>  \ignorespaces\input tufte \removeunwantedspaces
>
>  \page
>
>  \ignorespaces\input tufte \removeunwantedspaces
>  we want seperate lines now \leftparbox{\vadjust post {\break}}%
>  \ignorespaces\input tufte \removeunwantedspaces
>  \resetleftparbox{}
> \stoptext
>
> It's a signal that injects something in a vertical list without
> interupting the horizontal text flow. One can inject before (pre) or
> after (post which is default). New is that we can also influence the
> order: after vs before preceding \vadjust in the same line.  Also new is
> that deeply nested adjustments can migrate (so the hole los: marks,
> inserts and vadjust are now in sync) which is demonstrated with the next
> example:
>
> \starttext
>  \showstruts
>  \input tufte \removeunwantedspaces\space
>  \localleftbox  par {%
> \hbox to 0pt{%
>\llap{L}%
>\vadjust{\strut\blackrule[width=1cm,color=red]}%
>\hbox{\vadjust pre{\strut\blackrule[width=1cm,color=green]}}%
> }\hss
>  }%
>  \localrightbox par {}%
>  \input tufte \removeunwantedspaces\space
>  \vadjust pre{\strut BEFORE 1}%
>  \vadjust pre{\strut BEFORE 2}%
>  \vadjust before {\strut AFTER  1}%
>  \vadjust before {\strut AFTER  2}%
>  \ignorespaces
>  \input tufte
> \stoptext
>
> Indeed it looks bad (ugly) but it illustrates the idea. What makes
> vadjust sort of useless for content is that it messes up spacing (but if
> there is real demand and usage i can sort that out at some point, maybe
> some new options or so). Thsi example also brings us to local boxes:
>
> \showframe
>
> \starttext
>
> \showmakeup[hbox]
>
> \startnarrower[2*left] \raggedleft
> {\localleftbox par {L1}\input tufte  \par}
> \stopnarrower
> \blank
>
> \startnarrower[2*middle] \raggedcenter
> {\localrightbox par {R1}\input tufte  \par}
> \stopnarrower
> \blank
>
> \stoptext
>
> New is the par keyword that forces the setting to be applied from the
> first line downards (fyio: these commands, when display set registers,
> when inline they set registers and inject a node). Watch out: one needs
> to use grouping in order not to bleed into other mechanisms.
>
> Also new is that we can query the content of these registers using \the,
> as in:
>
> \dorecurse{10}{
>  \showboxes
>  \localleftbox{\ruledhbox {\smallinfofont\setstrut\strut[L #1.0]}}%
>  \localleftbox{\ruledhbox {\smallinfofont\setstrut\strut[L
> #1.1]}\the\localleftbox}%
>  \localleftbox{\ruledhbox {\smallinfofont\setstrut\strut[L
> #1.2]}\the\localleftbox}%
>  \localleftbox{\ruledhbox {\smallinfofont\setstrut\strut[L
> #1.3]}\the\localleftbox}%
>  %
>  \localrightbox{\ruledhbox
> {\smallinfofont\setstrut\strut[R #1.0]}}%
>
> \localrightbox{\the\localrightbox\ruledhbox{\smallinfofont\setstrut\strut[R
>
> #1.1]}}%
>
> \localrightbox{\the\localrightbox\ruledhbox{\smallinfofont\setstrut\strut[R
>
> #1.2]}}%
>  \localrightbox{\the\localrightbox\ruledhbox{\smallinfofont[R #1.3]}}%
>  % \localrightbox{}%
>  \samplefile{tufte}
> }
>
> Flushing permits us to append and prepend but it's still ugly so that is
> why we now have a new interface (context layer on top of engine):
>
> \dorecurse{10}{
>  \showboxes
>  %
>  \resetleftparbox
>  \resetrightparbox
>  %
>  \prependleftparbox {\ruledhbox{\smallinfofont\setstrut\strut[L
> #1.0]}}%
>  \prependleftparbox {\ruledhbox{\smallinfofont\setstrut\strut[L
> #1.1]}}%
>  \prependleftparbox {\ruledhbox{\smallinfofont\setstrut\strut[L
> #1.2]}}%
>  \prependleftparbox {\ruledhbox{\smallinfofont\setstrut\strut[L
> #1.3]}}%
>  %
>  \appendrightparbox{\ruledhbox{\smallinfofont\setstrut\strut[R #1.0]}}%
>  \appendrightparbox{\ruledhbox{\smallinfofont\setstrut\strut[R #1.1]}}%
>  \appendrightparbox{\ruledhbox{\smallinfofont\setstrut\strut[R #1.2]}}%
>  \appendrightparbox{\rule

[NTG-context] new upload, new trickery

2021-10-28 Thread Hans Hagen via ntg-context

Hi,

Among the 'can they be made better' candidates in the engine are 
\vadjust and \local[left|right]box primitives that are not really used 
in context (okay, vadjust is used in mkii).


The \vadjust vertical injector can be illustrated with

\starttext
\ignorespaces\input tufte \removeunwantedspaces
we want a break before this line \vadjust pre {\break}%
\ignorespaces\input tufte \removeunwantedspaces

\page

\ignorespaces\input tufte \removeunwantedspaces
we want seperate lines now \leftparbox{\vadjust post {\break}}%
\ignorespaces\input tufte \removeunwantedspaces
\resetleftparbox{}
\stoptext

It's a signal that injects something in a vertical list without 
interupting the horizontal text flow. One can inject before (pre) or 
after (post which is default). New is that we can also influence the 
order: after vs before preceding \vadjust in the same line.  Also new is 
that deeply nested adjustments can migrate (so the hole los: marks, 
inserts and vadjust are now in sync) which is demonstrated with the next 
example:


\starttext
\showstruts
\input tufte \removeunwantedspaces\space
\localleftbox  par {%
   \hbox to 0pt{%
  \llap{L}%
  \vadjust{\strut\blackrule[width=1cm,color=red]}%
  \hbox{\vadjust pre{\strut\blackrule[width=1cm,color=green]}}%
   }\hss
}%
\localrightbox par {}%
\input tufte \removeunwantedspaces\space
\vadjust pre{\strut BEFORE 1}%
\vadjust pre{\strut BEFORE 2}%
\vadjust before {\strut AFTER  1}%
\vadjust before {\strut AFTER  2}%
\ignorespaces
\input tufte
\stoptext

Indeed it looks bad (ugly) but it illustrates the idea. What makes 
vadjust sort of useless for content is that it messes up spacing (but if 
there is real demand and usage i can sort that out at some point, maybe 
some new options or so). Thsi example also brings us to local boxes:


\showframe

\starttext

\showmakeup[hbox]

\startnarrower[2*left] \raggedleft
{\localleftbox par {L1}\input tufte  \par}
\stopnarrower
\blank

\startnarrower[2*middle] \raggedcenter
{\localrightbox par {R1}\input tufte  \par}
\stopnarrower
\blank

\stoptext

New is the par keyword that forces the setting to be applied from the 
first line downards (fyio: these commands, when display set registers, 
when inline they set registers and inject a node). Watch out: one needs 
to use grouping in order not to bleed into other mechanisms.


Also new is that we can query the content of these registers using \the, 
as in:


\dorecurse{10}{
\showboxes
\localleftbox{\ruledhbox {\smallinfofont\setstrut\strut[L #1.0]}}%
\localleftbox{\ruledhbox {\smallinfofont\setstrut\strut[L 
#1.1]}\the\localleftbox}%
\localleftbox{\ruledhbox {\smallinfofont\setstrut\strut[L 
#1.2]}\the\localleftbox}%
\localleftbox{\ruledhbox {\smallinfofont\setstrut\strut[L 
#1.3]}\the\localleftbox}%

%
\localrightbox{\ruledhbox 
{\smallinfofont\setstrut\strut[R #1.0]}}%


\localrightbox{\the\localrightbox\ruledhbox{\smallinfofont\setstrut\strut[R 
#1.1]}}%


\localrightbox{\the\localrightbox\ruledhbox{\smallinfofont\setstrut\strut[R 
#1.2]}}%

\localrightbox{\the\localrightbox\ruledhbox{\smallinfofont[R #1.3]}}%
% \localrightbox{}%
\samplefile{tufte}
}

Flushing permits us to append and prepend but it's still ugly so that is 
why we now have a new interface (context layer on top of engine):


\dorecurse{10}{
\showboxes
%
\resetleftparbox
\resetrightparbox
%
\prependleftparbox {\ruledhbox{\smallinfofont\setstrut\strut[L #1.0]}}%
\prependleftparbox {\ruledhbox{\smallinfofont\setstrut\strut[L #1.1]}}%
\prependleftparbox {\ruledhbox{\smallinfofont\setstrut\strut[L #1.2]}}%
\prependleftparbox {\ruledhbox{\smallinfofont\setstrut\strut[L #1.3]}}%
%
\appendrightparbox{\ruledhbox{\smallinfofont\setstrut\strut[R #1.0]}}%
\appendrightparbox{\ruledhbox{\smallinfofont\setstrut\strut[R #1.1]}}%
\appendrightparbox{\ruledhbox{\smallinfofont\setstrut\strut[R #1.2]}}%
\appendrightparbox{\ruledhbox{\smallinfofont[R #1.3]}}%
%
\samplefile{tufte}
}

But as this is not really user friendly, there is more: a mechanism for 
hooking in handlers.


\definelocalboxes
  [linenumber]
  [command=\LeftNumber,
   location=left,
   width=3em,
   style=\bs,
   color=darkred]

\definelocalboxes
  [linenumbertwo]
  [linenumber]
  [command=\RightNumber,
   location=right,
   width=6em,
   style=\bf,
   color=darkgreen]

\definelocalboxes
  [linetext]
  [command=\LeftText,
   location=lefttext,
   style=\bs,
   color=darkblue]

\definelocalboxes
  [linetexttwo]
  [linetext]
  [command=\RightText,
   location=righttext,
   style=\bf,
   color=darkgray]

% just using the content

% \protected\def\LeftNumber {\hbox to 
\localboxesparameter{width}{\strut\box\localboxcontentbox\hss)}}
% \protected\def\RightNumber{\hbox to 
\localboxesparameter{width}{\strut(\hss\box\localboxcontentbox)}}


% using

[NTG-context] Solved: Book setup with LHS-side quotes before chapters/parts, header/footer issues, TOC, etc.

2021-10-26 Thread Gerben Wierda via ntg-context
Thanks to Wolfgang Schuster and Bruce Horrocks I have now a working solution. I 
ended up following Bruce’s suggestion of doing a left hand side (LHS) page 
opposite the first (RHS) chapter or part page differently than using 
after/before modifications of the \chapter and \part setups as I had been doing 
years ago (but that book did not have parts and was done in mkii)

The modification of \chapter and \part setups with before= and after= never 
worked in the \component setup in LMTX. Creating a separate command to run 
immediately before a \chapter or \part, as suggested by Bruce, was simpler and 
and turned out to be more robust. So, this single file example also works when 
\components are used.

The only issues I have now left are very minimal. In the table of contents, the 
abstract for a part has some extra whitespace above, which the chapter 
abstracts don’t have. But that is not really a problem. And getting the part 
title somewhere more centred on its page is also left as an issue for later.

Example file. In a project/component setup: everything before the \starttext 
goes into the environment file, the rest in the product file.

%%%
%%% Sections that have a LHS preface with a quote
%%%

\startsetups SectionLHSPageSetup
 \page[left]
 \setupheader[state=empty]
 \start
\startalignment[left,nothyphenated]
\startnarrower[4*left]
\tf\it
\stopsetups

\definestartstop [SectionLHSPage]
 [ before={\setups{SectionLHSPageSetup}},
   after={\stopnarrower
\stopalignment\stop}]

\define[1]\SectionPrequote{\startSectionLHSPage #1\stopSectionLHSPage}

%%%
%%% part is managed here
%%%
\defineconversionset [part] [Romannumerals] [numbers]
\setuplabeltext[en][partlabel=Part~]

\setuphead [part]
  [sectionsegments=part,
   bodypartlabel=partlabel,
   appendixlabel=,
   sectionconversionset=part,
   page=yes,
   header=empty,
   footer=empty,
   placehead=yes]

\definelist[parttext]
\setuplist[parttext][margin=1.3em,pagecommand=\gobbleoneargument]
\define[1]\PartAbstract{\writetolist[parttext]{}{\start\itx#1\stop}}

%%%
%%% chapter is managed here
%%%
\definetext
  [chapterfooter] % name
  [footer]% vertical location
  [pagenumber]% content

\setuplabeltext[en][appendixchapterlabel=Appendix~]
\setuphead
  [chapter]
  [page=yes,
   header=empty,
   bodypartlabel=,
   appendixlabel=appendixchapterlabel,
   footer=chapterfooter,
   sectionsegments=chapter,
   before={\blank[force,2*big]},
   after={\blank[3*big]}]

\definelist[chaptertext]
\setuplist[chaptertext][margin=1.3em,pagecommand=\gobbleoneargument]
\define[1]\ChapterAbstract{\writetolist[chaptertext]{}{\start\itx#1\stop}}

\defineresetset [default] [0,0] [1]
\setupcombinedlist [content] [list={part,parttext,chapter,chaptertext}]

\starttext

\startfrontmatter
\completecontent
\SectionPrequote{If you think good architecture is expensive, try bad 
architecture\crlf
{\tf Brian Foote and Joseph Yoder}}
\startchapter[title={One}]
\dorecurse{7}{\input tufte \par \input knuth}
\stopchapter
\stopfrontmatter

\startbodymatter
\dorecurse{3}{
  \SectionPrequote{The world is not \rationals, it is \reals\crlf {\tf Gerben 
Wierda}}
  \part{Title title title}
  \PartAbstract{This is a part abstract.}
  \dorecurse{2}{
\SectionPrequote{If you think good architecture is expensive, try
bad architecture\crlf
{\tf Brian Foote and Joseph Yoder}}
\startchapter[title={Two}]
\ChapterAbstract{This is a chapter abstract.}
\dorecurse{5}{\input tufte \par \input knuth}
\stopchapter
  }
}
\stopbodymatter
\startappendices
  \defineresetset[default][0,1][1] %% reset , chapter, but not part
  \setuphead[part][number=no]
  \SectionPrequote{The world is not \rationals, it is \reals\crlf {\tf Gerben 
Wierda}}
  \part{Title title title}
  \PartAbstract{This is a part abstract.}
  \dorecurse{2}{
\SectionPrequote{If you think good architecture is expensive, try
bad architecture\crlf
{\tf Brian Foote and Joseph Yoder}}
\startchapter[title={Two}]
\ChapterAbstract{This is a chapter abstract.}
\dorecurse{5}{\input tufte \par \input knuth}
\stopchapter
  }
\stopappendices
\stoptext

In a component setup, a part component may look like this:

\startcomponent p_partone
\product prd_book
\project project_book

\SectionPrequote{The world is not \rationals, it is \reals\crlf
{\tf Gerben Wierda}}
\part{Title title title}
\PartAbstract{This is a part abstract for a normal part.}
\component c_chapter
\component c_chapter
\stopcomponent

and a chapter component like this:

\startcomponent c_chapter
\product prd_book
\project project_book

\starttext

\SectionPrequote{If you think good architecture is expensive, try bad 
architecture\crlf
{\tf Brian Foote and Joseph Yoder}}
\chapter{An Inconvenient Truth}
\ChapterAbstract{This is a chapter abstract.}

\setupindenting[next]
\placeinitial I{\kap{\bf n the half}} century or so that human kind has had IT,
the IT sector has increasingly wrestled with the fact that IT projects often
fail in one

Re: [NTG-context] How do I get the first page of the chapter to display the page number in the footer in this setup?

2021-10-25 Thread Bruce Horrocks via ntg-context
Hi Gerben,

See below...

> On 24 Oct 2021, at 17:04, Gerben Wierda via ntg-context  
> wrote:
> 
> On 24 Oct 2021, at 16:38, Wolfgang Schuster 
>  wrote:
>> 
>> Gerben Wierda via ntg-context schrieb am 24.10.2021 um 15:42:
>>> My double-sided layout starts each chapter on a right page with a quote on 
>>> the opposing left page. I’d like to move the page number of that right page 
>>> to the footer, but haven’t been able to find how to do this is the 
>>> documentation. How can I do this?
>> 
>> \definetext
>>   [chapterfooter] % name
>>   [footer]% vertical location
>>   [pagenumber]% content
>> 
>> \setuphead
>>   [chapter]
>>   [header=empty,
>>footer=chapterfooter]
>> 
>> \starttext
>> 
>> \dorecurse{4}
>>   {\expanded{\chapter{Chapter \recurselevel}}
>>\dorecurse{10}{\samplefile{lorem}}}
>> 
>> \stoptext
>> 
>> Wolfgang
> 
> Yes, this works in a simple setup. But it doesn’t work in mine with my 
> LHS-quote/RHS-chapterstart setup using before and after on setup head.
> 
> Try this:
> 
> \setuplayout[location=doublesided]
> \setuppagenumbering[alternative=doublesided]
> 
> \definetext
>   [chapterfooter] % name
>   [footer]% vertical location
>   [pagenumber]% content
> 
> \setuphead[chapter]
>   [page=,
>header=empty,
>footer=chpaterfooter,
>sectionsegments=chapter,
>before={\setups[chapter:before]},
>after={\setups[chapter:after]}]
> 
> \startsetups chapter:before
> \page[left]
> \noheaderandfooterlines
> \startalignment[left,nothyphenated]
> \startnarrower[4*left]
> \em \getbuffer[chapter:quote]
> \stopnarrower
> \stopalignment
> \resetsetups[quote:text]
> \page[right]
> \blank[force,2*big]
> \stopsetups

Change chapter:before to be as follows (changes marked with %%)

\startsetups chapter:before
\page[left]
%noheaderandfooterlines %%
\setupheader[state=empty] %%
\setupfootertexts [] [pagenumber] [pagenumber] [] %%
\startalignment[left,nothyphenated]
\startnarrower[4*left]
\em \getbuffer[chapter:quote]
\stopnarrower
\stopalignment
\resetsetups[quote:text]
\page[right]
\blank[force,2*big]   
\setupfootertexts [] [] [] []  %%
\stopsetups

Is that what you were after?

> 
> \startsetups chapter:after
> \blank[3*big]
> \stopsetups
> 
> \definelist[chaptertext]
> \setuplist[chaptertext][margin=1.3em,pagecommand=\gobbleoneargument]
> \define[1]\ChapterAbstract{\writetolist[chaptertext]{}{\start\itx#1\stop}}
> 
> \starttext
> \startbuffer [chapter:quote]
> If you think good architecture is expensive, try bad architecture\crlf
> {\tf Brian Foote and Joseph Yoder}
> \stopbuffer
> 
> \chapter[h:one]{One}
> \ChapterAbstract{This is chapter abstract 1.}
> 
> \dorecurse{5}{\input tufte \par \input knuth}
> 
> \chapter[h:two]{Two}
> \ChapterAbstract{This is chapter abstract 2.}
> 
> \dorecurse{5}{\input tufte \par \input knuth}
> 
> \stoptext

—
Bruce Horrocks
Hampshire, UK

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Move the page number from header to footer on the current page only?

2021-10-25 Thread Wolfgang Schuster via ntg-context

Gerben Wierda schrieb am 25.10.2021 um 08:41:
I have a problem with getting the page number on the ‘first’ page of a 
chapter (in my setup, it is actually the second page as there is a LHS 
page before it with a quote. The bare minimum example:


When you switch to the chapter-environment get an additional hook at the 
start of each chapter. The advantage of this hook is that its values are 
inserted before the actual chapter code even starts.


\setuppagenumbering[alternative=doublesided]

\definetext
  [chapterfooter] % name
  [footer]    % vertical location
  [pagenumber]    % content

\setuphead
  [chapter]
  [page=yes,
   header=empty,
   footer=chapterfooter,
   sectionsegments=chapter,
   before={\blank[force,2*big]},
   after={\blank[3*big]},
   beforesection=\directsetup{chapter:before}]

\startsetups [chapter:before]
    \page[left]
    \noheaderandfooterlines
    \startalignment[flushright,nothyphenated]
    \startnarrower[4*left]
    \em \getbuffer[chapter:quote]
    \stopnarrower
    \stopalignment
    \page[right]
\stopsetups

\starttext

\startbuffer [chapter:quote]
If you think good architecture is expensive, try bad architecture\crlf
{\tf Brian Foote and Joseph Yoder}
\stopbuffer

\startchapter[title={One}]
\dorecurse{5}{\input tufte \par \input knuth}
\stopchapter

\startchapter[title={Two}]
\dorecurse{5}{\input tufte \par \input knuth}
\stopchapter

\stoptext

Wolfgang

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Move the page number from header to footer on the current page only?

2021-10-25 Thread Gerben Wierda via ntg-context
I have a problem with getting the page number on the ‘first’ page of a chapter 
(in my setup, it is actually the second page as there is a LHS page before it 
with a quote. The bare minimum example:

\setuplayout[location=doublesided]
\setuppagenumbering[alternative=doublesided]

\setuphead[chapter]
  [page=,
   header=empty,
   footer=chpaterfooter,
   sectionsegments=chapter,
   before={\setups[chapter:before]}]

\startsetups chapter:before
\page[left]
\noheaderandfooterlines
\startalignment[left,nothyphenated]
\startnarrower[4*left]
\em \getbuffer[chapter:quote]
\stopnarrower
\stopalignment
\page[right]
\stopsetups

\starttext
\startbuffer [chapter:quote]
If you think good architecture is expensive, try bad architecture\crlf
{\tf Brian Foote and Joseph Yoder}
\stopbuffer

\chapter[h:one]{One}
\dorecurse{5}{\input tufte \par \input knuth}

\chapter[h:two]{Two}
\dorecurse{5}{\input tufte \par \input knuth}

\stoptext

What I think I need is a way to move the page number from header to footer for 
just the current page (immediately after \page[right]) in this setup. 

Or a way to move the page number from header to footer on any current page.

Gerben Wierda (LinkedIn <https://www.linkedin.com/in/gerbenwierda>)
R Enterprise Architecture <https://ea.rna.nl/> (main site)
Book: Chess and the Art of Enterprise Architecture <https://ea.rna.nl/the-book/>
Book: Mastering ArchiMate <https://ea.rna.nl/the-book-edition-iii/>

> On 24 Oct 2021, at 18:04, Gerben Wierda via ntg-context  
> wrote:
> 
> On 24 Oct 2021, at 16:38, Wolfgang Schuster 
>  <mailto:wolfgang.schuster.li...@gmail.com>> wrote:
>> 
>> Gerben Wierda via ntg-context schrieb am 24.10.2021 um 15:42:
>>> My double-sided layout starts each chapter on a right page with a quote on 
>>> the opposing left page. I’d like to move the page number of that right page 
>>> to the footer, but haven’t been able to find how to do this is the 
>>> documentation. How can I do this?
>> 
>> \definetext
>>   [chapterfooter] % name
>>   [footer]% vertical location
>>   [pagenumber]% content
>> 
>> \setuphead
>>   [chapter]
>>   [header=empty,
>>footer=chapterfooter]
>> 
>> \starttext
>> 
>> \dorecurse{4}
>>   {\expanded{\chapter{Chapter \recurselevel}}
>>\dorecurse{10}{\samplefile{lorem}}}
>> 
>> \stoptext
>> 
>> Wolfgang
> 
> Yes, this works in a simple setup. But it doesn’t work in mine with my 
> LHS-quote/RHS-chapterstart setup using before and after on setup head.
> 
> Try this:
> 
> \setuplayout[location=doublesided]
> \setuppagenumbering[alternative=doublesided]
> 
> \definetext
>   [chapterfooter] % name
>   [footer]% vertical location
>   [pagenumber]% content
> 
> \setuphead[chapter]
>   [page=,
>header=empty,
>footer=chpaterfooter,
>sectionsegments=chapter,
>before={\setups[chapter:before]},
>after={\setups[chapter:after]}]
> 
> \startsetups chapter:before
> \page[left]
> \noheaderandfooterlines
> \startalignment[left,nothyphenated]
> \startnarrower[4*left]
> \em \getbuffer[chapter:quote]
> \stopnarrower
> \stopalignment
> \resetsetups[quote:text]
> \page[right]
> \blank[force,2*big]
> \stopsetups
> 
> \startsetups chapter:after
> \blank[3*big]
> \stopsetups
> 
> \definelist[chaptertext]
> \setuplist[chaptertext][margin=1.3em,pagecommand=\gobbleoneargument]
> \define[1]\ChapterAbstract{\writetolist[chaptertext]{}{\start\itx#1\stop}}
> 
> \starttext
> \startbuffer [chapter:quote]
> If you think good architecture is expensive, try bad architecture\crlf
> {\tf Brian Foote and Joseph Yoder}
> \stopbuffer
> 
> \chapter[h:one]{One}
> \ChapterAbstract{This is chapter abstract 1.}
> 
> \dorecurse{5}{\input tufte \par \input knuth}
> 
> \chapter[h:two]{Two}
> \ChapterAbstract{This is chapter abstract 2.}
> 
> \dorecurse{5}{\input tufte \par \input knuth}
> 
> \stoptext
> 
> 
> 
> Gerben Wierda (LinkedIn <https://www.linkedin.com/in/gerbenwierda>)
> R Enterprise Architecture <https://ea.rna.nl/> (main site)
> Book: Chess and the Art of Enterprise Architecture 
> <https://ea.rna.nl/the-book/>
> Book: Mastering ArchiMate <https://ea.rna.nl/the-book-edition-iii/>
> 
> 
> ___
> 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://con

Re: [NTG-context] How do I get the first page of the chapter to display the page number in the footer in this setup?

2021-10-24 Thread Gerben Wierda via ntg-context
On 24 Oct 2021, at 16:38, Wolfgang Schuster  
wrote:
> 
> Gerben Wierda via ntg-context schrieb am 24.10.2021 um 15:42:
>> My double-sided layout starts each chapter on a right page with a quote on 
>> the opposing left page. I’d like to move the page number of that right page 
>> to the footer, but haven’t been able to find how to do this is the 
>> documentation. How can I do this?
> 
> \definetext
>   [chapterfooter] % name
>   [footer]% vertical location
>   [pagenumber]% content
> 
> \setuphead
>   [chapter]
>   [header=empty,
>footer=chapterfooter]
> 
> \starttext
> 
> \dorecurse{4}
>   {\expanded{\chapter{Chapter \recurselevel}}
>\dorecurse{10}{\samplefile{lorem}}}
> 
> \stoptext
> 
> Wolfgang

Yes, this works in a simple setup. But it doesn’t work in mine with my 
LHS-quote/RHS-chapterstart setup using before and after on setup head.

Try this:

\setuplayout[location=doublesided]
\setuppagenumbering[alternative=doublesided]

\definetext
  [chapterfooter] % name
  [footer]% vertical location
  [pagenumber]% content

\setuphead[chapter]
  [page=,
   header=empty,
   footer=chpaterfooter,
   sectionsegments=chapter,
   before={\setups[chapter:before]},
   after={\setups[chapter:after]}]

\startsetups chapter:before
\page[left]
\noheaderandfooterlines
\startalignment[left,nothyphenated]
\startnarrower[4*left]
\em \getbuffer[chapter:quote]
\stopnarrower
\stopalignment
\resetsetups[quote:text]
\page[right]
\blank[force,2*big]
\stopsetups

\startsetups chapter:after
\blank[3*big]
\stopsetups

\definelist[chaptertext]
\setuplist[chaptertext][margin=1.3em,pagecommand=\gobbleoneargument]
\define[1]\ChapterAbstract{\writetolist[chaptertext]{}{\start\itx#1\stop}}

\starttext
\startbuffer [chapter:quote]
If you think good architecture is expensive, try bad architecture\crlf
{\tf Brian Foote and Joseph Yoder}
\stopbuffer

\chapter[h:one]{One}
\ChapterAbstract{This is chapter abstract 1.}

\dorecurse{5}{\input tufte \par \input knuth}

\chapter[h:two]{Two}
\ChapterAbstract{This is chapter abstract 2.}

\dorecurse{5}{\input tufte \par \input knuth}

\stoptext



Gerben Wierda (LinkedIn <https://www.linkedin.com/in/gerbenwierda>)
R Enterprise Architecture <https://ea.rna.nl/> (main site)
Book: Chess and the Art of Enterprise Architecture <https://ea.rna.nl/the-book/>
Book: Mastering ArchiMate <https://ea.rna.nl/the-book-edition-iii/>


___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] How do I get the first page of the chapter to display the page number in the footer in this setup?

2021-10-24 Thread Gerben Wierda via ntg-context
I attempted this:

\page[right]
\setupheadertexts[]
\setupfootertexts[pagenumber]
\setupfooter[text][after={\setupfootertexts[]\setupheadertexts[pagenumber]}]

but that does not work. This definitely moves the page numbers to the footer.

Gerben Wierda (LinkedIn <https://www.linkedin.com/in/gerbenwierda>)
R Enterprise Architecture <https://ea.rna.nl/> (main site)
Book: Chess and the Art of Enterprise Architecture <https://ea.rna.nl/the-book/>
Book: Mastering ArchiMate <https://ea.rna.nl/the-book-edition-iii/>

> On 24 Oct 2021, at 15:42, Gerben Wierda via ntg-context  
> wrote:
> 
> My double-sided layout starts each chapter on a right page with a quote on 
> the opposing left page. I’d like to move the page number of that right page 
> to the footer, but haven’t been able to find how to do this is the 
> documentation. How can I do this?
> 
> Example:
> 
> \setuplayout[location=doublesided]
> \setuppagenumbering[alternative=doublesided]
> \setuphead[chapter]
>   [page=,
>sectionsegments=chapter,
>before={\setups[chapter:before]},
>after={\setups[chapter:after]}]
> 
> \startsetups chapter:before
> \page[left]
> \noheaderandfooterlines
> \startalignment[left,nothyphenated]
> \startnarrower[4*left]
> \em \getbuffer[chapter:quote]
>   \stopnarrower
> \stopalignment
> \resetsetups[quote:text]
> \page[right]
> %\noheaderandfooterlines % I want the enumber in the footer here
> \blank[force,2*big]
> \stopsetups
> 
> \startsetups chapter:after
> \blank[3*big]
> \stopsetups
> 
> \definelist[chaptertext]
> \setuplist[chaptertext][margin=1.3em,pagecommand=\gobbleoneargument]
> \define[1]\ChapterAbstract{\writetolist[chaptertext]{}{\start\itx#1\stop}}
> 
> \starttext
> \startbuffer [chapter:quote]
> If you think good architecture is expensive, try bad architecture\crlf
> {\tf Brian Foote and Joseph Yoder}
> \stopbuffer
> 
> \chapter[h:one]{One}
> \ChapterAbstract{This is chapter abstract 1.}
> 
> \dorecurse{5}{\input tufte \par \input knuth}
> 
> \chapter[h:two]{Two}
> \ChapterAbstract{This is chapter abstract 2.}
> 
> \dorecurse{5}{\input tufte \par \input knuth}
> 
> \stoptext
> 
> Gerben Wierda (LinkedIn <https://www.linkedin.com/in/gerbenwierda>)
> R Enterprise Architecture <https://ea.rna.nl/> (main site)
> Book: Chess and the Art of Enterprise Architecture 
> <https://ea.rna.nl/the-book/>
> Book: Mastering ArchiMate <https://ea.rna.nl/the-book-edition-iii/>
> 
> ___
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] How do I get the first page of the chapter to display the page number in the footer in this setup?

2021-10-24 Thread Gerben Wierda via ntg-context
My double-sided layout starts each chapter on a right page with a quote on the 
opposing left page. I’d like to move the page number of that right page to the 
footer, but haven’t been able to find how to do this is the documentation. How 
can I do this?

Example:

\setuplayout[location=doublesided]
\setuppagenumbering[alternative=doublesided]
\setuphead[chapter]
  [page=,
   sectionsegments=chapter,
   before={\setups[chapter:before]},
   after={\setups[chapter:after]}]

\startsetups chapter:before
\page[left]
\noheaderandfooterlines
\startalignment[left,nothyphenated]
\startnarrower[4*left]
\em \getbuffer[chapter:quote]
\stopnarrower
\stopalignment
\resetsetups[quote:text]
\page[right]
%\noheaderandfooterlines % I want the enumber in the footer here
\blank[force,2*big]
\stopsetups

\startsetups chapter:after
\blank[3*big]
\stopsetups

\definelist[chaptertext]
\setuplist[chaptertext][margin=1.3em,pagecommand=\gobbleoneargument]
\define[1]\ChapterAbstract{\writetolist[chaptertext]{}{\start\itx#1\stop}}

\starttext
\startbuffer [chapter:quote]
If you think good architecture is expensive, try bad architecture\crlf
{\tf Brian Foote and Joseph Yoder}
\stopbuffer

\chapter[h:one]{One}
\ChapterAbstract{This is chapter abstract 1.}

\dorecurse{5}{\input tufte \par \input knuth}

\chapter[h:two]{Two}
\ChapterAbstract{This is chapter abstract 2.}

\dorecurse{5}{\input tufte \par \input knuth}

\stoptext

Gerben Wierda (LinkedIn <https://www.linkedin.com/in/gerbenwierda>)
R Enterprise Architecture <https://ea.rna.nl/> (main site)
Book: Chess and the Art of Enterprise Architecture <https://ea.rna.nl/the-book/>
Book: Mastering ArchiMate <https://ea.rna.nl/the-book-edition-iii/>

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] paragraph standing out of the normal layout comsuming the margin

2021-06-29 Thread Jan U. Hasecke

Hi Wolfgang,

I am late as I was busy elsewhere, but thanks a lot for your help.

Am 25.06.21 um 13:44 schrieb Wolfgang Schuster:


\startsetups [userdata:shiftblock]
     \signalrightpage
     \doifelserightpage {
     \startnarrower[2*left,-2*right]
     \getuserdata
     \stopnarrower
     } {
     \startnarrower[-2*left,2*right]
     \getuserdata
     \stopnarrower
     }
\stopsetups

\defineuserdataalternative
     [shiftblock]
     [renderingsetup=userdata:shiftblock]

\defineuserdata
     [shiftblock]
     [before=\blank,
  after=\blank,
  alternative=shiftblock]

\setuppagenumbering
     [alternative=doublesided]

\starttext

\startbuffer
     \dorecurse{2}{\input knuth\par}
     \startuserdata[shiftblock]
     \input ward
     \stopuserdata
     \dorecurse{2}{\input zapf\par}
\stopbuffer

\dorecurse{10}{\getbuffer}

\stoptext


I'll try to adapt this into my project. Thanks a lot.

juh
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] paragraph standing out of the normal layout comsuming the margin

2021-06-25 Thread Wolfgang Schuster

Jan U. Hasecke schrieb am 25.06.2021 um 13:19:

Dear all,

the mwe shows my try to define a paragraph that stand out like this:


On right pages

xxx
xxx
    xx
    xx
xxx
xxx


On left pages

   xxx
   xxx
xx
xx
   xxx
   xxx


My try with setups does not work. The textcolor is restored but not the 
layout. Can I reset to the standard layout with an \after command?



You can't change to a different layout in the middle of a page.

What you're looking for is the narrower environment where you can
change the margins in the left and right side.


\startsetups [userdata:shiftblock]
\signalrightpage
\doifelserightpage {
\startnarrower[2*left,-2*right]
\getuserdata
\stopnarrower
} {
\startnarrower[-2*left,2*right]
\getuserdata
\stopnarrower
}
\stopsetups

\defineuserdataalternative
[shiftblock]
[renderingsetup=userdata:shiftblock]

\defineuserdata
[shiftblock]
[before=\blank,
 after=\blank,
 alternative=shiftblock]

\setuppagenumbering
[alternative=doublesided]

\starttext

\startbuffer
\dorecurse{2}{\input knuth\par}
\startuserdata[shiftblock]
\input ward
\stopuserdata
\dorecurse{2}{\input zapf\par}
\stopbuffer

\dorecurse{10}{\getbuffer}

\stoptext


Wolfgang
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


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

2021-06-09 Thread Hans Hagen

On 6/9/2021 7:30 PM, Michael Urban wrote:

I am not especially facile with ConTeXt, and it has been years since I did 
anything complex with TeX, so I am hoping someone could help me with this.  The 
following is probably not great code, but it shows what I am trying to do.
The problems are twofold: a benign problem is that I get underfull hbox errors 
(\dontcomplain notwithstanding).  But the other problem is that with text of a 
certain size, the final line is much shorter than the others.  Is there some 
clever way to repeatedly typeset the text (e.g., put it in an hbox, measure 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]
   \startnarrower[left,right]
   \setupalign[flushright,nothyphenated,broad]
   \dontcomplain
   \noindent},
after={\stopalignment\stopnarrower
   \blank[EpigraphDistance]
   \indenting[next]}]


\long\def\epigraph#1#2#3{%
  \startEpigraphText #1 \par \stopEpigraphText
  \ifx\hfuzz#3\hfuzz
   \rightaligned{\ssa\sl --- #2}
  \else
   \rightaligned{\ssa\sl --- #2, \tf\ssa\symbol[leftquote]#3\symbol[rightquote]}
  \fi
}

\starttext
Testing epigraph

\epigraph{% para
\quotation{My birthday-present!} he whispered to himself, as he had often done
in the endless dark days. \quotation{That's what we\unknown}
}{J.R.R. Tolkien}{The Hobbit}

That was an epigraph.

\stoptext

I assume that when you see some trickery that you can do the rest yourself.


\starttext

First we typeset the box ad one line and then flush it in a vertical box 
(paragraph). We can of course also typeset each time. When we're okay 
with the fit (naturalwidth == less than max width) we quit. We can 
assume that spaces have enough stretch to deal with the close fit.


\protected\def\makeitfit#1#2#3%
  {\begingroup
   \hsize#1\relax
   \setbox\scratchboxone\hbox\bgroup#3\egroup
   \doloop {%
  \setbox\scratchboxtwo\vbox\bgroup\unhcopy\scratchboxone\egroup
  \scratchdimenone\boxlinenw\scratchboxtwo\boxlines\scratchboxtwo
  \scratchdimentwo\boxlinewd\scratchboxtwo\boxlines\scratchboxtwo
  \ifdim\scratchdimenone<\scratchdimentwo
\advance\hsize-#2\relax
  \else
\unhbox\scratchboxone
\exitloop
  \fi
   }%
   \endgroup}

This variant is more neat as it returns the to b eused width. It doesn't 
flush the content.


\protected\def\guessbestwidth#1#2#3% no \protected when no \dimexpr
  {\beginlocalcontrol
   \begingroup
   \hsize#1\relax
   \setbox\scratchboxone\hbox\bgroup#3\egroup
   \doloop {%
  \setbox\scratchboxtwo\vbox\bgroup\unhcopy\scratchboxone\egroup
  \scratchcounter\boxlines\scratchboxtwo % n of lines
  \scratchdimenone\boxlinenw\scratchboxtwo\scratchcounter
  \scratchdimentwo\boxlinewd\scratchboxtwo\scratchcounter
  \ifdim\scratchdimenone<\scratchdimentwo
\advance\hsize-#2\relax
  \else
\exitloop
  \fi
   }%
 % \normalexpanded{\endgroup\endlocalcontrol\the\hsize}}
   \normalexpanded{\endgroup\endlocalcontrol\dimexpr\the\hsize\relax}}

Here are some tests:

\makeitfit{10cm}{1mm}{\input{ward}}

\hsize \guessbestwidth{10cm}{1mm}{\input{ward}}

\input{ward}

\the\guessbestwidth{10cm}{1mm}{\input{ward}}

\stoptext

The mechanisms used are relatively simple:

- good old tex primitives
- few scratch registers
- a loop that we quit
- the boxlines mechanism discussed in some manual (i admit that i 
already had forgotten about it)
- and in the last example some local processing magic which makes sure 
that all these calculations are unseen


One can then of course try to make it more compact:

\protected\def\guessbestwidth#1#2#3%
  {\beginlocalcontrol
   \begingroup
   \hsize#1\relax
   \setbox\scratchboxone\hbox\bgroup#3\egroup
   \doloop {%
  \setbox\scratchboxtwo\vbox\bgroup\unhcopy\scratchboxone\egroup
  \scratchcounter\boxlines\scratchboxtwo

\ifdim\boxlinenw\scratchboxtwo\scratchcounter<\boxlinewd\scratchboxtwo\scratchcounter
\advance\hsize-#2\relax
  \else
\exitloop
  \fi
   }%
   \normalexpanded{\endgroup\endlocalcontrol\dimexpr\the\hsize\relax}}

And of course you now need to wikify it.

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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.

[NTG-context] Calculating Best Box Width?

2021-06-09 Thread Michael Urban
I am not especially facile with ConTeXt, and it has been years since I did 
anything complex with TeX, so I am hoping someone could help me with this.  The 
following is probably not great code, but it shows what I am trying to do.
The problems are twofold: a benign problem is that I get underfull hbox errors 
(\dontcomplain notwithstanding).  But the other problem is that with text of a 
certain size, the final line is much shorter than the others.  Is there some 
clever way to repeatedly typeset the text (e.g., put it in an hbox, measure 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]
  \startnarrower[left,right]
  \setupalign[flushright,nothyphenated,broad]
  \dontcomplain
  \noindent},
   after={\stopalignment\stopnarrower
  \blank[EpigraphDistance]
  \indenting[next]}]


\long\def\epigraph#1#2#3{%
 \startEpigraphText #1 \par \stopEpigraphText
 \ifx\hfuzz#3\hfuzz
  \rightaligned{\ssa\sl --- #2}
 \else
  \rightaligned{\ssa\sl --- #2, \tf\ssa\symbol[leftquote]#3\symbol[rightquote]}
 \fi
}

\starttext
Testing epigraph

\epigraph{% para
\quotation{My birthday-present!} he whispered to himself, as he had often done
in the endless dark days. \quotation{That's what we\unknown}
}{J.R.R. Tolkien}{The Hobbit}

That was an epigraph.

\stoptext





___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] \startblockquote…\stopblockquote issue

2020-12-31 Thread Alan Bowen
In the latest standalone ( ConTeXt  ver: 2020.12.30 16:45 LMTX  fmt:
2020.12.30),
\startblockquote and \stopblockquote do not work when I use the key,
method=font, or include \setupquotation[method=font].

MWE
%\setupquotation[method=font]
\setupdelimitedtext[blockquote][
% method=font,
  before={\blank[small,fixed]
  \setupnarrower[left=1.5pc,right=0pc]
  \startnarrower[left,right]
\noindentation\switchtobodyfont[9pt]},
  after={\par\stopnarrower
  \blank[small,fixed]
\noindentation},]
\starttext
\input ward
\startblockquote
\input ward
\stopblockquote
\stoptext

I am attempting to get protrusion of the left double quotation mark into
the left margin when possible at the start of a line and do not
understand why my block quotations are not appearing as expected.

Alan
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] lmtx

2020-10-30 Thread Jairo A. del Rio
Hi, Hans. The last release is considerably faster for smaller documents
(for larger documents differences seem to be neglectable). Thank you for
such an improvement. However, something is wrong with one manual:
luametatex manual won't compile:

156 Beware: the values are always saved in the format, independent of
the setting
157 of \prm {savinghyphcodes} at the moment the format is dumped.
158
159 A boundary node normally would mark the end of a word which
interferes with for
160 instance discretionary injection. For this you can use the \prm
{wordboundary}
161 as a trigger. Here are a few examples of usage:
162
163 \startbuffer
164 discrete---discrete
165 \stopbuffer
166 >>  \typebuffer \startnarrower \dontcomplain \hsize 1pt \getbuffer \par
\stopnarrower
167 \startbuffer
168 discrete\discretionary{}{}{---}discrete
169 \stopbuffer
170 \typebuffer \startnarrower \dontcomplain \hsize 1pt \getbuffer \par
\stopnarrower
171 \startbuffer
172 discrete\wordboundary\discretionary{}{}{---}discrete
173 \stopbuffer
174 \typebuffer \startnarrower \dontcomplain \hsize 1pt \getbuffer \par
\stopnarrower
175 \startbuffer
176 discrete\wordboundary\discretionary{}{}{---}\wordboundary
discrete

A number should have been here; I inserted '0'. (If you can't figure out
why I
needed to see a number, look up 'weird error' in the index to The TeXbook.)

The prepackaged PDF manual is also broken: an error banner.

Regards,

Jairo :)

El vie., 30 de oct. de 2020 a la(s) 17:29, Hans Hagen (j.ha...@xs4all.nl)
escribió:

> Hi,
>
> I might have uploaded a new version by accident so be careful when you
> update. Make a backup first. Sorry,
>
> The test suite compiles, which doesn't day all is ok as i just run it.
>
> There are no funcional changes, only a bit of conceptual reworking of
> some internals in the process of adapting to new features as well as
> protection, so
>
>\starttext
>
>\start
>\def\framed{oeps}
>\stop
>
>\stoptext
>
> is permitted, but when you run with
>
>context --overloadmode=warning
>
> you get a warning and with
>
>context --overloadmode=error
>
> the run aborts. Here is a user macro example:
>
>\frozen\def\foo{oeps}
>   \def\foo{oeps} % warning or error
>\overloaded\def\foo{oeps} % okay
>
> eventually all system macros will be way more protected, being
> primitive, permanent, immutable to mention some of the possible
> properties. It's work in progress as you can imagine some pitfals and in
> order for it to work well quite some has to be flagged. Also, I have to
> play with some related additions.
>
> (This version also makes more extensive use of some new macro features
> but that's for later.)
>
> Hans
>
> -
>Hans Hagen | PRAGMA ADE
>Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -
>
> ___
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
>
> ___
>
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Local custom notes affect regular footnotes

2020-10-09 Thread Henning Hraban Ramm
If I use local notes, regular footnotes disappear in the following example:


\definenote[testnote]

\starttext

\startlocalnotes[testnote]

Test\testnote{Custom note}

Other text inbetween with normal footnotes.\footnote{Footnote}

Test\testnote{Another custom note}

Other text afterwards with normal footnotes.\footnote{Other Footnote}

:::\placelocalnotes[testnote] :::

---\placelocalnotes[footnote] --- % just to be sure, no output
%\stoplocalnotes % a NOP?

\stoptext


(LMTX or MkIV 2020.09.20 23:02)

The use case is a commented edition of historical letters. Footnotes of letter 
contents should be local and numbered per letter, while general footnotes 
should behave as usual and are numbered by text.
(This setup works otherwise, no need to explain.)
Actually, the “normal text” part appears only after a letter, but before 
\placelocalnotes.


The logical structure would be:

\startlocalnotes[testnote]

\startnarrower
\input lorem\testnote{bla bla}

\input lorem\testnote{bla bla}
\stopnarrower

\stoplocalnotes % forgets local notes

\input knuth\footnote{Donald dixit}

\placelocalnotes[testnote] % nothing


In the MWE, the footnotes just disappear. In the actual project the problem is 
different, but I couldn’t reproduce it in a MWE. I guess the interference of 
different note types is the cause of both problems.

I tried using the same custom note for the last comment as a workaround, but it 
gets placed twice: once at the bottom of the current page (i.e. like a normal 
footnote, out of order) and once after the other custom notes.
(The letter is in a delimitedtext environment.)



Hraban
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Quotation with footnote

2020-09-04 Thread Wolfgang Schuster

Henning Hraban Ramm schrieb am 04.09.2020 um 15:34:

Am 04.09.2020 um 13:25 schrieb Henning Hraban Ramm :

My current book contains a lot of quotations with their sources marked as 
footnotes, e.g.


\definedelimitedtext[Zitat][
  %setups=Zitat, % doesn’t work!?
  left=»,
  right=«,
  leftmargin=2em,
  rightmargin=1.5em,
]

\startZitat
A rose is a rose is a rose.\footnote{Marx brothers}
\stopZitat


Now, since the quotations are whole sentences or paragraphs, the footnote 
marker needs to be placed _after_ the closing quotation mark. (German 
typography, I learned it’s different at least in US English.)

I tried several approaches e.g. with my own single start/stop macros that call 
\start/stopnarrower or \start/stopZitat – that always lead to unclosed 
environments.

This looks as I want it to:

\setupnarrower[left=2em,right=1.5em]

\startnarrower
\hskip-0.33em\quotation{Im übrigen ist der Mensch ein Lebewesen, das klopft, 
schlechte Musik macht und seinen Hund bellen läßt. Manchmal gibt er auch Ruhe, 
aber dann ist er tot.}\footnote[f:9]{Kaspar Hauser (Kurt Tucholsky), Weltbühne 
24, 16.\,6.\,1931}
\stopnarrower

But how can I make that into a single environment?


\startsetups [userdata:myquote]
    \startnarrow [left=2em,right=1.5em]
%\dontleavehmode\llap{\symbol[leftquotation]}\getinlineuserdata\symbol[rightquotation]
    \symbol[leftquotation]\getinlineuserdata\symbol[rightquotation]
    \doifsomething{\userdataparameter{source}}
{\footnote[\userdataparameter{reference}]{\userdataparameter{source}}}
    \stopnarrow
\stopsetups

\defineuserdataalternative
  [myquote]
  [renderingsetup=userdata:myquote]

\defineuserdata
  [myquote]
  [alternative=myquote]

\showframe

\definefontfeature [default] [default] [protrusion=quality]

\setupalign [hanging]

\starttext

\startuserdata [myquote] [reference={f:9},source={Kaspar Hauser (Kurt 
Tucholsky), Weltbühne 24, 16.\,6.\,1931}]
Im übrigen ist der Mensch ein Lebewesen, das klopft, schlechte Musik 
macht und seinen Hund bellen läßt. Manchmal gibt er auch Ruhe, aber dann 
ist er tot.

\stopuserdata

\stoptext

Wolfgang

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Quotation with footnote

2020-09-04 Thread Henning Hraban Ramm


> Am 04.09.2020 um 13:25 schrieb Henning Hraban Ramm :
> 
> My current book contains a lot of quotations with their sources marked as 
> footnotes, e.g.
> 
> 
> \definedelimitedtext[Zitat][
>  %setups=Zitat, % doesn’t work!?
>  left=»,
>  right=«,
>  leftmargin=2em,
>  rightmargin=1.5em,
> ]
> 
> \startZitat
> A rose is a rose is a rose.\footnote{Marx brothers}
> \stopZitat
> 
> 
> Now, since the quotations are whole sentences or paragraphs, the footnote 
> marker needs to be placed _after_ the closing quotation mark. (German 
> typography, I learned it’s different at least in US English.)
> 
> I tried several approaches e.g. with my own single start/stop macros that 
> call \start/stopnarrower or \start/stopZitat – that always lead to unclosed 
> environments.

This looks as I want it to:

\setupnarrower[left=2em,right=1.5em]

\startnarrower
\hskip-0.33em\quotation{Im übrigen ist der Mensch ein Lebewesen, das klopft, 
schlechte Musik macht und seinen Hund bellen läßt. Manchmal gibt er auch Ruhe, 
aber dann ist er tot.}\footnote[f:9]{Kaspar Hauser (Kurt Tucholsky), Weltbühne 
24, 16.\,6.\,1931}
\stopnarrower

But how can I make that into a single environment?


Hraban
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Text to be placed into the free space after columns and end of the page

2020-05-22 Thread context

Hello Aditya,

thanks for all your answers.

You were right - my minimalist sample was not very suitable, and my real 
sample can be successfuly handled with \startnarrower.


Thanks again for your time.

Best regards,

Lukas


On 2020-05-21 10:52, Aditya Mahajan wrote:

On Thu, 21 May 2020, cont...@vivaldi.net wrote:


Hello,

at least a short reaction would be appreciated - is it possible to get 
the desired with ConTeXt?


- I need to typeset a column-shaped document with a colofon in the 
bottom of the page, so my interest is not academical but very 
practical;
and the code presented bellow is a minimalistic version ("abcd" stands 
for colofon).


Best regards,

Lukas


On 2020-05-20 16:38, cont...@vivaldi.net wrote:

Hello,

suppose the minimal example:


\showboxes
\starttext
  \startcolumns[n=2,balance=no,]
\input knuth
  \stopcolumns
  \vfill
  abcd
\stoptext


This produces two page document with columns on the first page and
text "abcd" on the second.


It is not clear to me why you are using columns here. If you want
balanced columns, you could use:

\starttext
\startsimplecolumns[n=2]
\input knuth
\stopsimplecolumns
\vfill
abcd
\stoptext


But - I want the text "abcd" to be placed to the bottom of the same
page as columns are (thus I attempted to put \vfill into the code, 
but

it doesn't work), so to get one page document looking like:

+-- page width -+
Column text | (unused)
column text |
column text |
column text |
column text |
column text |

(some vertical space)

abcd
+- end of page -+

- How to achieve this?


If you just want a narrower one column output (since using balance=no
and \vfill after that only makes sense if the length of the content is
less than a single column), you can use

\setupnarrower[right=0.5\textwidth]
\startnarrower[right]
\input knuth
\stopnarrower

or to get right frame:

\startframedtext[width=0.45\textwidth,frame=off, rightframe=on, 
roffset=0.5em]

  \input knuth
\stopframedtext

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Text to be placed into the free space after columns and end of the page

2020-05-21 Thread Aditya Mahajan

On Thu, 21 May 2020, cont...@vivaldi.net wrote:


Hello,

at least a short reaction would be appreciated - is it possible to get 
the desired with ConTeXt?


- I need to typeset a column-shaped document with a colofon in the 
bottom of the page, so my interest is not academical but very practical;
and the code presented bellow is a minimalistic version ("abcd" stands 
for colofon).


Best regards,

Lukas


On 2020-05-20 16:38, cont...@vivaldi.net wrote:

Hello,

suppose the minimal example:


\showboxes
\starttext
  \startcolumns[n=2,balance=no,]
\input knuth
  \stopcolumns
  \vfill
  abcd
\stoptext


This produces two page document with columns on the first page and
text "abcd" on the second.


It is not clear to me why you are using columns here. If you want balanced 
columns, you could use:

\starttext
\startsimplecolumns[n=2]
\input knuth
\stopsimplecolumns
\vfill
abcd
\stoptext


But - I want the text "abcd" to be placed to the bottom of the same
page as columns are (thus I attempted to put \vfill into the code, but
it doesn't work), so to get one page document looking like:

+-- page width -+
Column text | (unused)
column text |
column text |
column text |
column text |
column text |

(some vertical space)

abcd
+- end of page -+

- How to achieve this?


If you just want a narrower one column output (since using balance=no and 
\vfill after that only makes sense if the length of the content is less than a 
single column), you can use

\setupnarrower[right=0.5\textwidth]
\startnarrower[right]
\input knuth
\stopnarrower

or to get right frame:

\startframedtext[width=0.45\textwidth,frame=off, rightframe=on, roffset=0.5em]
  \input knuth
\stopframedtext

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Styling of included buffers or files

2020-05-18 Thread Wolfgang Schuster

Marco Patzer schrieb am 17.05.2020 um 19:04:

On Sun, 17 May 2020 18:16:13 +0200
"Jan U. Hasecke"  wrote:


I am currently writing a text where I want to include text snippets
either by including files or including buffers.

What is the best way to style all these included buffers?

I know that I can do something like this:

\startcolumns
\getbuffer[Muenchen]
\stopcolumns

Or do something with \defineparagraph

Is it somehow possible to apply styles to all buffers that gets
included via \getbuffer by defining a special getbuffer-style?


\setupbuffer has before and after keys which can be used. Example:

\setupbuffer
  [before=\blank\blackrule\startnarrower\BufferStyle,
   after=\stopnarrower\blackrule\blank]

[...]

\definehighlight
   [BufferStyle]
   [style=smallitalic,
color=blue]


Use the highlight-environment or create a new startstop-environment to 
apply style and color settings to the buffer.


\definestartstop
  [BufferStyle]
  [style=smallitalic,
   color=blue]

\setupbuffer
 [before={... \startBufferStyle ...},
   after={... \stopBufferStyle  ...}]

Wolfgang
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Styling of included buffers or files

2020-05-18 Thread Jan U. Hasecke
Am 17.05.20 um 19:04 schrieb Marco Patzer:

>>
>> Is it somehow possible to apply styles to all buffers that gets
>> included via \getbuffer by defining a special getbuffer-style?
> 
> \setupbuffer 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]
> 
> \definehighlight
>   [BufferStyle]
>   [style=smallitalic,
>color=blue]
> 
> \startbuffer
>   \samplefile{knuth}
> \stopbuffer
> 
> \starttext
>   \samplefile{knuth}
>   \getbuffer
>   \samplefile{knuth}
> 
> \stoptext
> 

So easy! I am humbled. For some reason I wasn't able to find this in
setup-en.pdf.

Thanks a lot.

juh

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Styling of included buffers or files

2020-05-17 Thread Marco Patzer
On Sun, 17 May 2020 18:16:13 +0200
"Jan U. Hasecke"  wrote:

> I am currently writing a text where I want to include text snippets
> either by including files or including buffers.
> 
> What is the best way to style all these included buffers?
> 
> I know that I can do something like this:
> 
> \startcolumns
> \getbuffer[Muenchen]
> \stopcolumns
> 
> Or do something with \defineparagraph
> 
> Is it somehow possible to apply styles to all buffers that gets
> included via \getbuffer by defining a special getbuffer-style?

\setupbuffer 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]

\definehighlight
  [BufferStyle]
  [style=smallitalic,
   color=blue]

\startbuffer
  \samplefile{knuth}
\stopbuffer

\starttext
  \samplefile{knuth}
  \getbuffer
  \samplefile{knuth}

\stoptext

Marco
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Shift tabulate into margin and center

2020-05-05 Thread Tim Steenvoorden
Hi all,

Apparently the solution does not work with multiple blocks on the same page. 
Table floats get ill aligned and frame rules are drawn double (see attachment). 
How should I fix this?

Cheers,
Tim
On 4 May 2020, 20:42 +0200, Tim Steenvoorden , 
wrote:
> Hi all,
>
> I’ve a page layout with a broad left margin. I’d like to create frames in the 
> text which utilize the margin and the typearea with centered contents. I 
> managed to do this with the following code, but I wonder if there is an 
> easier and more elegant way to do this in ConTeXt, especially the centering 
> of the tabulation.
>
> Cheers,
> Tim
>
>
> \startproduct test-tabulate
>
> \setuppapersize[B5]
> \setuplayout
> [backspace=13pc,
> leftmargin=8pc,
> leftmargindistance=1pc,
> width=24.5pc,
> rightmargin=0pc,
> %%
> topspace=4pc,
> header=0pc,
> height=49pc,
> footer=0pc,
> bottomdistance=2.5pc,
> bottom=1pc,
> location=middle]
>
> \define\fullwidth{\dimexpr(\leftmargindistance+\leftmarginwidth+\textwidth)}
>
> \section{First}
> \subsection{First first}
>
> \input tufte
>
> \setupnarrower[left=-9pc]
> \startnarrower[left]
> \startframedtext[frame=off,topframe=on,bottomframe=on,align=middle,width=\fullwidth]
> The whole frame should be shifted to the left.
> As the text, this table should centered in the box.
> \placefigure[none,force]{}
> \starttabulate[|l|r|]
> \NC 0 \NC 1 \NR
> \NC 2 \NC 3 \NR
> \NC 4 \NC 5 \NR
> \NC 6 \NC 7 \NR
> \NC 8 \NC 9 \NR
> \stoptabulate
> \startformula
> E=mc^2
> \stopformula
> \stopframedtext
> \stopnarrower
>
> \input tufte
>
> \stopproduct
>


test-tabulate.pdf
Description: Binary data
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Shift tabulate into margin and center

2020-05-04 Thread Tim Steenvoorden
Hi all,

I’ve a page layout with a broad left margin. I’d like to create frames in the 
text which utilize the margin and the typearea with centered contents. I 
managed to do this with the following code, but I wonder if there is an easier 
and more elegant way to do this in ConTeXt, especially the centering of the 
tabulation.

Cheers,
Tim


\startproduct test-tabulate

\setuppapersize[B5]
\setuplayout
[backspace=13pc,
leftmargin=8pc,
leftmargindistance=1pc,
width=24.5pc,
rightmargin=0pc,
%%
topspace=4pc,
header=0pc,
height=49pc,
footer=0pc,
bottomdistance=2.5pc,
bottom=1pc,
location=middle]

\define\fullwidth{\dimexpr(\leftmargindistance+\leftmarginwidth+\textwidth)}

\section{First}
\subsection{First first}

\input tufte

\setupnarrower[left=-9pc]
\startnarrower[left]
\startframedtext[frame=off,topframe=on,bottomframe=on,align=middle,width=\fullwidth]
The whole frame should be shifted to the left.
As the text, this table should centered in the box.
\placefigure[none,force]{}
\starttabulate[|l|r|]
\NC 0 \NC 1 \NR
\NC 2 \NC 3 \NR
\NC 4 \NC 5 \NR
\NC 6 \NC 7 \NR
\NC 8 \NC 9 \NR
\stoptabulate
\startformula
E=mc^2
\stopformula
\stopframedtext
\stopnarrower

\input tufte

\stopproduct



test-tabulate.pdf
Description: Binary data
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] changing alignment inside a paragraph

2019-12-10 Thread Wolfgang Schuster

mf schrieb am 10.12.2019 um 12:27:

Hello list, is there a way to achieve this?

\def\FlushRightFromNextLine{\relax}
\setupnarrower[left=0cm,right=11cm]
\setupalign[stretch]
\starttext
This is what I'd like to type in my source:\par
\blank
\type{This is the text of an index term, that is normally justified,
but I'd like the page numbers to be flushed to the right from
their second line \FlushRightFromNextLine 34, 57, 101-104, 276, 345, 
401-403.}\par

\blank
This is the normal result:\par
\blank
\startnarrower[right]
This is the text of an index term, that is normally justified,
but I'd like the page numbers to be flushed to the right from
their second line \FlushRightFromNextLine 34, 57, 101-104, 276, 345, 
401-403.

\stopnarrower
\blank
This is the expected result:\par
\blank
\startnarrower[right]
\parfillskip=0pt This is the text of an index term, that is normally 
justified,

but I'd like the page numbers to be flushed to the right from
their second line 34, 57,\par
\penalty1 % no page break in the middle of page numbers
\startalignment[flushright]
101-104, 276, 345, 401-403.\par
\stopalignment
\stopnarrower
\stoptext

The expected result is to be intended visually, because there might be 
no need to break the text into two paragraphs.


Use the "end" keyword for the alignment.

\starttext

\startbuffer
This is the text of an index term, that is normally justified,
but I'd like the page numbers to be flushed to the right from
their second line 34, 57, 101-104, 276, 345, 401–403.
\stopbuffer

\typebuffer \getbuffer

\startbuffer
\startalignment[end]
This is the text of an index term, that is normally justified,
but I'd like the page numbers to be flushed to the right from
their second line 34, 57, 101-104, 276, 345, 401–403.
\stopalignment
\stopbuffer

\typebuffer \getbuffer

\stoptext

Wolfgang

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] changing alignment inside a paragraph

2019-12-10 Thread mf

Hello list, is there a way to achieve this?

\def\FlushRightFromNextLine{\relax}
\setupnarrower[left=0cm,right=11cm]
\setupalign[stretch]
\starttext
This is what I'd like to type in my source:\par
\blank
\type{This is the text of an index term, that is normally justified,
but I'd like the page numbers to be flushed to the right from
their second line \FlushRightFromNextLine 34, 57, 101-104, 276, 345, 
401-403.}\par

\blank
This is the normal result:\par
\blank
\startnarrower[right]
This is the text of an index term, that is normally justified,
but I'd like the page numbers to be flushed to the right from
their second line \FlushRightFromNextLine 34, 57, 101-104, 276, 345, 
401-403.

\stopnarrower
\blank
This is the expected result:\par
\blank
\startnarrower[right]
\parfillskip=0pt This is the text of an index term, that is normally 
justified,

but I'd like the page numbers to be flushed to the right from
their second line 34, 57,\par
\penalty1 % no page break in the middle of page numbers
\startalignment[flushright]
101-104, 276, 345, 401-403.\par
\stopalignment
\stopnarrower
\stoptext

The expected result is to be intended visually, because there might be 
no need to break the text into two paragraphs.


Thanks,
Massi
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Fwd: Re: Spurious newlines at beginning of startstop pair

2019-11-28 Thread denis . maier . lists
Hans,
thanks for your answer. But two questions:
First: Am I right to assume that the important part is `\GetPar`. The rest is 
syntactic sugar to make to code more ConTeXt-like, right?
Second: For some reasons I have not received your message. It wasn't in the 
Spam folder and I usually receive mails from the list. Any ideas? Are there 
some known problems?

Best,
Denis


On 11/27/2019 2:17 PM, Denis Maier wrote:
> Hi,
> I have this file:
> 
> --
> \newdimen\cslhangindent
> \cslhangindent=1.5em
> \definestartstop [cslreferences] [
>  before={%
>  \setupnarrower[left=\cslhangindent]
>  \startnarrower[left]%
>  \setupindenting[-\leftskip,yes,first]%
>  \indentation%
>},
>after=\stopnarrower,
>  ]
> 
> \starttext
> 
> \section{Some title}
> 
> \input ward
> 
> \section{References}
> 
> \startcslreferences
> 
> \dorecurse{10}{\dorecurse{10}{This is a Test. }\par}
> 
> \stopcslreferences
> 
> \stoptext
> --
> 
> The skip after the `\section{References}` is bigger than after 
> `\section{Some title}`. Why is that? If I delete the empty line after 
> `\startcslreferences`, the skips are identical.
> 
> Is there a way to take care of this through `\definestartstop`?
you need to get rid of the empty line

\definenarrower[whatever][left=1.5em]

\definestartstop
   [cslreferences]
   [before={%
 \startwhatever[left]
 \setupindenting[-\leftskip,yes,first]
 \indentation
 \GetPar
},
after=\stopwhatever]

\showframe

\starttext

\section{Some title}

\input ward

\section{References}

\startcslreferences

 \dorecurse{10}{\dorecurse{10}{This is a Test. }\par}

\stopcslreferences

\stoptext
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Spurious newlines at beginning of startstop pair

2019-11-27 Thread Hans Hagen

On 11/27/2019 2:17 PM, Denis Maier wrote:

Hi,
I have this file:

--
\newdimen\cslhangindent
\cslhangindent=1.5em
\definestartstop [cslreferences] [
         before={%
         \setupnarrower[left=\cslhangindent]
         \startnarrower[left]%
         \setupindenting[-\leftskip,yes,first]%
         \indentation%
       },
       after=\stopnarrower,
     ]

\starttext

\section{Some title}

\input ward

\section{References}

\startcslreferences

\dorecurse{10}{\dorecurse{10}{This is a Test. }\par}

\stopcslreferences

\stoptext
--

The skip after the `\section{References}` is bigger than after 
`\section{Some title}`. Why is that? If I delete the empty line after 
`\startcslreferences`, the skips are identical.


Is there a way to take care of this through `\definestartstop`?

you need to get rid of the empty line

\definenarrower[whatever][left=1.5em]

\definestartstop
  [cslreferences]
  [before={%
\startwhatever[left]
\setupindenting[-\leftskip,yes,first]
\indentation
\GetPar
   },
   after=\stopwhatever]

\showframe

\starttext

\section{Some title}

\input ward

\section{References}

\startcslreferences

\dorecurse{10}{\dorecurse{10}{This is a Test. }\par}

\stopcslreferences

\stoptext


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Spurious newlines at beginning of startstop pair

2019-11-27 Thread Denis Maier

Hi,
I have this file:

--
\newdimen\cslhangindent
\cslhangindent=1.5em
\definestartstop [cslreferences] [
        before={%
        \setupnarrower[left=\cslhangindent]
        \startnarrower[left]%
        \setupindenting[-\leftskip,yes,first]%
        \indentation%
      },
      after=\stopnarrower,
    ]

\starttext

\section{Some title}

\input ward

\section{References}

\startcslreferences

\dorecurse{10}{\dorecurse{10}{This is a Test. }\par}

\stopcslreferences

\stoptext
--

The skip after the `\section{References}` is bigger than after 
`\section{Some title}`. Why is that? If I delete the empty line after 
`\startcslreferences`, the skips are identical.


Is there a way to take care of this through `\definestartstop`?

Best,
Denis
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] startnarrower and framed?

2019-08-21 Thread Jon Wong
Hi all,

I’m so so sorry for yet another message in this thread. I’ve solved it, but 
still don’t quite understand why it works. I post the solution here so that 
nobody has to spend any time crafting the solution. But I still have 1 key 
question.

Key question: Why does \setwhitespace[line] prevent \blank[-0.5em] from working 
after a \framed?

(Ok. I better sleep before I pollute the mailing list further.)

Apparent Solution:

\usecolors[xwi]
\setupwhitespace[line]

\starttext
\definetextbackground[secondary][
  location=always,
  background=color,
  backgroundcolor=lightgray,
  leftoffset=.5\bodyfontsize,
  rightoffset=.5\bodyfontsize,
  topoffset=.5\bodyfontsize,
  bottomoffset=.5\bodyfontsize,
  frame=off,]

\input knuth

{

\blank[line]

\setupwhitespace[none]

\startnarrower
  \dontleavehmode\framed[
width=local, corner=03, background=color, backgroundcolor=cyan,
frame=off
  ]{My header!}

  \blank[-0.5em]

  \startsecondary
  {

  \setupwhitespace[line]

\input knuth

  }
  \stopsecondary
\stopnarrower

}

\input knuth
\stoptext


> On Aug 21, 2019, at 10:21 PM, Jon Wong  wrote:
> 
> Hi all,
> 
> Ok, last message in this topic, I promise. I’ve crafted a MWE.
> 
> If I \setupwhitespace[line], the \blank[-0.5em] stops working. I’m sure I 
> need to revise my TeX notes. For now, can somebody give me a little 
> encouragement and tell me the answer? :-P
> 
> \usecolors[xwi]
> % \setupwhitespace[line]
> 
> \starttext
> \definetextbackground[secondary][
>   location=always,
>   background=color,
>   backgroundcolor=lightgray,
>   leftoffset=.5\bodyfontsize,
>   rightoffset=.5\bodyfontsize,
>   topoffset=.5\bodyfontsize,
>   bottomoffset=.5\bodyfontsize,
>   frame=off,]
> 
> \input knuth
> 
> \startnarrower
>   \dontleavehmode\framed[
> width=local, corner=03, background=color, backgroundcolor=cyan,
> frame=off
>   ]{My header!}
> 
>   \blank[-0.5em]
> 
>   \startsecondary
> \input knuth
>   \stopsecondary
> \stopnarrower
> 
> \input knuth
> \stoptext
> 
> Regards
> Jon
> 
> 
>> On Aug 21, 2019, at 9:37 PM, Jon Wong > <mailto:jhannw...@gmail.com>> wrote:
>> 
>> Hi all,
>> 
>> Ah, found the solution in TextBackground. At here: 
>> https://www.contextgarden.net/TextBackground 
>> <https://www.contextgarden.net/TextBackground>
>> 
>> Can I have a 2-segment (2 vboxes) TextBackground (presumably with 2 
>> TextBackgrounds, zero vspace between them)?
>> 
>> For the top segment, I want rounded corners only for top corners (corner=03 
>> with \framed).
>> 
>> Seems I really should dig into MetaFun and TextBackground. Looks really fun 
>> and useful.
>> 
>> Sorry for the noise. Am a little carried away exploring the Garden. :-P
>> 
>> Regards
>> Jon
>> 
>> 
>>> On Aug 21, 2019, at 9:25 PM, Jon Wong >> <mailto:jhannw...@gmail.com>> wrote:
>>> 
>>> Hi all,
>>> 
>>> Sorry, my solution didn’t work.
>>> 
>>> My purpose of using \startnarrower is to have some paragraphs of text 
>>> inside the \framed. Unfortunately, it seems \framed doesn’t take paragraphs.
>>> 
>>> \startframedtext doesn’t have as many border options as \framed.
>>> 
>>> Should I use overlays? Or layers? It seems layers require absolutely 
>>> positioning, and can’t be logically contained inside a \startnarrower?
>>> 
>>> Regards
>>> Jon
>>> 
>>> 
>>>> On Aug 21, 2019, at 8:53 PM, Jon Wong >>> <mailto:jhannw...@gmail.com>> wrote:
>>>> 
>>>> Hi all,
>>>> 
>>>> I got some progress!
>>>> 
>>>> \setupnarrower[left=2cm, right=2cm] % what does middle do, actually?
>>>> \startnarrower
>>>> \dontleavehmode\framed[width=local]{testing}
>>>> 
>>>> Since this works for left offset: \framed[width=local]{testing}
>>>> \endnarrower
>>>> 
>>>> So, how do I do a gradient background? Yeah, I know I have to dive into 
>>>> MetaPost and MetaFun some time. Is that where the solution is?
>>>> 
>>>> Regards
>>>> Jon
>>>> 
>>>>> On Aug 21, 2019, at 8:14 PM, Jon Wong >>>> <mailto:jhannw...@gmail.com>> wrote:
>>>>> 
>>>>> Hi all,
>>>>> 
>>>>> I want to have a \startnarrower effect. But I also want that segment to 
>>>>> have a border (hopefully a gradient background color too!).
>>>>> 
>>>>> I tried:
>>>>> 
>>>>> \startnarrower
>>>>> \framed{testing}
>>>>> 
>>>>> Seems framed doesn’t observe startnarrower commands.
>>>>> \endnarrower
>>>>> 
>>>>> How do I achieve that?
>>>>> 
>>>>> Regards
>>>>> Jon
>>>> 
>>> 
>> 
> 

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] startnarrower and framed?

2019-08-21 Thread Jon Wong
Hi all,

Ok, last message in this topic, I promise. I’ve crafted a MWE.

If I \setupwhitespace[line], the \blank[-0.5em] stops working. I’m sure I need 
to revise my TeX notes. For now, can somebody give me a little encouragement 
and tell me the answer? :-P

\usecolors[xwi]
% \setupwhitespace[line]

\starttext
\definetextbackground[secondary][
  location=always,
  background=color,
  backgroundcolor=lightgray,
  leftoffset=.5\bodyfontsize,
  rightoffset=.5\bodyfontsize,
  topoffset=.5\bodyfontsize,
  bottomoffset=.5\bodyfontsize,
  frame=off,]

\input knuth

\startnarrower
  \dontleavehmode\framed[
width=local, corner=03, background=color, backgroundcolor=cyan,
frame=off
  ]{My header!}

  \blank[-0.5em]

  \startsecondary
\input knuth
  \stopsecondary
\stopnarrower

\input knuth
\stoptext

Regards
Jon


> On Aug 21, 2019, at 9:37 PM, Jon Wong  wrote:
> 
> Hi all,
> 
> Ah, found the solution in TextBackground. At here: 
> https://www.contextgarden.net/TextBackground 
> <https://www.contextgarden.net/TextBackground>
> 
> Can I have a 2-segment (2 vboxes) TextBackground (presumably with 2 
> TextBackgrounds, zero vspace between them)?
> 
> For the top segment, I want rounded corners only for top corners (corner=03 
> with \framed).
> 
> Seems I really should dig into MetaFun and TextBackground. Looks really fun 
> and useful.
> 
> Sorry for the noise. Am a little carried away exploring the Garden. :-P
> 
> Regards
> Jon
> 
> 
>> On Aug 21, 2019, at 9:25 PM, Jon Wong > <mailto:jhannw...@gmail.com>> wrote:
>> 
>> Hi all,
>> 
>> Sorry, my solution didn’t work.
>> 
>> My purpose of using \startnarrower is to have some paragraphs of text inside 
>> the \framed. Unfortunately, it seems \framed doesn’t take paragraphs.
>> 
>> \startframedtext doesn’t have as many border options as \framed.
>> 
>> Should I use overlays? Or layers? It seems layers require absolutely 
>> positioning, and can’t be logically contained inside a \startnarrower?
>> 
>> Regards
>> Jon
>> 
>> 
>>> On Aug 21, 2019, at 8:53 PM, Jon Wong >> <mailto:jhannw...@gmail.com>> wrote:
>>> 
>>> Hi all,
>>> 
>>> I got some progress!
>>> 
>>> \setupnarrower[left=2cm, right=2cm] % what does middle do, actually?
>>> \startnarrower
>>> \dontleavehmode\framed[width=local]{testing}
>>> 
>>> Since this works for left offset: \framed[width=local]{testing}
>>> \endnarrower
>>> 
>>> So, how do I do a gradient background? Yeah, I know I have to dive into 
>>> MetaPost and MetaFun some time. Is that where the solution is?
>>> 
>>> Regards
>>> Jon
>>> 
>>>> On Aug 21, 2019, at 8:14 PM, Jon Wong >>> <mailto:jhannw...@gmail.com>> wrote:
>>>> 
>>>> Hi all,
>>>> 
>>>> I want to have a \startnarrower effect. But I also want that segment to 
>>>> have a border (hopefully a gradient background color too!).
>>>> 
>>>> I tried:
>>>> 
>>>> \startnarrower
>>>> \framed{testing}
>>>> 
>>>> Seems framed doesn’t observe startnarrower commands.
>>>> \endnarrower
>>>> 
>>>> How do I achieve that?
>>>> 
>>>> Regards
>>>> Jon
>>> 
>> 
> 

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] startnarrower and framed?

2019-08-21 Thread Jon Wong
Hi all,

Ah, found the solution in TextBackground. At here: 
https://www.contextgarden.net/TextBackground 
<https://www.contextgarden.net/TextBackground>

Can I have a 2-segment (2 vboxes) TextBackground (presumably with 2 
TextBackgrounds, zero vspace between them)?

For the top segment, I want rounded corners only for top corners (corner=03 
with \framed).

Seems I really should dig into MetaFun and TextBackground. Looks really fun and 
useful.

Sorry for the noise. Am a little carried away exploring the Garden. :-P

Regards
Jon


> On Aug 21, 2019, at 9:25 PM, Jon Wong  wrote:
> 
> Hi all,
> 
> Sorry, my solution didn’t work.
> 
> My purpose of using \startnarrower is to have some paragraphs of text inside 
> the \framed. Unfortunately, it seems \framed doesn’t take paragraphs.
> 
> \startframedtext doesn’t have as many border options as \framed.
> 
> Should I use overlays? Or layers? It seems layers require absolutely 
> positioning, and can’t be logically contained inside a \startnarrower?
> 
> Regards
> Jon
> 
> 
>> On Aug 21, 2019, at 8:53 PM, Jon Wong  wrote:
>> 
>> Hi all,
>> 
>> I got some progress!
>> 
>> \setupnarrower[left=2cm, right=2cm] % what does middle do, actually?
>> \startnarrower
>> \dontleavehmode\framed[width=local]{testing}
>> 
>> Since this works for left offset: \framed[width=local]{testing}
>> \endnarrower
>> 
>> So, how do I do a gradient background? Yeah, I know I have to dive into 
>> MetaPost and MetaFun some time. Is that where the solution is?
>> 
>> Regards
>> Jon
>> 
>>> On Aug 21, 2019, at 8:14 PM, Jon Wong  wrote:
>>> 
>>> Hi all,
>>> 
>>> I want to have a \startnarrower effect. But I also want that segment to 
>>> have a border (hopefully a gradient background color too!).
>>> 
>>> I tried:
>>> 
>>> \startnarrower
>>> \framed{testing}
>>> 
>>> Seems framed doesn’t observe startnarrower commands.
>>> \endnarrower
>>> 
>>> How do I achieve that?
>>> 
>>> Regards
>>> Jon
>> 
> 

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] startnarrower and framed?

2019-08-21 Thread Jon Wong
Hi all,

Sorry, my solution didn’t work.

My purpose of using \startnarrower is to have some paragraphs of text inside 
the \framed. Unfortunately, it seems \framed doesn’t take paragraphs.

\startframedtext doesn’t have as many border options as \framed.

Should I use overlays? Or layers? It seems layers require absolutely 
positioning, and can’t be logically contained inside a \startnarrower?

Regards
Jon


> On Aug 21, 2019, at 8:53 PM, Jon Wong  wrote:
> 
> Hi all,
> 
> I got some progress!
> 
> \setupnarrower[left=2cm, right=2cm] % what does middle do, actually?
> \startnarrower
>  \dontleavehmode\framed[width=local]{testing}
> 
>  Since this works for left offset: \framed[width=local]{testing}
> \endnarrower
> 
> So, how do I do a gradient background? Yeah, I know I have to dive into 
> MetaPost and MetaFun some time. Is that where the solution is?
> 
> Regards
> Jon
> 
>> On Aug 21, 2019, at 8:14 PM, Jon Wong  wrote:
>> 
>> Hi all,
>> 
>> I want to have a \startnarrower effect. But I also want that segment to have 
>> a border (hopefully a gradient background color too!).
>> 
>> I tried:
>> 
>> \startnarrower
>> \framed{testing}
>> 
>> Seems framed doesn’t observe startnarrower commands.
>> \endnarrower
>> 
>> How do I achieve that?
>> 
>> Regards
>> Jon
> 

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] startnarrower and framed?

2019-08-21 Thread Jon Wong
Hi all,

I got some progress!

\setupnarrower[left=2cm, right=2cm] % what does middle do, actually?
\startnarrower
  \dontleavehmode\framed[width=local]{testing}

  Since this works for left offset: \framed[width=local]{testing}
\endnarrower

So, how do I do a gradient background? Yeah, I know I have to dive into 
MetaPost and MetaFun some time. Is that where the solution is?

Regards
Jon

> On Aug 21, 2019, at 8:14 PM, Jon Wong  wrote:
> 
> Hi all,
> 
> I want to have a \startnarrower effect. But I also want that segment to have 
> a border (hopefully a gradient background color too!).
> 
> I tried:
> 
> \startnarrower
>  \framed{testing}
> 
>  Seems framed doesn’t observe startnarrower commands.
> \endnarrower
> 
> How do I achieve that?
> 
> Regards
> Jon

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] startnarrower and framed?

2019-08-21 Thread Hans Hagen

On 8/21/2019 2:14 PM, Jon Wong wrote:

\startnarrower
   \framed{testing}

   Seems framed doesn’t observe startnarrower commands.
\endnarrower

\starttext

Seems framed doesn’t observe startnarrower commands.

\startnarrower
\dontleavehmode \framed{testing}

Seems framed doesn’t observe startnarrower commands.

\startlinecorrection
\dontleavehmode \framed{testing}
\stoplinecorrection
\stopnarrower

\stoptext

for gradients, see metafun and example sin test suite

--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] startnarrower and framed?

2019-08-21 Thread Jon Wong
Hi all,

I want to have a \startnarrower effect. But I also want that segment to have a 
border (hopefully a gradient background color too!).

I tried:

\startnarrower
  \framed{testing}

  Seems framed doesn’t observe startnarrower commands.
\endnarrower

How do I achieve that?

Regards
Jon
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] additional space with sidebar and narrower

2019-04-07 Thread Henning Hraban Ramm
Am 2019-04-07 um 21:32 schrieb Hans Hagen :

> On 4/7/2019 8:44 PM, Henning Hraban Ramm wrote:
>> Am 2019-03-27 um 00:06 schrieb Henning Hraban Ramm :
>>> Am 2019-03-26 um 17:22 schrieb Wolfgang Schuster 
>>> :
>>> 
>>>> Henning Hraban Ramm schrieb am 26.03.19 um 16:04:
>>>>> Thank you, I found that myself (could have written).
>>>>> 
>>>>> But the problem is that there’s space introduced if I use both 
>>>>> environments, but not if I use only one. And I didn’t find how I can 
>>>>> avoid that.
>>>> Change the order of both environment and put sidebar in the narrower block.
>>>> 
>>>> The reason for the extra line is that \startsidebar begins a new paragraph 
>>>> but \startnarrower end the lest paragraph which results in a single empty 
>>>> line.
>>> 
>>> Thank you, that works in my MWE, but not in my real life book. (I was sure 
>>> I tested that approach already...) I’ll investigate further.
>> I finally found out what’s the problem:
>> \starttext
>> \input tufte
>> \startnarrower
>> \startsidebar
>> \startparagraph
>> \input knuth
>> \stopparagraph
>> \stopsidebar
>> \stopnarrower
>> \input tufte
>> \stoptext
>> As soon as I use \start/stopparagraph within narrower and sidebar, there’s 
>> additional space introduced. How can I avoid that?
> swap 'm
> 
> \startnarrower
> \startparagraph
> \startsidebar
> \input knuth
> \stopsidebar
> \stopparagraph
> \stopnarrower

Thank you, but I need the sidebar over several paragraphs. (And I wrapped 
narrower and sidebar in its own startstop.)


Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] additional space with sidebar and narrower

2019-04-07 Thread Hans Hagen

On 4/7/2019 8:44 PM, Henning Hraban Ramm wrote:

Am 2019-03-27 um 00:06 schrieb Henning Hraban Ramm :


Am 2019-03-26 um 17:22 schrieb Wolfgang Schuster 
:


Henning Hraban Ramm schrieb am 26.03.19 um 16:04:

Thank you, I found that myself (could have written).

But the problem is that there’s space introduced if I use both environments, 
but not if I use only one. And I didn’t find how I can avoid that.

Change the order of both environment and put sidebar in the narrower block.

The reason for the extra line is that \startsidebar begins a new paragraph but 
\startnarrower end the lest paragraph which results in a single empty line.


Thank you, that works in my MWE, but not in my real life book. (I was sure I 
tested that approach already...) I’ll investigate further.


I finally found out what’s the problem:

\starttext

\input tufte

\startnarrower
\startsidebar
\startparagraph
\input knuth
\stopparagraph
\stopsidebar
\stopnarrower

\input tufte

\stoptext

As soon as I use \start/stopparagraph within narrower and sidebar, there’s 
additional space introduced. How can I avoid that?

swap 'm

\startnarrower
\startparagraph
\startsidebar
\input knuth
\stopsidebar
\stopparagraph
\stopnarrower

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] additional space with sidebar and narrower

2019-04-07 Thread Henning Hraban Ramm
Am 2019-03-27 um 00:06 schrieb Henning Hraban Ramm :

> Am 2019-03-26 um 17:22 schrieb Wolfgang Schuster 
> :
> 
>> Henning Hraban Ramm schrieb am 26.03.19 um 16:04:
>>> Thank you, I found that myself (could have written).
>>> 
>>> But the problem is that there’s space introduced if I use both 
>>> environments, but not if I use only one. And I didn’t find how I can avoid 
>>> that.
>> Change the order of both environment and put sidebar in the narrower block.
>> 
>> The reason for the extra line is that \startsidebar begins a new paragraph 
>> but \startnarrower end the lest paragraph which results in a single empty 
>> line.
> 
> Thank you, that works in my MWE, but not in my real life book. (I was sure I 
> tested that approach already...) I’ll investigate further.

I finally found out what’s the problem:

\starttext

\input tufte

\startnarrower
\startsidebar
\startparagraph
\input knuth
\stopparagraph
\stopsidebar
\stopnarrower

\input tufte

\stoptext

As soon as I use \start/stopparagraph within narrower and sidebar, there’s 
additional space introduced. How can I avoid that?


Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] variable edef with localhsize calculation

2019-04-04 Thread Rörig , Julian
Dear All,


I try to save \localhsize in a variable (with \edef), but whenever the 
enclosure changes, my variable changes too.


\starttext
\edef\myVar{\dimexpr (\localhsize-15pt)\relax}

localhsize: \the\dimexpr\localhsize\relax \\
myVar: \the\dimexpr\myVar\relax \\

\setupnarrower[middle=50mm]
\startnarrower
localhsize: \the\dimexpr\localhsize\relax \\
myVar: \the\dimexpr\myVar\relax \\
\stopnarrower
\stoptext



I would expect that myVar has the same value inside the narrower as outside, 
because I used \edef and not \def.

Is there another variable I can use, or does someone knows a solution for this 
specific problem?
Thanks, Julian



btw. everything works as expected, if I do not use \localhsize.
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Spurious space in \startnarrower

2019-03-31 Thread Henri Menke
On 1/04/19 9:22 AM, Hans Hagen wrote:
> On 3/31/2019 10:13 PM, Henri Menke wrote:
>> I see that the patch has been applied in current, but could you please also
>> apply it in beta (which is what I and probably most others use daily)?
> some time next week we continue with betas as curren tis now frozen for 
> tex live (there is also 'latest' which is always alpha, beta or current 
> depending on what is most recent

That's good to know.  Maybe that should be the default for first-setup.sh.
Currently it runs mtx-update.lua with --context=beta.

Anyway, I switched to latest now.

Thanks, Henri

> 
> Hans
> 
> -
>Hans Hagen | PRAGMA ADE
>Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -
> ___
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___
> 

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Spurious space in \startnarrower

2019-03-31 Thread Pablo Rodriguez
On 3/31/19 10:13 PM, Henri Menke wrote:
> I see that the patch has been applied in current, but could you please also
> apply it in beta (which is what I and probably most others use daily)?

Hi Henri,

I use beta and I update it with:

  ./first-setup.sh --modules=all

At least my latest beta version is 2019.03.21 21:39 (which is actually
the latest current).

Just in case it might help,

Pablo


> On 6/03/19 12:12 PM, Henri Menke wrote:
>> Patch for the core file is attached.
>>
>> Cheers, Henri
>>
>
> ___
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___
>


--
http://www.ousia.tk
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Spurious space in \startnarrower

2019-03-31 Thread Hans Hagen

On 3/31/2019 10:13 PM, Henri Menke wrote:

I see that the patch has been applied in current, but could you please also
apply it in beta (which is what I and probably most others use daily)?
some time next week we continue with betas as curren tis now frozen for 
tex live (there is also 'latest' which is always alpha, beta or current 
depending on what is most recent


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Spurious space in \startnarrower

2019-03-31 Thread Henri Menke
I see that the patch has been applied in current, but could you please also
apply it in beta (which is what I and probably most others use daily)?

Cheers, Henri

On 6/03/19 12:12 PM, Henri Menke wrote:
> Patch for the core file is attached.
> 
> Cheers, Henri
> 

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] additional space with sidebar and narrower

2019-03-26 Thread Henning Hraban Ramm
Am 2019-03-26 um 17:22 schrieb Wolfgang Schuster 
:

> Henning Hraban Ramm schrieb am 26.03.19 um 16:04:
>> Thank you, I found that myself (could have written).
>> 
>> But the problem is that there’s space introduced if I use both environments, 
>> but not if I use only one. And I didn’t find how I can avoid that.
> Change the order of both environment and put sidebar in the narrower block.
> 
> The reason for the extra line is that \startsidebar begins a new paragraph 
> but \startnarrower end the lest paragraph which results in a single empty 
> line.

Thank you, that works in my MWE, but not in my real life book. (I was sure I 
tested that approach already...) I’ll investigate further.

Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] additional space with sidebar and narrower

2019-03-26 Thread Wolfgang Schuster

Henning Hraban Ramm schrieb am 26.03.19 um 16:04:

Thank you, I found that myself (could have written).

But the problem is that there’s space introduced if I use both environments, 
but not if I use only one. And I didn’t find how I can avoid that.

Change the order of both environment and put sidebar in the narrower block.

The reason for the extra lien is that \startsidebar begins a new 
paragraph but \startnarrower end the lest paragraph which results in a 
single empty line.


Wolfgang

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] additional space with sidebar and narrower

2019-03-26 Thread Henning Hraban Ramm
Thank you, I found that myself (could have written).

But the problem is that there’s space introduced if I use both environments, 
but not if I use only one. And I didn’t find how I can avoid that.

Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD

Am 2019-03-26 um 15:22 schrieb Otared Kavian :

> Hi,
> 
> If the issue is the size of the sidebar, I think if you add something like
> 
>   \setupsidebar[topoffset=-5mm,bottomoffset=-5mm]
> 
> you can get rid of the spurious length of the sidebar. Indeed here 5mm should 
> be replaced with what looks better with your setting of interlinespace.
> 
> Best regards: OK
> 
>> On 26 Mar 2019, at 11:16, Henning Hraban Ramm  wrote:
>> 
>> Ahoi,
>> I’m trying to mark examples in a book with indent (\startnarrower) and a 
>> rule in the margin (\startsidebar).
>> Each of those works on its own as it should, but combined there’s an 
>> additional empty line before and after introduced that I can’t get rid of.
>> Any hints?
>> 
>> \starttext
>> 
>> \input tufte
>> 
>> \startsidebar
>> \startnarrower
>> \input knuth
>> \stopnarrower
>> \stopsidebar
>> 
>> \input tufte
>> 
>> \stoptext
>> 

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] additional space with sidebar and narrower

2019-03-26 Thread Otared Kavian
Hi,

If the issue is the size of the sidebar, I think if you add something like

\setupsidebar[topoffset=-5mm,bottomoffset=-5mm]

you can get rid of the spurious length of the sidebar. Indeed here 5mm should 
be replaced with what looks better with your setting of interlinespace.

Best regards: OK

> On 26 Mar 2019, at 11:16, Henning Hraban Ramm  wrote:
> 
> Ahoi,
> I’m trying to mark examples in a book with indent (\startnarrower) and a rule 
> in the margin (\startsidebar).
> Each of those works on its own as it should, but combined there’s an 
> additional empty line before and after introduced that I can’t get rid of.
> Any hints?
> 
> \starttext
> 
> \input tufte
> 
> \startsidebar
> \startnarrower
> \input knuth
> \stopnarrower
> \stopsidebar
> 
> \input tufte
> 
> \stoptext
> 
> 
> Greetlings, Hraban
> ---
> https://www.fiee.net
> http://wiki.contextgarden.net
> https://www.dreiviertelhaus.de
> GPG Key ID 1C9B22FD
> 
> ___
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] additional space with sidebar and narrower

2019-03-26 Thread Henning Hraban Ramm
Ahoi,
I’m trying to mark examples in a book with indent (\startnarrower) and a rule 
in the margin (\startsidebar).
Each of those works on its own as it should, but combined there’s an additional 
empty line before and after introduced that I can’t get rid of.
Any hints?

\starttext

\input tufte

\startsidebar
\startnarrower
\input knuth
\stopnarrower
\stopsidebar

\input tufte

\stoptext


Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Spurious space in \startnarrower

2019-03-05 Thread Henri Menke
Patch for the core file is attached.

Cheers, Henri
diff --git a/tex/context/base/mkiv/spac-hor.mkiv b/tex/context/base/mkiv/spac-hor.mkiv
index 32b7f06fb..24c7c7893 100644
--- a/tex/context/base/mkiv/spac-hor.mkiv
+++ b/tex/context/base/mkiv/spac-hor.mkiv
@@ -717,7 +717,7 @@
\global\s_spac_narrower_left  \zeropoint
\global\s_spac_narrower_right \zeropoint
\global\s_spac_narrower_middle\zeropoint
-   \edef\askednarrower{#1}
+   \edef\askednarrower{#1}%
\ifx\askednarrower\v!reverse
  \ifconditional\s_spac_narrower_last_swap
\leftskip \s_spac_narrower_right_last
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] \startnarrower

2018-12-20 Thread Wolfgang Schuster



Hans van der Meer schrieb am 20.12.18 um 14:15:

Wolfgang,

Your solution works, but repeats after every \par. The purpose was to 
have the very first line only as the one without the indent. I tried 
several parameters from \definedelimitedtext and from \setupindenting, 
but could not achieve that result.
Below an example that exhibits the behaviour I am looking for, but at 
the expense of a \setupindentig roughly after the first \par.

Is there a better solution?

\definedelimitedtext
   [narrowtext]
   [leftmargin=2em,
    indenting={yes,-2em},
    ]

\showframe [text] [text]

\starttext

\startdelimitedtext [narrowtext]
This is a text meant to make a long paragraph such that it stretches 
over more than one line when typeset for example on an A4 page in order 
to demonstrate the behaviour of definedelimitedtext.

%\setupindenting[no] works here too
\par
\setupindenting[no]
This is a text meant to make a long paragraph such that it stretches 
over more than one line when typeset for example on an A4 page in order 
to demonstrate the behaviour of definedelimitedtext.

\par
\stopdelimitedtext

\stoptext


\definehspace [outdent] [-2em]

\definedelimitedtext
  [narrowtext]
  [leftmargin=2em,
   rightmargin=0pt,
   location=paragraph,
   left={\dontleavehmode\hspace[outdent]}]

\showframe [text] [text]

\starttext

\startdelimitedtext [narrowtext]
This is a text meant to make a long paragraph such that it stretches 
over more than one line when typeset for example on an A4 page in order 
to demonstrate the behaviour of definedelimitedtext.


This is a text meant to make a long paragraph such that it stretches 
over more than one line when typeset for example on an A4 page in order 
to demonstrate the behaviour of definedelimitedtext.

\stopdelimitedtext

\stoptext

Wolfgang

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] indented headings possible?

2018-12-13 Thread Wolfgang Schuster

Taco Hoekwater schrieb am 13.12.18 um 11:12:

Hi again,

Is there a way to make section headings automatically honour the current
left- and rightskip? For example, like this:

\starttext
\showframe
\startnarrower[left]
\section{Section 1}
stuff
\stopnarrower
\stoptext

I know I could rig this up with

   \dontleavehmode\vbox{\advance\hsize-\leftskip\section{Section 1}}\par

but that is horrible code. Is there any way to get the correct effect
using \setuphead ?


\setuphead
  [section]
  [aligntitle=yes]

\showframe [text] [text]

\starttext

\startnarrower[left]

\startsection[title={Section 1}]

stuff

\stopsection

\stopnarrower

\stoptext

Wolfgang

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] \startnarrower

2018-12-13 Thread Wolfgang Schuster

Hans van der Meer schrieb am 13.12.18 um 12:15:

Is it possible to not indent the very first line of narrower content?

Thus
\startnarrower
first line
second line
etc.
\stopnarrower

resulting in:
first line
    second line
    etc.

Use a negative value for the indentation of the paragraph.

When you use the delimitedtext environment instead of narrower you can
do it with the indenting key.

\definedelimitedtext
  [narrowtext]
  [leftmargin=2em,
   indenting={yes,-2em}]

\showframe [text] [text]

\starttext

\startdelimitedtext [narrowtext]
\samplefile{zapf}
\stopdelimitedtext

\stoptext

Wolfgang

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] \startnarrower

2018-12-13 Thread Hans van der Meer
Is it possible to not indent the very first line of narrower content?

Thus
\startnarrower
first line
second line
etc.
\stopnarrower

resulting in:
first line
second line
etc.

dr. Hans van der Meer


___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] indented headings possible?

2018-12-13 Thread Taco Hoekwater
Hi again,

Is there a way to make section headings automatically honour the current 
left- and rightskip? For example, like this:

\starttext
\showframe
\startnarrower[left]
\section{Section 1}
stuff
\stopnarrower
\stoptext

I know I could rig this up with 

  \dontleavehmode\vbox{\advance\hsize-\leftskip\section{Section 1}}\par

but that is horrible code. Is there any way to get the correct effect
using \setuphead ?

Best wishes,
Taco

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] Issues using publications subsystem for non-bibliographic database

2018-12-06 Thread Rik Kabel
}
   \stopsetups

   \starttexdefinition Quotation #QUOTE
  \startnarrower
\blank[halfline]
\startparagraph
\cite[extract][#QUOTE]
\stopparagraph
\startparagraph\noindentation
\blank[halfline]
\dontleavehmode\llap{– }\cite[author][#QUOTE]
  \btxspace \doifnotempty{\cite[born][#QUOTE]}
{(\cite[born][#QUOTE]|–|\doiftext{\cite[died][#QUOTE]}
 {\cite[died][#QUOTE]})}
  \btxspace in \cite[work][#QUOTE]
  \doiftextelse{\cite[page][#QUOTE]}
{\btxcomma p\btxperiod\btxnbsp\cite[page][#QUOTE]}
{\doiftext{\cite[location][#QUOTE]}
  {\btxcomma \cite[location][#QUOTE]}}
  \btxcomma \cite[year][#QUOTE]
  \btxperiod
  \cite[attribnote][#QUOTE]
  \doiftext{\cite[translation][#QUOTE]}
   {\btxspace A translation is:}
\stopparagraph
\doiftext{\cite[translation][#QUOTE]}
  {\stopnarrower
   %%--
   %%  When this form is used, the compilation fails.
   %
   %  \Quotation{\cite[translation][#QUOTE]}
   %
   %%  When this form is used, the compilation works, but of course, this
   %%  form is not what is wanted.
   %
   \Quotation{qPayneE01}
   %
   %%--
   \startnarrower
  }
\blank[3*halfline]
  \stopnarrower
   \stoptexdefinition

   \starttext

  \Quotation{qSchopA02}

   %%--
   %%  When this form is used, the compilation fails as well, so it isn't
   %%  the recursion that is the problem.
   %
   % \Quotation{\cite[translation][qSchopA02]}
   %
   %%--

  \hrule\blank

   %%--
   %%  When \placebtxrendering for the quotation database is removed,
   %%  none of the text from the database is printed, even though the
   %%  dataset completeness shows the data
   %
  \placebtxrendering [quotedb][method=dataset]
   %
   %%--

  \hrule\blank

  \placebtxrendering [sources][method=dataset]

  \page

  \showbtxdatasetcompleteness[dataset=quotedb]

  \page

  \showbtxdatasetcompleteness[dataset=sources,specification=apa]

   \stoptext
   %)]}

--

Rik


___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] How can I remove a blank leading line from a buffer

2018-08-14 Thread Rik Kabel

On 8/13/2018 18:43, Rik Kabel wrote:

On 8/13/2018 15:52, Wolfgang Schuster wrote:



Rik Kabel schrieb am 13.08.18 um 20:27:

On 8/13/2018 13:46, Wolfgang Schuster wrote:


\starttext

\BeforePar{\dontleavehmode\llap{? }}\GotoPar

\input knuth

\startnarrower

\BeforePar{\dontleavehmode\llap{? }}\GotoPar

\input knuth

\stopnarrower

\stoptext

Wolfgang


I am applying it incorrectly, or it does not work with the buffers 
created by \grabbufferdata:


\setupwhitespace[none]
\setupindenting[none]
\starttexdefinition unexpanded startBufTest
  \bgroup
  \dosingleempty\dostartBufTest
\stoptexdefinition
\starttexdefinition dostartBufTest [#SETUPS]
  \getrawparameters[BufTest][xx=yy,#SETUPS]
  \grabbufferdata[TestBuffer][startBufTest][stopBufTest]
\stoptexdefinition
\starttexdefinition stopBufTest
  \startnarrower[left,right]
  \startparagraph
    \BeforePar{\dontleavehmode\llap{? }}\GotoPar
    \inlinebuffer[TestBuffer]
  \stopparagraph
  \stopnarrower
  \egroup
\stoptexdefinition



\starttexdefinition stopBufTest
  \startnarrower[left,right]
  \startparagraph
    \dontleavehmode\llap{? }%
    \blank[overlay]
    \inlinebuffer[TestBuffer]
  \stopparagraph
  \stopnarrower
  \egroup
\stoptexdefinition


Wolfgang


Thank you, Wolfgang. That does it. Note that the % escaping the line 
end is not needed (    although it might be needed outside a 
\starttexdefinition environment) – the following works as well:



\starttexdefinition stopBufTest

  \startnarrower[left,right]

  \startparagraph

    \dontleavehmode{\llap{? }}

    \blank[overlay]

    \inlinebuffer[TestBuffer]

  \stopparagraph

  \stopnarrower

  \egroup

\stoptexdefinition




Alas, this is not yet a workable solution. It does not work with a 
layout of grid=tolerant, which I am currently using (although it does 
work with some other grid settings). For now I will just add empty [] to 
the startBufTest invocations.


I really think, though, that a buffers.strip function would be the way 
to go, instead of futzing after the damage is done.


--
Rik
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] How can I remove a blank leading line from a buffer

2018-08-13 Thread Rik Kabel

On 8/13/2018 15:52, Wolfgang Schuster wrote:



Rik Kabel schrieb am 13.08.18 um 20:27:

On 8/13/2018 13:46, Wolfgang Schuster wrote:


\starttext

\BeforePar{\dontleavehmode\llap{? }}\GotoPar

\input knuth

\startnarrower

\BeforePar{\dontleavehmode\llap{? }}\GotoPar

\input knuth

\stopnarrower

\stoptext

Wolfgang


I am applying it incorrectly, or it does not work with the buffers 
created by \grabbufferdata:


\setupwhitespace[none]
\setupindenting[none]
\starttexdefinition unexpanded startBufTest
  \bgroup
  \dosingleempty\dostartBufTest
\stoptexdefinition
\starttexdefinition dostartBufTest [#SETUPS]
  \getrawparameters[BufTest][xx=yy,#SETUPS]
  \grabbufferdata[TestBuffer][startBufTest][stopBufTest]
\stoptexdefinition
\starttexdefinition stopBufTest
  \startnarrower[left,right]
  \startparagraph
    \BeforePar{\dontleavehmode\llap{? }}\GotoPar
    \inlinebuffer[TestBuffer]
  \stopparagraph
  \stopnarrower
  \egroup
\stoptexdefinition



\starttexdefinition stopBufTest
  \startnarrower[left,right]
  \startparagraph
    \dontleavehmode\llap{? }%
    \blank[overlay]
    \inlinebuffer[TestBuffer]
  \stopparagraph
  \stopnarrower
  \egroup
\stoptexdefinition


Wolfgang


Thank you, Wolfgang. That does it. Note that the % escaping the line end 
is not needed (    although it might be needed outside a 
\starttexdefinition environment) – the following works as well:



   \starttexdefinition stopBufTest

  \startnarrower[left,right]

  \startparagraph

    \dontleavehmode{\llap{? }}

    \blank[overlay]

    \inlinebuffer[TestBuffer]

  \stopparagraph

  \stopnarrower

  \egroup

   \stoptexdefinition


--
Rik

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] How can I remove a blank leading line from a buffer

2018-08-13 Thread Wolfgang Schuster



Rik Kabel schrieb am 13.08.18 um 20:27:

On 8/13/2018 13:46, Wolfgang Schuster wrote:


\starttext

\BeforePar{\dontleavehmode\llap{? }}\GotoPar

\input knuth

\startnarrower

\BeforePar{\dontleavehmode\llap{? }}\GotoPar

\input knuth

\stopnarrower

\stoptext

Wolfgang


I am applying it incorrectly, or it does not work with the buffers 
created by \grabbufferdata:


\setupwhitespace[none]
\setupindenting[none]
\starttexdefinition unexpanded startBufTest
  \bgroup
  \dosingleempty\dostartBufTest
\stoptexdefinition
\starttexdefinition dostartBufTest [#SETUPS]
  \getrawparameters[BufTest][xx=yy,#SETUPS]
  \grabbufferdata[TestBuffer][startBufTest][stopBufTest]
\stoptexdefinition
\starttexdefinition stopBufTest
  \startnarrower[left,right]
  \startparagraph
\BeforePar{\dontleavehmode\llap{? }}\GotoPar
\inlinebuffer[TestBuffer]
  \stopparagraph
  \stopnarrower
  \egroup
\stoptexdefinition



\starttexdefinition stopBufTest
  \startnarrower[left,right]
  \startparagraph
\dontleavehmode\llap{? }%
\blank[overlay]
\inlinebuffer[TestBuffer]
  \stopparagraph
  \stopnarrower
  \egroup
\stoptexdefinition


Wolfgang
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] How can I remove a blank leading line from a buffer

2018-08-13 Thread Rik Kabel

On 8/13/2018 13:46, Wolfgang Schuster wrote:


\starttext

\BeforePar{\dontleavehmode\llap{? }}\GotoPar

\input knuth

\startnarrower

\BeforePar{\dontleavehmode\llap{? }}\GotoPar

\input knuth

\stopnarrower

\stoptext

Wolfgang


I am applying it incorrectly, or it does not work with the buffers 
created by \grabbufferdata:


   \setupwhitespace[none]
   \setupindenting[none]
   \starttexdefinition unexpanded startBufTest
  \bgroup
  \dosingleempty\dostartBufTest
   \stoptexdefinition
   \starttexdefinition dostartBufTest [#SETUPS]
  \getrawparameters[BufTest][xx=yy,#SETUPS]
  \grabbufferdata[TestBuffer][startBufTest][stopBufTest]
   \stoptexdefinition
   \starttexdefinition stopBufTest
  \startnarrower[left,right]
  \startparagraph
    \BeforePar{\dontleavehmode\llap{? }}\GotoPar
    \inlinebuffer[TestBuffer]
  \stopparagraph
  \stopnarrower
  \egroup
   \stoptexdefinition

   \starttext

   \startBufTest
  Buffer without blank lines.
   \stopBufTest

   \startBufTest

  Buffer with blank lines.

   \stopBufTest

   \startBufTest[key=value]

  Buffer with \type{[key=value]}.

   \stopBufTest

   \stoptext

--

Rik

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] How can I remove a blank leading line from a buffer

2018-08-13 Thread Rik Kabel

On 8/13/2018 10:28, Rik Kabel wrote:
That works for the over-simplified case here, but fails in practice. 
For a \startnarrower[left] paragraph, the mark is still in the main 
margin, not the 'margin' of the narrowed paragraph. Also, the 
placement of the text in the margin is wrong and not easily controlled 
as with \llap and \rlap. The code started out more like:




Correcting the record: I misspoke in part above; margintext does follow 
the narrowed paragraph shape.


--
Rik
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] How can I remove a blank leading line from a buffer

2018-08-13 Thread Wolfgang Schuster



Rik Kabel schrieb am 13.08.18 um 19:09:

On 8/13/2018 12:04, Wolfgang Schuster wrote:


Hi Rik,

what do you want to achieve and why do you need a buffer for it?

Wolfgang


Fair question.

I have a document with many (400+) block quotations. Each consists of 
a text extract, which may be prose or poetry, and additional optional 
components (alternate versions or transliterations, translations, 
attribution). The optional components are distinguished 
typographically – enlarged square brackets around alternate versions, 
enlarged parentheses around translations, leading en-dash and hanging 
indent for attributions. Each component is in a buffer. The structure 
looks like:


\startBlockQuotation[label=abc,authors={...},precis={short
extract},translators={...},tprecis={{short extract},{short
extract}}...]

\startExtract[language=agr,align=yes,font=abc,tolerance=...,...]

  text of extract

\stopExtract

\startTransliteration[language=en,align=yes,font=abc,...]

  text of transliteration

\stopTransliteration

\startTranslation[...]

  text of translation

\stopTranslation

\startAttribution[tolerance=,...]

  attribution of quotation

\stopAttribution

\stopBlockQuotation

and the code to handle it generates author index entries, a quotation 
precis index, and so on from the attributes of the envelope, and 
typesets each component based on the provided settings or defaults, 
placing the appropriate decorations around those components that call 
for them. The components are nestable, so one extract may contain 
another, and components can be used separately without the envelope 
(\startBlockQuotation or \startEpigraph) as well.


(I have written it this way to ease the move to an XML-based format 
for storing the quotations. I realize I am combining presentation 
elements, like label, tolerance, and precis, and content elements, 
like language, and some that may be either, like align and font, in 
the attributes, but will deal with that later.)


I prefer to leave blank lines around blocks of text and around macro 
commands, so:


\startparagraph

  some text

\stopparagraph

but when this is done with, for example, \startAttribution, and no 
optional arguments are provided, I run into the problem I have described.


Try to avoid blank lines at the begin/end of environments.

I realize that I can simply not include the blank line after 
\startAttribution. I would prefer, however, to see consistent parallel 
structures without having to distinguish them at the time it is 
written. Perhaps I am being too picky, but that is what I am attempting.


At this point, the \setupparagraphintro hack handles my needs, so I 
will proceed with that.


\starttext

\BeforePar{\dontleavehmode\llap{? }}\GotoPar

\input knuth

\startnarrower

\BeforePar{\dontleavehmode\llap{? }}\GotoPar

\input knuth

\stopnarrower

\stoptext

Wolfgang
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] How can I remove a blank leading line from a buffer

2018-08-13 Thread Rik Kabel

On 8/13/2018 10:28, Rik Kabel wrote:

On 8/13/2018 03:01, Hans Hagen wrote:

On 8/13/2018 5:18 AM, Rik Kabel wrote:

  \startparagraph

% \dontleavehmode\llap{\Mark}\inlinebuffer[TestBuffer]
% \ (first: \First, arg: \Arg)

    \margintext{\Mark}

    \setupparagraphintro[first][(first: \First, arg: \Arg)]
   %\setupparagraphintro[next][(first: \First, arg: \Arg)]

    \getbuffer[TestBuffer]

  \stopparagraph 


Hans,

That works for the over-simplified case here, but fails in practice. 
For a \startnarrower[left] paragraph, the mark is still in the main 
margin, not the 'margin' of the narrowed paragraph. Also, the 
placement of the text in the margin is wrong and not easily controlled 
as with \llap and \rlap. The code started out more like:


\define\Mark{\color[middlegray]{\hskip.6cm\itb¿\ }}
\setwidthof{\Mark}\to\MarkWidth
...
\starttexdefinition stopBufTest
  \startluacode
buffers.prepend("TestBuffer","\\dontleavehmode\\llap{\\Mark}")
  \stopluacode
  \setupnarrower[left=\MarkWidth]
  \startnarrower[left,right]
  \startparagraph
    \inlinebuffer[TestBuffer]
  \stopparagraph
  \stopnarrower
  \egroup
\stoptexdefinition


So I am still looking for a way to do this. Meanwhile I am trying to 
understand Aditya's examples.


Turns out another answer was hidden in Hans's reply. The following seems 
to meet my needs, but it may complicate other use of 
\setupparagraphintro (which I don't recall seeing before), so it may not 
be a generic solution.


An empty string works fine instead of the llaped marking shown here.

This is a less dangerous hack than redefining \par, but still may fail 
in more complex documents when \setupparagraphintro is used elsewhere.


   \starttexdefinition stopBufTest
  \startnarrower[left,right]
  \startparagraph
    \setupparagraphintro[first][\llap{\Mark}]
    \inlinebuffer[TestBuffer] \ (first: \First, arg: \Arg)
  \stopparagraph
  \stopnarrower
  \egroup
   \stoptexdefinition


Thank you, Hans.

(For a non-hack generic solution that does not interfere with other use 
of \setupparagraphintro, surely there must be an easy way to apply 
string.strip to the buffer.)


--
Rik

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] How can I remove a blank leading line from a buffer

2018-08-13 Thread Wolfgang Schuster



Rik Kabel schrieb am 13.08.18 um 16:28:

Hans,

That works for the over-simplified case here, but fails in practice. 
For a \startnarrower[left] paragraph, the mark is still in the main 
margin, not the 'margin' of the narrowed paragraph. Also, the 
placement of the text in the margin is wrong and not easily controlled 
as with \llap and \rlap. The code started out more like:


\define\Mark{\color[middlegray]{\hskip.6cm\itb¿\ }}
\setwidthof{\Mark}\to\MarkWidth
...
\starttexdefinition stopBufTest
  \startluacode
buffers.prepend("TestBuffer","\\dontleavehmode\\llap{\\Mark}")
  \stopluacode
  \setupnarrower[left=\MarkWidth]
  \startnarrower[left,right]
  \startparagraph
\inlinebuffer[TestBuffer]
  \stopparagraph
  \stopnarrower
  \egroup
\stoptexdefinition



Hi Rik,

what do you want to achieve and why do you need a buffer for it?

Wolfgang

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] How can I remove a blank leading line from a buffer

2018-08-13 Thread Rik Kabel

On 8/13/2018 03:01, Hans Hagen wrote:

On 8/13/2018 5:18 AM, Rik Kabel wrote:

%% How can one remove blank lines at the start of a buffer so that
%%   commands that grab a buffer can be used in the same way as, for
%%   example, \startparagraph...\stopparagraph, which allow blank
%%   lines around the content?
%%
%% The problem appears when an optional argument is allowed but none
%%   is provided. Adding \relax does not help; adding empty brackets
%%   does. I see no way to distinguish between a buffer without
%%   leading blank lines and a buffer that was created when brackets
%%   are provided.
%%
%% \inlinebuffer handles the leading blank lines when there is
%%   nothing prepended, but I need to prepend. (It also handles the
%%   unwanted trailing line, but that is not an issue here).
%%
%% How can I unpack the buffer, apply the equivalent functions of
%%   ignorespaspaces and removeunwantedspaces to it, and repack it?
%%   The buffer may contain internal blank lines and macros, and
%%   those should be retained. Or, is there already a function to
%%   strip a buffer in the manner that string.strip does a string?

\setupwhitespace[none]
\setupindenting[none]
\define\Mark{\color[middlegray]{\itb¿\ }}
\define\First{nothing yet}
\define\Arg{nothing yet}
\setuplanguage[en][spacing=packed]

\starttexdefinition unexpanded startBufTest
   \bgroup
   \dosingleempty\dostartBufTest
\stoptexdefinition

\starttexdefinition dostartBufTest [#SETUPS]
   \doifsomethingelse{#{SETUPS}}
 {\define\Arg{yes}}
 {\define\Arg{no}}
   \iffirstargument
 \define\First{yes}
   \else
 \define\First{no}
   \fi
   \relax
   \getrawparameters[BufTest][xx=yy,#SETUPS]
   \grabbufferdata[TestBuffer][startBufTest][stopBufTest]
\stoptexdefinition

\starttexdefinition stopBufTest

   \startparagraph

 \dontleavehmode\llap{\Mark}\inlinebuffer[TestBuffer]
 \ (first: \First, arg: \Arg)

   \stopparagraph

   \egroup
\stoptexdefinition

\starttext

\startparagraph

   A starting paragraph.

\stopparagraph

\startBufTest
   Buffer without blank lines.
\stopBufTest

\startparagraph

   An intervening paragraph.

\stopparagraph

\startBufTest

   Buffer with blank lines.

\stopBufTest

\startparagraph

   An intervening paragraph.

\stopparagraph

\startBufTest\relax

   Buffer with \tex{relax}.

\stopBufTest

\startparagraph

   An intervening paragraph.

\stopparagraph

\startBufTest[]

   Buffer with \type{[]}.

\stopBufTest

\startparagraph

   An intervening paragraph.

\stopparagraph

\startBufTest[key=value]

   Buffer with \type{[key=value]}.

\stopBufTest

\startparagraph

   A closing paragraph.

\stopparagraph

\stoptext


  \startparagraph

% \dontleavehmode\llap{\Mark}\inlinebuffer[TestBuffer]
% \ (first: \First, arg: \Arg)

    \margintext{\Mark}

    \setupparagraphintro[first][(first: \First, arg: \Arg)]
   %\setupparagraphintro[next][(first: \First, arg: \Arg)]

    \getbuffer[TestBuffer]

  \stopparagraph 


Hans,

That works for the over-simplified case here, but fails in practice. For 
a \startnarrower[left] paragraph, the mark is still in the main margin, 
not the 'margin' of the narrowed paragraph. Also, the placement of the 
text in the margin is wrong and not easily controlled as with \llap and 
\rlap. The code started out more like:


   \define\Mark{\color[middlegray]{\hskip.6cm\itb¿\ }}
   \setwidthof{\Mark}\to\MarkWidth
   ...
   \starttexdefinition stopBufTest
  \startluacode
   buffers.prepend("TestBuffer","\\dontleavehmode\\llap{\\Mark}")
  \stopluacode
  \setupnarrower[left=\MarkWidth]
  \startnarrower[left,right]
  \startparagraph
    \inlinebuffer[TestBuffer]
  \stopparagraph
  \stopnarrower
  \egroup
   \stoptexdefinition


So I am still looking for a way to do this. Meanwhile I am trying to 
understand Aditya's examples.


--
Rik

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Limit text width in items

2018-07-26 Thread Hans Hagen

On 7/26/2018 5:27 PM, Henning Hraban Ramm wrote:

Am 2018-07-26 um 16:03 schrieb Hans Hagen :


\def\MyFill#1%
  {\leaders\hbox to 1em{\hss.\hss}\hfill
   \rlap{\hbox to \rightskip{\hss#1}}}

\showframe

\starttext

\startnarrower[2*right]
\startitemize[packed,joinedup]
\startitem
\input tufte
\MyFill{33}
\stopitem
\startitem
\input knuth
\MyFill{99}
\stopitem
\stopitemize
\stopnarrower

\stoptext


Thank you very much!
I can even put \start/stopnarrower in before/after of \setupitemgroup.
Its width parameter doesn’t work (at least not together with inmargin).

But in your solution the dots (leaders) also stop with the text, and
I’d like them to continue up to the number.
I tried:

\def\MyFill#1{\leaders\hbox to 1em{\hss. }\hfill
   \rlap{\hbox to \rightskip{\leaders\hbox to 1em{. \hss}\hfill#1}}}

But that’s ugly and gives an irregular gap between the two sets.
I don’t understand this low level TeX enough...

maybe time that i start a manual about tex basics ...

\starttexdefinition MyFill #1
\removeunwantedspaces
\begingroup
\parfillskip-1\rightskip plus 1fil\relax
\cleaders\hbox spread 1em{\hss.\hss}\hfill
\hbox{#1}
\par
\endgroup
\stoptexdefinition

\showframe

\starttext

\startnarrower[2*right]
\startitemize[packed,joinedup]
\startitem
\input tufte
\MyFill{33}
\stopitem
\startitem
\input knuth
\MyFill{99}
\stopitem
\stopitemize
\stopnarrower

\stoptext


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Limit text width in items

2018-07-26 Thread Henning Hraban Ramm
Am 2018-07-26 um 16:03 schrieb Hans Hagen :

> \def\MyFill#1%
>  {\leaders\hbox to 1em{\hss.\hss}\hfill
>   \rlap{\hbox to \rightskip{\hss#1}}}
> 
> \showframe
> 
> \starttext
> 
> \startnarrower[2*right]
> \startitemize[packed,joinedup]
> \startitem
>   \input tufte
>   \MyFill{33}
> \stopitem
> \startitem
>   \input knuth
>   \MyFill{99}
> \stopitem
> \stopitemize
> \stopnarrower
> 
> \stoptext

Thank you very much!
I can even put \start/stopnarrower in before/after of \setupitemgroup.
Its width parameter doesn’t work (at least not together with inmargin).

But in your solution the dots (leaders) also stop with the text, and
I’d like them to continue up to the number.
I tried:

\def\MyFill#1{\leaders\hbox to 1em{\hss. }\hfill
  \rlap{\hbox to \rightskip{\leaders\hbox to 1em{. \hss}\hfill#1}}}

But that’s ugly and gives an irregular gap between the two sets.
I don’t understand this low level TeX enough...


Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Limit text width in items

2018-07-26 Thread Hans Hagen

On 7/26/2018 3:43 PM, Henning Hraban Ramm wrote:

Am 2018-07-23 um 13:33 schrieb Henning Hraban Ramm :


Hello again,

in the MWE below I’d like to limit the run width of the item text so that the 
(page) number is standing out, e.g.

• This is a long and winding text
   that leads to a number .. 99

The text can become one or several lines long.

I tried to put the text in boxes, e.g. \simplealignedbox{}{}{\vbox{...}} but I 
got only ugly spacing.
Also, the last line of the text continues in that leaders and number.

---

\def\leaderfill{\leaders\hbox to 1em{\hss. \hss}\hfill}

\starttext

\startitemize[packed,joinedup]
\startitem
\input tufte
\leaderfill 33
\stopitem
\startitem
\input knuth
\leaderfill 99
\stopitem
\stopitemize

\stoptext


No idea? Anyone?
Would it work to force an overfull hbox somehow in every last line?

\def\MyFill#1%
  {\leaders\hbox to 1em{\hss.\hss}\hfill
   \rlap{\hbox to \rightskip{\hss#1}}}

\showframe

\starttext

\startnarrower[2*right]
\startitemize[packed,joinedup]
\startitem
\input tufte
\MyFill{33}
\stopitem
\startitem
\input knuth
\MyFill{99}
\stopitem
\stopitemize
\stopnarrower

\stoptext

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Problem with Filter Module in latent context beta

2018-04-17 Thread Aditya Mahajan

On Tue, 17 Apr 2018, Aditya Mahajan wrote:


On Tue, 17 Apr 2018, Hans Hagen wrote:


On 4/17/2018 12:01 AM, Aditya Mahajan wrote:
All features of the filter and vim modules work with the latest beta, 
except for one final bug: leading spaces are stripped from the buffer.


\starttext

\startbuffer[test]
     Leading spaces
\stopbuffer

\savebuffer[file=test-temp.tmp, prefix=no, list=test]

\stoptext

The leading spaces are stripped before the buffer is saved to the file 
temp.tmp. Is it possible for the leading space NOT to be stripped? (If 
not, I'll just document this as a feature :-).


\samplefile{ward}
\startnarrower
   \samplefile{ward}
   \startbuffer[test]
   Leading spaces
 And some more
   \stopbuffer
   \typebuffer[test]
\stopnarrower
\samplefile{ward}

\startbuffer[test]
   Leading spaces
   And some more
\stopbuffer
\typebuffer[test]

it is actually a feature to align the left edge relative to the least 
indented so that we can use them inside other constructs


Now, as you're not afraid of low level code:

\unprotect

\unexpanded\def\StartAditya
 {\buff_pickup
   {Aditya}%
   {StartAditya}%
   {StopAditya}%
   {}%
   {\savebuffer[file=test-temp.tmp,prefix=no,list=Aditya]}%
   \zerocount}


This is perfect as I am already using `\grabbufferdata` in my code. I can 
easily adapt it to use `\buff_pickup` instead. Thanks!.


Does what you want but of course it's sort of ugly for a module to do that. 
What we can do is this which is still ugly but picking up verbatim is 
always ugly:


\def\buff_start_indeed#1#2#3#4%
 {\edef\p_strip{\namedbufferparameter{#1}\c!strip}%

\normalexpanded{\buff_pickup{#2}{#3}{#4}{}{\buff_stop{#4}}\ifx\p_strip\v!no\zerocount\else\plusone\fi}}

\protect


I want this to be configurable at runtime and the vim module already has code 
that enables `strip=yes` and `strip=no` options (I do this via a function in 
vim so that it works with both mkii and mkiv; although I don't think that 
anyone uses the mkii module any longer).


I added `strip=yes` option to the filter module, which is now the default 
option. See "Stripping leading whitespace" in the module documentation 
(https://github.com/adityam/filter). This is a MkIV only feature and I 
will not implement it in MkII.


I also made `strip=yes` to be the default in t-vim (to be consistent with 
t-filter). In t-vim, the `strip` option works with both mkii and mkiv.


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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Problem with Filter Module in latent context beta

2018-04-17 Thread Aditya Mahajan

On Tue, 17 Apr 2018, Hans Hagen wrote:


On 4/17/2018 12:01 AM, Aditya Mahajan wrote:
All features of the filter and vim modules work with the latest beta, 
except for one final bug: leading spaces are stripped from the buffer.


\starttext

\startbuffer[test]
     Leading spaces
\stopbuffer

\savebuffer[file=test-temp.tmp, prefix=no, list=test]

\stoptext

The leading spaces are stripped before the buffer is saved to the file 
temp.tmp. Is it possible for the leading space NOT to be stripped? (If 
not, I'll just document this as a feature :-).


\samplefile{ward}
\startnarrower
   \samplefile{ward}
   \startbuffer[test]
   Leading spaces
 And some more
   \stopbuffer
   \typebuffer[test]
\stopnarrower
\samplefile{ward}

\startbuffer[test]
   Leading spaces
   And some more
\stopbuffer
\typebuffer[test]

it is actually a feature to align the left edge relative to the least 
indented so that we can use them inside other constructs


Now, as you're not afraid of low level code:

\unprotect

\unexpanded\def\StartAditya
 {\buff_pickup
   {Aditya}%
   {StartAditya}%
   {StopAditya}%
   {}%
   {\savebuffer[file=test-temp.tmp,prefix=no,list=Aditya]}%
   \zerocount}


This is perfect as I am already using `\grabbufferdata` in my code. I can 
easily adapt it to use `\buff_pickup` instead. Thanks!.


Does what you want but of course it's sort of ugly for a module to do that. 
What we can do is this which is still ugly but picking up verbatim is 
always ugly:


\def\buff_start_indeed#1#2#3#4%
 {\edef\p_strip{\namedbufferparameter{#1}\c!strip}%

\normalexpanded{\buff_pickup{#2}{#3}{#4}{}{\buff_stop{#4}}\ifx\p_strip\v!no\zerocount\else\plusone\fi}}

\protect


I want this to be configurable at runtime and the vim module already has 
code that enables `strip=yes` and `strip=no` options (I do this via a 
function in vim so that it works with both mkii and mkiv; although I don't 
think that anyone uses the mkii module any longer).


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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Problem with Filter Module in latent context beta

2018-04-17 Thread Hans Hagen

On 4/17/2018 12:01 AM, Aditya Mahajan wrote:
All features of the filter and vim modules work with the latest beta, 
except for one final bug: leading spaces are stripped from the buffer.


\starttext

\startbuffer[test]
     Leading spaces
\stopbuffer

\savebuffer[file=test-temp.tmp, prefix=no, list=test]

\stoptext

The leading spaces are stripped before the buffer is saved to the file 
temp.tmp. Is it possible for the leading space NOT to be stripped? (If 
not, I'll just document this as a feature :-).


\samplefile{ward}
\startnarrower
\samplefile{ward}
\startbuffer[test]
Leading spaces
  And some more
\stopbuffer
\typebuffer[test]
\stopnarrower
\samplefile{ward}

\startbuffer[test]
Leading spaces
And some more
\stopbuffer
\typebuffer[test]

it is actually a feature to align the left edge relative to the least 
indented so that we can use them inside other constructs


Now, as you're not afraid of low level code:

\unprotect

\unexpanded\def\StartAditya
  {\buff_pickup
{Aditya}%
{StartAditya}%
{StopAditya}%
{}%
{\savebuffer[file=test-temp.tmp,prefix=no,list=Aditya]}%
\zerocount}

\unexpanded\def\StopAditya
  {}

\protect

\StartAditya
Leading spaces
And some more
\StopAditya

(1)

\typebuffer[Aditya]

(2)

\typefile{test-temp.tmp}

Does what you want but of course it's sort of ugly for a module to do 
that. What we can do is this which is still ugly but picking up verbatim 
is always ugly:


\unprotect

\def\buff_start_indeed#1#2#3#4%
  {\edef\p_strip{\namedbufferparameter{#1}\c!strip}%

\normalexpanded{\buff_pickup{#2}{#3}{#4}{}{\buff_stop{#4}}\ifx\p_strip\v!no\zerocount\else\plusone\fi}}

\protect

\definebuffer[Aditya][strip=no]

\startAditya
Leading spaces
And some more
And even more
\stopAditya

\typeAditya

But then we need Wolfgang to double check if this extension has side 
effects elsewhere.


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Typesetting an interview

2018-02-11 Thread Henning Hraban Ramm
I’d loved to use some clean code, but since I didn’t manage on my own, I 
resolved to this somewhat ugly setup:

\def\doStartInt[#1]{\testpage[2]%
\noindent\emph{#1}\par\gobblespacetokens%
\startnarrower[left]\noindent\gobblespacetokens}
\def\startInt{\dosingleempty\doStartInt}
\def\stopInt{\stopnarrower\blank[big]}


Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
GPG Key ID 1C9B22FD

Am 2018-02-07 um 17:16 schrieb Henning Hraban Ramm <te...@fiee.net>:

> Ahoi,
> I’m trying to typeset an interview and thought, a "description" might be the 
> best setup. But I can’t find the right parameters for the layout I want...
> Every contribution should look like:
> 
> """
> HHR
>   Here’s the text, question or answer.
> 
> OTR
>   And here’s the next one.
>   Might have several lines.
> """
> 
> Working example:
> 
> 
> \definedescription[Interview][
>  headstyle=italic,
>  style=normal,
>  align=flushleft,
>  alternative=hanging,
> ]
> 
> \def\dostartInterview[#1][#2]%
>  {\doifsomethingelse{#2}%
>{\startInterview[reference={#1},title={#2}]}%
>{\startInterview[title={#1}]}%
> }
> \def\startInt{\dodoubleempty\dostartInterview}
> \def\stopInt{\stopInterview}
> 
> 
> \starttext
> 
> \chapter{An Interview}
> 
> \startInt[{Hennning Hraban Ramm (HR)}]
> This might be a short question or a long response.
> Name or initials of the person should stand in their own line (without 
> breaking), while the answer should be indented, without additional paragraph 
> indent.
> \stopInt
> 
> \startInt[{Hans Hagen (HH)}]
> And I’m sure the author has something to say.
> \input tufte
> \stopInt
> 
> \startInt[HR]
> \input knuth
> \stopInt
> 
> \startInt[HH]
> \input zapf
> \stopInt
> 
> \startInt[thankyou][HR]
> This might also have a reference.
> \stopInt
> 
> \stoptext
> 
> 
> 
> Greetlings, Hraban
> ---
> http://www.fiee.net
> http://wiki.contextgarden.net
> GPG Key ID 1C9B22FD
> 
> ___
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] Extend is indented after section (2nd try)

2017-11-03 Thread T. Kurt Bond
[This is a second try at sending this message, after I got the not that I'm
on the mailing list now.]

Hello,

When I'm using an exdent after a section command, the first line of the
exdented paragraph is indented, instead of exdented.  Here's an example:

=
\definestartstop
  [exdent]
  [before={\startnarrower[left]\setupindenting[-\leftskip,yes]},
   after=\stopnarrower]
\starttext
\startcolumns[n=2]
\section{Heading 1}
Some text.
\startexdent
This sentence needs to be long enough to wrap at least once.

This sentence needs to be long enough to wrap at least once.
\stopexdent
\section{Heading 2}
\startexdent
This sentence needs to be long enough to wrap at least once.

This sentence needs to be long enough to wrap at least once.
\stopexdent
\stoptext
=

The paragraph after "Heading 2" is indented.  If I delete the text "Some
text." after "Heading 1", the exdented paragraph is is also indented
instead of exdented.

What can I do to prevent this?

-- 
T. Kurt Bond, tkurtb...@gmail.com and http://consp.org/~tkb
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] size of footnote numbers

2017-09-30 Thread Otared Kavian
Hi Hraban,

If you want to change the way the footnote number in the text is shown 
something like a variation of the following might help you (copying this from a 
solution given by Wolfgang S. a few years ago…):

\define[1]\MyFootnotenoteCommand{\high{\bf{(#1)}}}
\setupnote[textcommand=\MyFootnotenoteCommand]
\setupnotation[footnote][left={(},right={)}]


\starttext
Hi there!\footnote{I’m a footnote.}
\stoptext

Best regards: OK

> On 29 Sep 2017, at 13:34, Henning Hraban Ramm <te...@fiee.net> wrote:
> 
> Ahoi,
> 
> in my current book there are some quotations typeset in a smaller type (via 
> \switchtobodyfont in a defined startstop).
> 
> Now the author insists that their footnote numbers should have the same size 
> as in the body text.
> Since the footnotes are mostly source annotations at the end, it makes some 
> sense.
> 
> What would be the best way to achieve this?
> 
> Here’s my setup:
> 
> \setupbodyfont[alegreya,rm,11pt] % usual font size
> 
> \startsetups[myQuotation]
>  \setupwhitespace[none]
>  \setupnarrower[left=2em,right=2em]
>  \switchtobodyfont[rm,10pt]
> % I guess I should change the footnote number font size here?
> \stopsetups
> 
> \definestartstop[myQuotation][
>setups=myQuotation,
>before={
>  \testpage[2]
>  \startnarrower[left,right]
>  \noindent},
>after={\stopnarrower
>  \indenting[next]}]
> 
> 
> 
> Greetlings, Hraban
> ---
> http://www.fiee.net
> http://wiki.contextgarden.net
> GPG Key ID 1C9B22FD
> 
> ___
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] size of footnote numbers

2017-09-29 Thread Henning Hraban Ramm
Ahoi,

in my current book there are some quotations typeset in a smaller type (via 
\switchtobodyfont in a defined startstop).

Now the author insists that their footnote numbers should have the same size as 
in the body text.
Since the footnotes are mostly source annotations at the end, it makes some 
sense.

What would be the best way to achieve this?

Here’s my setup:

\setupbodyfont  [alegreya,rm,11pt] % usual font size

\startsetups[myQuotation]
  \setupwhitespace[none]
  \setupnarrower[left=2em,right=2em]
  \switchtobodyfont[rm,10pt]
% I guess I should change the footnote number font size here?
\stopsetups

\definestartstop[myQuotation][
setups=myQuotation,
before={
  \testpage[2]
  \startnarrower[left,right]
  \noindent},
after={\stopnarrower
  \indenting[next]}]



Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
GPG Key ID 1C9B22FD

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

  1   2   3   4   5   >