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

2022-02-06 Thread śrīrāma via ntg-context
On Sunday, February 6, 2022 3:50:21 PM IST Wolfgang Schuster via ntg-context 
wrote:
> The following two font settings are wrong, you're passing the name of a
> typescript for the third argument while \definefontfamily expects the
> family name of a font.
> […]
> ConTeXt already provides a blockquote-environment which can be
> configured to have the same style as your custom environment.

Hi Wolfgang,

I have a related question:
I noticed that the font settings were wrong in the original MWE of Michael. I 
am also aware that ConTeXt has a blockquote env (having used it before). In 
fact, I first tested the following example before responding to Michael's 
question:

%%% SOF
\usebodyfont[termes]
\setupbodyfont[schola]
\setupdelimitedtext
[blockquote]
[style={\switchtobodyfont[termes]}]

\starttext
main body font here
\startblockquote
\input knuth
\stopblockquote
{\bf test}\par
{\it test}
\startblockquote
{\bf test}
{\it test}
\stopblockquote
\stoptext
%%% EOF

In the above, if the first line '\usebodyfont[termes]' is removed, the second 
blockquote env renders in schola not termes. Moreover, on removing the first 
blockquote env with '\input knuth' the second one appears correctly in termes. 
Thus, regardless of other things, '\usebodyfont[termes]' seems to be necessary 
here. Is this correct or am I missing something?

Thanks,
śrīrāma (Sreeram)


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

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


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

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

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

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

[...]

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


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


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


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



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


The correct settings for both settings are

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

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


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


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

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


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



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


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


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


\setupbodyfont[story,11pt]

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


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


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

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

Wolfgang

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

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


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

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

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

See below a modified version of your MWE:

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

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

\starttext
\input knuth

\startblockquote
\input knuth
\stopblockquote

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

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

Best,
Sreeram


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

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


[NTG-context] Odd Font Behavior in startstop Group

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

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

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





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

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

\startblockquote
\input knuth

\stopblockquote

\input zapf

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


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

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

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

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

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


Re: [NTG-context] [startstop]

2021-01-22 Thread Floris van Manen



On 22/01/2021 23:39, Wolfgang Schuster wrote:


No \do...empty (LMTX only):

\tolerant\protected\def\startzzz#=%
   {\hrule
    \doifsomething{#1}{\bold{\strut#1}\blank}}

\protected\def\stopzzz
   {\blank[10mm]}

\starttext

\startzzz
\input weisman
\stopzzz

\startzzz{Ward}
\input ward
\stopzzz

\stoptext



Thank you !

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

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


Re: [NTG-context] [startstop]

2021-01-22 Thread Jairo A. del Rio
El vie, 22 de ene. de 2021 a la(s) 17:39, Wolfgang Schuster (
wolfgang.schuster.li...@gmail.com) escribió:

> Jairo A. del Rio schrieb am 22.01.2021 um 23:14:
> > How strange. I guess you don't have your modules installed. In such a
> > case, you could install them from modules.contextgarden.net
> >  and put content under texmf-modules
> > so after mtxrun --generate and context --make examples work.
>
> The core function of the annotation module (custom environment
> with key-val-arguments) is part of ConTeXt but it doesn't create
> new environment commands.
>
> \defineuserdata
>[zzz]
>[alternative=zzz,
> after={\blank[10mm]}]
>
> \defineuserdataalternative[zzz][renderingsetup=userdata:zzz]
>
> \startsetups[userdata:zzz]
>  \hrule
>  \doifsomething{\userdataparameter{title}}
>{\bold{\strut\userdataparameter{title}}
> \blank}
>  \strut\getuserdata
> \stopsetups
>
> \starttext
>
> \startuserdata[zzz]
> \input weisman
> \stopuserdata
>
> \startuserdata[zzz][title=Ward]
> \input ward
> \stopuserdata
>
> \stoptext
>
>
>  > Another possibility is to use \do...empty and such, but it feels odd
>  > when a module for that is already available.
>
> No \do...empty (LMTX only):
>
> \tolerant\protected\def\startzzz#=%
>{\hrule
> \doifsomething{#1}{\bold{\strut#1}\blank}}
>
> \protected\def\stopzzz
>{\blank[10mm]}
>
> \starttext
>
> \startzzz
> \input weisman
> \stopzzz
>
> \startzzz{Ward}
> \input ward
> \stopzzz
>

A nicer way to go, indeed.


> \stoptext
>
>
> Wolfgang
>


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

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


Re: [NTG-context] [startstop]

2021-01-22 Thread Wolfgang Schuster

Jairo A. del Rio schrieb am 22.01.2021 um 23:14:
How strange. I guess you don't have your modules installed. In such a 
case, you could install them from modules.contextgarden.net 
 and put content under texmf-modules 
so after mtxrun --generate and context --make examples work.


The core function of the annotation module (custom environment
with key-val-arguments) is part of ConTeXt but it doesn't create
new environment commands.

\defineuserdata
  [zzz]
  [alternative=zzz,
   after={\blank[10mm]}]

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

\startsetups[userdata:zzz]
\hrule
\doifsomething{\userdataparameter{title}}
  {\bold{\strut\userdataparameter{title}}
   \blank}
\strut\getuserdata
\stopsetups

\starttext

\startuserdata[zzz]
\input weisman
\stopuserdata

\startuserdata[zzz][title=Ward]
\input ward
\stopuserdata

\stoptext


> Another possibility is to use \do...empty and such, but it feels odd
> when a module for that is already available.

No \do...empty (LMTX only):

\tolerant\protected\def\startzzz#=%
  {\hrule
   \doifsomething{#1}{\bold{\strut#1}\blank}}

\protected\def\stopzzz
  {\blank[10mm]}

\starttext

\startzzz
\input weisman
\stopzzz

\startzzz{Ward}
\input ward
\stopzzz

\stoptext


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

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


Re: [NTG-context] [startstop]

2021-01-22 Thread Jairo A. del Rio
How strange. I guess you don't have your modules installed. In such a case,
you could install them from modules.contextgarden.net and put content under
texmf-modules so after mtxrun --generate and context --make examples work.

Another possibility is to use \do...empty and such, but it feels odd when a
module for that is already available.

Jairo

El vie., 22 de ene. de 2021 5:07 p. m., Floris van Manen 
escribió:

> unfortunately this does not work, 'annotation' is not found.
>
> But is it possible to give a start/stop definition user parameters?
> And if so, how?
>
>
> .F
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
>
> ___
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] [startstop]

2021-01-22 Thread Floris van Manen

unfortunately this does not work, 'annotation' is not found.

But is it possible to give a start/stop definition user parameters?
And if so, how?


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

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


Re: [NTG-context] [startstop]

2021-01-22 Thread Jairo A. del Rio
Like this?


\usemodule[annotation] %Thanks for this module, Wolfgang

\defineannotation[zzz]

\define[2]\AnnotationCommand

{\doifelse{\placeannotationtitle}{}{}{\hrule\bf\placeannotationtitle\par}#2\blank[10mm]}

\setupannotation[zzz]

[alternative=command,

command=\AnnotationCommand,

text=]

\starttext

\startzzz{a}

Hola

\stopzzz

\startzzz{b}

Chao

\stopzzz

\startzzz

Hola de nuevo

\stopzzz

\stoptext

Jairo

El vie, 22 de ene. de 2021 a la(s) 12:51, Floris van Manen (v...@klankschap.nl)
escribió:

> I'd like to create a start/stop command with a parameter
>
>
>
> \startzzz[a]
> one two three
> \stopzzz
>
> \startzzz[b]
> one two three
> \stopzzz
>
>
> How do i define/pass the tag parameter in the definition?
> This does not work (obviously)
>
> \definestartstop[zzz][
> before={\hrule\bf tag\blank},
> after={\blank[10mm]}
> ]
>
>
> I cannot find it in the documentation
>
> .F
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
>
> ___
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] [startstop]

2021-01-22 Thread Floris van Manen

I'd like to create a start/stop command with a parameter



\startzzz[a]
one two three
\stopzzz

\startzzz[b]
one two three
\stopzzz


How do i define/pass the tag parameter in the definition?
This does not work (obviously)

\definestartstop[zzz][
before={\hrule\bf tag\blank},
after={\blank[10mm]}
]


I cannot find it in the documentation

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

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


Re: [NTG-context] mailing list behaviour (was: Spurious newlines at beginning of startstop pair)

2019-11-29 Thread Marco Patzer
On Fri, 29 Nov 2019 12:10:46 +0100
Henning Hraban Ramm  wrote:

> The problem seems to be that traditional mailing lists like this just
> don’t work with modern security standards.
> 
> I didn’t check how secure NTG’s mail server is configured, but
> changing subject and sender of every message is regarded harmful. Not
> doing that would mean that: 
> * I can’t filter mails (visually or rule based) by subject any more.

Sorting can easily be done using other headers , e.g. “List-Id”.

> * A lot of replies would only go to the sender.

Very true.

> * The connection of threads would get lost.

Why? Threads are arranged by the “References” and “In-Reply-To”
headers which are not modified.

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

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


Re: [NTG-context] mailing list behaviour (was: Spurious newlines at beginning of startstop pair)

2019-11-29 Thread Henning Hraban Ramm

> Am 2019-11-29 um 11:05 schrieb Denis Maier :
> 
> Am 29.11.2019 um 10:38 schrieb Hans Hagen:
>> Second: For some reasons I have not received your message. It wasn't in the 
>> Spam folder and I usually receive mails from the list. Any ideas? Are there 
>> some known problems?
>> 
>> Your mailbox host does some strange address checking (we run a mail server 
>> here and then go to the provider and it checks the internal server with a 
>> local address) ... there are some more on this list that bounce that way, 
>> like gmx, and i';ve given up bothering about it.
>>  hans
> 
> Ok, what do you suggest? Change to a different mailserver for the list? Which 
> hosts aren't prone to this problem? Or is there something I can change on my 
> side?

The problem seems to be that traditional mailing lists like this just don’t 
work with modern security standards.

I didn’t check how secure NTG’s mail server is configured, but changing subject 
and sender of every message is regarded harmful.
Not doing that would mean that: 
* I can’t filter mails (visually or rule based) by subject any more.
* A lot of replies would only go to the sender.
* The connection of threads would get lost.
(I see all of these on other lists.)

So, using an address from a more tolerant (and maybe less secure) provider for 
lists like this would make sense.


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

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

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


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

2019-11-29 Thread Hans Hagen

On 11/29/2019 11:05 AM, Denis Maier wrote:

Am 29.11.2019 um 10:38 schrieb Hans Hagen:
Second: For some reasons I have not received your message. It wasn't 
in the Spam folder and I usually receive mails from the list. Any 
ideas? Are there some known problems?


Your mailbox host does some strange address checking (we run a mail 
server here and then go to the provider and it checks the internal 
server with a local address) ... there are some more on this list that 
bounce that way, like gmx, and i';ve given up bothering about it.

 hans


Ok, what do you suggest? Change to a different mailserver for the list? 
Which hosts aren't prone to this problem? Or is there something I can 
change on my side?
as long as you get messages from the list it's ok, but i normally hit 
reply so it also can to you then in which case it bounces


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


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

2019-11-29 Thread Denis Maier

Am 29.11.2019 um 10:38 schrieb Hans Hagen:
Second: For some reasons I have not received your message. It wasn't 
in the Spam folder and I usually receive mails from the list. Any 
ideas? Are there some known problems?


Your mailbox host does some strange address checking (we run a mail 
server here and then go to the provider and it checks the internal 
server with a local address) ... there are some more on this list that 
bounce that way, like gmx, and i';ve given up bothering about it.

 hans


Ok, what do you suggest? Change to a different mailserver for the list? 
Which hosts aren't prone to this problem? Or is there something I can 
change on my side?

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

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


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

2019-11-29 Thread Hans Hagen

On 11/28/2019 11:26 PM, denis.maier.li...@mailbox.org wrote:

Hans,
thanks for your answer. But two questions:
First: Am I right to assume that the important part is `\GetPar`. The rest is 
syntactic sugar to make to code more ConTeXt-like, right?


what you do is something:

\def\foo{something that introduces a node)

\foo

rest of test

so you have:



rest of text

so:

\startwhatever
some text
\stopwhatever

versus:

\startwhatever

some text

\stopwhatever


Second: For some reasons I have not received your message. It wasn't in the 
Spam folder and I usually receive mails from the list. Any ideas? Are there 
some known problems?


Your mailbox host does some strange address checking (we run a mail 
server here and then go to the provider and it checks the internal 
server with a local address) ... there are some more on this list that 
bounce that way, like gmx, and i';ve given up bothering about it.

 hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


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

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

Best,
Denis


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

\definenarrower[whatever][left=1.5em]

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

\showframe

\starttext

\section{Some title}

\input ward

\section{References}

\startcslreferences

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

\stopcslreferences

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

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


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

2019-11-27 Thread Hans Hagen

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

Hi,
I have this file:

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

\starttext

\section{Some title}

\input ward

\section{References}

\startcslreferences

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

\stopcslreferences

\stoptext
--

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


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

you need to get rid of the empty line

\definenarrower[whatever][left=1.5em]

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

\showframe

\starttext

\section{Some title}

\input ward

\section{References}

\startcslreferences

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

\stopcslreferences

\stoptext


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


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

2019-11-27 Thread Denis Maier

Hi,
I have this file:

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

\starttext

\section{Some title}

\input ward

\section{References}

\startcslreferences

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

\stopcslreferences

\stoptext
--

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


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

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

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


Re: [NTG-context] 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 knuth
\stopnarrower

\subject{It does also here:}

\input knuth

\startpassus
\input knuth
\stoppassus


\stoptext


Andrés Conrado Montoya
http://chiquitico.org
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

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

2017-03-22 Thread Alan Braslau
On Wed, 22 Mar 2017 20:38:01 +0100
"Mikael P. Sundqvist"  wrote:

> What am I doing wrong? Any ideas to solve it

Add a \par:

\input knuth\par

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

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

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

2017-03-22 Thread Mikael P. Sundqvist
On Wed, Mar 22, 2017 at 8:38 PM, Mikael P. Sundqvist  wrote:
> Hi,
>
> with the latest standalone, the file below runs, but gives strange
> results. Look at the interline space in the last paragraph (starting
> with "But a system...") of the document. 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={\startnarrower},
> after={\stopnarrower},
> style={\switchtobodyfont[9pt]},
> ]
>
> \starttext
>
> \subject{It looks OK here:}
> \input knuth
>
> \startnarrower
> \switchtobodyfont[9pt]
> \input knuth
> \stopnarrower
>
> \subject{It does not here:}
>
> \input knuth
>
> \startpassus
> \input knuth
> \stoppassus
>
>
> \stoptext

OK, I just realized that if I add a \par after the \input knuth the
last lines also look OK. Sorry for the noise.

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

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

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

2017-03-22 Thread Mikael P. Sundqvist
Hi,

with the latest standalone, the file below runs, but gives strange
results. Look at the interline space in the last paragraph (starting
with "But a system...") of the document. 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={\startnarrower},
after={\stopnarrower},
style={\switchtobodyfont[9pt]},
]

\starttext

\subject{It looks OK here:}
\input knuth

\startnarrower
\switchtobodyfont[9pt]
\input knuth
\stopnarrower

\subject{It does not here:}

\input knuth

\startpassus
\input knuth
\stoppassus


\stoptext


ctx-listexample26.pdf
Description: Adobe PDF document
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

[NTG-context] tagging a startstop

2015-03-28 Thread Idris Samawi Hamid ادريس سماوي حامد

Dear syndicate,

We have \definehighlight[tagged][style=] so that

\tagged{arg}

tags the argument. Analogously: Is there a general facility to tag  
startstops? I played around 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?


Thanks and Best Wishes
Idris
--
Idris Samawi Hamid
Professor of Philosophy
Colorado State University
Fort Collins, CO 80523
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] tagging a startstop

2015-03-28 Thread Wolfgang Schuster

 Am 28.03.2015 um 19:18 schrieb Idris Samawi Hamid ادريس سماوي حامد 
 isha...@colostate.edu:
 
 Dear syndicate,
 
 We have \definehighlight[tagged][style=] so that
 
 \tagged{arg}
 
 tags the argument. Analogously: Is there a general facility to tag 
 startstops? I played around 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 with \definestartstop already add tags, is there something 
wrong with them?

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] \noindent in startstop block is no t working on the text that follows the block

2008-02-08 Thread Bart Wise
Thanks Taco!

On Friday February 8 2008, Taco Hoekwater wrote:
 Bart C. Wise wrote:
  I defined a startstop block.  However, the text that follows the block I
  don't want to be indented.
 
  Code
 
  \definestartstop[Center][
  before={\startalignment[center]},
  after={\stopalignment\noindent}
  ]

 You want \noidentation (instead of \noindent).

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

 maillist : ntg-context@ntg.nl /
 http://www.ntg.nl/mailman/listinfo/ntg-context webpage  :
 http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : https://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] \noindent in startstop block is not working on the text that follows the block

2008-02-07 Thread Bart C. Wise
I defined a startstop block.  However, the text that follows the block I don't 
want to be indented.

Code

\definestartstop[Center][
before={\startalignment[center]},
after={\stopalignment\noindent}
]

\starttext
\startCenter
This is some text!
\stopCenter
I don't want this paragraph indent; however, it ends up being indented.
\stopText

\Code

However, the text that follows the block is indented.  How to I declare a 
\noindent within the startstop block definition that will work when the block 
is exited?

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] \noindent in startstop block is not working on the text that follows the block

2008-02-07 Thread Taco Hoekwater
Bart C. Wise wrote:
 I defined a startstop block.  However, the text that follows the block I 
 don't 
 want to be indented.
 
 Code
 
 \definestartstop[Center][
 before={\startalignment[center]},
 after={\stopalignment\noindent}
 ]

You want \noidentation (instead of \noindent).

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Re: Collecting command arguments in a startstop environment

2004-08-02 Thread Patrick Gundlach

[...]

 Anyhow, I'm finding myself wanting to do this in ConTeXt, with of
 course replacing \newenvironment with \definestartstop. 

I didn't want to fiddle with \definestartstop, but here is a quick
hack:

--
\long\def\foo#1{ Hello #1!}
\long\def\startfoo #1 \stopfoo{\unskip \foo{#1}}

\starttext
\startfoo
World
\stopfoo
\startfoo
Brooks
\stopfoo
\startfoo
some

lines
\stopfoo
\stoptext
--

Patrick
-- 
ConTeXt wiki: http://contextgarden.net
texshow-web:  http://texshow.contextgarden.net
List archive: http://archive.contextgarden.net
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: Collecting command arguments in a startstop environment

2004-08-02 Thread Brooks Moses
At 01:37 AM 8/2/2004, you wrote:
 Anyhow, I'm finding myself wanting to do this in ConTeXt, with of
 course replacing \newenvironment with \definestartstop.
I didn't want to fiddle with \definestartstop, but here is a quick
hack:
--
\long\def\foo#1{ Hello #1!}
\long\def\startfoo #1 \stopfoo{\unskip \foo{#1}}
[...]
Oh, that's clever.  I'll have to ponder at whether it's got some drawbacks 
that mean it doesn't work for what I need, but it does seem promising.  Thanks!

- Brooks
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Collecting command arguments in a startstop environment

2004-08-02 Thread Brooks Moses
To answer my own question:
At 10:39 PM 8/1/2004, I wrote:
There's a nice little problem that arises in LaTeX, of wanting to write a 
bit of code like the following, to define an environment that passes the 
contents of the environment to a command as an argument:

  \newcommand{\foo}[1]{...}
  \newenvironment{fooenv}{%
\foo\bgroup
  }{%
\egroup
  }
There's even a nice FAQ entry about this. [1]  As it turns out, the 
amsmath package defines a handy [EMAIL PROTECTED] command that handles 
collecting the environment body to pass it to a command.

Anyhow, I'm finding myself wanting to do this in ConTeXt, with of course 
replacing \newenvironment with \definestartstop.  Is there by any chance a 
built-in ConTeXt macro that can do this?  Or even things that would make a 
decent foundation for building such a thing?
The \grabuntil and \processbetween commands, as defined in syst-ext.tex, do 
exactly what I'm asking for.

- Brooks
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Collecting command arguments in a startstop environment

2004-08-01 Thread Brooks Moses
There's a nice little problem that arises in LaTeX, of wanting to write a 
bit of code like the following, to define an environment that passes the 
contents of the environment to a command as an argument:

  \newcommand{\foo}[1]{...}
  \newenvironment{fooenv}{%
\foo\bgroup
  }{%
\egroup
  }
There's even a nice FAQ entry about this. [1]  As it turns out, the amsmath 
package defines a handy [EMAIL PROTECTED] command that handles collecting the 
environment body to pass it to a command.

Anyhow, I'm finding myself wanting to do this in ConTeXt, with of course 
replacing \newenvironment with \definestartstop.  Is there by any chance a 
built-in ConTeXt macro that can do this?  Or even things that would make a 
decent foundation for building such a thing?

Thanks much,
- Brooks
[1] http://www.tex.ac.uk/cgi-bin/texfaq2html?label=cmdasenv
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context