Re: [NTG-context] Style options and setupinterlinespace

2021-04-26 Thread Aditya Mahajan
On Mon, 26 Apr 2021, denis.ma...@ub.unibe.ch wrote:

> Wikified, as per Aditya's suggestion.

I expanded on the description to make it clearer (hopefully). However, as I was 
testing, I realized that the remark about math font sizes ("These quick font 
switches [...] do not change the bodyfont, so they don't affect [...] math font 
size") is no longer true. In LTMX, \tfa correctly scales the math font size as 
well. 

\starttext
\tfc x$x$x
\stoptext

I am not sure when this behavior changed, but looking at some of my old 
documents I see that I have been using "\tfc $+$" in some of my tikz code for 
about 4 years. So, it appears to be a old feature. I am thinking of changing 
the wiki from:

These quick font switches are meant for changing the font style, alternative, 
or size of a few words: they do not change the bodyfont, so they don't affect 
interline spacing or math font sizes

to 

These quick font switches are meant for changing the font style, alternative, 
or size of a few words: they do not change the bodyfont, so they don't affect 
interline spacing.

(so not mention math at all). Let me know if I am misunderstanding something 
here.


Aditya
___
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] Style options and setupinterlinespace

2021-04-26 Thread denis.maier
Wikified, as per Aditya's suggestion.

Denis

> -Ursprüngliche Nachricht-
> Von: Maier, Denis Christian (UB)
> Gesendet: Montag, 26. April 2021 22:50
> An: mailing list for ConTeXt users 
> Betreff: AW: [NTG-context] Style options and setupinterlinespace
> 
> Thanks everyone for your answers.
> In that case I'll change the wording in the wiki.
> 
> All best,
> Denis
> 
> > -Ursprüngliche Nachricht-
> > Von: ntg-context  Im Auftrag von Wolfgang
> > Schuster
> > Gesendet: Montag, 26. April 2021 19:28
> > An: mailing list for ConTeXt users 
> > Betreff: Re: [NTG-context] Style options and setupinterlinespace
> >
> > Aditya Mahajan schrieb am 26.04.2021 um 18:02:
> > >> Von: Maier, Denis Christian (UB)
> > >> Gesendet: Donnerstag, 22. April 2021 15:15
> > >> An: 'mailing list for ConTeXt users' 
> > >> Betreff: Style options and setupinterlinespace
> > >>
> > >> Hi,
> > >>
> > >> the wiki (https://wiki.contextgarden.net/Font_Switching) currently
> says:
> > >>
> > >>
> > >>> These quick font switches are meant for changing the font style,
> > >>> alternative, or size of a few words: they do not change the
> > >>> bodyfont, so they don't affect interline spacing or math font sizes.
> > >>> So, if you want to change the font size of an entire paragraph,
> > >>> use
> > >>>
> >
> \switchtobodyfont > >>> yfont> described below in Complete Font
> > >>>
> >
> Change > >>> hange>. However, it is fine to use them as style directives in
> > >>> hange>setup
> > >>> commands, that is, using them as an option for
> > >>>
> style=...
> > >>> in any setup command that accepts style option
> > >>  From this, I'd infer that a  or  should
> > >> change the
> > interline spacing as well. But it does not seem to be the case as the
> > example below shows.
> > > Using style=\tfx is roughly equivalent to typing `\tfx` at an
> > > appropriate
> > place. There is no automatic \setupinterlinespace after the style
> > value is executed.
> >
> > There is always the option to use \switchtobodyfont to change the font
> > size which affects also the linespacing but in this case one need
> > \setupinterlinespace after \tfx.
> >
> > In older versions (a few months ago) even \switchtobodyfont didn't
> > help here when you used the style-key to change the font size.
> >
> > 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
> >
> __
> > _
___
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] Style options and setupinterlinespace

2021-04-26 Thread denis.maier
Thanks everyone for your answers.
In that case I'll change the wording in the wiki.

All best,
Denis

> -Ursprüngliche Nachricht-
> Von: ntg-context  Im Auftrag von Wolfgang
> Schuster
> Gesendet: Montag, 26. April 2021 19:28
> An: mailing list for ConTeXt users 
> Betreff: Re: [NTG-context] Style options and setupinterlinespace
> 
> Aditya Mahajan schrieb am 26.04.2021 um 18:02:
> >> Von: Maier, Denis Christian (UB)
> >> Gesendet: Donnerstag, 22. April 2021 15:15
> >> An: 'mailing list for ConTeXt users' 
> >> Betreff: Style options and setupinterlinespace
> >>
> >> Hi,
> >>
> >> the wiki (https://wiki.contextgarden.net/Font_Switching) currently says:
> >>
> >>
> >>> These quick font switches are meant for changing the font style,
> >>> alternative, or size of a few words: they do not change the
> >>> bodyfont, so they don't affect interline spacing or math font sizes.
> >>> So, if you want to change the font size of an entire paragraph, use
> >>>
> \switchtobodyfont >>> yfont> described below in Complete Font
> >>>
> Change >>> hange>. However, it is fine to use them as style directives in setup
> >>> commands, that is, using them as an option for
> >>> style=...
> >>> in any setup command that accepts style option
> >>  From this, I'd infer that a  or  should change the
> interline spacing as well. But it does not seem to be the case as the example
> below shows.
> > Using style=\tfx is roughly equivalent to typing `\tfx` at an appropriate
> place. There is no automatic \setupinterlinespace after the style value is
> executed.
> 
> There is always the option to use \switchtobodyfont to change the font size
> which affects also the linespacing but in this case one need
> \setupinterlinespace after \tfx.
> 
> In older versions (a few months ago) even \switchtobodyfont didn't help
> here when you used the style-key to change the font size.
> 
> 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
> __
> _
___
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] profies and fonts in current latest (2021.04.26 00:55)

2021-04-26 Thread Hans Hagen

On 4/26/2021 7:04 PM, Pablo Rodriguez wrote:

Dear list,

I have the following sample:

   \setupbackend
 [format=PDF/A-3a,
  intent=sRGB IEC61966-2.1,
  profile={sRGB, default_gray.icc},
  level=0]
   \setuptagging[state=start]
   \setupcolors[cmyk=no, pagecolormodel=auto]

   \definefontfamily[mainface][rm][TeX Gyre Heros]
   \definefontfamily[mainface][tt][Cousine]

   \setupbodyfont[mainface]

   \starttext
   \input zapf

   \tt\input zapf
   \stoptext

I’m afraid that Acrobat isn’t able to display the fonts and SumatraPDF
displays random characters with Cousine, when compiled with current
latest (from 2021.04.26 00:55).

Previous latest from 2021.04.21 11:39 has no probles with the fonts
(either in Acrobat, or in SumatraPDF).

Could anyone confirm this issue?

fixed in next upload

-
  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] wrong line break in recent LMTX

2021-04-26 Thread Hans Hagen

On 4/26/2021 6:53 PM, Pablo Rodriguez wrote:

Dear list,

I have the following sample:

   \starttext
   \startTEXpage[offset=1ex]
   \hsize\zeropoint
   b—.\footnote{}
   \stopTEXpage
   \stoptext

For some strange reason, LMTX from 2021.04.18 18:12 introduce a line
break between the emdash and the point.

LMTX from 2021.04.14 22:58 doesn’t apply horizontal offset to the sample
above.

I’m afraid this might be a bug. Or I may be missing something.

new features ... some mail from last week .. you get unbreakable ones with

\hccode"2013 0
\hccode"2014 0

once i know what' sbest i''l make some option someplace

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] Style options and setupinterlinespace

2021-04-26 Thread Wolfgang Schuster

Aditya Mahajan schrieb am 26.04.2021 um 18:02:

Von: Maier, Denis Christian (UB)
Gesendet: Donnerstag, 22. April 2021 15:15
An: 'mailing list for ConTeXt users' 
Betreff: Style options and setupinterlinespace

Hi,

the wiki (https://wiki.contextgarden.net/Font_Switching) currently says:



These quick font switches are meant for changing the font style, alternative, or size of a few 
words: they do not change the bodyfont, so they don't affect interline spacing or math font 
sizes. So, if you want to change the font size of an entire paragraph, use 
\switchtobodyfont described below 
in Complete Font 
Change. However, it is 
fine to use them as style directives in setup commands, that is, using them as an option for 
style=... in any setup command 
that accepts style option

 From this, I'd infer that a  or  should change the 
interline spacing as well. But it does not seem to be the case as the example below shows.

Using style=\tfx is roughly equivalent to typing `\tfx` at an appropriate 
place. There is no automatic \setupinterlinespace after the style value is 
executed.


There is always the option to use \switchtobodyfont to change the font 
size which affects also the linespacing but in this case one need 
\setupinterlinespace after \tfx.


In older versions (a few months ago) even \switchtobodyfont didn't help 
here when you used the style-key to change the font size.


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] Style options and setupinterlinespace

2021-04-26 Thread Pablo Rodriguez
On 4/26/21 12:37 PM, denis.ma...@ub.unibe.ch wrote:
> Hi again,
>
> should I change the wiki or is the current behaviour a bug (that will
> eventually be corrected)?

Hi Denis,

sorry for the delayed reply.

I don’t think it’s a bug, but a feature.

>
> the wiki (https://wiki.contextgarden.net/Font_Switching) currently says:
>
>> These quick font switches are meant for changing the font style,
>> alternative, or size of a few words: they do not change the bodyfont, so
>> they don't affect interline spacing or math font sizes. So, if you want
>> to change the font size of an entire paragraph, use \switchtobodyfont
>>  described
>> below in Complete Font Change
>> .
>> However, it is fine to use them as style directives in setup commands,
>> that is, using them as an option for |style=
>> ...| in any
>> setup command that accepts |style| option
>
> From this, I’d infer that a «style=tfx» or «style=\tfx» should change
> the interline spacing as well. But it does not seem to be the case as
> the example below shows.

To change interlinespace you need either to use \switchtobodyfont[x] or
\tfx\setupinterlinespace.

In my experience, \tfx doesn’t behave in a different way as a value for
a style key than in standard text.

Just in case it helps,

Pablo
--
http://www.ousia.tk
___
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] profies and fonts in current latest (2021.04.26 00:55)

2021-04-26 Thread Pablo Rodriguez
Dear list,

I have the following sample:

  \setupbackend
[format=PDF/A-3a,
 intent=sRGB IEC61966-2.1,
 profile={sRGB, default_gray.icc},
 level=0]
  \setuptagging[state=start]
  \setupcolors[cmyk=no, pagecolormodel=auto]

  \definefontfamily[mainface][rm][TeX Gyre Heros]
  \definefontfamily[mainface][tt][Cousine]

  \setupbodyfont[mainface]

  \starttext
  \input zapf

  \tt\input zapf
  \stoptext

I’m afraid that Acrobat isn’t able to display the fonts and SumatraPDF
displays random characters with Cousine, when compiled with current
latest (from 2021.04.26 00:55).

Previous latest from 2021.04.21 11:39 has no probles with the fonts
(either in Acrobat, or in SumatraPDF).

Could anyone confirm this issue?

Many thanks for your help,

Pablo
--
http://www.ousia.tk
___
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] wrong line break in recent LMTX

2021-04-26 Thread Pablo Rodriguez
Dear list,

I have the following sample:

  \starttext
  \startTEXpage[offset=1ex]
  \hsize\zeropoint
  b—.\footnote{}
  \stopTEXpage
  \stoptext

For some strange reason, LMTX from 2021.04.18 18:12 introduce a line
break between the emdash and the point.

LMTX from 2021.04.14 22:58 doesn’t apply horizontal offset to the sample
above.

I’m afraid this might be a bug. Or I may be missing something.

Many thanks for your help,

Pablo
--
http://www.ousia.tk
___
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] Style options and setupinterlinespace

2021-04-26 Thread Aditya Mahajan
> Von: Maier, Denis Christian (UB)
> Gesendet: Donnerstag, 22. April 2021 15:15
> An: 'mailing list for ConTeXt users' 
> Betreff: Style options and setupinterlinespace
> 
> Hi,
> 
> the wiki (https://wiki.contextgarden.net/Font_Switching) currently says:
> 
> 
> > These quick font switches are meant for changing the font style, 
> > alternative, or size of a few words: they do not change the bodyfont, so 
> > they don't affect interline spacing or math font sizes. So, if you want to 
> > change the font size of an entire paragraph, use 
> > \switchtobodyfont 
> > described below in Complete Font 
> > Change. 
> > However, it is fine to use them as style directives in setup commands, that 
> > is, using them as an option for 
> > style=... in any 
> > setup command that accepts style option
> 
> From this, I'd infer that a  or  should change the 
> interline spacing as well. But it does not seem to be the case as the example 
> below shows.

Using style=\tfx is roughly equivalent to typing `\tfx` at an appropriate 
place. There is no automatic \setupinterlinespace after the style value is 
executed. 

On Mon, 26 Apr 2021, denis.ma...@ub.unibe.ch wrote:

> Hi again,
> 
> should I change the wiki or is the current behaviour a bug (that will 
> eventually be corrected)?

Perhaps, it will be a good idea to add a concluding sentence "However, the 
previous caveats (no change in interline space or math font sizes) still 
apply". 


Aditya
___
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] new page before xtable with repeated headers

2021-04-26 Thread Werner Hennrich

Am 25.04.21 um 10:52 schrieb Wolfgang Schuster:

Yes, some slack is needed to avoid the table being pushed to the next
space because not enough space is available. I recommend also to
ensure a minimum amount of space (e.g. 5 lines) is available to avoid
tables with just a few rows.

Wolfgang


I caught a some fail-cases (attached) using a test-runner
(linux/bash/python3, attached as well) - hope this helps.

Thanks in advance und best regards,
Werner

<>
<>
___
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] [formatting verbatim text]

2021-04-26 Thread Hans Hagen

On 4/26/2021 12:23 PM, Floris van Manen wrote:

\starttext
\starttyping[escape=@]
  1   137  26  25 >    1  69  32
  2   @btex@bgroup@red@bf 137 @egroup@etex  26  25 >    1  69  32
  3   @btex@bgroup@red@bf 137 @egroup@etex  26  25 >    1  69  32
  4   137  26  25 >    1  69  32
  5   @btex@bgroup@red@bf 137  @egroup@etex  26  25 >    1  69  32
\stoptyping
\stoptext


\starttext
\def\MyRed[#1]{{\red#1}}
\starttyping[escape=@]
 1   137  26  25 >1  69  32
 2   @btex@bgroup@red@bf 137 @egroup@etex@space 26  25 >1  69  32
 2   @MyRed[137]  26  25 >1  69  32
 3   137  26  25 >1  69  32
\stoptyping
\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
___


Re: [NTG-context] font message?

2021-04-26 Thread Hans Hagen

On 4/26/2021 12:37 PM, Hans van der Meer wrote:

I get the following message in the log (latest beta):

fonts           > !
fonts           > ! check count_components with mkiv !
fonts           > !

These are my font settings:

\definefontfeature [default] [default] [itlc=yes]
\setupbodyfont[schola,10pt]
\setupitaliccorrection [text]

What does it mean? Is there something I should do?


it's more for myself ... component lists done differently ... when you 
nothing strange, just ignore 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
___


Re: [NTG-context] Style options and setupinterlinespace

2021-04-26 Thread denis.maier
Hi again,

should I change the wiki or is the current behaviour a bug (that will 
eventually be corrected)?

Best,
Denis

Von: Maier, Denis Christian (UB)
Gesendet: Donnerstag, 22. April 2021 15:15
An: 'mailing list for ConTeXt users' 
Betreff: Style options and setupinterlinespace

Hi,

the wiki (https://wiki.contextgarden.net/Font_Switching) currently says:


> These quick font switches are meant for changing the font style, alternative, 
> or size of a few words: they do not change the bodyfont, so they don't affect 
> interline spacing or math font sizes. So, if you want to change the font size 
> of an entire paragraph, use 
> \switchtobodyfont 
> described below in Complete Font 
> Change. 
> However, it is fine to use them as style directives in setup commands, that 
> is, using them as an option for 
> style=... in any 
> setup command that accepts style option

>From this, I'd infer that a  or  should change the 
>interline spacing as well. But it does not seem to be the case as the example 
>below shows.

Best,
Denis

--
\definedelimitedtext[blockquoteA]
\setupdelimitedtext[blockquoteA]
   [
   style=tfx,
   
spacebefore=medium,
   ]

\definedelimitedtext[blockquoteB]
\setupdelimitedtext[blockquoteB]
   [
   
before={\tfx\setupinterlinespace},
   
spacebefore=medium,
   ]

\starttext

\input knuth

\startblockquoteA
\input knuth
\stopblockquoteA

\input knuth

\startblockquoteB
\input knuth
\stopblockquoteB

\input knuth

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


[NTG-context] font message?

2021-04-26 Thread Hans van der Meer
I get the following message in the log (latest beta):

fonts   > !
fonts   > ! check count_components with mkiv !
fonts   > !

These are my font settings:

\definefontfeature [default] [default] [itlc=yes]
\setupbodyfont[schola,10pt]
\setupitaliccorrection [text]

What does it mean? Is there something I should do?

dr. Hans van der Meer


___
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] [formatting verbatim text]

2021-04-26 Thread Floris van Manen

Aparently all spaces after @etex get reduced to one only.
I'd expect that to happen inside @btex and @etex


\starttext
\starttyping[escape=@]
  1   137  26  25 >1  69  32
  2   @btex@bgroup@red@bf 137 @egroup@etex  26  25 >1  69  32
  3   @btex@bgroup@red@bf 137 @egroup@etex  26  25 >1  69  32
  4   137  26  25 >1  69  32
  5   @btex@bgroup@red@bf 137  @egroup@etex  26  25 >1  69  32
 \stoptyping
\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] \setupalign[height] and \setupalign[line] in LMTX

2021-04-26 Thread denis.maier
Hi,

sorry to be such a nuisance, but i'd still love to hear if I'm missing 
something or if something is going off the rails in LMTX.

Best,
Denis


Von: Maier, Denis Christian (UB)
Gesendet: Donnerstag, 22. April 2021 15:07
An: 'mailing list for ConTeXt users' 
Betreff: \setupalign[height] and \setupalign[line] in LMTX

Hi,

\setupalign[height] and \setupalign[line] seem to have no effect in a  LMTX. Do 
I need to change something?

Best,
Denis


```
\setuppapersize[A5][A5]
\showframe
%\setupalign[line]
\setupalign[height]

\setupdelimitedtext[blockquote]
   [
   
before={\setupindenting[yes]\tfx\setupinterlinespace},
   
spacebefore=medium,
   indentnext=no,
   leftmargin=no,
   rightmargin=no,
   ]


\starttext

\dorecurse{10}{
\input knuth

\startblockquote
\input knuth
\stopblockquote

\input knuth
}

\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] [formatting verbatim text]

2021-04-26 Thread Floris van Manen



On 26/04/2021 10:59, Hans Hagen wrote:


\starttext
\starttyping[escape=/]
one two three
four /btex/bgroup/red five /egroup/etex six
seven eight nine
\stoptyping
\stoptext


That works indeed! Thanks.


Are there restriction on what context commands can be given inside the 
bgroup? e.g. I tried to include a highlight definition with white font 
on black background with an inframed, but that doesn't seem to work (in 
my definitions that is)


___
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] clubs and widows in columns

2021-04-26 Thread mf

Il 25/04/21 22:19, Jano Kula ha scritto:

Dear list,

is there a way to avoid clubs and widows in columns? I don't know, how 
it would be implemented, if the task is splitting typeset vertical list.


\setuppapersize[A7]
\starttext
\startcolumns[separator=rule,
               align={right,nothyphenated}]
\dorecurse{12}{→ one two three four five\par}
\stopcolumns
\stoptext

For a different task: are there some higher level commands in ctx than 
\vsplitprimitive to play with vbox splitting?




As a workaround, you could try switching to pagecolumns: since they are 
typeset as pages and then rearranged as columns on a page, I expect 
clubs' and widows' penalties to work as in a single page.

I've not tried, anyway.

Best wishes,
Massi
___
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] [formatting verbatim text]

2021-04-26 Thread Hans Hagen

On 4/26/2021 10:25 AM, Floris van Manen wrote:
What is the easiest way, if possible, to highlight some sections of 
verbatim text?


given:

\starttyping
one two three
four five six
seven eight nine
\stoptyping

i'd like to color the word 'five' in red, or italic.


\starttext
\starttyping[escape=/]
one two three
four /btex/bgroup/red five /egroup/etex six
seven eight nine
\stoptyping
\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
___


Re: [NTG-context] Conflict between MetaPost (LMTX) and cmarrows

2021-04-26 Thread Hans Hagen

On 4/26/2021 9:59 AM, Jairo A. del Rio wrote:



El lun, 26 de abr. de 2021 a la(s) 01:49, Hans Hagen (j.ha...@xs4all.nl 
) escribió:


On 4/26/2021 6:59 AM, Jairo A. del Rio wrote:
 > The following:
 >
 > \starttext
 >
 > \startMPinitializations
 >
 > input cmarrows;
 >
 > setup_cmarrows(arrow_name = "texarrow"; parameter_file = "cmr6.mf";
 > macro_name = "nicearrow");
 >
 > \stopMPinitializations
 >
 > \startMPpage

 > metafun > log > error: Equation cannot be performed (numeric=pair)
I don't know, but from the message it looks like some 'local' variables
is not saved and defined. I'm surprised that loading some mf file works
at all (because it also assumes some mf related definitions). I also
hav
eno clue if such a package adopts 'core' metafun code (and mpiv metafun
is different from mpii).


It's a generic, "pure" MetaPost package:

https://www.ctan.org/pkg/cmarrows 


that doesn't make it immune from clashes in used variables with differnt 
types ... metafun is more than plain mp so more can clash


Fonts are in /fonts/source/public in a TeX Live distribution, in case it 
helps.
i have a rather minimal tex setup so i can't run that (i'm not going to 
clutter my system now)


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] [formatting verbatim text]

2021-04-26 Thread Floris van Manen
What is the easiest way, if possible, to highlight some sections of 
verbatim text?


given:

\starttyping
one two three
four five six
seven eight nine
\stoptyping

i'd like to color the word 'five' in red, or italic.


.Floris




___
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] Conflict between MetaPost (LMTX) and cmarrows

2021-04-26 Thread Jairo A. del Rio
El lun, 26 de abr. de 2021 a la(s) 01:49, Hans Hagen (j.ha...@xs4all.nl)
escribió:

> On 4/26/2021 6:59 AM, Jairo A. del Rio wrote:
> > The following:
> >
> > \starttext
> >
> > \startMPinitializations
> >
> > input cmarrows;
> >
> > setup_cmarrows(arrow_name = "texarrow"; parameter_file = "cmr6.mf";
> > macro_name = "nicearrow");
> >
> > \stopMPinitializations
> >
> > \startMPpage
>
> > metafun > log > error: Equation cannot be performed (numeric=pair)
> I don't know, but from the message it looks like some 'local' variables
> is not saved and defined. I'm surprised that loading some mf file works
> at all (because it also assumes some mf related definitions). I also hav
> eno clue if such a package adopts 'core' metafun code (and mpiv metafun
> is different from mpii).
>

It's a generic, "pure" MetaPost package:

https://www.ctan.org/pkg/cmarrows

Fonts are in /fonts/source/public in a TeX Live distribution, in case it
helps.

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

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] Conflict between MetaPost (LMTX) and cmarrows

2021-04-26 Thread Hans Hagen

On 4/26/2021 6:59 AM, Jairo A. del Rio wrote:

The following:

\starttext

\startMPinitializations

input cmarrows;

setup_cmarrows(arrow_name = "texarrow"; parameter_file = "cmr6.mf"; 
macro_name = "nicearrow");


\stopMPinitializations

\startMPpage



metafun > log > error: Equation cannot be performed (numeric=pair)
I don't know, but from the message it looks like some 'local' variables 
is not saved and defined. I'm surprised that loading some mf file works 
at all (because it also assumes some mf related definitions). I also hav 
eno clue if such a package adopts 'core' metafun code (and mpiv metafun 
is different from mpii).


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
___