Re: [NTG-context] About alternative=middle in section heads

2020-07-12 Thread Jairo A. del Rio
Oh, I see. Thanks!

Jairo :)

El dom., 12 de jul. de 2020 a la(s) 22:56, Wolfgang Schuster (
wolfgang.schuster.li...@gmail.com) escribió:

> Jairo A. del Rio schrieb am 12.07.2020 um 22:31:
> > I've realized ConTeXt now puts the section label and section number
> > above the section title whe alternative=middle is set. How to disable
> > this behavior so one can have a section label and number next to a
> > centered section title? Thank you in advance.
>
> You're using the wrong option.
>
> \noheaderandfooterlines
>
> \starttext
>
> \start
>
>  \setuphead[section][alternative=middle]
>
>  \section{\mono{alternative=middle}}
>
> \stop
>
> \start
>
>  \setuphead[section][align=middle]
>
>  \section{\mono{align=middle}}
>
> \stop
>
> \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
>
> ___
>
___
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] About alternative=middle in section heads

2020-07-12 Thread Wolfgang Schuster

Jairo A. del Rio schrieb am 12.07.2020 um 22:31:
I've realized ConTeXt now puts the section label and section number 
above the section title whe alternative=middle is set. How to disable 
this behavior so one can have a section label and number next to a 
centered section title? Thank you in advance.


You're using the wrong option.

\noheaderandfooterlines

\starttext

\start

\setuphead[section][alternative=middle]

\section{\mono{alternative=middle}}

\stop

\start

\setuphead[section][align=middle]

\section{\mono{align=middle}}

\stop

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


[NTG-context] Chapter numbering that does not follow a regular pattern

2020-07-12 Thread jbf

Hi there,

I have a situation where numbered chapters are occasionally interspersed 
with unnumbered chapters, so, for example, it might be:


1 First chapter title with number

  second chapter title unnumbered

2 Second chapter title with  number

3 Third chapter title with number

---

Now, I can achieve what I want by putting something like the following 
for a 'normal' chapter (by which I mean one that needs to be numbered, 
but would otherwise be out of sequence):


\chapter[title={\sc My chapter title that needs a different 
number},ownnumber=2]


And in the case of the interspersed 'other' chapter (that is, the one 
that follows Chapter 1 numbered, still needs a title, but no number, and 
therefore breaks the normal number increment), I define 'mychapter' in 
the initial setup, then:


\mychapter[title={\sc MY UNNUMBERED CHAPTER TITLE},number=no]

---

But I was wondering if there was a way that I could achieve the result I 
want in the initial setup for the two different kinds of chapters. If it 
were a regular pattern, e.g. 1 chapter, unnumbered chapter, 2 chapter, 
unnumbered chapter, that might be easier to do, but in the situation I 
am dealing with, there is not this regularity.


You may well tell me that since I can achieve what I want as described 
above, that should suffice. I will be happy to have that confirmed. On 
the other hand, someone may have a more elegant suggestion in the 
initial setup that enables me to call in the specific kind of chapter I 
need at the time in a simpler way.


Julian



___
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] Iterate over color scheme in ConTeXt/Lua

2020-07-12 Thread Jairo A. del Rio
El dom., 12 de jul. de 2020 a la(s) 16:20, Hans Hagen (j.ha...@xs4all.nl)
escribió:

> You get a list of defined color names in 'xwi' with:
>
> attributes.colors.setlist("xwi")
>

Nice, it works! I note the first method only works when \usecolors[xwi] is
present; otherwise, it prints an interesting "themaintextcolor".

Here is a nostalgic mkii accessor for such a list (color support is a
> real old feature and conceptually hasn't changed that much):
>
>\def\WhateverActionIWant#1{#1\par}
>
>\settrue\collectcolorsinlist \setupcolor[xwi]
>
>\processcommacommand[\colorlist]\WhateverActionIWant
>
> but you probably don't want to catch up on that.
>

It doesn't work in Mark IV (\colorlist is undefined). Maybe I'm too young,
but Mark II was already frozen when I was a teenager, so I'm not sure I
want to try it now. Thanks, Hans!

Cordially,

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] Iterate over color scheme in ConTeXt/Lua

2020-07-12 Thread Hans Hagen

On 7/12/2020 9:58 PM, Jairo A. del Rio wrote:

Hi, list. I've got a question about color schemes in ConTeXt

What if want to access the entire list of, say, xwi:

for k,v in pairs(xwi_list) do --Supposing xwi_list is contains xwi colors
   (whatever action I want)
end

So far I'm manually setting colors from colo-imp-xwi.mkiv, but I suspect 
there's a less manual method. Thank you in advance.

You get a list of defined color names in 'xwi' with:

   attributes.colors.setlist("xwi")

Anyway, "whatever action I want" is somewhat vague, for instance you the 
vebose spec with:


  attributes.colors.values[name]

but there's more. There might be better ways to achieve what you need it 
for.


Here is a nostalgic mkii accessor for such a list (color support is a 
real old feature and conceptually hasn't changed that much):


  \def\WhateverActionIWant#1{#1\par}

  \settrue\collectcolorsinlist \setupcolor[xwi]

  \processcommacommand[\colorlist]\WhateverActionIWant

but you probably don't want to catch up on that.

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] About alternative=middle in section heads

2020-07-12 Thread Jairo A. del Rio
I've realized ConTeXt now puts the section label and section number above
the section title whe alternative=middle is set. How to disable this
behavior so one can have a section label and number next to a centered
section title? Thank you in advance.

Sincerely,

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
___


[NTG-context] Iterate over color scheme in ConTeXt/Lua

2020-07-12 Thread Jairo A. del Rio
Hi, list. I've got a question about color schemes in ConTeXt

What if want to access the entire list of, say, xwi:

for k,v in pairs(xwi_list) do --Supposing xwi_list is contains xwi colors
  (whatever action I want)
end

So far I'm manually setting colors from colo-imp-xwi.mkiv, but I suspect
there's a less manual method. Thank you in advance.

Regards,

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] Broken PDF with latest MkIV

2020-07-12 Thread Alan Braslau

On 12/07/20 03:48, Henning Hraban Ramm wrote:

Hi,
I just installed the latest ConTeXt MkIV (LuaTeX 2.06 20200706 + ConTeXt MkIV 
2020.07.09 14:51) to check if the CG journal will look the same as with my 
"old” installation (LuaTeX 1.11 7215 + ConTeXt MkIV 2020.01.30 14:13).

All looks well in Preview.app and PDF Studio 2019, but Adobe (Reader DC and 
Acrobat Pro 9) can’t open the new PDF.

I’ll try to cook up a MWE. Does anyone else experience problems with Adobe apps?

Hraban


Is this perhaps related to the thread:

[NTG-context] Minimum METAPOST code produces problematic PDF


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] pdf tagging for accesbility

2020-07-12 Thread Duncan Hothersall
I have no answer I'm afraid, but I would like to register a similar
interest in any potential answer to the question.

Duncan

On Sun, 12 Jul 2020, 14:20 David Eric Cox, 
wrote:

> Hello.
>
> Is there any way to pdf-tag table headers to assist screen readers and the
> like?  I can get tagging in general and thought that natural tables would
> work because of \bTABLEhead ... \eTABLEhead would do the job, but it
> doesn't.
>
> I'd appreciate any feedback.
>
> David
>
>
> Sent with ProtonMail  Secure Email.
>
>
> ___
> 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] pdf tagging for accesbility

2020-07-12 Thread David Eric Cox
Hello.

Is there any way to pdf-tag table headers to assist screen readers and the 
like? I can get tagging in general and thought that natural tables would work 
because of \bTABLEhead ... \eTABLEhead would do the job, but it doesn't.

I'd appreciate any feedback.

David

Sent with [ProtonMail](https://protonmail.com) Secure Email.___
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] Broken PDF with latest MkIV

2020-07-12 Thread Henning Hraban Ramm
Hi,
I just installed the latest ConTeXt MkIV (LuaTeX 2.06 20200706 + ConTeXt MkIV 
2020.07.09 14:51) to check if the CG journal will look the same as with my 
"old” installation (LuaTeX 1.11 7215 + ConTeXt MkIV 2020.01.30 14:13).

All looks well in Preview.app and PDF Studio 2019, but Adobe (Reader DC and 
Acrobat Pro 9) can’t open the new PDF.

I’ll try to cook up a MWE. Does anyone else experience problems with Adobe apps?

Hraban
___
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] Symbol ' of the derived function + pagella + lmtx

2020-07-12 Thread Fabrice Couvreur
Hello,
I found an intermediate solution but I find that the ' is too high.

\m{f^{\prime}(x)=2x}

Fabrice

Le sam. 11 juil. 2020 à 12:46, Fabrice Couvreur 
a écrit :

> Hello,
> I am now using the lmtx engine and I have found that using the Pagella
> font the writing of derived functions is not very nice with the symbol '.
> Thank you.
> Fabrice
>
> \setupbodyfont [pagella,11pt]
> \starttext
> \startitemize[n]
>   \startitem
> \math{f'(x)=x²+4x+4}
>   \stopitem
>   \startitem
>  \math{f''(x)=2x+4}
>   \stopitem
> \stopitemize
> \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
___