[NTG-context] Re: Lengthening/shortening paragraphs

2025-06-25 Thread Mikael Sundqvist
p;utm_source=link&utm_campaign=sig-email&utm_content=webmail> > > Virus-free.www.avg.com > <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> > > > > On Tue, 24 Jun 2025 at 16:50, Wolfgang

[NTG-context] Re: Lengthening/shortening paragraphs

2025-06-25 Thread John Was
>> setting does the job. (I'll investigate at some point how to do the >> reverse since sometimes one wants to lose a line, typically so that a >> footnote can be squeezed in.) >> >> >> Best wishes >> >> >> >> John Waś *🇪🇺 * Слава У

[NTG-context] Re: Lengthening/shortening paragraphs

2025-06-25 Thread Denis Maier via ntg-context
s the program to lengthening a paragraph, or shorten it if the > number is negative). At the final stages of a book this is often useful > for getting rid of unsightly gaps. \showgrid \starttext \samplefile{zapf} \page \startalignment[normal,verytolerant,stretch,more] \samplefile{zapf} \s

[NTG-context] Re: Lengthening/shortening paragraphs

2025-06-25 Thread John Was
ConTeXt equivalent for plain TeX's \loosness (which > > allows the program to lengthening a paragraph, or shorten it if the > > number is negative). At the final stages of a book this is often useful > > for getting rid of unsightly gaps. > > \showgrid > >

[NTG-context] Re: Lengthening/shortening paragraphs

2025-06-24 Thread Wolfgang Schuster
gaps. \showgrid \starttext \samplefile{zapf} \page \startalignment[normal,verytolerant,stretch,more] \samplefile{zapf} \stopalignment \page \startalignment[normal,verytolerant,stretch,2*more] \samplefile{zapf} \stopalignment \stoptext Wol

[NTG-context] Re: How to return 'setupalign' to default behavior after setting?

2025-03-07 Thread Wolfgang Schuster
Am 07.03.2025 um 06:35 schrieb Denis Maier via ntg-context: What about putting the relevant sections in a group with \begingroup \endgroup? The grouped version already exists with \startalignment[] ... \stopalignment Wolfgang

[NTG-context] Re: externalimage alignment inside frame changed from previous context version

2025-02-14 Thread Hans Hagen via ntg-context
,align=middle,location=top,frameoffset=0pt]% {\startalignment[middle]\tfd{{#1}}\\\tfb{#2}\stopalignment} } \setuphead[chapter] [% deepnumbercommand={\switchtobodyfont[modern]}, deeptextcommand={\switchtobodyfont[modern]}, command

[NTG-context] Re: externalimage alignment inside frame changed from previous context version

2025-02-12 Thread chindea . daniel
]% {\startalignment[middle]\tfd{{#1}}\\\tfb{#2}\stopalignment} } \setuphead[chapter] [% deepnumbercommand={\switchtobodyfont[modern]}, deeptextcommand={\switchtobodyfont[modern]}, command=\mychapter, header=high, align

[NTG-context] Re: externalimage alignment inside frame changed from previous context version

2025-02-12 Thread Hans Hagen via ntg-context
] {\noindentation\startalignment[middle]\tfd{\color[lightgrey]{#1}}\\\dontleavehmode\externalfigure[divider.pdf][width=42mm]\\\tfb{#2}\stopalignment} } %--chapter \setuphead[chapter] [% command=\mychapter, style=\tfb, align={middle,nothyphenated

[NTG-context] externalimage alignment inside frame changed from previous context version

2025-02-12 Thread chindea . daniel
context. \startsetups [chapter:before] \doifoddpageelse {}{\noheaderandfooterlines} \stopsetups \define[2]\mychapter {\noindentation\strut\framed[frame=off,width=\textwidth,align=middle,location=top,frameoffset=0pt] {\noindentation\startalignment[middle]\tfd{\color[lightgrey]{#1

[NTG-context] Re: Transition from ConTeXt mark II to mark IV

2024-12-06 Thread Wolfgang Schuster
ef\StartTitlePage[#1]%   {\bgroup    ...    \startalignment[right,broad]    \TitleFont\color[LightColor]\ss\bfc\setupinterlinespace[big]} which doesn't work anymore, the correct method is to use \startcolor[...] at the begin and \stopcolor at the end. \def\StartTitlePage[#1]%   {\bgroup    ...    \s

[NTG-context] Re: (ConTeXt LMTX) (Beginner) how do i set up vertical CJK?

2024-10-16 Thread 黄复雄
e the code listed above and I am wondering how I can get CJK text to be > in a vertical form (along with Vietnamese. I know l2r as an option exists in > startalignment, but there seems to not be a vertical equivalent for vertical > t

[NTG-context] Re: (ConTeXt LMTX) (Beginner) how do i set up vertical CJK?

2024-10-07 Thread Florent Michel
the code listed above and I am wondering how I can get CJK text > to be in a vertical form (along with Vietnamese. I know l2r as an option > exists in startalignment, but there seems to not be a vertical equivalent > for vertical text. How do I achieve this? > > there is something men

[NTG-context] Re: (ConTeXt LMTX) (Beginner) how do i set up vertical CJK?

2024-10-07 Thread luigi scarso
2r as an option > exists in startalignment, but there seems to not be a vertical equivalent > for vertical text. How do I achieve this? > > there is something mentioned in followingup-directions.tex > > i removed top to bottom directions from luametatex because it made no > sens

[NTG-context] Re: (ConTeXt LMTX) (Beginner) how do i set up vertical CJK?

2024-10-07 Thread Hans Hagen via ntg-context
On 10/6/2024 8:40 PM, Felix wrote: https://pastebin.com/Cg8ZPDVK I have the code listed above and I am wondering how I can get CJK text to be in a vertical form (along with Vietnamese. I know l2r as an option exists in startalignment, but there seems to not be a vertical equivalent for

[NTG-context] (ConTeXt LMTX) (Beginner) how do i set up vertical CJK?

2024-10-06 Thread Felix
https://pastebin.com/Cg8ZPDVK I have the code listed above and I am wondering how I can get CJK text to be in a vertical form (along with Vietnamese. I know l2r as an option exists in startalignment, but there seems to not be a vertical equivalent for vertical text. How do I achieve this

[NTG-context] Re: crossreferences

2024-09-27 Thread Jürgen Hanneder via ntg-context
er=no] \setuphead [section] [style=\tfa,header=none,number=no] \setuphead [subsection][style=\tf\it,header=none,number=no] \definestartstop[verse][before={\blank\setuplines[indenting=always]\startalignment[right]\startlines}, after={\stoplines\stopalignment\

[NTG-context] Re: How do I get roman numerals in all numerable sections with no extra spacing after the period (would appreciate condensed code/simplification) (I read documentation but did not get an

2024-08-22 Thread Hraban Ramm
mentvariable{date}} \blank[line] \stopsetups \startdocument[title=Title,author=Author,date=Date] \startpart[title=one] \stoppart \startalignment[middle] {\sc 1. one} % there is added space as shwon when trying to emulate what I want through regular text \stopalignment \startchapte

[NTG-context] How do I get roman numerals in all numerable sections with no extra spacing after the period (would appreciate condensed code/simplification) (I read documentation but did not get any re

2024-08-22 Thread Felix
] \stopsetups \startdocument[title=Title,author=Author,date=Date] \startpart[title=one] \stoppart \startalignment[middle] {\sc 1. one} % there is added space as shwon when trying to emulate what I want through regular text \stopalignment \startchapter[title=two] \stopchapter \startpart[title

[NTG-context] Re: Alignments of margin notes

2024-08-01 Thread Gerion Entrup
Am Donnerstag, 1. August 2024, 15:36:57 MESZ schrieb Hans Hagen: > On 8/1/2024 2:50 PM, Taco Hoekwater wrote: > > Hi, > > > > Something seems wrong with the align processing inside \setupmargindata, > > because using a macro like > > > > \def\Inmargin#1

[NTG-context] Re: Alignments of margin notes

2024-08-01 Thread Hans Hagen
On 8/1/2024 2:50 PM, Taco Hoekwater wrote: Hi, Something seems wrong with the align processing inside \setupmargindata, because using a macro like \def\Inmargin#1{\inmargin{\blank[-line]\startalignment[inner,nothyphenated]#1\stopalignment}} works ok (the \blank[-line] is a side-effect of

[NTG-context] Re: Alignments of margin notes

2024-08-01 Thread Taco Hoekwater
Hi, Something seems wrong with the align processing inside \setupmargindata, because using a macro like \def\Inmargin#1{\inmargin{\blank[-line]\startalignment[inner,nothyphenated]#1\stopalignment}} works ok (the \blank[-line] is a side-effect of using the environment inside a margin text

[NTG-context] Re: Combine \setupdelimitedtext with an author (define custom variable?)

2024-06-06 Thread Gerion Entrup
gt; \setupdelimitedtext > >[extract] > >[leftmargin=1.5pc, > > style={\italic}, > > before={\setupindenting[next]}, > > after={\blank[1ex] \hrule \blank[1ex] \startalignment[flushright] > > \tfx\italic{René Descartes} \stopalignment}] > > > >

[NTG-context] Re: Combine \setupdelimitedtext with an author (define custom variable?)

2024-06-06 Thread Gerion Entrup
ext > >[extract] > >[leftmargin=1.5pc, > > style={\italic}, > > before={\setupindenting[next]}, > > after={\blank[1ex] \hrule \blank[1ex] \startalignment[flushright] > > \tfx\italic{René Descartes} \stopalignment}] > > > >

[NTG-context] Re: Combine \setupdelimitedtext with an author (define custom variable?)

2024-06-06 Thread Hans Hagen via ntg-context
={\setupindenting[next]},     after={\blank[1ex] \hrule \blank[1ex] \startalignment[flushright] \tfx\italic{René Descartes} \stopalignment}] \starttext \startextract Cogito ergo sum. \stopextract \stoptext ``` So it should setup a quotation and mentions the author. However, here the author is hardcoded

[NTG-context] Re: Combine \setupdelimitedtext with an author (define custom variable?)

2024-06-06 Thread Wolfgang Schuster
[1ex] \startalignment[flushright] \tfx\italic{René Descartes} \stopalignment}] \starttext \startextract Cogito ergo sum. \stopextract \stoptext ``` So it should setup a quotation and mentions the author. However, here the author is hardcoded within the blockquote. I would like it to use like

[NTG-context] Re: Combine \setupdelimitedtext with an author (define custom variable?)

2024-06-06 Thread Hans Hagen via ntg-context
] \startalignment[flushright] \tfx\italic{René Descartes} \stopalignment}] \starttext \startextract Cogito ergo sum. \stopextract \stoptext ``` So it should setup a quotation and mentions the author. However, here the author is hardcoded within the blockquote. I would like it to use like

[NTG-context] Combine \setupdelimitedtext with an author (define custom variable?)

2024-06-06 Thread Gerion Entrup
Hi, I like to achieve something that looks like this: ``` \definedelimitedtext[extract][blockquote] \setupdelimitedtext [extract] [leftmargin=1.5pc, style={\italic}, before={\setupindenting[next]}, after={\blank[1ex] \hrule \blank[1ex] \startalignment[flushright] \tfx\italic{René

[NTG-context] Re: setuphead in connection with the command argument

2024-05-30 Thread Gerion Entrup
gt; produces 2.pdf (the chapter font is not 20pt). > > > > > > ## Line breaks > > > > How can I achieve line breaks? > > This does not work: > > ``` > > \define[2]\MyChapter{% > > #1 #2:\\ > > \structureuservariable{subtitle}\\ > >

[NTG-context] Re: setuphead in connection with the command argument

2024-05-30 Thread Tomáš Hála
\structureuservariable{subtitle}\\ > (\structureuservariable{intro}) > } > ``` > (see 3.pdf) > > I also want to set everything except of the intro in a flushright environment > but do not know how. I tried: > ``` > \define[2]\MyChapter{% > \startalignment[flushright] &g

[NTG-context] Re: setuphead in connection with the command argument

2024-05-30 Thread Gerion Entrup
ine breaks > > How can I achieve line breaks? > This does not work: > ``` > \define[2]\MyChapter{% > #1 #2:\\ > \structureuservariable{subtitle}\\ > (\structureuservariable{intro}) > } > ``` > (see 3.pdf) > > I also want to set everything except

[NTG-context] setuphead in connection with the command argument

2024-05-30 Thread Gerion Entrup
e{intro}) } ``` (see 3.pdf) I also want to set everything except of the intro in a flushright environment but do not know how. I tried: ``` \define[2]\MyChapter{% \startalignment[flushright] #1 #2:\\ \structureuservariable{subtitle}\\ \stopalignment \structureuservariab

[NTG-context] Re: Square right aligned

2024-02-09 Thread Ursula Hermann
Dear Otared and Dear Hraban, So this is my little example: works perfect, after our correspondence. \starttext \startalignment[normal] \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

[NTG-context] Re: Square right aligned

2024-02-08 Thread Ursula Hermann
zungen machen Sie sich die Bedeutung der beiden Aussagen klar.\startalignment[right]\square\stopalignment}\stoptext} There should be a sign like this □ at the end of the proof. Uschi ___ If your question is of inter

[NTG-context] Re: Square right aligned

2024-02-08 Thread Otared Kavian
} > {\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 > kla

[NTG-context] Re: Square right aligned

2024-02-08 Thread Henning Hraban Ramm
Am 08.02.24 um 12:23 schrieb Ursula Hermann: Dear List, I am at Home  and have the following example.: klar.\startalignment[right]\square\stopalignment}\stoptext} There should be a sign like this □ at the end of the proof. What’s your problem – is the square missing? Then there’s probably

[NTG-context] Square right aligned

2024-02-08 Thread Ursula Hermann
Voraussetzungen machen Sie sich die Bedeutung der beiden Aussagen klar.\startalignment[right]\square\stopalignment}\stoptext} There should be a sign like this □ at the end of the proof. Uschi ___ If your question is of

[NTG-context] XML, multiple spaces encoded as %20 get merged into one space

2023-09-06 Thread denis.maier
[\xmlfilter{#1}{./url('xlink:href')}] \stopxmlsetups \startxmlsetups xml:link https://uv-v4.netlify.app/\#?manifest=\xmlfilter{#1}{./url('xlink:href')} \stopxmlsetups \startxmlsetups xml:fig \startplacefigure[title=Test] \s

[NTG-context] Perceptrons

2022-10-16 Thread Thangalin via ntg-context
scaled SCALE; draw perceptrons scaled SCALE; \stopuseMPgraphic \startuseMPgraphic{HexGridBgGraphic} % Define the grid background colour color gridback; gridback := (0.15, 0.18, 0.24); fill unitsquare xyscaled (OverlayWidth, OverlayHeight) withcolor gridback; \stopuseMP

Re: [NTG-context] Problem loading font in LMTX

2022-06-11 Thread Stefan Nedeljkovic via ntg-context
e: > > > > \starttypescript [lidia] > > \definetypeface[lidia][rm][serif][lidiaweb][cpsp=yes] > > \stoptypescript > > \setupbodyfont[lidia,36pt] > > \starttext > > \startTEXpage[align=normal,width=100cm,autowidth=force,offset=0pt] > > \startalignment[midd

Re: [NTG-context] Problem loading font in LMTX

2022-06-11 Thread Wolfgang Schuster via ntg-context
,offset=0pt] \startalignment[middle] 2{\hskip 0em}412{\hskip 0em}772 {\hskip 0em}КУЋНА {\hskip 0em}БРОЈА\\ {\vskip 2em}ИЗ {\hskip 0em}БАЗЕ {\hskip 0em}РЕПУБЛИЧКОГ {\hskip 0em}ГЕОДЕТСКОГ {\hskip 0em}ЗАВОДА\\ {\vskip 2em}У {\hskip 0em}ПРОЈЕКЦИЈИ {\hskip 0em}epsg{\hskip 0em}:{\hskip 0em}32634 {\hskip

[NTG-context] Problem loading font in LMTX

2022-06-11 Thread Stefan Nedeljkovic via ntg-context
Dear list, I have the following file: \starttypescript [lidia] \definetypeface[lidia][rm][serif][lidiaweb][cpsp=yes] \stoptypescript \setupbodyfont[lidia,36pt] \starttext \startTEXpage[align=normal,width=100cm,autowidth=force,offset=0pt] \startalignment[middle] 2{\hskip 0em}412{\hskip 0em}772

Re: [NTG-context] Table breaks incorrectly between pages

2022-05-14 Thread śrīrāma via ntg-context
\setupTABLE[column][12][alignmentcharacter={.},aligncharacter=yes,align=flushright] \stopsetups \switchtobodyfont[6pt] \startalignment[middle] \bTABLE[setups=maintable,option=stretch,split=repeat] \bTABLEhead \bTR[bottomframe=on, rulethickness=2pt,offset=0.25pt] \bTH\bf Рб \eTH \bTH\bf Шифра артикла \eTH \bTH\bf Наз

[NTG-context] Table breaks incorrectly between pages

2022-05-14 Thread Stefan Nedeljkovic via ntg-context
n][12][alignmentcharacter={.},aligncharacter=yes,align=flushright] \stopsetups \switchtobodyfont[6pt] \startalignment[middle] \bTABLE[setups=maintable,option=stretch,split=yes,header=repeat] \bTR[bottomframe=on, rulethickness=2pt,offset=0.25pt] \bTD\bf Рб \eTD \bTD\bf Шифра артикла \eTD \bTD\bf Назив артикла \eTD \b

Re: [NTG-context] Makeup on same page as main content

2022-03-05 Thread śrīrāma via ntg-context
ion={local,default}] \setvariables [assignments] [set={\setups[assignments:set]}] \startsetups assignments:set \writestatus{variables}{assignments:set is being called..} \startalignment[middle] \bTABLE[frame=off] \setupTABLE[c][1][align=flushleft,style=bold,distance=2cm] \setu

Re: [NTG-context] Get Current Section Number

2022-01-09 Thread Wolfgang Schuster via ntg-context
he chapter number in order to set up the conditional? Can you show a example of your document, maybe there is a better way to produce the desired result. \startsetups [document:start]     \startalignment[middle]     {\ssd\documentparameter{title}}     \stopalignment \stopsetups \setuphea

Re: [NTG-context] upload

2021-12-25 Thread Hans Hagen via ntg-context
error here on my end. exit codes more reliable The example I posted on 2021-12-15 still returns success when it should fail. So regarding the exit codes I see no change here. \enabledirectives [logs.errors] \starttext %% ### semi simple group … entered at line \startalignment [middle] foo

Re: [NTG-context] About "clearpage"

2021-12-16 Thread Wolfgang Schuster via ntg-context
MANUEL GONZALEZ SUAREZ via ntg-context schrieb am 16.12.2021 um 20:15: Hi all: In the example below: [...] \newdimen\Margin \Margin=2cm \newdimen\MarginRaise \MarginRaise=56ex [...] \startsetups[text a] \raise\MarginRaise\hbox{\vtop{\hsize=\Margin% \startalignment[right] \getmarking[chapter

[NTG-context] About "clearpage"

2021-12-16 Thread MANUEL GONZALEZ SUAREZ via ntg-context
] \startsetups[text a] \raise\MarginRaise\hbox{\vtop{\hsize=\Margin% \startalignment[right] \getmarking[chapter] \stopalignment }} \stopsetups \startsetups[text b] \raise\MarginRaise\hbox{\vtop{\hsize=\Margin% \startalignment[left] \getmarking[section] \stopalignment }} \stopsetups

Re: [NTG-context] Errors in source files return success

2021-12-15 Thread Hans Hagen via ntg-context
rs do return success. %% enables logging of errors same as --errors \enabledirectives [logs.errors] \starttext %% ### semi simple group … entered at line \startalignment [middle] foo \stoptext You can check in the next upload: - The 'failure' that you saw was actually a real lua error

Re: [NTG-context] Errors in source files return success

2021-12-15 Thread Marco Patzer via ntg-context
ors same as --errors \enabledirectives [logs.errors] \starttext %% ### semi simple group … entered at line \startalignment [middle] foo \stoptext Marco ___ If your question is of interest to others as well, please add a

[NTG-context] adjusting vertical space

2021-11-24 Thread jbf via ntg-context
lines in question? Julian \startstandardmakeup[top=] \startalignment[middle] \definedfont[name:SemplicitaPro-Medium.ttf*default at 34pt] \color[gray]{A JOURNEY} \definedfont[name:baskerville-italic.ttf*default at 26pt] \color[gray]{from the} \definedfont[name:SemplicitaPro-Medium.ttf*defau

[NTG-context] Errors in source files return success

2021-11-18 Thread Marco Patzer via ntg-context
mple group … entered at line \startalignment [middle] foo %% missing references See \in{section}[sec:none]. %% undefined control sequence %% \undefined \stoptext Marco ___ If your question is of interest to others as we

[NTG-context] Space before/after combinations + centring

2021-11-17 Thread Marco Patzer via ntg-context
erved: \unprotect \unexpanded\def\startcombination {\blank[halfline]%% \startalignment[middle]%% \dontleavehmode \bgroup \pack_combinations_push \dodoubleempty\pack_combinations_start} \unexpanded\def\stopcombination {\bgroup\normalexpanded{\egroup{}\ntimes{{}{}}\c_pack_combinations_y}

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

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 and

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

2021-10-24 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
gt; > \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
=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

Re: [NTG-context] Progressively encouraging page/column breaks at \blank with penalties

2021-08-15 Thread Joey McCollum via ntg-context
d of the page or column. Based on these constraints, I thought > > that using the "samepage" and "preference" options for the first and > second > > line breaks would work nicely: > > > > ``` > > \define\SectionBreak{% > > \blank[halfline

Re: [NTG-context] Progressively encouraging page/column breaks at \blank with penalties

2021-08-14 Thread Aditya Mahajan via ntg-context
\blank[halfline, samepage]% non-breaking to ensure that no column > begins with the section break symbol > \startalignment[middle]% > {X}% section break symbol > \stopalignment% > \blank[halfline, preference]% this can (and, if possible, should) be > broken

[NTG-context] Progressively encouraging page/column breaks at \blank with penalties

2021-08-14 Thread Joey McCollum via ntg-context
ught that using the "samepage" and "preference" options for the first and second line breaks would work nicely: ``` \define\SectionBreak{% \blank[halfline, samepage]% non-breaking to ensure that no column begins with the section break symbol \startalignment[middle]

Re: [NTG-context] another MetaPost question (this time on ConTeXt->MetaPost color transfer)

2021-07-22 Thread Rudd, Kevin
% tweaked fill t withcolor p&c; % new (and old) draw s withpen pencircle scaled 5pt withcolor c; enddef; \stopMPdefinitions \starttext \definespotcolor[Thin:orange][orange][p=1,a=normal,t=0.5] \color[orange]{hello} \sta

[NTG-context] another MetaPost question (this time on ConTeXt->MetaPost

2021-07-22 Thread Rudd, Kevin
c; draw s withpen pencircle scaled 5pt withcolor c; enddef; \stopMPdefinitions \starttext \definespotcolor[Thin:orange][orange][p=1,a=normal,t=0.5] \color[orange]{hello} \startalignment[center] \startplacefigure \startMPcode Test [ prefix = "Thin", c

[NTG-context] MP keyword function: string parameters no longer accept string variables directly

2021-07-21 Thread Rudd, Kevin
fmt: 2021.7.21 int: english/english \startMPdefinitions presetparameters "parameters_Test" [ ] def Test = applyparameters "parameters_Test" "do_Test" enddef; def do_Test = pushparameters "parameters_Test"; show hasparamet

[NTG-context] MP boxes: boxjoin not recognized?

2021-07-21 Thread Rudd, Kevin
> % metafun > log > I couldn't find an '=' or ':=' after the expression that is shown above this % error message, so I guess I'll just ignore it and carry on. % metafun > log > % metapost> trace > ); boxit.a("a");

Re: [NTG-context] Special layouts don't recognise placeinitial

2021-05-24 Thread Eduardo Bohoyo
ayout[backspace=176pt,width=194pt] \setupinterlinespace[line=22pt] \style[tfa] \startalignment[hanging,flushleft,nothyphenated] \placeinitial Ahora, vosotros que amáis, dejadme que os formule una pregunta: ¿quién sufre más por  ello,  Arcite  o  Palamón? ¿El  que  ve  a  su  dama  diariamente,  pero 

Re: [NTG-context] Special layouts don't recognise placeinitial

2021-05-23 Thread Hans Hagen
works fine as long as it stays within the general layout. This is the code I'm referring to: \startmakeup[standard][doublesided=yes] \setuplayout[backspace=176pt,width=194pt] \setupinterlinespace[line=22pt] \style[tfa] \startalignment[hanging,flushleft,nothyphenated] \placeinitial

[NTG-context] Special layouts don't recognise placeinitial

2021-05-22 Thread Eduardo Bohoyo
general layout. This is the code I'm referring to: \startmakeup[standard][doublesided=yes] \setuplayout[backspace=176pt,width=194pt] \setupinterlinespace[line=22pt] \style[tfa] \startalignment[hanging,flushleft,nothyphenated] \placeinitial Ahora, vosotros que amáis, dejadme que os formul

[NTG-context] Multiple Layouts

2021-03-13 Thread Jeroen
. \crlf Eerste draft versie, gepubliceerd op \date. \crlf Dit document is getypset met \CONTEXT\ LMTX op Microsoft Windows 10. \blank \startalignment[flushmiddle] Copyright \copyright\ 2021, Publisher. Alle rechten voorbehouden. \crlf Niets uit deze uitgave mag worden verveelvoudigd, opgeslagen in

[NTG-context] (no subject)

2021-03-13 Thread Jeroen
. \crlf Eerste draft versie, gepubliceerd op \date. \crlf Dit document is getypset met \CONTEXT\ LMTX op Microsoft Windows 10. \blank \startalignment[flushmiddle] Copyright \copyright\ 2021, Publisher. Alle rechten voorbehouden. \crlf Niets uit deze uitgave mag worden verveelvoudigd, opgeslagen in

Re: [NTG-context] margin in TocEntry definition

2021-03-11 Thread jbf
ecise one I am facing now. The problem, you see, is that \startalignment only offers a few key words like flushleft, middle etc. and not what I need this time, which is a precise indentation feature like .5cm. I suppose my real problem is not being sufficiently au fait with how definitions work. I

Re: [NTG-context] margin in TocEntry definition

2021-03-11 Thread Wolfgang Schuster
jbf schrieb am 11.03.2021 um 23:22: Thanks for trying, Bruce. That earlier question you refer to was for a similar situation and the answer resolved that one at the time (it was my question even then!) but not the precise one I am facing now. The problem, you see, is that \startalignment only

Re: [NTG-context] margin in TocEntry definition

2021-03-11 Thread Bruce Horrocks
lem, you see, is that \startalignment only offers a few key words > like flushleft, middle etc. and not what I need this time, which is a precise > indentation feature like .5cm. I suppose my real problem is not being > sufficiently au fait with how definitions work. I just can't seem t

Re: [NTG-context] margin in TocEntry definition

2021-03-11 Thread jbf
Thanks for trying, Bruce. That earlier question you refer to was for a similar situation and the answer resolved that one at the time (it was my question even then!) but not the precise one I am facing now. The problem, you see, is that \startalignment only offers a few key words like

Re: [NTG-context] lmtx update / teaser

2021-03-01 Thread Hans Hagen
On 3/1/2021 6:27 PM, Otared Kavian wrote: Hi Hans, Thank you for the new upload. The teaser examples work fine, many thanks ! I have a question though: how can one center within a page a text, for example typeset in a circular shape? I tried with \startalignment, and also with

Re: [NTG-context] lmtx update / teaser

2021-03-01 Thread Otared Kavian
Hi Hans, Thank you for the new upload. The teaser examples work fine, many thanks ! I have a question though: how can one center within a page a text, for example typeset in a circular shape? I tried with \startalignment, and also with \startplacefigure but none of these gives a centered

Re: [NTG-context] Centered list of authors in ToC

2021-02-09 Thread jbf
Thanks for the alternative. Also gives me further ideas, especially regarding placement of the \startalignment Julian On 10/2/21 8:11 am, Hans Hagen wrote: On 2/9/2021 9:50 PM, jbf wrote: Resolved! \define[1]\SectionTocEntry{% #1\crlf% title \startalignment[middle]\doifnot

Re: [NTG-context] Centered list of authors in ToC

2021-02-09 Thread Hans Hagen
On 2/9/2021 9:50 PM, jbf wrote: Resolved! \define[1]\SectionTocEntry{% #1\crlf% title \startalignment[middle]\doifnot{\structurelistuservariable{author}}{}{\structurelistuservariable{author}}% \stopalignment} You need to move the \startalignment into the test (you don't want en empt

Re: [NTG-context] Centered list of authors in ToC

2021-02-09 Thread jbf
Resolved! \define[1]\SectionTocEntry{% #1\crlf% title \startalignment[middle]\doifnot{\structurelistuservariable{author}}{}{\structurelistuservariable{author}}% \stopalignment} Julian On 9/2/21 9:02 pm, mf wrote: Il 09/02/21 10:49, jbf ha scritto: I wonder if someone can assist me with the

Re: [NTG-context] Centered list of authors in ToC

2021-02-09 Thread jbf
Thank you. Ci siamo quasi, ma non del tutto! Nearly there! The \midaligned{... } was obviously preventing the \crlf in the \startchapter from working. Removing it altogether allowed the split to occur but obviously not centred. So i have tried now adding the \startalignment[middle] to the

Re: [NTG-context] Centered list of authors in ToC

2021-02-09 Thread mf
for the essential bit (which is then called in as textcommand=\SectionTocEntry in \setuplist[chapter], obviously): \define[1]\SectionTocEntry{% #1\crlf% title \midaligned{\doifnot{\structurelistuservariable{author}}{}{\structurelistuservariable{author}}}% } try \startalignment[middle

Re: [NTG-context] LMTX MkIV difference in expansion

2020-11-19 Thread Rik Kabel
On 11/19/2020 17:03, Hans Hagen wrote: On 11/19/2020 9:41 PM, Wolfgang Schuster wrote: Rik Kabel schrieb am 19.11.2020 um 21:20: Another LMTX/MkIV difference, this time with expansion:     \define\Align{yes}     \starttext     \startalignment[\Align]     This works with MkIV but fails

Re: [NTG-context] LMTX MkIV difference in expansion

2020-11-19 Thread Hans Hagen
On 11/19/2020 9:41 PM, Wolfgang Schuster wrote: Rik Kabel schrieb am 19.11.2020 um 21:20: Another LMTX/MkIV difference, this time with expansion:     \define\Align{yes}     \starttext     \startalignment[\Align]     This works with MkIV but fails with LMTX, complaining: {\tt     tex

Re: [NTG-context] LMTX MkIV difference in expansion

2020-11-19 Thread Wolfgang Schuster
Rik Kabel schrieb am 19.11.2020 um 21:20: Another LMTX/MkIV difference, this time with expansion: \define\Align{yes} \starttext \startalignment[\Align]     This works with MkIV but fails with LMTX, complaining: {\tt     tex error on line 3 in file G:/expand.mkvi: The file

[NTG-context] LMTX MkIV difference in expansion

2020-11-19 Thread Rik Kabel
Another LMTX/MkIV difference, this time with expansion: \define\Align{yes} \starttext \startalignment[\Align]     This works with MkIV but fails with LMTX, complaining: {\tt     tex error on line 3 in file G:/expand.mkvi: The file ended     when scanning an argument

[NTG-context] \framed command: (strange ?) difficulty to control the interlinespace between the first and the second line

2020-11-16 Thread Garulfo
hleft,offset=0pt,frame=off,foregroundcolor=darkred] {\WORD\tfb Ce titre est trop long pour ce Ce titre est trop long pour ce Ce titre est trop long pour ce Ce titre est trop long pour ce} \blank[big] \startalignment[flushleft] {\WORD\tfb Ce titre est trop long pour ce Ce titre est trop long pour ce Ce

Re: [NTG-context] Split Table, don't repeat caption

2020-10-08 Thread Denis Maier
is attached to the last caption. Ideally, the footnote should be attached to the first caption. (And, actually, I want the caption only once.) Ok, I've found a solution: ``` \setupcaption[table][location=top] \starttext \startplacetable[location={none,split}]     \s

Re: [NTG-context] strange behavior with \groupedcommand in recent versions of LMTX

2020-09-02 Thread mf
\wordright{\box\nextbox}% > \par >\else > \par > \penalty1 > \startalignment[flushright]\unhbox\nextbox\stopalignment >\fi}\hbox} > > \starttext > >\input ward \whatever{same lin

Re: [NTG-context] strange behavior with \groupedcommand in recent versions of LMTX

2020-09-01 Thread Hans Hagen
lse     \par\penalty1     \startalignment[flushright]\unhbox\scratchbox\stopalignment   \fi}} \unexpanded\def\wordorparagraphright#1{%   \setbox\scratchbox\hbox{#1}   \ifdim\wd\scratchbox < \hsize     \wordright{#1}   \else     \par\penalty1     \startalignment[flushright]\

[NTG-context] strange behavior with \groupedcommand in recent versions of LMTX

2020-09-01 Thread mf
oesn't now. \unexpanded\def\groupedwordorparagraphright{\dosingleempty\dogroupedwordorparagraphright} \def\dogroupedwordorparagraphright[#1]{\groupedcommand{\setbox\scratchbox\hbox\bgroup} {\egroup\ifdim\wd\scratchbox < \hsize \wordright{\unhbox\scratchbox} \else \par\penalty1

[NTG-context] Help on tweaking alignment, page numbers and ToC

2020-08-11 Thread Nicola
] \definestructureconversionset[bodypart:pagenumber] [][numbers] \starttext \startfrontmatter \page[even] \startalignment[bottom,flushright] Copyright © 2020 Author \stopalignment \start \setuphead[chapter][after={}] \completecontent \stop \page[odd] \startchapter[title={Preface}]\input{knuth}\stopchapter

[NTG-context] Pagenumbering with \setupcounter[userpagenumber]

2020-07-29 Thread Willi Egger
[.2\textheight] \rightaligned{Bramble-Bees} \stopstandardmakeup \startstandardmakeup[doublesided=yes,page=yes] \strut \godown[.1\textheight] \startalignment[middle] {\bfb BRAMBLE-BEES AND OTHER} \blank[line] {\bfa by J. HENRI FABRE} \stopalignment \vfill

[NTG-context] [rotate question]

2020-05-01 Thread Floris van Manen
{% \rotate[rotation=\ctxlua{context(math.random(-15,-1))}]{\|}% } \def\stapA#1{\dorecurse{#1}{\streepA}} \def\stapB#1{\dorecurse{#1}{\streepB}} \starttext \startTEXpage[offset=20mm, width=297mm] \startalignment[width]~ \dorecurse{50}{\stapA{10}\stapB{10}} \stopalignment \stopTEXpage \stoptext

Re: [NTG-context] Moving horizontally a whole ensemble of layers in the same run?

2019-12-18 Thread Rudolf Bahr
re[cow][width=.5\textwidth]} \setlayer[LAY][x=\dimexpr.65\textwidth+40pt\relax,y=0pt]% {% \vbox {% \hsize=.2\textwidth \startalignment[flushleft] \input ward \vskip\lineheight \input ward \stopalignment } } \

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

2019-12-12 Thread mf
Il 11/12/19 21:25, Wolfgang Schuster ha scritto: \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\par \startalignment[flushright] \ifdim\dimexpr\hsize-\lastlinewidth\re

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

2019-12-11 Thread Wolfgang Schuster
mbers \newdimen\PagesIndentation \PagesIndentation=#4 \newdimen\MSLLL \MSLLL=#6 % minimum space left on last line \parshape 1 0pt \TextWidth #1\par \newdimen\LLW \LLW=\lastlinewidth \page[no] \ifdim \dimexpr\TextWidth-\LLW-\SBPN > \MSLLL \blank[-\the\lineheight,fixed]\fi \startalignment[flushright,stretc

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

2019-12-11 Thread mf
on=#4 \newdimen\MSLLL \MSLLL=#6 % minimum space left on last line \parshape 1 0pt \TextWidth #1\par \newdimen\LLW \LLW=\lastlinewidth \page[no] \ifdim \dimexpr\TextWidth-\LLW-\SBPN > \MSLLL \blank[-\the\lineheight,fixed]\fi \startalignment[flushright,stretch] \ifdim \dimexpr\TextWidth-\LLW-\SBPN &g

  1   2   3   4   5   6   >