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

[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] \definestartstop (not functioning before/after keys)

2011-12-12 Thread Andreas Harder
Hi Hans, has something changed with \definestartstop? Setting before and after do not change the output. \definestartstop[test][before=\blank,after=\blank] \starttext before \test{test} after \stoptext Tested with the current beta- and experimental-branch. Regards Andreas

Re: [NTG-context] \definestartstop (not functioning before/after keys)

2011-12-12 Thread Wolfgang Schuster
Am 12.12.2011 um 12:55 schrieb Andreas Harder: Hi Hans, has something changed with \definestartstop? Setting before and after do not change the output. \definestartstop[test][before=\blank,after=\blank] \starttext before \test{test} after \stoptext Tested with the current beta

Re: [NTG-context] \definestartstop (not functioning before/after keys)

2011-12-12 Thread Andreas Harder
On 12.12.2011, at 13:00, Wolfgang Schuster wrote: Am 12.12.2011 um 12:55 schrieb Andreas Harder: Hi Hans, has something changed with \definestartstop? Setting before and after do not change the output. \definestartstop[test][before=\blank,after=\blank] \starttext before \test

[NTG-context] \definestartstop with arguments

2007-07-13 Thread Vyatcheslav Yatskovsky
Hello, I want to convert my following code into a custom \start \stop pair. \starttextrule{Use Case: Logging-On}\startpacked Text \stoppacked\stoptextrule It seems to me that using \definestartstop[usecase][...] command is the most approprate, but I cannot get how to achieve different

[NTG-context] \definestartstop with arguments

2007-07-13 Thread Vyatcheslav Yatskovsky
Hello, Pleeease, I need a help. I might formulate my previous question badly, so let me restate it. How to handle optional arguments (one or two) with \definestartstop? More specifically, how to replace hard-coded Logging-On string so that I could write \startusecase[Logging-Out] Bla-bla

Re: [NTG-context] \definestartstop with arguments

2007-07-13 Thread Peter Rolf
Hi Vyatcheslav, Vyatcheslav Yatskovsky schrieb: Hello, Pleeease, I need a help. I might formulate my previous question badly, so let me restate it. How to handle optional arguments (one or two) with \definestartstop? More specifically, how to replace hard-coded Logging-On string so

Re: [NTG-context] \definestartstop and \starttabulate

2004-05-07 Thread Hans Hagen
At 21:31 06/05/2004, you wrote: Hello, how could I create a new start-stop-pair that uses \starttabulate ? The following example does not seem to work... \definestartstop[Tab][before={\starttabulate[|c|]}, after={\stoptabulate}] \starttext \startTab \NC test \NC\AR \stopTab \stoptext

[NTG-context] \definestartstop and \starttabulate

2004-05-06 Thread Peter Mnster
Hello, how could I create a new start-stop-pair that uses \starttabulate ? The following example does not seem to work... \definestartstop[Tab][before={\starttabulate[|c|]}, after={\stoptabulate}] \starttext \startTab \NC test \NC\AR \stopTab \stoptext TIA for any help, Peter -- http