Re: [NTG-context] The requested font has no files for the 'tf' alternative

2017-03-09 Thread Vladimir Lomov
Hello
** Marco Patzer [2017-03-09 10:33:34 +0100]:

> Hi!
> 
> I run into a problem using some fonts. Latin Modern is used instead
> and ConTeXt displays:
> 
>   selectfont > The requested font 'Caecilia LT Std Roman' has no files for 
> the 'tf' alternative, Latin Modern is used instead.
> 
> Example:
> 
> \definefontfamily
>   [mainface]
>   [rm]
>   [Caecilia LT Std Roman]
>   %% doesn't work, either
>   %% [tf=file:CaeciliaLTStd-Roman.otf]
> 
> \setupbodyfont [mainface]
> 
> \starttext
>   %% \definedfont [name:CaeciliaLTStd-Roman] %% this works
>   \input knuth
> \stoptext
> 
> The font is in the database:
> 
>   mtxrun -script fonts -list -all caecilia
> 
> This happens with other fonts too, not only Caecilia. Some fonts
> work, others don't. Couldn't find anything on the list, so I might
> be doing something wrong here. What's the issue here?
> 
> context: 2017.03.02 22:23
> 
> Marco

Some time ago I faced the same problem: I tried to use one of Microsoft
font but it didn't work, the only thing I saw in log was the same
message. I solved the problem by deleting "font cache"
  luatex-cache/context/HASH/fonts
and generating it again
  mtxrun --script fonts --reload --force
(may be with '--force' option you may not delete the "cache" but it
didn't hurt anyway).

Hope this will help you.

---
WBR, Vladimir Lomov

-- 
This is Jim Rockford.
At the tone leave your name and message; I'll get back to you.

This is Maria, Liberty Bail Bonds.  Your client, Todd Lieman, skipped and
his bail is forfeit.  That's the pink slip on your '74 Firebird, I believe.
Sorry, Jim, bring it on over.

This is Marilyn Reed, I wanta talk to you...  Is this a machine?  I don't
talk to machines!  [Click]
-- "The Rockford Files"
___
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] display current section number in \writestatus

2017-03-09 Thread Rik Kabel

On 2017-03-09 16:20, Hans Hagen wrote:

On 3/9/2017 4:39 AM, Rik Kabel wrote:

ConTeXters,

What is the best way to get the current section number in a basic format
(pt.ch.s.ss... as displayed in the log in structure sectioning entries)
for display in a custom log entry (via \writestatus)? I have tried
\fullheadnumber and such, but cannot find something appropriate.


\writestatus{!!}{\getfullstructurenumber{\thenamedheadlevel{subsection}}} 





Nope. With commands like these:

   \starttexdefinition LogNote #NOTETEXT
   
\writestatus{Note}{{\getfullstructurenumber{\thenamedheadlevel{section}}:p.\pagenumber}
   #NOTETEXT}
   \stoptexdefinition

   \LogNote{See http://www.thelatinlibrary.com/ter.eunuchus.html for
   the original.}

and the note is in a section, I get:

   Note> {\oldstylenumerals {1}\color
   [red]{A·}\oldstylenumerals {8}:p.19} See
   http://www.thelatinlibrary.com/ter.eunuchus.html for the original.


which reflects the formatting of the chapter and section numbers. But 
worse, I have to track the section depth, because if the note is at a 
different level there is nothing displayed for the sectioning. I want 
the unformatted numbers as displayed in


   structure   > sectioning > section @ level 3 : 1.3.5 -> Group
   authorship and works for hire


and if I do not have to track the level and recurse to pick up each 
component that would be better.


--
Rik
___
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] display current section number in \writestatus

2017-03-09 Thread Hans Hagen

On 3/9/2017 4:39 AM, Rik Kabel wrote:

ConTeXters,

What is the best way to get the current section number in a basic format
(pt.ch.s.ss... as displayed in the log in structure sectioning entries)
for display in a custom log entry (via \writestatus)? I have tried
\fullheadnumber and such, but cannot find something appropriate.


\writestatus{!!}{\getfullstructurenumber{\thenamedheadlevel{subsection}}}



--

-
  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] The requested font has no files for the 'tf' alternative

2017-03-09 Thread Marco Patzer
Hi!

I run into a problem using some fonts. Latin Modern is used instead
and ConTeXt displays:

  selectfont > The requested font 'Caecilia LT Std Roman' has no files for the 
'tf' alternative, Latin Modern is used instead.

Example:

\definefontfamily
  [mainface]
  [rm]
  [Caecilia LT Std Roman]
  %% doesn't work, either
  %% [tf=file:CaeciliaLTStd-Roman.otf]

\setupbodyfont [mainface]

\starttext
  %% \definedfont [name:CaeciliaLTStd-Roman] %% this works
  \input knuth
\stoptext

The font is in the database:

  mtxrun -script fonts -list -all caecilia

This happens with other fonts too, not only Caecilia. Some fonts
work, others don't. Couldn't find anything on the list, so I might
be doing something wrong here. What's the issue here?

context: 2017.03.02 22:23

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] Bug in Natural Tables

2017-03-09 Thread Hans Hagen

On 3/8/2017 5:46 PM, Thomas A. Schmitz wrote:

On 03/08/2017 03:47 PM, Henri Menke wrote:

No, this is Natural Tables.  The macros I am using are defined in
tabl-nte.mkiv and the header there states


You're right, I was too fast with my response.



Nevertheless, as you requested, here the same bug with the traditional
Natural Table macros:


I didn't request anything, but there seems to be a real bug. Here's my
code:

\setuppapersize [A4,landscape]

\starttext

\setupTABLE [row] [each] [align={lohi,middle}]
\setupTABLE [column] [1] [width=5cm]
\setupTABLE [column] [2] [width=2cm]
\setupTABLE [column] [3] [width=2cm]
\setupTABLE [column] [4] [width=2cm]
\setupTABLE [column] [5] [width=2cm]
\setupTABLE [column] [6] [width=2cm]
\setupTABLE [column] [7] [width=2cm]

\bTABLE
\bTR \bTD 1 \eTD \bTD 2 \eTD \bTD 3 \eTD \bTD 4 \eTD \bTD 5 \eTD \bTD 6
\eTD \bTD 7 \eTD \eTR
\bTR \bTD OSI-Schicht  \eTD \bTD[nc=6] Umsetzung \eTD \eTR
\bTR \bTD Anwendungsschicht\eTD \bTD[nc=2,nr=3] SOME/I\eTD
\bTD[nc=2,nr=3] AVB/TSN\eTD \bTD[nc=2,nr=3] DoIP \eTD \eTR
\bTR \bTD  Darstellungsschicht   \eTD  \eTR
\bTR \bTD  Sitzungsschicht   \eTD  \eTR
\bTR \bTD Transportschicht \eTD \bTD[nc=3] TCP\eTD \bTD[nc=3] UDP
\eTD \eTR
\bTR \bTD Vermittlungsschicht  \eTD \bTD[nc=3] IPv4\eTD \bTD[nc=3] IPv6
\eTD \eTR
\bTR \bTD Sicherungsschicht\eTD \bTD[nc=6] Ethernet \eTD \eTR
\bTR \bTD Bitübertragungsschicht \eTD \bTD[nc=2] 100BASE-TX\eTD
\bTD[nc=2] 100BASE-T\eTD \bTD[nc=2] 1000BASE-T \eTD \eTR
\eTABLE

\stoptext

If I comment out the first table row, the table is out of whack. Same if
I do not define the width of columns explicitly. So something is not
quite right here.


Fixing this will break something else (which is why i don't want to 
touch the code)


What works is adding a first row:

\bTR[height=0pt,offset=overlay,frame=off] \dorecurse{7}{\bTD\eTD} \eTR

makes me wonder if that should be an option but it needs testing.

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
___