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

2022-07-18 Thread Benjamin Buchmuller via ntg-context
0 \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

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

2022-04-07 Thread Thangalin via ntg-context
[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

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

2022-02-06 Thread Wolfgang Schuster via ntg-context
startstop[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]},

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

2022-02-05 Thread śrīrāma via ntg-context
X 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

[NTG-context] Odd Font Behavior in startstop Group

2022-02-05 Thread Michael Urban via ntg-context
ns][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 w

Re: [NTG-context] Critical Editions?

2022-01-04 Thread Pablo Rodriguez via ntg-context
iant] \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][][inde

Re: [NTG-context] Critical Editions?

2021-12-21 Thread Denis Maier via ntg-context
e=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\st

[NTG-context] Critical Editions?

2021-12-21 Thread hanneder--- via ntg-context
[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, ev

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

2021-11-16 Thread Marcus Vinicius Mesquita via ntg-context
}% > \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

[NTG-context] new upload, new trickery

2021-10-28 Thread Hans Hagen via ntg-context
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

[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
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

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
gt;header=empty, >footer=chpaterfooter, >sectionsegments=chapter, >before={\setups[chapter:before]}, >after={\setups[chapter:after]}] > > \startsetups chapter:before > \page[left] > \noheaderandfooterlines > \startalignment[left,nothyphen

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

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

2021-10-25 Thread Gerben Wierda via ntg-context
[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

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
, 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[

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
> \startsetups chapter:before > \page[left] > \noheaderandfooterlines > \startalignment[left,nothyphenated] > \startnarrower[4*left] > \em \getbuffer[chapter:quote] > \stopnarrower > \stopalignment > \resetsetups[quote:text] >

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

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

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

2021-06-25 Thread Wolfgang Schuster
. \startsetups [userdata:shiftblock] \signalrightpage \doifelserightpage { \startnarrower[2*left,-2*right] \getuserdata \stopnarrower } { \startnarrower[-2*left,2*right] \getuserdata \stopnarrower } \stopsetups

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

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

[NTG-context] Calculating Best Box Width?

2021-06-09 Thread Michael Urban
of the hbox width until it fits in the allocated space)? How to go about this? \defineblank[EpigraphDistance][3pt] \definestartstop[EpigraphText][ style=\ssa, before={\blank[EpigraphDistance] \setupnarrower[left=.25\textwidth,right=0pt] \startnarrower[left,right] \setupalign

[NTG-context] \startblockquote…\stopblockquote issue

2020-12-31 Thread Alan Bowen
={\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

Re: [NTG-context] lmtx

2020-10-30 Thread Jairo A. del Rio
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 \stop

[NTG-context] Local custom notes affect regular footnotes

2020-10-09 Thread Henning Hraban Ramm
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

Re: [NTG-context] Quotation with footnote

2020-09-04 Thread Wolfgang Schuster
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

Re: [NTG-context] Quotation with footnote

2020-09-04 Thread Henning Hraban Ramm
> 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: \setupnarrowe

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

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

2020-05-21 Thread Aditya Mahajan
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

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

2020-05-18 Thread Wolfgang Schuster
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

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

2020-05-18 Thread Jan U. Hasecke
er > [before=\blank\blackrule\startnarrower\BufferStyle, > after=\stopnarrower\blackrule\blank] > > %% alternatively define custom buffers > \definebuffer > [foobar] > > \setupblackrules > [width=1cm, >height=1pt, >color=gray] > > \defi

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

2020-05-17 Thread Marco Patzer
er has before and after keys which can be used. Example: \setupbuffer [before=\blank\blackrule\startnarrower\BufferStyle, after=\stopnarrower\blackrule\blank] %% alternatively define custom buffers \definebuffer [foobar] \setupblackrules [width=1cm, height=1pt, color=gray] \definehighli

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

2020-05-05 Thread Tim Steenvoorden
r=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=

[NTG-context] Shift tabulate into margin and center

2020-05-04 Thread Tim Steenvoorden
=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

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

2019-12-10 Thread Wolfgang Schuster
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

[NTG-context] changing alignment inside a paragraph

2019-12-10 Thread mf
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

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

2019-11-28 Thread denis . maier . lists
rtstop [cslreferences] [ > before={% > \setupnarrower[left=\cslhangindent] > \startnarrower[left]% > \setupindenting[-\leftskip,yes,first]% > \indentation% >}, >after=\stopnarrower, > ] > > \starttext >

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

[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

Re: [NTG-context] startnarrower and framed?

2019-08-21 Thread Jon Wong
, 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

Re: [NTG-context] startnarrower and framed?

2019-08-21 Thread Jon Wong
[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

Re: [NTG-context] startnarrower and framed?

2019-08-21 Thread Jon Wong
t; > 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

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

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

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

[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

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

2019-04-07 Thread Henning Hraban Ramm
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 w

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

2019-04-07 Thread Hans Hagen
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

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

2019-04-07 Thread Henning Hraban Ramm
hat 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 \startside

[NTG-context] variable edef with localhsize calculation

2019-04-04 Thread Rörig , Julian
] \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

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

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

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'

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 >

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

2019-03-26 Thread Henning Hraban Ramm
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 &

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

2019-03-26 Thread Wolfgang Schuster
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

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

2019-03-26 Thread Henning Hraban Ramm
ebar. 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 (\startnarrow

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

2019-03-26 Thread Otared Kavian
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 > additio

[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

[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 @@

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

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

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

[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

[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

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

2018-12-06 Thread Rik Kabel
}} \stopsetups \startsetups btx:quotedb:list:quote \limitatetext{\btxfield{extract}}{\textwidth}{\unknown} \blank[none] -\btxspace\btxflush{author} \btxcomma\btxfield{year} \stopsetups \starttexdefinition Quotation #QUOTE \startnarrower \blank

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

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

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

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

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

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

2018-08-13 Thread Wolfgang Schuster
, 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

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

2018-08-13 Thread Rik Kabel
: \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

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

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

2018-08-13 Thread Rik Kabel
]   \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

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

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 >

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

2018-07-26 Thread Hans Hagen
% {\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

Re: [NTG-context] Problem with Filter Module in latent context beta

2018-04-17 Thread Aditya Mahajan
:-). \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

Re: [NTG-context] Problem with Filter Module in latent context beta

2018-04-17 Thread Aditya Mahajan
\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

Re: [NTG-context] Problem with Filter Module in latent context beta

2018-04-17 Thread Hans Hagen
=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

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

[NTG-context] Extend is indented after section (2nd try)

2017-11-03 Thread T. Kurt Bond
: = \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

Re: [NTG-context] size of footnote numbers

2017-09-30 Thread Otared Kavian
% 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]}] >

[NTG-context] size of footnote numbers

2017-09-29 Thread Henning Hraban Ramm
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

Re: [NTG-context] Adjusting column width dynamically to get rid of orphans and widows

2017-06-23 Thread Henri Menke
o! > > > > On my computer, the first column goes on for two lines more than the > > following column, and it still produces a widow: > > > > %%% document starts here > > [...] > > %%% document ends here > > > > The thing is that there simply isn't a good way

Re: [NTG-context] Adjusting column width dynamically to get rid of orphans and widows

2017-06-23 Thread Thomas Widmann
than the > following column, and it still produces a widow: > > %%% document starts here > [...] > %%% document ends here > > The thing is that there simply isn't a good way to break up a > three-line dictionary entry, and it would be much better to play > around with the

Re: [NTG-context] Adjusting column width dynamically to get rid of orphans and widows

2017-06-23 Thread Thomas Widmann
ing and font expansion are definitely options, but again, >> my real query would be how to trigger them dynamically to avoid a >> widow or an orphan. > > can you make a small example showing the problem Sorry about the delay – here you go! On my computer, the first column goes on for two

[NTG-context] How do I insert characters before \par

2017-03-31 Thread Rik Kabel
. \stoptexdefinition 10. \starttexdefinition stopABC 11. \setupnarrower[left=\ABCinset] 12. \startnarrower[left,right] 13.\startlines 14. (\,\inlinebuffer[bu:ABC]\,) 15.\stoplines 16. \stopnarrower 17.\endgroup

Re: [NTG-context] startstop, narrower and switchtobodyfont gives strange interlinespace

2017-03-22 Thread Andres Conrado
This works for me, is probably not what you want, but at leat it's consistent (it uses the interline of the main text). \definestartstop[passus][ before={\startnarrower}, after={\stopnarrower}, style={\tfxx}, ] \starttext \subject{It looks OK here:} \input knuth \startnarrower \tfxx \input

Re: [NTG-context] startstop, narrower and switchtobodyfont gives strange interlinespace

2017-03-22 Thread Mikael P. Sundqvist
t. It is too big. Resulting pdf > is attached. > > What am I doing wrong? Any ideas to solve it (i.e. to be able to > define an environment with narrower smaller text, including a reduced > interlinespace)? > > /Mikael > > \definestartstop[passus][ > before={\startnarro

[NTG-context] startstop, narrower and switchtobodyfont gives strange interlinespace

2017-03-22 Thread Mikael P. Sundqvist
to define an environment with narrower smaller text, including a reduced interlinespace)? /Mikael \definestartstop[passus][ before={\startnarrower}, after={\stopnarrower}, style={\switchtobodyfont[9pt]}, ] \starttext \subject{It looks OK here:} \input knuth \startnarrower \switchtobodyfont[9

Re: [NTG-context] avoid newline after definestartstop

2016-10-26 Thread Wolfgang Schuster
Michael Eidenbenz <mailto:eidenb...@arch.ethz.ch> 26. Oktober 2016 um 23:03 Dear Wolfgang, thanks for your mail, that led me to the source in syst-aux where I found the TeX approach, my final solution. \def\startCitation% { \startnarrower[left,right] \symbol[leftquo

Re: [NTG-context] avoid newline after definestartstop

2016-10-26 Thread Michael Eidenbenz
Dear Wolfgang, thanks for your mail, that led me to the source in syst-aux where I found the TeX approach, my final solution. \def\startCitation% { \startnarrower[left,right] \symbol[leftquotation] \removeunwantedspaces} \def\stopCitation#1\par% { \removeunwantedspaces \symbol

Re: [NTG-context] avoid newline after definestartstop

2016-10-26 Thread Wolfgang Schuster
tufte \stoptext Here is a alternative version but you need a empty line or \par after \stopCitation. \define\startCitation {\startnarrower[left] \symbol[leftquotation]\ignorespaces} \define\stopCitation {\BeforePar{\removeunwantedspaces\symbol[rightquotation]}% \AfterPar {\endgraf\stopna

Re: [NTG-context] avoid newline after definestartstop

2016-10-24 Thread Thomas A. Schmitz
On 10/24/2016 05:08 PM, Otared Kavian wrote: Hi Michael, Maybe what Wolfgang meant by « putting the marks by hand » is something like: you define \StartCitation and \StopCitation in the following way: % begin quotation-note.tex \define\StartCitation{\startnarrower[left,right]«~} \define[1

Re: [NTG-context] avoid newline after definestartstop

2016-10-24 Thread Wolfgang Schuster
ything after is belongs to a new paragraph. thanks michael \definestartstop[Citation] [before={\startnarrower[left,right]\startquotation}, after={\stopquotation\stopnarrower\dontleavehmode}] You can do the same with a custom quote environment: \definedelimitedtext [Citation] [quotation] [left

Re: [NTG-context] avoid newline after definestartstop

2016-10-24 Thread Michael Eidenbenz
te: > > Hi Michael, > > Maybe what Wolfgang meant by « putting the marks by hand » is something like: > you define \StartCitation and \StopCitation in the following way: > > % begin quotation-note.tex > > \define\StartCitation{\startnarrower[left,right]«~} > \de

Re: [NTG-context] avoid newline after definestartstop

2016-10-24 Thread Otared Kavian
Hi Michael, Maybe what Wolfgang meant by « putting the marks by hand » is something like: you define \StartCitation and \StopCitation in the following way: % begin quotation-note.tex \define\StartCitation{\startnarrower[left,right]«~} \define[1]\StopCitation{~»\footnote{#1}\stopnarrower

Re: [NTG-context] avoid newline after definestartstop

2016-10-24 Thread Michael Eidenbenz
016, at 11:13, Michael Eidenbenz <eidenb...@arch.ethz.ch> wrote: > > hello, > > how can I put the footnote number right after the quotationmarks without > having a newline? > dontleavehmode does not work. > > thanks michael > > > > > \definestart

[NTG-context] avoid newline after definestartstop

2016-10-20 Thread Michael Eidenbenz
hello, how can I put the footnote number right after the quotationmarks without having a newline? dontleavehmode does not work. thanks michael \definestartstop[Citation] [before={\startnarrower[left,right]\startquotation}, after={\stopquotation\stopnarrower

  1   2   3   4   5   >