Re: [NTG-context] natural tables and columndistance/spaceinbetween

2015-12-02 Thread Alan BRASLAU
On Mon, 30 Nov 2015 13:23:28 +0100
Wolfgang Schuster  wrote:

> You can use the boffset key to set a different offset value for the
> bottom of the cell.
> 
> The correct the position of the frame at the bottom you can use
> metapost to draw the frame as background graphic.

Thanks Wolfgang.

boffset (or toffset) works to offset the text in an individual cell.
But when using background=color,backgroundcolor=lightgray (for example),
this offset of course gets colored.

I now have tried

\bTABLE
  [option=stretch,
   background=color,
   backgroundcolor=middlegray,
   columndistance=.25em,
   frame=off]
  ...
  \bTR
[topframe=on,framecolor=white,rulethickness=.25em]
...
  \eTR
  ...
\eTABLE

with success.

Note, however, if I move the settings to
  \bTABLE [framecolor=white,rulethickness=.25em,...]
this will then interfere and wipe-out the columndistance=.25em setting!

I can get it to work (with a subtly different result) if I use:
  \bTABLE [rulethickness=.25em,columndistance=.5em]
...
\bTR [topframe=on,framecolor=white]
  ...
\eTR
...
  \eTABLE
and this makes sense (since the calculation of cell widths must take
into account all of rulethickness, offset, and columndistance) but it
is somewhat counter-intuitive.

I'll wiki-fy this...

Alan
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] natural tables and columndistance/spaceinbetween

2015-12-02 Thread Wolfgang Schuster

Alan BRASLAU 
2. Dezember 2015 um 17:25
On Mon, 30 Nov 2015 13:23:28 +0100

Thanks Wolfgang.

boffset (or toffset) works to offset the text in an individual cell.
But when using background=color,backgroundcolor=lightgray (for example),
this offset of course gets colored.
You can take care of this when you use metapost to draw the frame and 
background.


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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Fill up "bottom" space of page with some content

2015-12-02 Thread josephcanedo
Dear all,


I wondered if there was a way to fill up the bottom of the page with some 
content (an image, some decorative pattern …) to avoid large blank space in 
page (given some limits, ie more than 2 lines of space is left blank).


By bottom of page I mean remaining space that could have been filled with text 
but given there was a page break it’s left blank. I saw some similar posts 
(relative to Fleuron) but the difficulty is that the amount of remaining space 
in the page is not easy to calculate, for example when having graphics, large 
drop caps that trigger a page break.


Hoping my question is clear enough.


Thanks for any hint


Best regards


Joseph Canedo___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Upgrade to 2015.11.19 breaks OTF reader?

2015-12-02 Thread Thangalin
The answer from a SE question has provided a little light:

http://tex.stackexchange.com/q/274582/2148

Directories listed in OSFONTDIR are not recursively scanned for font
files. That's a bit inconvenient. I borrowed from the answer in that
question to do the following:

rm -rf $HOME/.fonts
mkdir $HOME/.fonts
cd $HOME/.fonts
for i in $(echo $OSFONTDIR | sed -e 's/:/ /g') ; do for j in $(find $i
-type f); do ln -s $j .; done; done

The last line creates a symbolic link to every font file specified by
OSFONTDIR. This is means that adding new fonts requires re-linking
them to $HOME/.fonts.

After that, I set OSFONTDIR as follows in $HOME/.bashrc:

OSFONTDIR=$HOME/.fonts

Then:

mtxrun --script fonts --reload

After that, ConTeXT produced the PDF for the MWE at the start of this thread.

How can OSFONTDIR be recursed again?

FWIW, I tried:

OSFONTDIR=/usr/share/fonts//:/usr/local/share/fonts//:/usr/share/texmf/fonts/opentype//:/usr/share/fonts/type1/gsfonts//

That didn't work, either.
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Upgrade to 2015.11.19 breaks OTF reader?

2015-12-02 Thread Thangalin
Hi.

Installation: 
http://wiki.contextgarden.net/Ubuntu#With_ConTeXt_Standalone_.E2.80.93_should_work_with_all_Ubuntu_versions

Font (OTF): https://www.google.com/fonts/specimen/Source+Sans+Pro

= MWE (test.tex) =
\definefont[VersionFont][name:sourcesanspro]

\starttext
  \VersionFont
  Hello, World
\stoptext
= EOF =

= LOG FILE (test.log) =
system  > callbacks > not registering frozen 'find_format_file'

open source > 1 > 1 >
/usr/local/context/tex/texmf-context/tex/context/base/cont-yes.mkiv

ConTeXt  ver: 2015.11.19 19:13 MKIV beta  fmt: 2015.12.2  int: english/english

system  > 'cont-new.mkiv' loaded
open source > 2 > 2 >
/usr/local/context/tex/texmf-context/tex/context/base/cont-new.mkiv
close source> 2 > 2 >
/usr/local/context/tex/texmf-context/tex/context/base/cont-new.mkiv
system  > files > jobname 'test', input './test', result 'test'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > 2 > 3 > /tmp/test.tex
fonts   > preloading latin modern fonts (second stage)
fonts   > 'fallback modern-designsize rm 12pt' is loaded
fonts   > defining > source file 'SourceSansPro-Regular.ttf'
is not found
backend > xmp > using file
'/usr/local/context/tex/texmf-context/tex/context/base/lpdf-pdx.xml'
pages   > flushing realpage 1, userpage 1
close source> 2 > 3 > /tmp/test.tex
close source> 1 > 3 >
/usr/local/context/tex/texmf-context/tex/context/base/cont-yes.mkiv

!LuaTeX error: cannot find OpenType font file for reading ()
 ==> Fatal error occurred, no output PDF file produced!
= EOF =

= MTXRUN =
$ mtxrun --script fonts --list -all sourcesanspro

sourcesanspro   sourcesansprosemiboldit
/usr/local/share/fonts/google/s/SourceSansPro-SemiboldItalic.ttf
= EOT =

I also noticed that there's a luatex-cache directory in $HOME, which
is strongly undesirable. (It should be $HOME/.luatex-cache, or reside
under /var/.)

Any ideas on why the font cannot be found? This was working until I
upgraded ConTeXt last night.

Thank you.
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Upgrade to 2015.11.19 breaks OTF reader?

2015-12-02 Thread Thangalin
$ locate -i sourcesanspro
/home/.../luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/fonts/otl/sourcesanspro-regular.tma
/home/.../luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/fonts/otl/sourcesanspro-regular.tmc
/usr/local/share/fonts/google/s/SourceSansPro-Black.ttf
/usr/local/share/fonts/google/s/SourceSansPro-BlackItalic.ttf
/usr/local/share/fonts/google/s/SourceSansPro-Bold.ttf
/usr/local/share/fonts/google/s/SourceSansPro-BoldItalic.ttf
/usr/local/share/fonts/google/s/SourceSansPro-ExtraLight.ttf
/usr/local/share/fonts/google/s/SourceSansPro-ExtraLightItalic.ttf
/usr/local/share/fonts/google/s/SourceSansPro-Italic.ttf
/usr/local/share/fonts/google/s/SourceSansPro-Light.ttf
/usr/local/share/fonts/google/s/SourceSansPro-LightItalic.ttf
/usr/local/share/fonts/google/s/SourceSansPro-Regular.ttf
/usr/local/share/fonts/google/s/SourceSansPro-Semibold.ttf
/usr/local/share/fonts/google/s/SourceSansPro-SemiboldItalic.ttf

$ echo $OSFONTDIR
/home/.../.fonts:/usr/share/fonts:/usr/local/share/fonts:/usr/share/texmf/fonts/opentype:/usr/share/fonts/type1/gsfonts

The font is there, it's in the OSFONTDIR path.

Why isn't it found?

I've tried

   mtxrun --script fonts --reload

   luatools --generate

   context --reload

   context --generate

Further:

$ mtxrun --script fonts --list --all --pattern=sourcesans

sourcesanspro   sourcesansproregular
/usr/local/share/fonts/google/s/SourceSansPro-Regular.ttf
sourcesansproblack  sourcesansproblack
/usr/local/share/fonts/google/s/SourceSansPro-Black.ttf
sourcesansproblackitsourcesansproblackit
/usr/local/share/fonts/google/s/SourceSansPro-BlackItalic.ttf
sourcesansproblackitalicsourcesansproblackit
/usr/local/share/fonts/google/s/SourceSansPro-BlackItalic.ttf
sourcesansprobold   sourcesansprobold
/usr/local/share/fonts/google/s/SourceSansPro-Bold.ttf
sourcesansproboldit sourcesansproboldit
/usr/local/share/fonts/google/s/SourceSansPro-BoldItalic.ttf
sourcesansprobolditalic sourcesansproboldit
/usr/local/share/fonts/google/s/SourceSansPro-BoldItalic.ttf
sourcesansproextralight sourcesansproextralight
/usr/local/share/fonts/google/s/SourceSansPro-ExtraLight.ttf
sourcesansproextralightit   sourcesansproextralightit
/usr/local/share/fonts/google/s/SourceSansPro-ExtraLightItalic.ttf
sourcesansproextralightitalic   sourcesansproextralightit
/usr/local/share/fonts/google/s/SourceSansPro-ExtraLightItalic.ttf
sourcesansproit sourcesansproit
/usr/local/share/fonts/google/s/SourceSansPro-Italic.ttf
sourcesansproitalic sourcesansproit
/usr/local/share/fonts/google/s/SourceSansPro-Italic.ttf
sourcesansprolight  sourcesansprolight
/usr/local/share/fonts/google/s/SourceSansPro-Light.ttf
sourcesansprolightitsourcesansprolightit
/usr/local/share/fonts/google/s/SourceSansPro-LightItalic.ttf
sourcesansprolightitalicsourcesansprolightit
/usr/local/share/fonts/google/s/SourceSansPro-LightItalic.ttf
sourcesanspronormal sourcesansproregular
/usr/local/share/fonts/google/s/SourceSansPro-Regular.ttf
sourcesansproregularsourcesansproregular
/usr/local/share/fonts/google/s/SourceSansPro-Regular.ttf
sourcesansprosemibold   sourcesansprosemibold
/usr/local/share/fonts/google/s/SourceSansPro-Semibold.ttf
sourcesansprosemiboldit sourcesansprosemiboldit
/usr/local/share/fonts/google/s/SourceSansPro-SemiboldItalic.ttf
sourcesansprosemibolditalic sourcesansprosemiboldit
/usr/local/share/fonts/google/s/SourceSansPro-SemiboldItalic.ttf

Still not found.
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Reconciling unicode-math with LaTeX2e mathematics

2015-12-02 Thread Maggyero
Hans Hagen wrote:
> you need to be more explicit about the problems you encounter (minimal
examples for instance)

To be more precise (please see the enclosed P.D.F. file), I would like the
same font possibilities in ConTeXt math mode as shown in the following
table from Will Robertson's talk at 41 min 40 s for LaTeX unicode-math
package:

https://youtu.be/FW9Cwh9sj5w?t=2500

In both LaTeX and ConTeXt, we have two kinds of fonts:
— a text font: multi-letter words;
— a math font: single letter words.

In math mode, using LaTeX, text fonts can use both
— text spacing: $\textit{abc ffi}$ gives abc ffi;
— math spacing: $\mathit{abc ffi}$ gives abcffi.

In math mode, using LaTeX, math fonts can use only math spacing: $abc ffi$
gives abcffi.
($abc ffi$ is equivalent to $\symit{abc ffi}$—\symxx commands were
introduced in the 2015 update of the unicode-math package by Will
Robertson, allowing upright, slanted, bold, etc. math fonts with \symup,
\symsl \symbf, etc., respectively.)

However, in math mode, using ConTeXt, text fonts can use only TEXT spacing
(no MATH spacing commands): $\text{\it abc ffi}$ gives abc ffi. So this is
the FEATURE that needs to be added. I suggest that you implement a new set
of commands called \textxx for this (text fonts with MATH spacing in math
mode—please see the enclosed P.D.F. file).

As far as math fonts are concerned using ConTeXt in math mode, it's okay:
$\it{abc ffi}$ gives abcffi. But you should note that in the source of
ConTeXt you (Hans) introduced \mathit (and \mathup & \mathtf, \mathsl,
\mathbf, etc.) as an equivalent of \it (\tf, \sl, \bf, etc., respectively)
for "A.M.S. LaTeX compatibility", though in A.M.S. LaTeX the \mathxx
commands are not MATH fonts but TEXT fonts with math spacing (as pointed
out by Will Robertson in the very first seconds from 41 min 40 s of his
talk in the link above) so it not compatible (but that's fine since the
name \mathxx in A.M.S. LaTeX was not very well chosen in the first place
but thereafter kept for backward compatibility, so that in ConTeXt we can
keep it used for MATH fonts instead and introduce \textxx for TEXT fonts
with math spacing, as suggested in the previous paragraph).

Please see the enclosed P.D.F. file that sums everything up to understand
visually what I mean with the missing feature I request (adding new \textxx
commands for text fonts with MATH spacing in math mode), and let me know
what you think.


Maggyero


math_mode_fonts.pdf
Description: Adobe PDF document
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Reconciling unicode-math with LaTeX2e mathematics

2015-12-02 Thread Maggyero
Hans Hagen wrote:
> you need to be more explicit about the problems you encounter (minimal
examples for instance)

To be more precise (please see the enclosed P.D.F. file), I would like the
same font possibilities in ConTeXt math mode as shown in the following
table from Will Robertson's talk at 41 min 40 s for LaTeX unicode-math
package:

https://youtu.be/FW9Cwh9sj5w?t=2500

In both LaTeX and ConTeXt, we have two kinds of fonts:
— a text font: multi-letter words;
— a math font: single letter words.

In math mode, using LaTeX, text fonts can use both
— text spacing: $\textit{abc ffi}$ gives abc ffi;
— math spacing: $\mathit{abc ffi}$ gives abcffi.

In math mode, using LaTeX, math fonts can use only math spacing: $abc ffi$
gives abcffi.
($abc ffi$ is equivalent to $\symit{abc ffi}$—\symxx commands were
introduced in the 2015 update of the unicode-math package by Will
Robertson, allowing upright, slanted, bold, etc. math fonts with \symup,
\symsl \symbf, etc., respectively.)

However, in math mode, using ConTeXt, text fonts can use only TEXT spacing
(no MATH spacing commands): $\text{\it abc ffi}$ gives abc ffi. So this is
the FEATURE that needs to be added. I suggest that you implement a new set
of commands called \textxx for this (text fonts with MATH spacing in math
mode—please see the enclosed P.D.F. file).

As far as math fonts are concerned using ConTeXt in math mode, it's okay:
$\it{abc ffi}$ gives abcffi. But you should note that in the source of
ConTeXt you (Hans) introduced \mathit (and \mathup & \mathtf, \mathsl,
\mathbf, etc.) as an equivalent of \it (\tf, \sl, \bf, etc., respectively)
for "A.M.S. LaTeX compatibility", though in A.M.S. LaTeX the \mathxx
commands are not MATH fonts but TEXT fonts with math spacing (as pointed
out by Will Robertson in the very first seconds from 41 min 40 s of his
talk in the link above) so it not compatible (but that's fine since the
name \mathxx in A.M.S. LaTeX was not very well chosen in the first place
but thereafter kept for backward compatibility, so that in ConTeXt we can
keep it used for MATH fonts instead and introduce \textxx for TEXT fonts
with math spacing, as suggested in the previous paragraph).

Please see the enclosed P.D.F. file that sums everything up to understand
visually what I mean with the missing feature I request (adding new \textxx
commands for text fonts with MATH spacing in math mode), and let me know
what you think.


Maggyero


math_mode_fonts.pdf
Description: Adobe PDF document
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___