Re: [NTG-context] Typing efficiency

2020-09-04 Thread Taco Hoekwater
tartmode[nl] > \getbuffer[nl] > \stopmode > > after every block of text? > > I tried to define a new start/stop pair as follows: > \definestartstop[Bufen][ > before={\startmode[en] > \startbuffer[en]}, > after={\stopbuffer > \getbuffer[en

[NTG-context] Typing efficiency

2020-09-04 Thread Jan Willem Flamma
to define a new start/stop pair as follows:\definestartstop[Bufen][    before={\startmode[en]    \startbuffer[en]},    after={\stopbuffer    \getbuffer[en]    \stopmode}] but that fails. No doubt a clever solution exists that minimizes the typing.  Kind regards,Jan Willem

Re: [NTG-context] start/stop executed conditionally on mode ?

2020-06-10 Thread Jan Willem Flamma
>> Here is a minimal (not working!) example:>>> >>> % >>> \unexpanded\def\StartQuestionsList{>>> \startmode[ClassRoom]  \page[yes] Here are some questions: \blank>>> }>>> \unexpanded\def\StopQuestion

Re: [NTG-context] start/stop executed conditionally on mode ?

2020-06-09 Thread Fabrice L
>>>> % >>>> \unexpanded\def\StartQuestionsList{ >>>> \startmode[ClassRoom] \page[yes] Here are some questions: \blank >>>> } >>>> \unexpanded\def\StopQuestionsList{ >>

Re: [NTG-context] start/stop executed conditionally on mode ?

2020-06-09 Thread Hans Hagen
king!) example: % \unexpanded\def\StartQuestionsList{ \startmode[ClassRoom]  \page[yes] Here are some questions: \blank } \unexpanded\def\StopQuestionsList{ \page[yes] \stopmode } \definestartstop[Questions][ before=\StartQuestionsList, after=\StopQuestionsList ] \startQues

Re: [NTG-context] start/stop executed conditionally on mode ?

2020-06-08 Thread Wolfgang Schuster
enable the ClassRoom mode ConTeXt encounters this line \definestartstop [Questions] which redefines the Questions environment which uses now the startstop-mechanism but the previously created environment buffer based environment no longer exists. The reason for this redefinition is to keep

Re: [NTG-context] start/stop executed conditionally on mode ?

2020-06-08 Thread Fabrice L
ot typeset. >> >> Here is a minimal (not working!) example: >> >> % >> \unexpanded\def\StartQuestionsList{ >> \startmode[ClassRoom] \page[yes] Here are some questions: \blank >> } >> \unexpanded\def\StopQuestionsList{ >> \page[yes] \s

Re: [NTG-context] start/stop executed conditionally on mode ?

2020-06-08 Thread Fabrice L
ot typeset. >> >> Here is a minimal (not working!) example: >> >> % >> \unexpanded\def\StartQuestionsList{ >> \startmode[ClassRoom] \page[yes] Here are some questions: \blank >> } >> \unexpanded\def\StopQuestionsList{ >> \page[yes] \s

Re: [NTG-context] start/stop executed conditionally on mode ?

2020-06-07 Thread Aditya Mahajan
some questions: \blank } \unexpanded\def\StopQuestionsList{ \page[yes] \stopmode } \definestartstop[Questions][ before=\StartQuestionsList, after=\StopQuestionsList ] \startQuestions Question A…. Question B…. \stopQuestions Some other

[NTG-context] start/stop executed conditionally on mode ?

2020-06-07 Thread Fabrice L
d\def\StopQuestionsList{ \page[yes] \stopmode } \definestartstop[Questions][ before=\StartQuestionsList, after=\StopQuestionsList ] \startQuestions Question A…. Question B…. \stopQuestions Some other text... %

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

2020-05-18 Thread Wolfgang Schuster
and color settings to the buffer. \definestartstop [BufferStyle] [style=smallitalic, color=blue] \setupbuffer [before={... \startBufferStyle ...}, after={... \stopBufferStyle ...}] Wolfgang ___ If you

Re: [NTG-context] Capitalize first word of first line within \startlines

2020-03-04 Thread Hans Hagen
][ alternative=word, style=PoemFirstWord, n=1, ] \definestartstop[poem][ before={\startlines \setfirstline[PoemFirstLine] \placeinitial}, after={\stoplines}, ] \setuplines[indenting=odd] \starttext \startpoem Some say the world will end in fire, Some say in ice. From what I've tasted

[NTG-context] Capitalize first word of first line within \startlines

2020-03-04 Thread Thangalin
, n=1, ] \definestartstop[poem][ before={\startlines \setfirstline[PoemFirstLine] \placeinitial}, after={\stoplines}, ] \setuplines[indenting=odd] \starttext \startpoem Some say the world will end in fire, Some say in ice. From what I've tasted of desire I hold with those who favor fire

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

2019-11-28 Thread denis . maier . lists
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 > \definesta

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] Documentation of change / Evolving documents

2019-09-29 Thread Axel Kielhorn
t;> Mit den Befehlen \type{\Changea}, \type{\Changer} und \type{\Changec} >>> werden hinzugefügte, gelöschte oder geänderte Satzteile gekennzeichnet. Der >>> Befehl \type{\Changec} hat zwei Argumente: alter Text und neuer Text. >>> \stopChangeA >> See https:/

Re: [NTG-context] Documentation of change / Evolving documents

2019-09-29 Thread Wolfgang Schuster
. Der Befehl \type{\Changec} hat zwei Argumente: alter Text und neuer Text. \stopChangeA See https://wiki.contextgarden.net/Command/definestartstop Another option: https://wiki.contextgarden.net/Command/startuserdata Wolfgang

Re: [NTG-context] Documentation of change / Evolving documents

2019-09-29 Thread Henning Hraban Ramm
\type{\Changec} hat zwei Argumente: alter Text und neuer Text. > \stopChangeA See https://wiki.contextgarden.net/Command/definestartstop > Or maybe: > \startChangeA[version={V. 2.0}] This could help: https://wiki.contextgarden.net/System_Macros/Handling_Arguments > Once this is fixed

Re: [NTG-context] option=tex in setuptyping causes the background to be drawn twice

2019-04-28 Thread Wolfgang Schuster
={\typingparameter\c!after},    \c!style={\typingparameter\c!style}] In buff-imp-tex.mkiv these values are inherited: \definestartstop     [TexSnippet]     [DefaultSnippet] So I can fix this locally by resetting before and after keys for TexSnippet. What would be a good fix in buff-imp-default? I assume

Re: [NTG-context] option=tex in setuptyping causes the background to be drawn twice

2019-04-28 Thread Hans Hagen
\c!style}] In buff-imp-tex.mkiv these values are inherited: \definestartstop     [TexSnippet]     [DefaultSnippet] So I can fix this locally by resetting before and after keys for TexSnippet. What would be a good fix in buff-imp-default? I assume Wolfgang will cook up a patch ... Hans

Re: [NTG-context] option=tex in setuptyping causes the background to be drawn twice

2019-04-28 Thread Aditya Mahajan
are inherited: \definestartstop     [TexSnippet]     [DefaultSnippet] So I can fix this locally by resetting before and after keys for TexSnippet. What would be a good fix in buff-imp-default? Aditya___ If your

Re: [NTG-context] option=tex in setuptyping causes the background to be drawn twice

2019-04-28 Thread Wolfgang Schuster
The problem are these settings in buff-imp-default.mkiv: \setupstartstop   [DefaultSnippet]   [\c!before={\typingparameter\c!before},    \c!after={\typingparameter\c!after},    \c!style={\typingparameter\c!style}] In buff-imp-tex.mkiv these values are inherited: \definestartstop

Re: [NTG-context] problems with "pagecomment"

2019-04-27 Thread Mohammad Hossein Bateni
wrote: > Mohammad Hossein Bateni schrieb am 27.04.2019 um 05:16: > > Hi, > > > > Look at the following MWE: > > > > > > \setuppagecomment[state=start,location=right] > > %\definestartstop[Notes] > > %[before=\startpagecomment,after=\stoppagecommen

Re: [NTG-context] problems with "pagecomment"

2019-04-26 Thread Wolfgang Schuster
Mohammad Hossein Bateni schrieb am 27.04.2019 um 05:16: Hi, Look at the following MWE: \setuppagecomment[state=start,location=right] %\definestartstop[Notes] %[before=\startpagecomment,after=\stoppagecomment] \def\startNotes{\startpagecomment} \def\stopNotes{\stoppagecomment} \starttext

[NTG-context] problems with "pagecomment"

2019-04-26 Thread Mohammad Hossein Bateni
Hi, Look at the following MWE: \setuppagecomment[state=start,location=right] %\definestartstop[Notes] %[before=\startpagecomment,after=\stoppagecomment] \def\startNotes{\startpagecomment} \def\stopNotes{\stoppagecomment} \starttext \input knuth \startpagecomment Hello \stoppagecomment \page

Re: [NTG-context] \definetextbackground does not fill tables within

2018-08-13 Thread Alan Braslau
mail-archive.com/ntg-context%40ntg.nl/msg78014.html > %width=broad, > %corner=round, > %radius=5ex, > leftoffset=10pt,rightoffset=10pt, > topoffset=10pt,bottomoffset=10pt > %offset=-5pt > ] > > \definestartstop[teoria][

[NTG-context] \definetextbackground does not fill tables within

2018-08-13 Thread dxpublica
,bottomoffset=10pt %offset=-5pt ] \definestartstop[teoria][before={\begingroup\blank[big]\testpage[2]\starttextbackground[bteoria]},after={\stoptextbackground\blank[big]\endgroup}] \starttext \startteoria \input tufte \placetable[force,none][taula:teoria:1]{Recopilació de dades. Conceptes

[NTG-context] tex error Argument of \titlecmd has an extra }

2018-03-06 Thread ????????
ps BG \defineoverlay[bg][\useMPgraphic{crux}] \setupbackgrounds[page][background=bg] \stopsetups \definestartstop[BG][commands=\setups{BG}] % misc \setupheadtext[en][pubs=] \setupheadtext[en][content=] \setupheadtext[en][index=] \setuplabeltext[en][figure=??\;] \setuplabeltext[en][tab

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

2018-01-31 Thread Wolfgang Schuster
t deletes the space before \start. The \framed command correctly drops the space after the options. --- \definestartstop [spurious space a] [before=\ignorespaces, after=\removeunwantedspaces] \definestartstop [spurious space b] [before=\removeunwantedspaces, after=\removeunwanted

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

2018-01-30 Thread Alan Braslau
Might I add that the use of a command containing spaces in its name is spurious. Try: \definestartstop[spuriusspacea] \startspuriusspacea ... \stopspuriuspsacea, and then come up with a better name! Alan On Tue, 30 Jan 2018 21:24:41 +0100 Wolfgang Schuster <schuster.wolfg...@gmail.com>

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

2018-01-30 Thread Henri Menke
an explicit \ignorespaces > > I'm not convinced.  Both "before" and "commands" see a \relax and therefore > > \ignorespaces is dropped.  I can put \removeunwantedspaces there but that > > deletes the space before \start.  The \framed command correctly drops t

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

2018-01-30 Thread Wolfgang Schuster
nd has an explicit \ignorespaces I'm not convinced. Both "before" and "commands" see a \relax and therefore \ignorespaces is dropped. I can put \removeunwantedspaces there but that deletes the space before \start. The \framed command correctly drops the space after the optio

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

2018-01-30 Thread Henri Menke
why should there be? spaces are never ignored after the last [...]  > that is checked for unless a command has an explicit \ignorespaces I'm not convinced.  Both "before" and "commands" see a \relax and therefore \ignorespaces is dropped.  I can put \removeunwantedspaces th

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

2018-01-30 Thread Hans Hagen
in the stop I'm confused. Does that mean there is going to be a fix? no, why should there be? spaces are never ignored after the last [...] that is checked for unless a command has an explicit \ignorespaces Cheers, Henri --- \definestartstop    [spurious space] \starttext Hello World Hello

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

2018-01-30 Thread Henri Menke
in the stop I'm confused. Does that mean there is going to be a fix? > >> Cheers, Henri >> >> --- >> >> \definestartstop >>    [spurious space] >> >> \starttext >> >> Hello World >> >> Hel

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

2018-01-30 Thread Hans Hagen
On 1/30/2018 2:54 AM, Henri Menke wrote: Dear list, the title says it all.  Please add \ignorespaces in a place you deem appropriate.  MWE is below. sometimes you will also add \removeuwantedspaces in the stop Cheers, Henri --- \definestartstop   [spurious space] \starttext Hello World

[NTG-context] Spurious space in \definestartstop

2018-01-29 Thread Henri Menke
Dear list, the title says it all.  Please add \ignorespaces in a place you deem appropriate.  MWE is below. Cheers, Henri --- \definestartstop   [spurious space] \starttext Hello World Hello \start[spurious space] World \stop %  ^^^ spurious space here! \stoptext

Re: [NTG-context] Word and character count excluding TeX-directives

2018-01-16 Thread Rik Kabel
On 2018-01-16 09:26, Dr. Thomas Möbius wrote: \definestartstop     [abstract]     [style=bold,     after={\blank[big]}] \starttext \title{My title: example of a word and character count} {\strut\tfx Formal guidelines: word count of abstract: $x$, character count of main text: $x$, character

[NTG-context] Word and character count excluding TeX-directives

2018-01-16 Thread Dr . Thomas Möbius
To meet some formal guidelines, I need to provide a word count of my abstract and a character count of the main text, and a character count of all the text appearing in figure captions. Is this possible (maybe using some lua-magic)? Thank you! Thomas Minimal example: \definestartstop

Re: [NTG-context] type and typing comments for TeX and Lua

2017-12-20 Thread Hans Hagen
On 12/20/2017 8:45 PM, Pablo Rodriguez wrote: On 12/20/2017 12:53 PM, Hans Hagen wrote: On 12/18/2017 11:50 PM, Pablo Rodriguez wrote: [...] % Differs per lexer: \definestartstop [XmlSnippetComment] [color=, style=] I’m afraid that the scite module isn’t an option for me

Re: [NTG-context] type and typing comments for TeX and Lua

2017-12-20 Thread Pablo Rodriguez
On 12/20/2017 12:53 PM, Hans Hagen wrote: > On 12/18/2017 11:50 PM, Pablo Rodriguez wrote: >> [...] > % Differs per lexer: > > \definestartstop > [XmlSnippetComment] > [color=, > style=] > >> I’m afraid that the scite module isn’t an option fo

Re: [NTG-context] type and typing comments for TeX and Lua

2017-12-20 Thread Hans Hagen
ext editor will display something different. It depends on the lexer ... % \usemodule[scite] % use editor logic % DIffers per lexer: \definestartstop [XmlSnippetComment] [color=, style=] I’m afraid that the scite module isn’t an option for me. Then you need to configure the hig

[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

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

Re: [NTG-context] avoid newline after definestartstop

2016-10-26 Thread Michael Eidenbenz
you have more than one paragraph in the Citation > environment. >> \definestartstop >> [Citation] >> [ >> before={\hangindent=20mm\hangafter=0\symbol[leftquotation]}, >> after={\removeunwantedspaces\symbol[rightquotation]}, >> ] >> >> \startt

Re: [NTG-context] avoid newline after definestartstop

2016-10-26 Thread Wolfgang Schuster
an one paragraph in the Citation environment. \definestartstop [Citation] [ before={\hangindent=20mm\hangafter=0\symbol[leftquotation]}, after={\removeunwantedspaces\symbol[rightquotation]}, ] \starttext \startCitation \input tufte \stopCitation \footnote{This is a Quote of Donald Knuth} \input

Re: [NTG-context] avoid newline after definestartstop

2016-10-26 Thread Michael Eidenbenz
after some readings in the TeX book I came up with the following solution that works for me without having to change all my instances of startstopCitation in the text. \definestartstop [Citation] [ before={\hangindent=20mm\hangafter=0\symbol[leftquotation]}, after

Re: [NTG-context] avoid newline after definestartstop

2016-10-25 Thread Michael Eidenbenz
thanks everybody for their input. michael ___ 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

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]«~}

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 Pablo Rodriguez
On 10/24/2016 06:07 PM, Michael Eidenbenz wrote: > Thanks! > > sometimes the moste obvious is hidden... > although I would consider this a hack, it works perfectly. > but I'm still wondering, if there is no soultion for the more > "canonical" way. > > Regards Michael Hi Michael, allow me two

Re: [NTG-context] avoid newline after definestartstop

2016-10-24 Thread Michael Eidenbenz
t;>> it >>>> becomes the beginning of the next paragraph. >>> >>> >>> AFAIK this is only possible when you place the quotation marks by hand. >>> >>> Wolfgang >> >> >> >>> >>> On 20 Oct 2016, at

Re: [NTG-context] avoid newline after definestartstop

2016-10-24 Thread Otared Kavian
Eidenbenz <eidenb...@arch.ethz.ch >> <mailto: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. >&g

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

Re: [NTG-context] Wrap figures and equations

2016-07-13 Thread Otared Kavian
] %backgroundscreen=.9 \definestartstop[expli] [before={\startplaceintermezzo\startexplication}, after={\stopexplication\stopplaceintermezzo}] %\unprotected\c_strc_formulas_mode\zerocount %% <--- This solves the problem here %% but not in other instances \startt

[NTG-context] Math using sans serif font and problems with the alignment

2016-06-10 Thread Freddy Omar López Quintero
Hello! Some days ago, I asked about how to use sans serifed font in all math document. My approach, given those answers, was create a little function to use the serif fonts in math (using \definestartstop) but, when there is some align involved, it produces an error :-\ . An example

Re: [NTG-context] Apply a start/stop command pair to certain subsections

2016-03-10 Thread Andreas Schneider
but not the "text" subsections, I'd appreciate it! I have searched the wiki, read through the "Context: an excursion" document and looked around in the mail archive and stackexchange, but I didn't find exactly what I want. Many thanks for reading, Tom Harrop -

[NTG-context] Apply a start/stop command pair to certain subsections

2016-03-10 Thread Tom Harrop
it! I have searched the wiki, read through the "Context: an excursion" document and looked around in the mail archive and stackexchange, but I didn't find exactly what I want. Many thanks for reading, Tom Harrop ---Example below--- \definestartstop [negindent] [ before={%

Re: [NTG-context] Arabic Letters are disjointed and reversed in headers and margin

2016-01-17 Thread Hans Hagen
{\textdir TRT} \define\setarabic {\ArabicGlobalDir% \usetypescript[Arabic]% \setupbodyfont[Arabic,20pt]} \definestartstop [arabicpar] [commands=\Arabic\ArabicParDir] \define[1]\RT {{\Arabic\ArabicTextDir#1}} \pagedir TRT \bodydir TRT \pardir TRT \textdir TRT

[NTG-context] Arabic Letters are disjointed and reversed in headers and margin

2016-01-17 Thread Ibn Saeed
{\ArabicGlobalDir% \usetypescript[Arabic]% \setupbodyfont[Arabic,20pt]} \definestartstop [arabicpar] [commands=\Arabic\ArabicParDir] \define[1]\RT {{\Arabic\ArabicTextDir#1}} \pagedir TRT \bodydir TRT \pardir TRT \textdir TRT \setuppapersize[A4] \setuplayout[ grid=min, backspace

Re: [NTG-context] inverse indentation

2015-11-28 Thread Pablo Rodriguez
tive (the same amount as the general >> indentation)? >> >> Sorry, but this is a standard practice that doesn’t seem to be >> documented in the wiki. At least, I wasn’t able to find information >> about this issue. > > I don't know where this code comes from, but

Re: [NTG-context] inverse indentation

2015-11-24 Thread Thomas A. Schmitz
practice that doesn’t seem to be documented in the wiki. At least, I wasn’t able to find information about this issue. I don't know where this code comes from, but it does what you want: \definestartstop [exdent] [before={\startnarrower[left]\setupindenting[-\leftskip,yes]}, after

[NTG-context] Two column layout with footnotes do not work as expected

2015-10-23 Thread Dr. Thomas Möbius
: On the first page, footnotes run into each other. On the second page, footnote runs into text. \setuppapersize[A5][A5] \setupbodyfont[10pt] \definestartstop[abstract] [before={\blank\midaligned{\bf Abstract}\startnarrower[2*middle]}, after={\stopnarrower\blank[big]}] \definecolumnset[TwoColumns

Re: [NTG-context] r2l alignment and linenumbering conflict?

2015-08-01 Thread Pablo Rodriguez
a fix for what it might be a bug in ConTeXt. If you want to work on you book before a fix is released, I’d suggest you to add the following line at the top of your document: \definestartstop[linenumbering] This will deactivate line numbering and it will allow you to work on the rest of the book

Re: [NTG-context] Critical editions with ConTeXt

2015-07-22 Thread Talal
that the solution lies in using \startsetups…\stopsetups + \definestartstop. However, despite many attempts, I haven't been able to concoct the right set of macros within that to get it working. I'd be grateful for any help that could be offered. Many thanks, Talal p.s. Hans: When using

Re: [NTG-context] before= and after= for \setuphighlight

2015-05-15 Thread Kate F
perfectly. But it doesn't. Is there something similar to \setuphighlight which has before= and after=? Or any other ideas? we have before/after in \definestartstop so let's add left/right there for the inline variant you can put this in cont-new.mkiv: Wonderful! That suits my situation nicely

Re: [NTG-context] before= and after= for \setuphighlight

2015-05-15 Thread Hans Hagen
to \setuphighlight which has before= and after=? Or any other ideas? we have before/after in \definestartstop so let's add left/right there for the inline variant you can put this in cont-new.mkiv: \unprotect \unexpanded\def\syst_startstop_indeed#1% {\groupedcommand {\def\currentstartstop{#1

Re: [NTG-context] before= and after= for \setuphighlight

2015-05-15 Thread Aditya Mahajan
. Is there something similar to \setuphighlight which has before= and after=? Or any other ideas? we have before/after in \definestartstop so let's add left/right there for the inline variant If you are chaging \definestartstop, can we change the commands key to setups key? It was never clear

Re: [NTG-context] before= and after= for \setuphighlight

2015-05-15 Thread Hans Hagen
=, this would suit me perfectly. But it doesn't. Is there something similar to \setuphighlight which has before= and after=? Or any other ideas? we have before/after in \definestartstop so let's add left/right there for the inline variant If you are chaging \definestartstop, can we change

Re: [NTG-context] tagging heads and empty output

2015-04-10 Thread Idris Samawi Hamid ادريس سماوي حامد
' and 'Head 2' are still not tagged, so we can't translate the actual head, e.g., \setupitemize[each][headstyle=bold] into css, while leaving the paragraph after the break unaffected. Current workaround: == \definestartstop[heading][style=] \startitemize[n] \starthead

Re: [NTG-context] tagging heads and empty output

2015-04-08 Thread Hans Hagen
, e.g., \setupitemize[each][headstyle=bold] into css, while leaving the paragraph after the break unaffected. Current workaround: == \definestartstop[heading][style=] \startitemize[n] \starthead {\startheading Head 1 \stopheading} Test 1 \stophead \starthead {\startheading Head

Re: [NTG-context] tagging heads and empty output

2015-04-03 Thread Idris Samawi Hamid ادريس سماوي حامد
leaving the paragraph after the break unaffected. Current workaround: == \definestartstop[heading][style=] \startitemize[n] \starthead {\startheading Head 1 \stopheading} Test 1 \stophead \starthead {\startheading Head 2 \stopheading} Test 2 \stophead \stopitemize

Re: [NTG-context] tagging heads and empty output

2015-03-28 Thread Idris Samawi Hamid ادريس سماوي حامد
to \start-stophead. A simple \definestartstop[heading][style=] does the trick, and may be worth adding to the distribution. Best wishes Idris = \setupexport[cssfile=itemize.css] \setupbackend[export=yes] \setupitemize[each][headstyle=bold] \definestartstop[heading][style=] \starttext

[NTG-context] tagging a startstop

2015-03-28 Thread Idris Samawi Hamid ادريس سماوي حامد
to say, e.g. \definestartstop[TAG][tag=div] % or tag=construct etc. so that my startstop also generates tags in the xhtml. Is there already a way to do this? Thanks and Best Wishes Idris -- Idris Samawi Hamid Professor of Philosophy Colorado State University Fort Collins, CO 80523

Re: [NTG-context] tagging a startstop

2015-03-28 Thread Wolfgang Schuster
with \dostarttagged etc but could not get it to work (too low-level for me I guess). What would be nice is to be able to say, e.g. \definestartstop[TAG][tag=div] % or tag=construct etc. so that my startstop also generates tags in the xhtml. Is there already a way to do this? Commands created

[NTG-context] define macros only visible in a definestartstop-block that have arguments?

2015-03-20 Thread Norbert Melzer
Hi! I have trouble to define macros which are only visible inside a block defined using `\definestartstop`: ```tex \setuppapersize[A6] \definestartstop[Foo][before={Foo}] \definestartstop[Bar][before={\bgroup\define\Foo{Foo}},after={\egroup}] %\definestartstop[Baz][before={\bgroup\define[1]\Foo

Re: [NTG-context] define macros only visible in a definestartstop-block that have arguments?

2015-03-20 Thread Norbert Melzer
/2015 12:05 PM, Norbert Melzer wrote: Hi! I have trouble to define macros which are only visible inside a block defined using `\definestartstop`: ```tex \setuppapersize[A6] \definestartstop[Foo][before={Foo}] \definestartstop[Bar][before={\bgroup\define\Foo{Foo}},after={\egroup

Re: [NTG-context] define macros only visible in a definestartstop-block that have arguments?

2015-03-20 Thread Hans Hagen
On 3/20/2015 12:05 PM, Norbert Melzer wrote: Hi! I have trouble to define macros which are only visible inside a block defined using `\definestartstop`: ```tex \setuppapersize[A6] \definestartstop[Foo][before={Foo}] \definestartstop[Bar][before={\bgroup\define\Foo{Foo}},after={\egroup

[NTG-context] Export: \setuphemistich distance=

2015-03-18 Thread Idris Samawi Hamid ادريس سماوي حامد
=, rightcolor=] \setuphemistich % [separator=\vl\hskip.25em\vl] [separator=] %% We need separate lines in the export, so use \start|stoplines \definestartstop[VERSES][before={\blank[medium]\startlines \noindentation},after={\stoplines \blank[medium]}] \starttext \startVERSES \hemistiches{Become

Re: [NTG-context] Export: \setuphemistich distance=

2015-03-18 Thread Wolfgang Schuster
, distance=1\emwidth, separator=] \setuphemistich [leftcolor=, separatorcolor=, rightcolor=] \setuphemistich % [separator=\vl\hskip.25em\vl] [separator=] %% We need separate lines in the export, so use \start|stoplines \definestartstop[VERSES][before={\blank[medium

Re: [NTG-context] Export: \setuphemistich distance=

2015-03-18 Thread Wolfgang Schuster
=, separatorcolor=, rightcolor=] \setuphemistich % [separator=\vl\hskip.25em\vl] [separator=] %% We need separate lines in the export, so use \start|stoplines \definestartstop[VERSES][before={\blank[medium]\startlines \noindentation},after={\stoplines \blank[medium]}] \starttext

Re: [NTG-context] Export: \setuphemistich distance=

2015-03-18 Thread Idris Samawi Hamid ادريس سماوي حامد
\start|stoplines \definestartstop[VERSES][before={\blank[medium]\startlines \noindentation},after={\stoplines \blank[medium]}] \starttext \startVERSES \hemistiches{Become a shunner of your affairs;}{Entrust all affairs to the Decision.} \hemistiches{Thus tight spaces will often widen;}{And open

Re: [NTG-context] mkiv versus mkii: whitespace issues

2015-03-15 Thread Gerben Wierda
= \startenvironment env_cataoia \project project_cataoia % \definedescription [description] [location=serried, width=broad, hang=fit, margin=standard, headstyle=bold] \definestartstop [descriptions] [before=\startpacked

Re: [NTG-context] setupformulas options (or defineformula) and effort to reduce the font in math formulas

2015-03-12 Thread Jaroslav Hajtmar
modify the settings of defineforumla[MY] \setupformulae[MY][align=right,strut=yes,spacebefore=medium,spaceafter=big] % so we can create new start-stopsmallformula \definestartstop[smallformula] [before={\startformula[small]}, after=\stopformula, ] % and we can so create new start

Re: [NTG-context] setupformulas options (or defineformula) and effort to reduce the font in math formulas

2015-03-11 Thread Jaroslav Hajtmar
Thanx Wolfgang for reply. I had no idea that it is possible in this way to change the font size. I could not figure a way for your solution set alignment formulas to right and how work \defineformula and \definestartstop together. After defining a new MY formula in combination with your

[NTG-context] Hanging indent

2015-03-10 Thread Willi Egger
} \definestartstop[HangPar] [before={\bgroup\appendtoks\Hangindent\to\everypar}, after={\egroup\blank[Afterhangingparagraph]}] \starttext \startHangPar \input knuth \stopHangPar \startHangPar {\bf Aanslaan,} aanspreken. Een poging in 't werk stellen. Ik zal dat heertje reis

Re: [NTG-context] Hanging indent

2015-03-10 Thread Wolfgang Schuster
[Afterhangingparagraph][1pc] \starttext \def\Hangindent{\hangafter=1\hangindent=1em} \definestartstop[HangPar] [before={\bgroup\appendtoks\Hangindent\to\everypar}, after={\egroup\blank[Afterhangingparagraph]}] \starttext \startHangPar \input knuth \stopHangPar \startHangPar

Re: [NTG-context] setupformulas options (or defineformula) and effort to reduce the font in math formulas

2015-03-10 Thread Wolfgang Schuster
. Therefore, I would like to have both: \startformula \stopformula and \startsmallformula \stopsmallformula \startformula has a optional argument which let you change the font, e.g. \startformula[9pt]. \definestartstop[smallformula] [before={\startformula[small]}, after

Re: [NTG-context] context - docx ??

2015-01-15 Thread Wolfgang Schuster
this: \definehighlight[important][style=bold] \definestartstop[important][style=bold] Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http

[NTG-context] keep on grid

2014-11-27 Thread Emil Stein
%\definestartstop[citaat] %[before={\startlinecorrection\vskip3pt\setupnarrower[left=5mm,right=0pt]\startnarrower[left,right]\switchtobodyfont[8pt]\setupinterlinespace[line=10pt]}, %after={\stopnarrower\vskip3pt\stoplinecorrection}] \definestartstop[citaat] [before={\vskip3pt\setupnarrower[left=5mm,right=0pt

  1   2   3   4   5   >