[NTG-context] \definefontfamily not finding fonts

2020-09-09 Thread Aditya Mahajan
Did something change with regard to \definefontfamily recently. 

I have an old document where I use:

\starttypescript[mainface]
  \definefontfamily[mainface][rm][Libertinus Serif][features=default]
  \definefontfamily[mainface][ss] [heros]  [features=default] 
  \definefontfamily[mainface][tt] [dejavu] [features=none, rscale=0.85]
  \definefontfamily[mainface][mm] [LibertinusMath]
\stoptypescript

\setupbodyfont[mainface,12pt]

On the recent LMTX (2020.09.05) I get

selectfont  > the requested font 'Libertinus Serif' has no files for the 
'tf' alternative, Latin Modern is used instead.
selectfont  > the requested font 'heros' has no files for the 'tf' 
alternative, Latin Modern is used instead.
selectfont  > the requested font 'dejavu' has no files for the 'tf' 
alternative, Latin Modern is used instead.
selectfont  > the requested font 'LibertinusMath' has no files for the 'tf' 
alternative, Latin Modern is used instead.


I can find the fonts using mtxrun --script fonts. For example:

$mtxrun --script fonts --list --pattern="LibertinusSerif" --all
identifier   familynamefontname 
 filename  subfont   instances

libertinusserif  libertinusserif   libertinusserif  
 libertinusserif-regular.otf
libertinusserifdisplaynormal libertinusserifdisplay
libertinusserifdisplaylibertinusserifdisplay-regular.otf
libertinusserifdisplayregularlibertinusserifdisplay
libertinusserifdisplaylibertinusserifdisplay-regular.otf
libertinusserifinitialsnormallibertinusserifinitials   
libertinusserifinitials   libertinusserifinitials-regular.otf
libertinusserifinitialsregular   libertinusserifinitials   
libertinusserifinitials   libertinusserifinitials-regular.otf
libertinusserifnormallibertinusserif   
libertinusserifitalic libertinusserif-italic.otf
libertinusserifregular   libertinusserif   libertinusserif  
 libertinusserif-regular.otf

and similar for the other fonts. 

Any idea on what is going on and how to debug.

Thanks,
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] Fwd: Re: styling individual parts of ToC entry

2020-09-09 Thread jbf


After making silly mistakes, for which I apologize, I finally got the 
ToC to work for frontmatter and chapters, creating new \defineheads as 
required, and including the earlier \ChapterListCommand, with the 
results correctly showing.


To add some named sections with authors, I did the following, using an 
idea Hraban had floated:


 \setupsectionblock
 [bodypart]
 [number=no]

\define[1]\SectionTocEntry{%
  #1\crlf% title
  \structurelistuservariable{author}%
}

\setuplist[section][
  textcommand=\SectionTocEntry,
]

I need to adjust the \setuplist[section] so these section entries move 
across under the Chapter titles (not be left-aligned as they are now 
under Chapter number. The earlier \ChapterListCommand has titles and 
authors moved across 3cm.


I have tried:

\setuplist[section][width=3cm,
  textcommand=\SectionTocEntry,
  ]

The width=3cm is not doing anything, so I've got that wrong. How do I 
move sections across by a specific amount in the TOC?


Julian





On 9/9/20 5:10 pm, Wolfgang Schuster wrote:

jbf schrieb am 09.09.2020 um 08:04:
Have to confess I am still not getting far with the final problem in 
a book that is now fully laid out: frontmatter through to appendices 
is all correct and working, but the Table of Contents not the way I 
need it (as explained earlier and listed in a previous email).


My latest effort focuses on just one item, the Foreword, since if I 
get that right, I can apply the same logic to sections. Chapters are 
already working correctly, thanks to Wolfgang's ChapterListCommand 
and I am assuming I need that for the several frontmatter 'chapters'.


I was earlier using \title for foreword, preface and notes to 
contributors, but have abandoned that as complicating things, and am 
now using \chapter, since it does not produce a numbered item - 
however, it is producing the label 'Chapter' which I don't want for 
these item. You can see below how I tried to avoid that, but it 
failed. My MWE addition to what Wolfgang provided is:


\definehead [foreword] [chapter]

\setuphead [foreword]

\setuplist [foreword]
  [label=foreword,
  alternative=command,
  command=\ChapterListCommand]% definition not included here. It was 
given in an earlier response from Wolfgang.


 And in the frontmatter itself:

\startchapter[foreword][title={\ss Foreword}][author={A. Uthor}]

..


You can set the forword string as labeltext and ignore the title (but 
use a empty argument when set userdata like the author).


\definehead
  [forword] [chapter]

\setuplabeltext
  [en]
  [forword=Forword,
   chapter=Chapter ]

\setuphead
  [forword]
  [frontpartlabel=forword,
   conversion=empty]

\setupsectionblock
  [frontpart]
  [number=yes]

\setuplist
  [forword]
  [label=forword,
   width=2cm]

\setuplist
  [chapter]
  [label=chapter,
   width=2cm]

\starttext

\startfrontmatter

\placelist [chapter,forword]

\startforword [] [author={A. u. thor}] \stopforword

\stopfrontmatter

\startbodymatter

\startchapter [title=Chapter 1] [author={A. u. thor}] \stopchapter

\stopbodymatter

\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] How do I specify a fallback to Symbola for the playing card range?

2020-09-09 Thread T. Kurt Bond
I want to use the Unicode Character PLAYING CARD ACE OF SPADES in a ConTeXt
document.  Because of the way the source document is created it has to be
as the actual unicode character itself, rather than a reference to a
specific character in a specific font.

Here's what I've tried, but it doesn't work:

\definefontfallback[mainface][rm][Symbola][preset=range:playingcards,force=yes]
\definefontfamily[mainface][rm][LibertinusSerif]
\enabletrackers[fonts.missing]
\setupbodyfont[mainface]
\starttext
 Testing!
\stoptext

The PLAYING CARD ACE OF SPADES character does not show up in the output
PDF.

Can anyone tell me how to do this?

Thanks!
-- 
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] About font combination in ConTeXt MKIV

2020-09-09 Thread Pablo Rodriguez
On 9/9/20 6:24 PM, Charles Vejnar wrote:
> Dear Manuel,
>
> To combine multiple fonts, I do something like this:
>
> \definefallbackfamily [mainface] [serif] [DejaVu
> Serif][range=boxdrawing,force=yes]
> \definefontfamily [mainface] [serif] [Tinos]
> \setupbodyfont[mainface, 11pt]
>
> You might be able to use a Unicode block (ie range) for ancient Greek
> characters (my range being boxdrawing).

Hi Manuel and Charles,

   \definefallbackfamily[mainface][rm][New Athena Unicode]
 [preset=range:greek, force=yes]
   \definefontfamily[mainface][rm][Libertinus]
   \setupbodyfont[mainface]
   \starttext
   ab τῇ
   \stoptext

Some scripts have predefined ranges thanks to Wolfgang, which avoid
specifing all blocks for a given script.

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
___


Re: [NTG-context] TeXlive 2020 / Gentoo Linux: ConTeXt does not find itself (sort of)...]

2020-09-09 Thread mylists

Hi Matthijs,

thanks for your support. My first attempts to change the installation
accordingly failed unfortunately.

( I had tried to change /usr/share/texmf-dist/web2c/texmfcnf.lua  )

What file/place would be the best to adapt these settings?

Cheers!
Meino




On 09/09 02:46, Matthijs van der Wild wrote:
> If I compare /usr/share/texmf-dist/web2c/texmfconf.lua with its counterpart
> in Arch Linux, I found the differences in the following entries:
> 
> Gentoo:
> 
> > TEXMFSYSVAR = "selfautoparent:texmf-var",
> > TEXMFOS = "selfautodir:",
> > TEXMFDIST   = "selfautoparent:texmf-dist",
> > TEXMFSYSCONFIG  = "selfautoparent:texmf-config",
> >
> 
> Arch:
> 
> > TEXMFSYSVAR = "/var/lib/texmf",
> > TEXMFOS = "selfautodir:share",
> > TEXMFDIST   = "selfautodir:share/texmf-dist",
> > TEXMFSYSCONFIG  = "/etc/texmf",
> >
> 
> Changing the Gentoo file to its Arch equivalent fixes the issue after
> running "mtxrun --generate". There may actually be a reason why this
> configuration is different in Gentoo compared to Arch, but I haven't had
> the time yet to look into it further.
> 
> On Sat, 5 Sep 2020 at 13:27,  wrote:
> 
> > Hi,
> >
> > this is my first post to this mailinglist. I am no native speaker...
> > if something sound somehow ... I will try to give my best ;)
> >
> >
> > I am using GENTOO Linux, which compiles everything on the target
> > instead of pulling ready compiled, binary packages into the system.
> >
> > I did a fresh install of Texlive 2020 via the package-manager
> > "emerge". On Gentoo this is handled via a "virtual package", which
> > can be configured beforehand to include or exclude certain parts.
> >
> > I choose to get the HUGE package (incluing LaTeX, ConTeXt, plainTeX
> > and others).
> >
> > After the installation I tried to typeset examples of a LaTeX- and
> > a plain TeX document, which works out of the box.
> >
> > Then I tried a ConTeXt document and it fails:
> >
> > context somefile.tex
> >
> > gave me:
> >
> > mtxrun  | unknown script 'context.lua' or 'mtx-context.lua'
> >
> > .
> >
> > While searching the internet I found, that one has to run
> >
> > mtxrun --generate
> >
> > in advance.
> >
> > Doing so mtxrun starts to index my whole harddisk starting with
> > my $HOME, from which I started it.
> >
> > It reports A LOT of "confusing file"s
> >
> > I searched the installed TeXlive installation for context.lua
> > and mtx-context.lua -- they were installed and not "totally" missing.
> >
> > So I tried/guessed to run
> >
> > mtxrun --generate /usr/share/texmf-dist /usr/share/texlive-site
> >
> > and the file under $HOME were no longer indexed.
> >
> > context somefile.tex
> >
> > gave me the above mentioned error still, though.
> >
> > It "feels" like context does not respect setting made via
> > the configuration settings under /etc/texmf...
> >
> > So I "hacked" (really, it was a crude hack/idea...nothing
> > more) TEXMF and inserted
> >
> > export TEXMF=/usr/share/texmf-dist:/usr/share/texlive-site
> >
> > into my shells RC-file, restarted the shell and
> >
> > now
> >
> > context somefile.tex
> >
> > "worked"...:
> >
> > Each time it seems to re-index parts of ???, reports a lot
> > of "confusing file"s but creates a valid looking pdf.
> >
> > I think, the package setup provided by GENTOO has a problem
> > I want to help to fix that...but I have no clue, what the
> > real culprit is here...
> >
> > Setting TEXMF this way feels like a random and accidentally
> > working hack and I already feel the next problem raising up
> > at the horizon...
> >
> > Some additional problems:
> >
> > tlmgr does not work
> >
> > mtxrun partially does not find its own modules
> >
> > mtxrun --variables
> >
> > lists a LOT of unset environment variables
> >
> > ...
> >
> > It looks like some basic and fundamental "initial" environment
> > variable is missing.
> >
> > But I need a knowledgeable guru before I am able to get nearer
> > to the root of the culprit.
> >
> > Thank you very much in advance for any help offered!
> >
> > \cheers
> > Meino
> >
> > ___
> > 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  : 

Re: [NTG-context] About font combination in ConTeXt MKIV

2020-09-09 Thread Charles Vejnar

Dear Manuel,

To combine multiple fonts, I do something like this:

\definefallbackfamily [mainface] [serif] [DejaVu 
Serif][range=boxdrawing,force=yes]

\definefontfamily [mainface] [serif] [Tinos]
\setupbodyfont[mainface, 11pt]

You might be able to use a Unicode block (ie range) for ancient Greek 
characters (my range being boxdrawing).


Hope this helps.

Charles

On 9/9/20 11:31 AM, MANUEL GONZALEZ SUAREZ wrote:

Dear friends:
Until now (TeXLive 2018), to write Spanish and ancient Greek in the same 
document, I used the "simplefonts" module, which is said in the wiki 
(ConTeXt Garden) that it is obsolete. What is the method to do this with 
TeXLive 2020? I try to combine one font for Spanish text (eg libertine) 
and another for ancient Greek (eg New Athena Unicode), but I don't know 
how to do it without the "simplefonts" module, and if I try to compile 
the document with the "simplefonts module", I have an error

Thank you.
Manuel González.

___
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] Wrong page number when placefigure spans full page in columnset

2020-09-09 Thread Charles Vejnar

Hi,

When I place a figure within a columnset and that figure takes a full 
page then the page number in the header is incorrect. Page number is the 
same as the previous page but on the next page it's correct. Please see 
example below and attached showing page 2 twice with pages numbered 1, 
2, 2, 4, 5. If I reduce the height of the figure (from 15 to 12cm for 
example), then some main text gets added on the page and page number (3) 
becomes correct. Is that a bug or am I doing something wrong?


Thanks for your help.

Charles


\setuppapersize[letter][letter]

\setuplayout[height=fit,grid=yes]
\showframe

\usemodule[newcolumnsets]
\definecolumnset[colset][n=2]

\starttext
\startcolumnset[colset]

\section{One section}

\dorecurse{16}{\input ward \par}

\placefigure[page]{Legend. \input ward 
}{\externalfigure[dummy][width=\makeupwidth,height=15cm]}


\section{Two section}

\dorecurse{2}{\input knuth \par}

\section{Three section}

\dorecurse{6}{\input knuth \par}

\stopcolumnset
\stoptext



page.pdf
Description: Adobe PDF document
\setuppapersize[letter][letter]

\setuplayout[height=fit,grid=yes]
\showframe

\usemodule[newcolumnsets]
\definecolumnset[colset][n=2]

\starttext
\startcolumnset[colset]

\section{One section}

\dorecurse{16}{\input ward \par}

\placefigure[page]{Legend. \input ward }{\externalfigure[dummy][width=\makeupwidth,height=15cm]}

\section{Two section}

\dorecurse{2}{\input knuth \par}

\section{Three section}

\dorecurse{6}{\input knuth \par}

\stopcolumnset
\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] problem embedding TABLE macros within wrapper macros "to reduce repetitive complexity")

2020-09-09 Thread Rudd, Kevin
[Workable solution found]

After more exploration, the following seems to solve the problem of creating a 
simple 2x2 quad chart; thanks for the explanation that the \bTD requires a 
matching \eTD in the immediate (not future expanded) evaluation context. I 
prefer the \start* and \stop* model but for the moment this solution works for 
my current purpose. The good part is that it does abstract out the interface so 
that I can change it in the future without needing to change the slide text. I 
may investigate a better (parametrizable/reconfigurable) solution later if I 
end up needing a more complex paned-layout environment that doesn't need direct 
access to the TABLE (or some other more relevant) interface.

MWE demonstrator; there's other cruft in the actual definitions for my purposes.

\starttext
\define\startPaneSlide{\bTABLE}
\define\stopPaneSlide{\eTABLE}
\long\def\PaneRow#1{\bTR #1 \eTR}
\long\def\Pane#1{\bTD #1 \eTD}

\startPaneSlide
\PaneRow{\Pane{aaa bbb ccc ddd}\Pane{eee fff ggg hhh}}
\PaneRow{\Pane{iii jjj kkk lll}\Pane{mmm nnn ooo ppp}}
\stopPaneSlide
\stoptext


Kevin W. Rudd, Ph.D.
CAPT, USN (Ret)

Computer Architecture & Computer Engineering
Advanced Computing Systems (ACS) Research Program
Laboratory for Physical Sciences (LPS)

443-654-7878
ke...@lps.umd.edu

Visiting Research Professor
United States Naval Academy

r...@usna.edu


On Sep 9, 2020, at 09:02, Rudd, Kevin 
mailto:ke...@lps.umd.edu>> wrote:

True. There is also a

 \define\continuePaneRow{\eTD\bTD}

definition as well for that reason but that wasn't necessary for the MWE to 
(fail while) embed(ing) TABLE elements in macros.

Is it the case that I can bundle at least the table setup commands to avoid 
some level of replication? Or is there a better way to creat the various table 
begin--end pairs that is cleaner?

Thanks,
---K

Kevin W. Rudd, Ph.D.
CAPT, USN (Ret)
Computer Architecture & Computer Engineering (CACE)
Advanced Computing Systems (ACS) Research Program
Laboratory for Physical Sciences (LPS)
443-654-7878
ke...@lps.umd.edu
Visiting Research Professor
Electrical and Computer Engineering
United States Naval Academy
r...@usna.edu


From: Wolfgang Schuster 
mailto:wolfgang.schuster.li...@gmail.com>>
Sent: Wednesday, September 9, 2020 1:57:36 AM
To: Rudd, Kevin mailto:ke...@lps.umd.edu>>
Cc: mailing list for ConTeXt users 
mailto:ntg-context@ntg.nl>>
Subject: Re: [NTG-context] problem embedding TABLE macros within wrapper macros 
"to reduce repetitive complexity")

Rudd, Kevin schrieb am 09.09.2020 um 00:30:
Thanks. The immediate goal is to make a �quad chart� w/ different pains in 
the four (2x2 => NW, NE, SW, SE) quadrants. It seemed that the concept was 
scalable to any NxM (even with multi-cell spreads---useful for larger 
structured posters) based on TABLE. But I'd settle for 2x2 at the moment; at 
one point I'd thought of 2x2+1 having a spanning block for publication 
references per slide but decided a separate publications slide was a better 
idea visualy..

If they have to see an end command, would before/after tags work around a 
framedtext or buffer structure?

1. 2x2 panes, layout order not important, all panes independent; no flow (like 
Framemaker used to do) requiredbetween panes.
2. was going to have inner frames (i.e. + frame for 2x2 which was trivial to 
specify in TABLE) to separate the panes
3. other than wanting the + frame, inner margins  for panes wsn't an issue 
either way.

When you need one than single block per line this definition

\define\startPaneRow{bTR\bTD}
\define\stopPaneRow{\eTD\eTR}

doesn't make sense because you limit yourself and after each table cell there 
is a new row.

While you can write code which moves your blocks around you should ask yourself 
the question is it worth it. When you have only two or three posters in this 
format use the extra commands for table rows and cells because it takes more 
time to write something which does the work.

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] About font combination in ConTeXt MKIV

2020-09-09 Thread MANUEL GONZALEZ SUAREZ
Dear friends:
Until now (TeXLive 2018), to write Spanish and ancient Greek in the same 
document, I used the "simplefonts" module, which is said in the wiki (ConTeXt 
Garden) that it is obsolete. What is the method to do this with TeXLive 2020? I 
try to combine one font for Spanish text (eg libertine) and another for ancient 
Greek (eg New Athena Unicode), but I don't know how to do it without the 
"simplefonts" module, and if I try to compile the document with the 
"simplefonts module", I have an error
Thank you.
Manuel González.
___
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] problem embedding TABLE macros within wrapper macros "to reduce repetitive complexity")

2020-09-09 Thread Rudd, Kevin
True. There is also a

 \define\continuePaneRow{\eTD\bTD}

definition as well for that reason but that wasn't necessary for the MWE to 
(fail while) embed(ing) TABLE elements in macros.

Is it the case that I can bundle at least the table setup commands to avoid 
some level of replication? Or is there a better way to creat the various table 
begin--end pairs that is cleaner?

Thanks,
---K

Kevin W. Rudd, Ph.D.
CAPT, USN (Ret)
Computer Architecture & Computer Engineering (CACE)
Advanced Computing Systems (ACS) Research Program
Laboratory for Physical Sciences (LPS)
443-654-7878
ke...@lps.umd.edu
Visiting Research Professor
Electrical and Computer Engineering
United States Naval Academy
r...@usna.edu


From: Wolfgang Schuster 
Sent: Wednesday, September 9, 2020 1:57:36 AM
To: Rudd, Kevin 
Cc: mailing list for ConTeXt users 
Subject: Re: [NTG-context] problem embedding TABLE macros within wrapper macros 
"to reduce repetitive complexity")

Rudd, Kevin schrieb am 09.09.2020 um 00:30:
Thanks. The immediate goal is to make a �quad chart� w/ different pains in 
the four (2x2 => NW, NE, SW, SE) quadrants. It seemed that the concept was 
scalable to any NxM (even with multi-cell spreads---useful for larger 
structured posters) based on TABLE. But I'd settle for 2x2 at the moment; at 
one point I'd thought of 2x2+1 having a spanning block for publication 
references per slide but decided a separate publications slide was a better 
idea visualy..

If they have to see an end command, would before/after tags work around a 
framedtext or buffer structure?

1. 2x2 panes, layout order not important, all panes independent; no flow (like 
Framemaker used to do) requiredbetween panes.
2. was going to have inner frames (i.e. + frame for 2x2 which was trivial to 
specify in TABLE) to separate the panes
3. other than wanting the + frame, inner margins  for panes wsn't an issue 
either way.

When you need one than single block per line this definition

\define\startPaneRow{bTR\bTD}
\define\stopPaneRow{\eTD\eTR}

doesn't make sense because you limit yourself and after each table cell there 
is a new row.

While you can write code which moves your blocks around you should ask yourself 
the question is it worth it. When you have only two or three posters in this 
format use the extra commands for table rows and cells because it takes more 
time to write something which does the work.

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] TeXlive 2020 / Gentoo Linux: ConTeXt does not find itself (sort of)...]

2020-09-09 Thread Matthijs van der Wild
If I compare /usr/share/texmf-dist/web2c/texmfconf.lua with its counterpart
in Arch Linux, I found the differences in the following entries:

Gentoo:

> TEXMFSYSVAR = "selfautoparent:texmf-var",
> TEXMFOS = "selfautodir:",
> TEXMFDIST   = "selfautoparent:texmf-dist",
> TEXMFSYSCONFIG  = "selfautoparent:texmf-config",
>

Arch:

> TEXMFSYSVAR = "/var/lib/texmf",
> TEXMFOS = "selfautodir:share",
> TEXMFDIST   = "selfautodir:share/texmf-dist",
> TEXMFSYSCONFIG  = "/etc/texmf",
>

Changing the Gentoo file to its Arch equivalent fixes the issue after
running "mtxrun --generate". There may actually be a reason why this
configuration is different in Gentoo compared to Arch, but I haven't had
the time yet to look into it further.

On Sat, 5 Sep 2020 at 13:27,  wrote:

> Hi,
>
> this is my first post to this mailinglist. I am no native speaker...
> if something sound somehow ... I will try to give my best ;)
>
>
> I am using GENTOO Linux, which compiles everything on the target
> instead of pulling ready compiled, binary packages into the system.
>
> I did a fresh install of Texlive 2020 via the package-manager
> "emerge". On Gentoo this is handled via a "virtual package", which
> can be configured beforehand to include or exclude certain parts.
>
> I choose to get the HUGE package (incluing LaTeX, ConTeXt, plainTeX
> and others).
>
> After the installation I tried to typeset examples of a LaTeX- and
> a plain TeX document, which works out of the box.
>
> Then I tried a ConTeXt document and it fails:
>
> context somefile.tex
>
> gave me:
>
> mtxrun  | unknown script 'context.lua' or 'mtx-context.lua'
>
> .
>
> While searching the internet I found, that one has to run
>
> mtxrun --generate
>
> in advance.
>
> Doing so mtxrun starts to index my whole harddisk starting with
> my $HOME, from which I started it.
>
> It reports A LOT of "confusing file"s
>
> I searched the installed TeXlive installation for context.lua
> and mtx-context.lua -- they were installed and not "totally" missing.
>
> So I tried/guessed to run
>
> mtxrun --generate /usr/share/texmf-dist /usr/share/texlive-site
>
> and the file under $HOME were no longer indexed.
>
> context somefile.tex
>
> gave me the above mentioned error still, though.
>
> It "feels" like context does not respect setting made via
> the configuration settings under /etc/texmf...
>
> So I "hacked" (really, it was a crude hack/idea...nothing
> more) TEXMF and inserted
>
> export TEXMF=/usr/share/texmf-dist:/usr/share/texlive-site
>
> into my shells RC-file, restarted the shell and
>
> now
>
> context somefile.tex
>
> "worked"...:
>
> Each time it seems to re-index parts of ???, reports a lot
> of "confusing file"s but creates a valid looking pdf.
>
> I think, the package setup provided by GENTOO has a problem
> I want to help to fix that...but I have no clue, what the
> real culprit is here...
>
> Setting TEXMF this way feels like a random and accidentally
> working hack and I already feel the next problem raising up
> at the horizon...
>
> Some additional problems:
>
> tlmgr does not work
>
> mtxrun partially does not find its own modules
>
> mtxrun --variables
>
> lists a LOT of unset environment variables
>
> ...
>
> It looks like some basic and fundamental "initial" environment
> variable is missing.
>
> But I need a knowledgeable guru before I am able to get nearer
> to the root of the culprit.
>
> Thank you very much in advance for any help offered!
>
> \cheers
> Meino
>
> ___
> 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] Access violation

2020-09-09 Thread Christoph Reller
Dear developers,

I am using ConTeXt LMTX version 2020.09.05 21:18 on Windows 46bit.

I have a large project for which I can reproduce an access violation:
mtx-context | fatal error: return code: -1073741819
Unfortunately, the error vanishes as soon as I alter any detail in the
project's source code.

The access violation happens always at the same location. I have produced a
log file for which I have enabled \tracingall just before the error
happens. I suspect that the error is triggered due to tagging information
written to the PDF (\setuptagging[state=start]), because disabling tagging
prevents the error. The log file (as a ZIP archive) is here
.
Does this help or do you really need a MWE?

Kind regards
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] Input file name containing full stop "."

2020-09-09 Thread Marco Patzer
On Wed, 9 Sep 2020 10:56:09 +0200
Christoph Reller  wrote:

> I am using ConTeXt LMTX Version 2020.09.05 21:18 with an input file
> named, e.g., "test.test.tex". When compiling, ConTeXt generates files
> "test.log", "test.tua", "test.pdf".
> 
> ConTeXt MKIV used to produce files "test.test.log", "test.test.tua",
> "test.test.pdf".

Same issue here. (BTW: That's the main reason I'm still on MkIV.)

  https://mailman.ntg.nl/pipermail/ntg-context/2020/098260.html

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] styling individual parts of ToC entry

2020-09-09 Thread jbf
Thanks. Just two clarifications (also noting that I altered 'forword' in 
yours to 'foreword' in mine in every instance, just to get the spelling 
right):


1. Compiling your example just as it is below produces a result like:

[foreword: – – 2]Chapter 1 Chapter 1
   A. u. thor  3

We obviously should not be getting [foreword: --2] in our result, nor a 
doubling up of Chapter 1


2. Where do I stand now with the earlier definition  (I mean the 
\define[3]\ChapterListCommand. Is that still used? Including its 
\setuplist part? What you have just given me now makes no reference to 
\ChapterListCommand, so perhaps it is no longer relevant?


Julian





On 9/9/20 5:10 pm, Wolfgang Schuster wrote:

jbf schrieb am 09.09.2020 um 08:04:
Have to confess I am still not getting far with the final problem in 
a book that is now fully laid out: frontmatter through to appendices 
is all correct and working, but the Table of Contents not the way I 
need it (as explained earlier and listed in a previous email).


My latest effort focuses on just one item, the Foreword, since if I 
get that right, I can apply the same logic to sections. Chapters are 
already working correctly, thanks to Wolfgang's ChapterListCommand 
and I am assuming I need that for the several frontmatter 'chapters'.


I was earlier using \title for foreword, preface and notes to 
contributors, but have abandoned that as complicating things, and am 
now using \chapter, since it does not produce a numbered item - 
however, it is producing the label 'Chapter' which I don't want for 
these item. You can see below how I tried to avoid that, but it 
failed. My MWE addition to what Wolfgang provided is:


\definehead [foreword] [chapter]

\setuphead [foreword]

\setuplist [foreword]
  [label=foreword,
  alternative=command,
  command=\ChapterListCommand]% definition not included here. It was 
given in an earlier response from Wolfgang.


 And in the frontmatter itself:

\startchapter[foreword][title={\ss Foreword}][author={A. Uthor}]

..


You can set the forword string as labeltext and ignore the title (but 
use a empty argument when set userdata like the author).


\definehead
  [forword] [chapter]

\setuplabeltext
  [en]
  [forword=Forword,
   chapter=Chapter ]

\setuphead
  [forword]
  [frontpartlabel=forword,
   conversion=empty]

\setupsectionblock
  [frontpart]
  [number=yes]

\setuplist
  [forword]
  [label=forword,
   width=2cm]

\setuplist
  [chapter]
  [label=chapter,
   width=2cm]

\starttext

\startfrontmatter

\placelist [chapter,forword]

\startforword [] [author={A. u. thor}] \stopforword

\stopfrontmatter

\startbodymatter

\startchapter [title=Chapter 1] [author={A. u. thor}] \stopchapter

\stopbodymatter

\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] Input file name containing full stop "."

2020-09-09 Thread Christoph Reller
Dear list,

I am using ConTeXt LMTX Version 2020.09.05 21:18 with an input file named,
e.g., "test.test.tex". When compiling, ConTeXt generates files "test.log",
"test.tua", "test.pdf".

ConTeXt MKIV used to produce files "test.test.log", "test.test.tua",
"test.test.pdf".

Is there a way for ConTeXt LMTX to process input files that contain full
stops consistently? I am aware of the "--result=..." option, but what about
the "...tua", "...log" and synctex files? This is a serious problem when
running multiple compilations in parallel, e.g., on "test.a.tex" and
"test.b.tex", because both processes use the same "test.tua" file.

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
___


Re: [NTG-context] styling individual parts of ToC entry

2020-09-09 Thread Wolfgang Schuster

jbf schrieb am 09.09.2020 um 08:04:
Have to confess I am still not getting far with the final problem in a 
book that is now fully laid out: frontmatter through to appendices is 
all correct and working, but the Table of Contents not the way I need it 
(as explained earlier and listed in a previous email).


My latest effort focuses on just one item, the Foreword, since if I get 
that right, I can apply the same logic to sections. Chapters are already 
working correctly, thanks to Wolfgang's ChapterListCommand and I am 
assuming I need that for the several frontmatter 'chapters'.


I was earlier using \title for foreword, preface and notes to 
contributors, but have abandoned that as complicating things, and am now 
using \chapter, since it does not produce a numbered item - however, it 
is producing the label 'Chapter' which I don't want for these item. You 
can see below how I tried to avoid that, but it failed. My MWE addition 
to what Wolfgang provided is:


\definehead [foreword] [chapter]

\setuphead [foreword]

\setuplist [foreword]
  [label=foreword,
  alternative=command,
  command=\ChapterListCommand]% definition not included here. It was 
given in an earlier response from Wolfgang.


 And in the frontmatter itself:

\startchapter[foreword][title={\ss Foreword}][author={A. Uthor}]

..


You can set the forword string as labeltext and ignore the title (but 
use a empty argument when set userdata like the author).


\definehead
  [forword] [chapter]

\setuplabeltext
  [en]
  [forword=Forword,
   chapter=Chapter ]

\setuphead
  [forword]
  [frontpartlabel=forword,
   conversion=empty]

\setupsectionblock
  [frontpart]
  [number=yes]

\setuplist
  [forword]
  [label=forword,
   width=2cm]

\setuplist
  [chapter]
  [label=chapter,
   width=2cm]

\starttext

\startfrontmatter

\placelist [chapter,forword]

\startforword [] [author={A. u. thor}] \stopforword

\stopfrontmatter

\startbodymatter

\startchapter [title=Chapter 1] [author={A. u. thor}] \stopchapter

\stopbodymatter

\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] styling individual parts of ToC entry

2020-09-09 Thread jbf
Have to confess I am still not getting far with the final problem in a 
book that is now fully laid out: frontmatter through to appendices is 
all correct and working, but the Table of Contents not the way I need it 
(as explained earlier and listed in a previous email).


My latest effort focuses on just one item, the Foreword, since if I get 
that right, I can apply the same logic to sections. Chapters are already 
working correctly, thanks to Wolfgang's ChapterListCommand and I am 
assuming I need that for the several frontmatter 'chapters'.


I was earlier using \title for foreword, preface and notes to 
contributors, but have abandoned that as complicating things, and am now 
using \chapter, since it does not produce a numbered item - however, it 
is producing the label 'Chapter' which I don't want for these item. You 
can see below how I tried to avoid that, but it failed. My MWE addition 
to what Wolfgang provided is:


\definehead [foreword] [chapter]

\setuphead [foreword]

\setuplist [foreword]
 [label=foreword,
 alternative=command,
 command=\ChapterListCommand]% definition not included here. It was 
given in an earlier response from Wolfgang.


 And in the frontmatter itself:

\startchapter[foreword][title={\ss Foreword}][author={A. Uthor}]

..

Of course, even if it did work, given the ChapterListCommand, it would 
probably put the author on a line below Foreword, instead of on the same 
line. There are four different components in the ToC, all needing to be 
arranged a bit differently, which is why I haven't got my head around 
what I need to do. They are:


(1) Foreword    author name

(2) Chapter no.   Title

  author name

(3) Chapter no.   Title 1

    Title 2 or subtitle

  author name

(4) Chapter no.   Title

   Section

  author name

Julian




On 7/9/20 4:57 pm, Wolfgang Schuster wrote:

jbf schrieb am 07.09.2020 um 01:31:


Yes, Wolfgang, that corrects the minor problem of including the 
author name correctly, even when there is no year range. Thank you.


But since I use \title, not \chapter, for the frontmatter items, ( 
Foreword, Preface, A note on Contributors), the ChapterListCommand 
clearly does not apply, so currently my ToC looks as follows (leaving 
out the pg numbers which correctly align right):



                 Foreword
                 A. Uthor
                        Preface
                 A. Uthor
                         A note on contributors
Chapter One        Year range
                A. Uthor

What I want is for 'Foreword', 'Preface' and 'A note on Contributors' 
to align flushleft with Chapter One, but with author names still 
where they should be (Foreword and Preface have authors, 'A note...' 
does not have an author).


So I tried creating a TitleListCommand which copies the 
ChapterListCommand. But where I run into difficulties then is with a 
new lot of \setuplist to accommodate that. There are three different 
labels involved (Foreword, Preface, and A note on Contributors).


And why is it that even with the current setup, 'Foreword' has 
aligned with author name, not with 'Preface' and 'A note...'? All 
three are \title, after all.


All in all this is a most complicated ToC! What I need is for the ToC 
to look like I show it below, and you will note the additional 
complication of Chapter Two which does not have an author, but 
instead it is the SECTIONS in the Chapter that have authors!


I'm sure if I can get on top of all this somehow, no future ToC is 
ever going to cause me problems! The body of the book is all looking 
good, all 300 pages of it. It is just the automatically produced ToC 
that is causing the headaches.


Foreword                   A. Uthor    pg no.
Preface                 A. Uthor   "
A note on Contributors "
Chapter One     Chapter Title
                      A. Uthor  "
Chapter Two Chapter title
A section  Context
  A. Uthor "
Another section    Reflection
  A. Author   "

So what I have below as an MWE is fundamentally what you gave me (I 
have left out the correctly working ChapterListCommand), altered for 
\title, but I haven't got the setups below correct because I don't 
know how to do it. I have replaced unknowns with a question mark!


And at the moment I have nothing for the 'sections' with authors I 
need for Chapter Two. I assume I would set up a third definition 
called \SectionListCommand. Sections will have different labels too - 
one will be called 'Context', the other 'Reflection'.


\define[3]\TitleListCommand
  {\hbox\bgroup
 \hbox to 3cm{\currentlistsymbol\hss}% number + labeltext
 \vtop\bgroup
   \hsize\dimexpr\makeupwidth-3cm\relax