[NTG-context] Trouble with using predefined typescript files

2021-06-14 Thread mastermind_ x
Hello everyone,

I am reading the ConTexT manual’s chapter on Typography. I want to achieve a 
Palatino-like small font which is bolder than the default provided by ConTeXt 
like in some math textbooks. So I loaded the typescript files ie type-xxx 
stated in the chapter in turns no matter the type-xxx I load. I always got this 
in the log: 

fonts   > typescripts > unknown library 'xtx'
fonts   > typescripts > unknown library 'gyr'
selectfont  > the requested font 'palatino' has no files for the 'tf' 
alternative, Latin Modern is used instead.
selectfont  > the requested font 'palatino' has no files for the 'tf' 
alternative, Latin Modern is used instead.
selectfont  > the requested font 'palatino' has no files for the 'tf' 
alternative, Latin Modern is used instead.
selectfont  > the requested font 'palatino' has no files for the 'tf' 
alternative, Latin Modern is used instead.


\usetypescriptfile[type-xtx]
\usetypescriptfile[type-gyr]
\usetypescript[palatino][ec]
\definefontfamily [mainface] [rm] [palatino]
\definefontfamily [mainface] [ss] [palatino]
\definefontfamily [mainface] [mm] [palatino]
\definefontfamily [mainface] [tt] [palatino]
\setupbodyfont[mainface,11pt]

\starttext
Hello world!
\stoptext

What am I missing? Are these not available right from the box like the book 
said? These are ‘predefined typescripts’ as the book said after all. Thanks. I 
use MacOS if that helps
current version of ConTeXt: 2021.03.05 19:11

~Jethro
___
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] new upload

2021-06-14 Thread Pablo Rodriguez
On 6/14/21 5:22 PM, Hans Hagen wrote:
> On 6/14/2021 5:13 PM, Pablo Rodriguez wrote:
>> [...]
>> Sorry, but I have no idea about what I may be doing wrong (or whether
>> there is an issue here).
> The interface is evolving (so it's not meant for production ... it's
> what Thomas and i are exploring so it might change till it suits his needs).

Many thanks for your fast reply, Hans.

It would be great to have facing streams in ConTeXt.

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] [#1] CJK regression? | lmtx-20210613 .

2021-06-14 Thread Hans Hagen

On 6/13/2021 10:54 PM, Hans Hagen wrote:

On 6/13/2021 9:42 PM, Richard Mahoney wrote:

I'm wondering if there has been a regression in the rendering of
CJK recently? I'm attaching two screenshots from the same code:
one with lmtx-20210509 (correct); and the other lmtx-20210613
(incomplete).
no, it's a side effect of something else (which shows up with these 
extremeely large fonts > 65k glyphs) .. i'll look into it tomorrow
I uploaded a new lmtx ... kind of experimental because I changes some of 
the background bist that deals with embedding. The problem is that we 
need to deal with the previously reported clash between different 
unicode entries that share shapes (normally no issue but in this case it 
was a side effect of 'effective' monospaces where the font decided that 
invisible shapes should he visual anyway) as well as with the fact that 
soem cjk fonts have many duplicates which makes us cross the 65 boundary.


The variant approach is ok but I might have overlooked some soecial 
cases. Because this also drops 'stream compatibility' between mkiv and 
lmtx (which had already become somewhat loose) I can now also clean up 
(simplify) some other parts of the font system but let's do that 
stepwise (I'm in no hurry here).


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] new upload

2021-06-14 Thread Hans Hagen

On 6/14/2021 5:13 PM, Pablo Rodriguez wrote:

On 6/13/21 7:31 PM, Hans Hagen wrote:

Hi,

A few things

(1) Thomas and I picked up the facing floats thread. I will probably
remove the experimental code from mkiv and only work on the lmtx
implementation. The same can be true for streams.


Many thanks for the new latest, Hans.

I have compiled the sample from page-ffl.mkxl:

   \starttext
   \definefacingfloat
   [whatever]

   \setupfacingfloat
   [whatever]
   [style=bold,
width=frame,
offset=10pt,
color=white]

   \setupfacingfloat
   [whatever:left]
   [background=color,
backgroundcolor=red]

   \setupfacingfloat
   [whatever:right]
   [background=color,
backgroundcolor=green]

   \startfacingfloat[whatever]
 {\dorecurse{10}{\samplefile{tufte} }}
 {\dorecurse{10}{\samplefile{ward}  }}
 {\dorecurse{10}{\samplefile{tufte} }}
 {\dorecurse{10}{\samplefile{ward}  }}
   \stopfacingfloat

   \startfacingfloat[whatever]
 \startcontent \dorecurse{10}{\samplefile{tufte} } \stopcontent
 \startcontent \dorecurse{10}{\samplefile{ward}  } \stopcontent
 \startcontent \dorecurse{10}{\samplefile{tufte} } \stopcontent
 \startcontent \dorecurse{10}{\samplefile{ward}  } \stopcontent
   \stopfacingfloat


\flushfacingfloats


   \dorecurse{10}{\samplefile{sapolsky} }
   \stoptext

I’m afraid that the resulting PDF document only contains the text from
Sapolsky (no facing floats).

Sorry, but I have no idea about what I may be doing wrong (or whether
there is an issue here).
The interface is evolving (so it's not meant for production ... it's 
what Thomas and i are exploring so it might change till it suits his needs).


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] new upload

2021-06-14 Thread Pablo Rodriguez
On 6/13/21 7:31 PM, Hans Hagen wrote:
> Hi,
>
> A few things
>
> (1) Thomas and I picked up the facing floats thread. I will probably
> remove the experimental code from mkiv and only work on the lmtx
> implementation. The same can be true for streams.

Many thanks for the new latest, Hans.

I have compiled the sample from page-ffl.mkxl:

  \starttext
  \definefacingfloat
  [whatever]

  \setupfacingfloat
  [whatever]
  [style=bold,
   width=frame,
   offset=10pt,
   color=white]

  \setupfacingfloat
  [whatever:left]
  [background=color,
   backgroundcolor=red]

  \setupfacingfloat
  [whatever:right]
  [background=color,
   backgroundcolor=green]

  \startfacingfloat[whatever]
{\dorecurse{10}{\samplefile{tufte} }}
{\dorecurse{10}{\samplefile{ward}  }}
{\dorecurse{10}{\samplefile{tufte} }}
{\dorecurse{10}{\samplefile{ward}  }}
  \stopfacingfloat

  \startfacingfloat[whatever]
\startcontent \dorecurse{10}{\samplefile{tufte} } \stopcontent
\startcontent \dorecurse{10}{\samplefile{ward}  } \stopcontent
\startcontent \dorecurse{10}{\samplefile{tufte} } \stopcontent
\startcontent \dorecurse{10}{\samplefile{ward}  } \stopcontent
  \stopfacingfloat

  \dorecurse{10}{\samplefile{sapolsky} }
  \stoptext

I’m afraid that the resulting PDF document only contains the text from
Sapolsky (no facing floats).

Sorry, but I have no idea about what I may be doing wrong (or whether
there is an issue 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] \startplacetable[location=none] doesn't have a "Table X" label, but \startplacetable[location=force] does

2021-06-14 Thread Wolfgang Schuster
T. Kurt Bond  schrieb am Mo., 14. Juni 2021, 09:23:

> I've got three questions:
>
>1.
>
>I've got a document with some xtables. If I use
>\startplacetable[location=none] the tables *don't* have a "Table X"
>label, but they float and end up in locations where I don't want them. If I
>use \startplacetable[location=force] the tables *do* have a "Table X"
>label (which I don't want), but the tables *do* show up where I want
>them, that is, they don't float.
>
>How do I get rid of the "Table X" label when I use
>\startplacetable[location=force]?
>
>
\startplacetable [location={force,none}]

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] \startplacetable[location=none] doesn't have a "Table X" label, but \startplacetable[location=force] does

2021-06-14 Thread T. Kurt Bond
I've got three questions:

   1.

   I've got a document with some xtables. If I use
   \startplacetable[location=none] the tables *don't* have a "Table X"
   label, but they float and end up in locations where I don't want them. If I
   use \startplacetable[location=force] the tables *do* have a "Table X"
   label (which I don't want), but the tables *do* show up where I want
   them, that is, they don't float.

   How do I get rid of the "Table X" label when I use
   \startplacetable[location=force]?
   2.

   Also, when I constructed the example I used

   \startmode[locationforce]
   \startplacetable[location=force]
   \stopmode
   \startnotmode[locationforce]
   \startplacetable[location=none]
   \stopmode

   so I could build both outputs from the same input file. When the
   locationforce mode was *not* set the command finished with no errors,
   but when the locationforce mode *was* set the command finished with the
   error:

   tex error   > tex error on line 229 in file
./table-location-label-wrong.ctx: The file ended when scanning an
argument.

   however, when I used

   
\doifmodeelse{locationforce}{\startplacetable[location=force]}{\startplacetable[location=none]}

   instead, it worked fine.
   3.

   Even when I use the --noconsole option on my context invocation, there
   is a lot of information that is written to the console. It looks like the
   information is repeated for each run context makes over the file. Is there
   some way to get this information to show up in the log file, instead of on
   the console?

ConTeXt's version information:

ConTeXt  ver: 2021.06.13 19:21 LMTX  fmt: 2021.6.13  int: english/english.

I've attached my example (table-location-label.ctx), the GNUmakefile I use
to build it using --mode so that the same source produces both the version
with location=force and location=none, and the two PDF output files (
table-location-label-none.pdf and table-location-label-force.pdf).

I've also attached the version where I tried to use \startmode/\startnotmode
 (table-location-label-wrong.ctx).

-- 
T. Kurt Bond, tkurtb...@gmail.com, https://tkurtbond.github.io


table-location-label-force.pdf
Description: Adobe PDF document


table-location-label-none.pdf
Description: Adobe PDF document


table-location-label-wrong.ctx
Description: Binary data


table-location-label.ctx
Description: Binary data
___
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
___