Re: [NTG-context] How can I make "natural table" be exactly as wide as the textwidth?

2020-12-05 Thread Aditya Mahajan
On Sun, 6 Dec 2020, T. Kurt Bond wrote:

> Setting maxwidth and textwidth on the \bTABLE doesn't seem to do anything.

Use: 

\bTABLE[width=broad]

\eTABLE

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] Can you make a \setupTABLE only apply to one table?

2020-12-05 Thread Aditya Mahajan
On Sat, 5 Dec 2020, T. Kurt Bond wrote:

> If I understand correctly, \setupTABLE applies to each table after the
> \setupTABLE, correct?  If so, can you make it only apply to one table?

If you really need it for one table:

\bTABLE
\setupTABLE[...][...]
\setupTABLE[...][...]
\bTR ... \eTR
\eTABLE

A better option is to add it inside a setup:

\startsetup table:formatting
  \setupTABLE[...][...]
  \setupTABLE[...][...]
\stopsetup

\bTABLE[setups={table:formatting}]

\eTABLE

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
___


[NTG-context] How can I make "natural table" be exactly as wide as the textwidth?

2020-12-05 Thread T. Kurt Bond
Setting maxwidth and textwidth on the \bTABLE doesn't seem to do anything.

-- 
T. Kurt Bond, tkurtb...@gmail.com, https://tkurtbond.github.io
___
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] Can I caption a table without using something that makes it float?

2020-12-05 Thread T. Kurt Bond
Oh, after looking at some examples I found that
\startplacetable[location=force,title={Caption
Text}] places the table without the extra vertical space, as long as there
wasn't a \setupalign[line] !

On Sat, Dec 5, 2020 at 11:01 PM T. Kurt Bond  wrote:

> If I use \placetable or startplacetable with location=force it shows up
> but there is lots of space before and after it, I assume it is because it
> is a float.  Is there a way I can caption the table without using something
> that makes it float, or remove the space otherwise?
>
> --
> T. Kurt Bond, tkurtb...@gmail.com, https://tkurtbond.github.io
>


-- 
T. Kurt Bond, tkurtb...@gmail.com, https://tkurtbond.github.io
___
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] Can I caption a table without using something that makes it float?

2020-12-05 Thread T. Kurt Bond
If I use \placetable or startplacetable with location=force it shows up but
there is lots of space before and after it, I assume it is because it is a
float.  Is there a way I can caption the table without using something that
makes it float, or remove the space otherwise?

-- 
T. Kurt Bond, tkurtb...@gmail.com, https://tkurtbond.github.io
___
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] Can you make a \setupTABLE only apply to one table?

2020-12-05 Thread T. Kurt Bond
Thanks for the help!


On Sat, Dec 5, 2020 at 10:21 PM Jairo A. del Rio 
wrote:

> Hi,
> You could enclose your table and setup using \bgroup and \egroup
>
> \bgroup
> \setupTABLE ...
> \bTABLE ... \eTABLE
> \egroup
>
> \begingroup ... \endgroup also works, although I have to admit I'm not
> aware of the differences between both.
>
> Regards,
>
> Jairo :)
>
> El sáb., 5 de dic. de 2020 10:01 p. m., T. Kurt Bond 
> escribió:
>
>> If I understand correctly, \setupTABLE applies to each table after the
>> \setupTABLE, correct?  If so, can you make it only apply to one table?
>>
>> --
>> T. Kurt Bond, tkurtb...@gmail.com, https://tkurtbond.github.io
>>
>> ___
>> 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
>
> ___
>


-- 
T. Kurt Bond, tkurtb...@gmail.com, https://tkurtbond.github.io
___
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] Can you make a \setupTABLE only apply to one table?

2020-12-05 Thread Jairo A. del Rio
Hi,
You could enclose your table and setup using \bgroup and \egroup

\bgroup
\setupTABLE ...
\bTABLE ... \eTABLE
\egroup

\begingroup ... \endgroup also works, although I have to admit I'm not
aware of the differences between both.

Regards,

Jairo :)

El sáb., 5 de dic. de 2020 10:01 p. m., T. Kurt Bond 
escribió:

> If I understand correctly, \setupTABLE applies to each table after the
> \setupTABLE, correct?  If so, can you make it only apply to one table?
>
> --
> T. Kurt Bond, tkurtb...@gmail.com, https://tkurtbond.github.io
>
> ___
> 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] Can you make a \setupTABLE only apply to one table?

2020-12-05 Thread T. Kurt Bond
If I understand correctly, \setupTABLE applies to each table after the
\setupTABLE, correct?  If so, can you make it only apply to one table?

-- 
T. Kurt Bond, tkurtb...@gmail.com, https://tkurtbond.github.io
___
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] Scite and Mac OS

2020-12-05 Thread Bruce Horrocks

> On 5 Dec 2020, at 11:48, MANUEL GONZALEZ SUAREZ  
> wrote:
> 
> Regarding the first question, Scite comes from the App Store. I have 
> downloaded and installed it. When I open Scite, I can open .tex files without 
> problem, but when I try to compile, I get an error. On the other hand, there 
> is no syntax highlighting nor do they appear in the taskbar> options, the 
> preferences to configure ConTeXt.properties, etc.
>  Thank you.

I never thought to look on the App store - but now I have ... I won't be 
buying. ;-)

For that kind of money I suggest you email the author for help. Failing that I 
assume you have tried everything suggested here 
 ?

--
Bruce Horrocks
Hampshire, UK

___
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] mkiv broken in 2020-12-04 20:21:00 (typo-spa.lua)

2020-12-05 Thread Adam Reviczky
Hi Hans,

The removal of typo-spa.lua breaks the format generation in mkiv:

loading > ConTeXt Typesetting Macros / Wrapping
resolvers   > lua > loading file
'/usr/share/texmf/tex/context/base/mkiv/typo-wrp.lua' succeeded
close source> level 1, order 226, name
'/usr/share/texmf/tex/context/base/mkiv/typo-wrp.mkiv'
open source > level 1, order 227, name
'/usr/share/texmf/tex/context/base/mkiv/typo-spa.mkiv'
loading > ConTeXt Typesetting Macros / Spacing
resolvers   > lua > unknown file 'typo-spa.lua'

error loading file: typo-spa.lua (aborting)resolvers   | formats |
resolvers   | formats | binary path  : /usr/bin
resolvers   | formats | format path  :
/home/reviczky/.texlive2020/texmf-var/luatex-cache/context/b47c3d3cee7cb6c86268d0595268c442/formats/luatex
resolvers   | formats | luatex engine: luatex
resolvers   | formats | lua startup file :
/usr/share/texmf/tex/context/base/mkiv/luat-cod.lua
resolvers   | formats | context file :
/usr/share/texmf/tex/context/base/mkiv/cont-en.mkiv
resolvers   | formats | run time : 1.394 seconds
resolvers   | formats | return value : okay
resolvers   | formats |
system  | total runtime: 3.790 seconds

Adding the file back creates the formats again.

mtx-context | current version: 2020.12.04 20:19
This is LuaTeX, Version 1.13.0 (TeX Live 2021/dev/Debian)
Development id: 7387

Regards,
Adam
___
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] sacling isue in lmt_followtext

2020-12-05 Thread Pablo Rodriguez
Hi Hans,

I have this sample:

  \starttext
  \startMPcode{doublefun}
  draw lmt_followtext [
  text = " ·\input{zapf} ",
  path = ((12,0)--(32,15)--(50,0)--(45,26)--(64,42)
  --(40,42)--(32,65)--(24,42)--(0,42)--(0,42)
  ..(20,26)--(12,0)),
  autoscaleup = "max",
  reverse=true,
  ] xsized TextWidth ;
  \stopMPcode
  \stoptext

Text doesn’t scale properly (I would say starting with latest from
2020.12.03 19:02). It gets worse with \dorecurse{2}.

With current latest (2020.12.04 20:22), each glyph seems to have a
different scaling.

I even wonder whether all glpyhs are embedded (using
\setupbodyfont[dejavu] and \input{aristotle-grc}).

But this may be my impression, since random scaling in each glyph might
be distorting the glyphs

With latest from 2020.12.01 17:52, I get perfect scaling in lmt_followtext.

Am I missing something or have I hit a bug?

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] Scite and Mac OS

2020-12-05 Thread MANUEL GONZALEZ SUAREZ
Regarding the first question, Scite comes from the App Store. I have downloaded 
and installed it. When I open Scite, I can open .tex files without problem, but 
when I try to compile, I get an error. On the other hand, there is no syntax 
highlighting nor do they appear in the taskbar> options, the preferences to 
configure ConTeXt.properties, etc.
 Thank you.
M. González.

De: ntg-context  en nombre de Bruce Horrocks 

Enviado: viernes, 4 de diciembre de 2020 23:36
Para: ntg-context@ntg.nl 
Asunto: Re: [NTG-context] Scite and Mac OS



> On 4 Dec 2020, at 08:18, MANUEL GONZALEZ SUAREZ  
> wrote:
>
> Hello everyone:
> I don't know if anyone can help me. I have installed the Scite editor on a 
> Mac OS Catalina computer and I cannot configure the editor to work with 
> ConTeXt files. Could someone give me some quick setup instructions? With 
> Windows and Linux I have no problems.
> Thank you.
> M. González.

I don't have it installed and when I Googled I couldn't find what appeared to 
be a definitive pre-built image. So the first question is: where did you get 
your image from?

Secondly, what exactly do you mean by "configure the editor to work with 
ConTeXt files"? Simply open them? Or understand the syntax to allow syntax 
highlighting? Or something else?

To open them you need to pick an extension - I use .tex - then option-click a 
.tex file -> choose 'other' -> find Scite in the list of apps -> tick "Always 
open with" -> click Open and it should then associate Scite with .tex files.

--
Bruce Horrocks
Hampshire, UK

___
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] Getting the filename which is being typeset

2020-12-05 Thread Axel Kielhorn


> Am 04.12.2020 um 10:04 schrieb Hans Hagen :
> 
> On 12/4/2020 8:02 AM, Axel Kielhorn wrote:
>>> Am 01.12.2020 um 18:23 schrieb Wolfgang Schuster 
>>> :
>>> 
>>> The following example shows the output of all commands:
>>> 
>>> \starttext
>>> \starttabulate [|T|T|]
>>> \NC \type{\jobname}   \NC \jobname   \NC\NR
>>> \NC \type{\jobfilename}   \NC \jobfilename   \NC\NR
>>> \NC \type{\jobfilesuffix} \NC \jobfilesuffix \NC\NR
>>> \NC \type{\inputfilename} \NC \inputfilename \NC\NR
>>> \NC \type{\inputfilebarename} \NC \inputfilebarename \NC\NR
>>> \NC \type{\inputfilesuffix}   \NC \inputfilesuffix   \NC\NR
>>> \NC \type{\outputfilename}\NC \outputfilename\NC\NR
>>> \NC \type{\operatingsystem}   \NC \operatingsystem   \NC\NR
>>> \stoptabulate
>>> \stoptext
>> On MacOS 10.13 the result of \operatingsystem is „osx-ppc“.
>> That was a surprise:-)
> maybe apples are no longer apples

They lost the Power when they became Intelligent, and now they get ARMed.

> because we cannot check for some env variable directly (at least we could not 
> reliable when the code was written) a slower echo is used to check $HOSTTYPE 
> and if we don't recognize something there we end up with a ppc because that 
> was what osx started with
> 
> now, in practice this is not that important because most systems don't 
> distinguish between 32/64 or some mix wrt paths (i might actually remove a 
> lot of that stuff because in luamatetex we're more normalized across 
> platforms)
> 
> the apple guesser is tricky because at least in the past there was no 
> reliable way to figure it out, for instance uname didn't work well and we had 
> this curious mix of 64 bit machines that osx refused to see as such (i 
> remember that I had to root something in the old macbook to make it being 
> seen as 64 bit instead of 32 in order to be able to update)
> 
> what does your "echo $HOSTTYPE" mention?

Melora:~ axel$ echo $HOSTTYPE
x86_64
Melora:~ axel$ uname -a
Darwin 17.7.0 Darwin Kernel Version 17.7.0: Fri Oct 30 13:34:27 PDT 2020; 
root:xnu-4570.71.82.8~1/RELEASE_X86_64 x86_64

This computer thinks it is Intel based.

Greetings 
Axel
___
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
___