Re: [NTG-context] Table disappears in floatcombination

2020-12-26 Thread Hans Hagen

On 12/25/2020 9:47 PM, Christoph Reller wrote:

Hi,

Consider the following MWE:

\definefloat[combination][figure]
\setupcaptions[
   number=no, %<- comment and table appears
   align=flushright]
\starttext
\startplacecombination[title=Combination]
   \startfloatcombination
     \startplacetable%[title=Table] %<- uncomment and table appears
       \bTABLE \bTR \bTD Cell \eTD \eTR \eTABLE
     \stopplacetable
   \stopfloatcombination
\stopplacecombination
\stoptext

In the latest LMTX version of ConTeXt, the table is not shown. (In MKIV 
it is present.) Either commenting line 3 or activating the table title 
in line 8 makes the table appear.


what version of mkiv did you test?

Also, once the captions appear, they don't align on the right side. When 
changing the caption alignment to "align=flushleft", they align 
perfectly on the left side.


Am I doing something wrong?

Cheers,

Christoph

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




--

-
  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] Bib support broken in lmtx

2020-12-26 Thread Philipp A.
Thank you, but whitespace is ignored in .bib file syntax. To prove that
whitespace handling isn’t the bug, just try accessing it:

\startluacode
local current = publications.datasets.default
tex.print('\\starttyping')
tex.print(table.serialize(current.luadata))
-- to show that the key doesn’t contain weird invisible characters, I’ll
type it here:
tex.print(table.serialize(current.luadata.angerer2016))
tex.print('\\stoptyping')
\stopluacode

will display:

t={
  ["angerer2016"]={
["author"]="Angerer...",
["category"]="article",
...
  },
}
t={
  ["author"]="Angerer...",
  ["category"]="article",
  ...
}

*Another thing*: Uncommenting the \placelistofpublications makes it work,
but not in my real document. I didn’t go through the trouble of reproducing
when *that* stops working, as I think the root cause can probably be found
with my minimal example.

Best, Phil

Am Fr., 25. Dez. 2020 um 19:24 Uhr schrieb :

> Don't know if that's related, but you should probably removethe space
> before the key in your bibfile.
> 
> Von: ntg-context  im Auftrag von Philipp A. <
> flying-sh...@web.de>
> Gesendet: Freitag, 25. Dezember 2020 18:36:33
> An: ConTeXt Mailing List
> Betreff: [NTG-context] Bib support broken in lmtx
>
> Hi! A pretty minimal document using a bibliography is broken for me:
>
> test.lmtx:
> \enableregime[utf-8]
> \mainlanguage[en]
>
> \usebtxdataset[default][test.bib]
> \setupbtx[dataset=default]
> \usebtxdefinitions[apa]
>
> \starttext
>
> \cite[authoryear][angerer2016]
>
> %\placelistofpublications[default][method=dataset]
>
> \stoptext
>
> test.bib:
> @Article{ angerer2016,
> author = {Angerer, Philipp and Haghverdi, Laleh and B{\"{u}}ttner, Maren
> and Theis, Fabian J and Marr, Carsten and Buettner, Florian},
> doi = {10.1093/bioinformatics/btv715},
> issn = {14602059},
> journal = {Bioinformatics},
> language = {en},
> number = {8},
> pages = {1241--1243},
> title = {{Destiny: Diffusion maps for large-scale single-cell data in R}},
> url = {
> http://bioinformatics.oxfordjournals.org/lookup/doi/10.1093/bioinformatics/btv715
> files/103/Angerer et al. - 2016 - destiny diffusion maps for large-scale
> single-cel.pdf},
> volume = {32},
> year = {2016}
> }
>
> This log occurs:
>
> ❯ context test.lmtx
> resolvers   | formats | executing runner 'run luametatex format':
> ~/Library/ConTeXt/tex/texmf-osx-64/bin/luametatex --jobname="test"
> --fmt=~/Library/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.fmt
> --lua=~/Library/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.lui
> --c:currentrun=1 --c:fulljobname="./test.lmtx" --c:input="./test.lmtx"
> --c:kindofrun=1 --c:maxnofruns=9
> --c:texmfbinpath="~/Library/ConTeXt/tex/texmf-osx-64/bin"
> system  >
> system  > ConTeXt  ver: 2020.12.24 17:30 LMTX  fmt: 2020.12.25
> int: english/english
> system  >
> system  > 'cont-new.mkxl' loaded
> open source > level 1, order 1, name
> '~/Library/ConTeXt/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
> system  > beware: some patches loaded from cont-new.mkiv
> close source> level 1, order 1, name
> '~/Library/ConTeXt/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
> system  > files > jobname 'test', input './test.lmtx', result
> 'test'
> fonts   > latin modern fonts are not preloaded
> languages   > language 'en' is active
> open source > level 1, order 2, name './test.lmtx'
> publications> adding bib data to set 'default' from source 'test.bib'
> open source > level 2, order 3, name
> ~/Library/ConTeXt/tex/texmf-context/tex/context/base/mkiv/publ-imp-apa.mkvi'
> close source> level 2, order 3, name
> '~/Library/ConTeXt/tex/texmf-context/tex/context/base/mkiv/publ-imp-apa.mkvi'
> fonts   > preloading latin modern fonts (second stage)
> fonts   > 'fallback modern-designsize rm 12pt' is loaded
> publications> analyzing previous publication run for 'default'
> publications> no entry 'angerer2016' found in dataset 'default'
> backend > xmp > using file
> '~/Library/ConTeXt/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml'
> pages   > flushing realpage 1, userpage 1, subpage 1
> close source> level 1, order 3, name './test.lmtx'
>
> mkiv lua stats  > used config file:
> selfautoparent:/texmf/web2c/texmfcnf.lua
> mkiv lua stats  > used cache path:
> ~/Library/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e
> mkiv lua stats  > resource resolver: loadtime 0.004 seconds, 0 scans with
> scantime 0.000 seconds, 0 shared scans, 13 found files, scanned paths:
> 
> mkiv lua stats  > stored bytecode data: 476 modules (0.204 sec), 95 tables
> (0.012 sec), 571 chunks (0.216 sec)
> mkiv lua stats  > traced context: maxstack: 1517, freed: 0, unreachable:
> 1517
> mkiv lua stats  > cleaned up 

[NTG-context] issue with defined font feature

2020-12-26 Thread Pablo Rodriguez
Dear list,

I have the following sample:

  \definefontfeature
[standarddigits]
[lnum=yes,
 tlig=no]
  \definefontfamily
  [anothermpface]
  [rm]
  [Gabriola]
  [features={default}]
  \definefontfamily
  [anothermpface]
  [ss]
  [Gabriola]
  [features={default, standarddigits}]
  \definefontfamily
  [anothermpface]
  [tt]
  [Gabriola]
  [features={standarddigits}]
  \setupbodyfont[anothermpface]
  \starttext
  \startTEXpage[offset=1em]
  123324234 --\\
  \ss 12123 -- 123\\
  \tt 12123 -- 123
  \stopTEXpage
  \stoptext

I’m not being able to get both lnum and no en-dashes: the defined font
feature seems to require the default and I cannot get en-dashes disabled
when the default font feature set is enabled.

Does anyone what I am doing wrong here?

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] Table disappears in floatcombination

2020-12-26 Thread Christoph Reller
On Sat, Dec 26, 2020 at 10:54 AM Hans Hagen  wrote:

> On 12/25/2020 9:47 PM, Christoph Reller wrote:
> > Hi,
> >
> > Consider the following MWE:
> >
> > \definefloat[combination][figure]
> > \setupcaptions[
> >number=no, %<- comment and table appears
> >align=flushright]
> > \starttext
> > \startplacecombination[title=Combination]
> >\startfloatcombination
> >  \startplacetable%[title=Table] %<- uncomment and table appears
> >\bTABLE \bTR \bTD Cell \eTD \eTR \eTABLE
> >  \stopplacetable
> >\stopfloatcombination
> > \stopplacecombination
> > \stoptext
> >
> > In the latest LMTX version of ConTeXt, the table is not shown. (In MKIV
> > it is present.) Either commenting line 3 or activating the table title
> > in line 8 makes the table appear.
>
> what version of mkiv did you test?
>

Okay, the MKIV version is a little bit dated: 2018.05.19_21.46.
Still: How can I get floats without captions within a
floatcombination environment?
Christoph
___
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] freedotlabel not defined in LMTX ?

2020-12-26 Thread Hans Hagen

On 12/26/2020 11:28 AM, Otared Kavian wrote:

Hi Hans,

When I was testing your example with freelabel in another thread, I noticed 
that freedotlabel does not work in LMTX.
Here is the code from the Metafun manual which works with ConTeXt version 
2020.06.25 10:55 MKIV, but not with ConTeXt version 2020.12.24 17:30 LMTX.

%% begin freedotlabel.tex
\setupbodyfont[pagella]

\starttext

\startMPcode
pair destination ;
for whereto = "up", "down", "left", "right" :
destination := scantokens(whereto) * 1cm ;
freedotlabel(whereto, destination, origin) ;
drawarrow origin -- destination
withpen pencircle scaled .25mm withcolor .625 red ;
endfor ;
\stopMPcode

\stoptext
%% end freedotlabel.tex

a renamed variable ...

vardef freedotlabel (expr asked_text, asked_location, asked_origin) =
interim linecap := rounded ;
draw asked_location withpen pencircle scaled freedotlabelsize ;
draw thefreelabel(asked_text,asked_location,asked_origin) ;
enddef ;

-
  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] freedotlabel not defined in LMTX ?

2020-12-26 Thread Otared Kavian
Hi Hans,

When I was testing your example with freelabel in another thread, I noticed 
that freedotlabel does not work in LMTX.
Here is the code from the Metafun manual which works with ConTeXt version 
2020.06.25 10:55 MKIV, but not with ConTeXt version 2020.12.24 17:30 LMTX.

%% begin freedotlabel.tex
\setupbodyfont[pagella]

\starttext

\startMPcode
pair destination ;
for whereto = "up", "down", "left", "right" :
destination := scantokens(whereto) * 1cm ;
freedotlabel(whereto, destination, origin) ;
drawarrow origin -- destination
withpen pencircle scaled .25mm withcolor .625 red ;
endfor ;
\stopMPcode

\stoptext
%% end freedotlabel.tex

Best regards: Otared
___
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] Problems with \unit

2020-12-26 Thread Jean-Philippe Rey
Dear list,

I have found two issues with the \unit command.

1) there is a typo in phys-dim.lua, Becquerel is written Bequerel (without the 
c)

2) tonne doesn't work anymore, I guess it interferes with the new "to" goodie

Here is a minimal example

=
\starttext
\unit{15 tonne} gives \quotation{15 -- nN} instead of \quotation{15 t}
\stoptext
=

Best regards,

-- 
Jean-Philippe Rey
jean-philippe@centralesupelec.fr
91192 Gif-sur-Yvette Cedex - France
Empreinte PGP : 807A 5B2C 69E4 D4B5 783A 428A 1B5E E83E 261B BF51

___
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] Bib support broken in lmtx

2020-12-26 Thread Hans Hagen

On 12/26/2020 11:29 AM, Philipp A. wrote:
Thank you, but whitespace is ignored in .bib file syntax. To prove that 
whitespace handling isn’t the bug, just try accessing it:


A \cite is a reference ... without list it doesn't reference anything. 
The \cite command puts a anchor in the text stream so that we can link 
that blob with the list.


A non referenced variant is:

\alwayscite[authoryear][angerer2016]

(there are more variants). So, it's actually a feature, not a bug.

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] issue with defined font feature

2020-12-26 Thread Pablo Rodriguez
On 12/26/20 6:36 PM, Wolfgang Schuster wrote:
> Pablo Rodriguez schrieb am 26.12.2020 um 12:58:
>> I have the following sample:
>> [...]
>> I’m not being able to get both lnum and no en-dashes: the defined font
>> feature seems to require the default and I cannot get en-dashes disabled
>> when the default font feature set is enabled.
>
> You need "script=auto" (or a valid argument for the script key) in your
> font features for the monospaced font.
>
> Another option is to use "features={always,standarddigits}" but this
> enables kerning and ligatures.

Many thanks for your reply, Wolfgang.

It works like a charm.

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] issue with defined font feature

2020-12-26 Thread Wolfgang Schuster

Pablo Rodriguez schrieb am 26.12.2020 um 12:58:

Dear list,

I have the following sample:

   \definefontfeature
 [standarddigits]
 [lnum=yes,
  tlig=no]
   \definefontfamily
   [anothermpface]
   [rm]
   [Gabriola]
   [features={default}]
   \definefontfamily
   [anothermpface]
   [ss]
   [Gabriola]
   [features={default, standarddigits}]
   \definefontfamily
   [anothermpface]
   [tt]
   [Gabriola]
   [features={standarddigits}]
   \setupbodyfont[anothermpface]
   \starttext
   \startTEXpage[offset=1em]
   123324234 --\\
   \ss 12123 -- 123\\
   \tt 12123 -- 123
   \stopTEXpage
   \stoptext

I’m not being able to get both lnum and no en-dashes: the defined font
feature seems to require the default and I cannot get en-dashes disabled
when the default font feature set is enabled.


You need "script=auto" (or a valid argument for the script key) in your 
font features for the monospaced font.


Another option is to use "features={always,standarddigits}" but this 
enables kerning and ligatures.


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
___