Re: [NTG-context] the new simplefonts stuff

2014-09-04 Thread Sandra Snan
Thank you so much for your help, guys!

On Thu, 4 Sep 2014 00:21:22 +0200, Wolfgang Schuster 
schuster.wolfg...@gmail.com wrote:
 Am 03.09.2014 um 21:40 schrieb Joshua Krämer joshua.krae...@gmail.com:
[...]
  The only name which works in ConTeXt is the family name (which can be
  seen in FontForge): Swis721 BT, note the single s.  However, this
  name is *not* shown in the mtxrun output.

Something I realized as I was messing around waiting for fontforge to
install is that, at least for fonts that come with *.afm metric files
and *.pfb files,, you can look at them for some info. Looking at
ubkl8a.afm I see:

ellen% grep Name /usr/share/fonts/type1/texlive-fonts-recommended/ubkl8a.afm
FontName URWBookmanL-Ligh
FullName URW Bookman L Light
FamilyName URW Bookman L

The same info is similarly ascii-encoded in the pfb file. But when
fontforge had installed (I needed it to look at the otf and ttf fonts in
my example) I double checked and found the same info.

 
 The family name is shown when you use the info option, e.g.
 
 mtxrun --script font --list --info --all texgyrepagella*

This was one of the first things I tried.

ellen% mtxrun --script fonts  --info --list --all 
--pattern='bookmanlligh$'|grep name
mtx-fonts   | fontname: urwbookmanlligh
mtx-fonts   | fullname: urwbookmanlligh
mtx-fonts   | filename: ubkl8a.afm

Not really any of the same names even though it finds the same file.

I don't have Macintosh but in Inkscape the name shows up as URW Bookman
L and the font works there. I have Debian.

ellen% context --version|grep version
mtx-context | current version: 2014.05.21 22:04

I guess I'm missing something that will in hindsight look obvious...

Sandra

Example follows.

% Uncomment one of the \definefontfamily lines.

%% Just as a test for \definefontfamily, which works, text shows up in
%% DejaVu Serif which is a ttf font.
% \definefontfamily [five] [serif] [DejaVu Serif]

%% This is what fontforge reports as the family name for
%% Baskervaldx-Reg. It works for me, text shows up in Baskervaldx, which
%% is an otf font.
% \definefontfamily [five] [serif] [Baskervaldx]

%% Fontforge called this the ``name for humans'', it didn't fly, text didn't 
show up:
% \definefontfamily [five] [serif] [Baskervaldx Regular]

%% This is straight out of the manual, works, text shows up bookman.
%% Wanted this look, but with \definefontfamily.
% \definetypeface [five] [rm] [serif] [bookman]

%% None of these worked. Text doesn't show up at all.
% \definefontfamily [five] [rm] [URW Bookman L Light]
% \definefontfamily [five] [rm] [urwbookmanlligh]
% \definefontfamily [five] [rm] [URWBookmanL-Ligh]
% \definefontfamily [five] [rm] [URW Bookman L]

\setupbodyfont [five]
\starttext
Hello, snow! Won't you go, and return in december?
\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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Multi-page centered natural TABLE

2014-09-04 Thread Christoph Reller
 Am 25.08.2014 um 15:38 schrieb Christoph Reller 
christoph.rel...@gmail.com:

  Hi!
 
  How do I use a natural table to produce a table which is both:
  - distributed across multiple pages (split=yes) and
  - centered horizontally on each page.
 

 You have to use the float mechanism. To disable the caption and number
you can use the ?none?
 keyword and to split the table at page breaks use the ?split? keyword.
There is no need to set
 ?split=yes? for the table unless you want to repeat the header which
requires ?split=repeat?.

 \starttext
 \startplacetable[location={none,split}]
   \bTABLE
 \dorecurse{40}{\bTR\bTD Foo \eTD\bTD Text. \eTD\eTR}
   \eTABLE
 \stopplacetable
 \stoptext

 Wolfgang

Thank you Wolfgang for this tip. Could you please explain why the following
is not working:

\starttext
\definefloat[inlinetable][inlinetables][table]
\setupfloat[inlinetable][location={none,split}]
\startplaceinlinetable
  \bTABLE
\dorecurse{40}{\bTR\bTD Foo \eTD\bTD Text. \eTD\eTR}
  \eTABLE
\stopplaceinlinetable
\stoptext

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

Re: [NTG-context] Multi-page centered natural TABLE

2014-09-04 Thread Wolfgang Schuster

Am 04.09.2014 um 11:10 schrieb Christoph Reller christoph.rel...@gmail.com:

  Am 25.08.2014 um 15:38 schrieb Christoph Reller 
  christoph.rel...@gmail.com:
  
   Hi!
  
   How do I use a natural table to produce a table which is both:
   - distributed across multiple pages (split=yes) and
   - centered horizontally on each page.
  
  
  You have to use the float mechanism. To disable the caption and number you 
  can use the ?none?
  keyword and to split the table at page breaks use the ?split? keyword. 
  There is no need to set
  ?split=yes? for the table unless you want to repeat the header which 
  requires ?split=repeat?.
  
  \starttext
  \startplacetable[location={none,split}]
\bTABLE
  \dorecurse{40}{\bTR\bTD Foo \eTD\bTD Text. \eTD\eTR}
\eTABLE
  \stopplacetable
  \stoptext
  
  Wolfgang
 
 Thank you Wolfgang for this tip. Could you please explain why the following 
 is not working:
 
 \starttext
 \definefloat[inlinetable][inlinetables][table]
 \setupfloat[inlinetable][location={none,split}]

You have to use the default key here, i.e.

\setupfloat[inlinetable][default={none,split}]

because context resets the value of the location key at the begin of each new 
float.

With default you can set values which are used when nothing is set for location 
like in your example.

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
___

Re: [NTG-context] the new simplefonts stuff

2014-09-04 Thread Wolfgang Schuster

Am 04.09.2014 um 09:15 schrieb Sandra Snan sandra.s...@idiomdrottning.org:

 %% Just as a test for \definefontfamily, which works, text shows up in
 %% DejaVu Serif which is a ttf font.
 % \definefontfamily [five] [serif] [DejaVu Serif]
 
 %% This is what fontforge reports as the family name for
 %% Baskervaldx-Reg. It works for me, text shows up in Baskervaldx, which
 %% is an otf font.
 % \definefontfamily [five] [serif] [Baskervaldx]
 
 %% Fontforge called this the ``name for humans'', it didn't fly, text didn't 
 show up:
 % \definefontfamily [five] [serif] [Baskervaldx Regular]
 
 %% This is straight out of the manual, works, text shows up bookman.
 %% Wanted this look, but with \definefontfamily.
 % \definetypeface [five] [rm] [serif] [bookman]
 
 %% None of these worked. Text doesn't show up at all.
 % \definefontfamily [five] [rm] [URW Bookman L Light]
 % \definefontfamily [five] [rm] [urwbookmanlligh]
 % \definefontfamily [five] [rm] [URWBookmanL-Ligh]
 % \definefontfamily [five] [rm] [URW Bookman L]
 
 \setupbodyfont [five]
 \starttext
 Hello, snow! Won't you go, and return in december?
 \stoptext

Below is a short example which shows the different names in a font, as you can
see in the output the names in each font are different except from the 
familyname
entry which is the same for all.

\definefontfamily [five] [rm] [URW Bookman L]

\setupbodyfont [five]

\starttext

\dolookupfontbyspec{fontname=urwbookman*}

\dorecurse{\dolookupnoffound}
  {\starttabulate[|l|l|]
   \NC Familyname \EQ \dolookupgetkeyofindex{familyname}{#1} \NC\NR
   \NC Fontname   \EQ \dolookupgetkeyofindex{fontname}{#1}   \NC\NR
   \NC Fullname   \EQ \dolookupgetkeyofindex{fullname}{#1}   \NC\NR
   \NC Filename   \EQ \dolookupgetkeyofindex{filename}{#1}   \NC\NR
   \NC Rawname\EQ \dolookupgetkeyofindex{rawname}{#1}\NC\NR
   \stoptabulate
   \page}

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


[NTG-context] Spurious pages in makeups

2014-09-04 Thread Idris Samawi Hamid ادريس سماوي حامد

Dear gang,

For a doublesided book, I get spurious pages in this setup:

===
\starttext
\setuppagenumbering[alternative=doublesided]

\definemakeup[title][align=middle]
\definemakeup[copyright][align=flushleft]

\setuphead[chapter][number=yes,page=left]

\startmakeup[title]
\tfd  Title Page
\stopmakeup
\page[left]
\startmakeup[copyright]
Author
\crlf
http://www.website.com/

ISBN: 978-0-9907820-0-1

\blank

Copyright © 2014 Author

\blank

All rights reserved.

\blank

Front Range Press.

\blank

Printed in the United States of America.
\stopmakeup

\title{Table of Contents}
\stoptext
===

What we want: copyright page (left sided) immediately after title page  
(right sided), followed immediately by TOC (right sided). I.e.,  
Title+Copyright+TOC with no page breaks


What we get: copyright page (right sided) two pages after title page  
(right sided), followed by a blank page, followed by TOC (right sided).  
See attached pdf.


How do I suppress the spurious pages (2+1)? I need to keep doublesided for  
obvious reasons...


I could force this without makeups but would like to take advantage of  
makeups if I can. Thanks in advance!


Best wishes
Idris
--
Idris Samawi Hamid
Professor of Philosophy
Colorado State University
Fort Collins, CO 80523

makeup.tex
Description: TeX document


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

[NTG-context] multi-colunm table issue

2014-09-04 Thread Thomas De Maet

Hello !

I'm interested for some time (say 2-3 years) in the resolution of a 
specific bug, described in the documentation here


http://wiki.contextgarden.net/TABLE#Multipage_TABLEs

as

*Beware:*Split tables often begin not on the page (or in the column, if 
you use them) where they/could/start, but on/in the next one. This is a 
known limitation due to the complicated calculation of remaining space 
on the page. That won't become better before this calculations are newly 
written in Lua. (Said Hans on 2010-09-24.)


Simply, do you have any shedule for this issue to be solved ?

Many thanks in advance,

Thomas


___
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] Spurious pages in makeups

2014-09-04 Thread Peter Rolf
Hi Indris,

I guess the double sided setup is also true for your makeup definitions.
An additional doublesided=no in the makeup definition gives the wanted
result.

Best,  Peter

Am 04.09.2014 um 16:04 schrieb Idris Samawi Hamid ادريس سماوي حامد:
 Dear gang,
 
 For a doublesided book, I get spurious pages in this setup:
 
 ===
 \starttext
 \setuppagenumbering[alternative=doublesided]
 
 \definemakeup[title][align=middle]
 \definemakeup[copyright][align=flushleft]
 
 \setuphead[chapter][number=yes,page=left]
 
 \startmakeup[title]
 \tfd  Title Page
 \stopmakeup
 \page[left]
 \startmakeup[copyright]
 Author
 \crlf
 http://www.website.com/
 
 ISBN: 978-0-9907820-0-1
 
 \blank
 
 Copyright © 2014 Author
 
 \blank
 
 All rights reserved.
 
 \blank
 
 Front Range Press.
 
 \blank
 
 Printed in the United States of America.
 \stopmakeup
 
 \title{Table of Contents}
 \stoptext
 ===
 
 What we want: copyright page (left sided) immediately after title page
 (right sided), followed immediately by TOC (right sided). I.e.,
 Title+Copyright+TOC with no page breaks
 
 What we get: copyright page (right sided) two pages after title page
 (right sided), followed by a blank page, followed by TOC (right sided).
 See attached pdf.
 
 How do I suppress the spurious pages (2+1)? I need to keep doublesided
 for obvious reasons...
 
 I could force this without makeups but would like to take advantage of
 makeups if I can. Thanks in advance!
 
 Best wishes
 Idris
 
 
 ___
 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
 ___
 

\starttext
\setuppagenumbering[alternative=doublesided]

\definemakeup[title][align=middle,doublesided=no]
\definemakeup[copyright][align=flushleft,doublesided=no]

\startmakeup[title]
\tfd  Title Page
\stopmakeup
\page[left]
\startmakeup[copyright]
Author
\crlf
http://www.website.com/

ISBN: 978-0-9907820-0-1

\blank

Copyright © 2014 Author

\blank

All rights reserved. 

\blank

Front Range Press.

\blank

Printed in the United States of America.
\stopmakeup

\title{Table of Contents}
\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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] the new simplefonts stuff

2014-09-04 Thread Mica Semrick
On Debian, you can try: 
fc-list : family
to list the family name. I was playing with this last night on my Debian Jessie 
system. 

The colon is a wildcard operator that will match all fonts on the system. I 
usually just grep the results for what I need.

You may want to refresh the font cache, with
fc-cache -fv

Best,
Mica

On September 4, 2014 12:15:39 AM PDT, Sandra Snan 
sandra.s...@idiomdrottning.org wrote:
Thank you so much for your help, guys!

On Thu, 4 Sep 2014 00:21:22 +0200, Wolfgang Schuster
schuster.wolfg...@gmail.com wrote:
 Am 03.09.2014 um 21:40 schrieb Joshua Krämer
joshua.krae...@gmail.com:
[...]
  The only name which works in ConTeXt is the family name (which can
be
  seen in FontForge): Swis721 BT, note the single s.  However,
this
  name is *not* shown in the mtxrun output.

Something I realized as I was messing around waiting for fontforge to
install is that, at least for fonts that come with *.afm metric files
and *.pfb files,, you can look at them for some info. Looking at
ubkl8a.afm I see:

ellen% grep Name
/usr/share/fonts/type1/texlive-fonts-recommended/ubkl8a.afm
FontName URWBookmanL-Ligh
FullName URW Bookman L Light
FamilyName URW Bookman L

The same info is similarly ascii-encoded in the pfb file. But when
fontforge had installed (I needed it to look at the otf and ttf fonts
in
my example) I double checked and found the same info.

 
 The family name is shown when you use the info option, e.g.
 
 mtxrun --script font --list --info --all texgyrepagella*

This was one of the first things I tried.

ellen% mtxrun --script fonts  --info --list --all
--pattern='bookmanlligh$'|grep name
mtx-fonts   | fontname: urwbookmanlligh
mtx-fonts   | fullname: urwbookmanlligh
mtx-fonts   | filename: ubkl8a.afm

Not really any of the same names even though it finds the same file.

I don't have Macintosh but in Inkscape the name shows up as URW Bookman
L and the font works there. I have Debian.

ellen% context --version|grep version
mtx-context | current version: 2014.05.21 22:04

I guess I'm missing something that will in hindsight look obvious...

Sandra

Example follows.

% Uncomment one of the \definefontfamily lines.

%% Just as a test for \definefontfamily, which works, text shows up in
%% DejaVu Serif which is a ttf font.
% \definefontfamily [five] [serif] [DejaVu Serif]

%% This is what fontforge reports as the family name for
%% Baskervaldx-Reg. It works for me, text shows up in Baskervaldx,
which
%% is an otf font.
% \definefontfamily [five] [serif] [Baskervaldx]

%% Fontforge called this the ``name for humans'', it didn't fly, text
didn't show up:
% \definefontfamily [five] [serif] [Baskervaldx Regular]

%% This is straight out of the manual, works, text shows up bookman.
%% Wanted this look, but with \definefontfamily.
% \definetypeface [five] [rm] [serif] [bookman]

%% None of these worked. Text doesn't show up at all.
% \definefontfamily [five] [rm] [URW Bookman L Light]
% \definefontfamily [five] [rm] [urwbookmanlligh]
% \definefontfamily [five] [rm] [URWBookmanL-Ligh]
% \definefontfamily [five] [rm] [URW Bookman L]

\setupbodyfont [five]
\starttext
Hello, snow! Won't you go, and return in december?
\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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Separate italic font.

2014-09-04 Thread john Culleton
Here is the example from the wiki
--
\setupbodyfontenvironment[default][em=italic]
\usemodule[simplefonts][size=10pt]
\setmainfont[TeX Gyre Termes]
\setsansfont[TeX Gyre Heros]
\setmonofont[TeX Gyre Cursor]
-
If the font (e.g., MinionPro) has a separate
italic font should I add it?
If so is the correct command:
\setitalicfont[\setupbodyfont[MinionPro-It]
??



John Culleton
Wexford Press
Free list of books for self-publishers:
http://wexfordpress.net/shortlist.html
PDF e-book: Create Book Covers with Scribus
available at
http://www.booklocker.com/books/4055.html
___
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] Separate italic font.

2014-09-04 Thread Pablo Rodriguez
On 09/04/2014 05:55 PM, john Culleton wrote:
 Here is the example from the wiki
 --
 \setupbodyfontenvironment[default][em=italic]
 \usemodule[simplefonts][size=10pt]
 \setmainfont[TeX Gyre Termes]
 \setsansfont[TeX Gyre Heros]
 \setmonofont[TeX Gyre Cursor]
 -
 If the font (e.g., MinionPro) has a separate
 italic font should I add it?
 If so is the correct command:
 \setitalicfont[\setupbodyfont[MinionPro-It]
 ??

John,

\setupbodyfontenvironment[default][em=italic]
\usemodule[simplefonts][size=10pt]
\setmainfont[TeX Gyre Termes][italicfont=TeX Gyre Pagella Italic]
\starttext
regular \em italics
\stoptext

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


Re: [NTG-context] Spurious pages in makeups

2014-09-04 Thread Pablo Rodriguez
On 09/04/2014 04:04 PM, Idris Samawi Hamid ادريس سماوي حامد wrote:
 Dear gang,
 
 For a doublesided book, I get spurious pages in this setup:
 [...]
 What we want: copyright page (left sided) immediately after title page  
 (right sided), followed immediately by TOC (right sided). I.e.,  
 Title+Copyright+TOC with no page breaks

Hi Idris,

sample below that works on my computer.

About the copyright makeup, \page is not required before a makeup (if
I’m not wrong). All you need is to disable doublepage in previous makeup
(with doublesided=no).

About the TOC, \title inserts a page break before, so either you remove
the break from all titles, or create a new title command for the TOC
that doesn’t have the page break before.

\definemakeup[title][align=middle, doublesided=no]
\definemakeup[copyright][align=flushleft]

%~ \setuphead[chapter][number=yes,page=left]
\definehead[toctitle][title]
\setuphead[toctitle][page=none]

\setuppagenumbering[alternative=doublesided]

\starttext

\startmakeup[title]
\tfd  Title Page
\stopmakeup

\startmakeup[copyright]
Author
\crlf
http://www.website.com/

ISBN: 978-0-9907820-0-1

\blank

Copyright © 2014 Author

\blank

All rights reserved.

\blank

Front Range Press.

\blank

Printed in the United States of America.
\stopmakeup

\toctitle{Table of Contents}
\title{Another Title}
\stoptext

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

Re: [NTG-context] bug in hyphenation?

2014-09-04 Thread Pablo Rodriguez
On 08/30/2014 12:00 PM, Hans Hagen wrote:
 On 8/30/2014 6:47 AM, Pablo Rodriguez wrote:
 Dear list,

 the following sample shows bad hyphenation in the first body line and in
 many linenotes:

 \showframe
 \definepapersize[HippPaper][width=6in, height=9in]
 \setuppapersize[HippPaper]
 \setupnote[linenote][rule=off, paragraph=yes, split=verystrict,
 scope=text, inbetween=\hskip1.5em, compress=yes]
 \setupnotation[linenote][numbercommand=, width=broad,
 alternative=serried, distance=1em]

 \starttext
 \startlinenumbering
 \showhyphens{testing paragraph}
 \dorecurse{50}{This\linenote{That} is\linenote{was} a\linenote{one}
 testing\linenote{nesting} sentence\linenote{table}. }
 \stoplinenumbering
 \stoptext

 If this is not a bug, what am I missing here?

 Many thanks for your help,
 
 more a side effect of binding a reference node and such ... possible 
 solution in next beta

Hans,

I’m afraid that beta from today has still this bug.


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


[NTG-context] Bussproofs or derivation trees

2014-09-04 Thread Trond Thorbjørnsen
Hello,

I have searched for a solution for making proof trees, but I have failed
to find a working setup.

Does anyone know of a solution?

I have used bussproofs.sty with LaTeX, and have seen that discussed on
this list some years ago:
http://www.ntg.nl/pipermail/ntg-context/2010/051489.html
(How) can I use this package in ConTeXt?

I have also looked at this metapost package, but it seems this package
relies deeper on LaTeX:
http://tug.ctan.org/graphics/metapost/contrib/macros/drv/drv.mp

Have anyone other suggestions?

--
Trond Thorbjørnsen
___
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] Separate italic font.

2014-09-04 Thread john Culleton
On Thu, 04 Sep 2014 18:54:30 +0200
Pablo Rodriguez oi...@gmx.es wrote:

 On 09/04/2014 05:55 PM, john Culleton wrote:
  Here is the example from the wiki
  --
  \setupbodyfontenvironment[default][em=italic]
  \usemodule[simplefonts][size=10pt]
  \setmainfont[TeX Gyre Termes]
  \setsansfont[TeX Gyre Heros]
  \setmonofont[TeX Gyre Cursor]
  -
  If the font (e.g., MinionPro) has a separate
  italic font should I add it?
  If so is the correct command:
  \setitalicfont[\setupbodyfont[MinionPro-It]
  ??
 
 John,
 
 \setupbodyfontenvironment[default][em=italic]
 \usemodule[simplefonts][size=10pt]
 \setmainfont[TeX Gyre Termes][italicfont=TeX Gyre Pagella Italic]
\starttext
 regular \em italics
 \stoptext
 
 I hope it helps,
 
 
 Pablo

That looks like a solution, thanks.



Now I have a related question. When I run:
mtxrun --script fonts * foo
The file foo has three columns. We only use the
word in the right hand column with the suffix
stripped off. So what is the purpose of the the
other two columns? for example:

minionproitalic minionproit MinionPro-It.otf

but we only use MinionPro-It.

Just curious.
-- 
John Culleton
Wexford Press
Free list of books for self-publishers:
http://wexfordpress.net/shortlist.html
PDF e-book: Create Book Covers with Scribus
available at
http://www.booklocker.com/books/4055.html
___
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] Separate italic font.

2014-09-04 Thread Wolfgang Schuster

Am 04.09.2014 um 17:55 schrieb john Culleton j...@wexfordpress.com:

 Here is the example from the wiki
 --
 \setupbodyfontenvironment[default][em=italic]
 \usemodule[simplefonts][size=10pt]
 \setmainfont[TeX Gyre Termes]
 \setsansfont[TeX Gyre Heros]
 \setmonofont[TeX Gyre Cursor]
 -
 If the font (e.g., MinionPro) has a separate
 italic font should I add it?
 If so is the correct command:
 \setitalicfont[\setupbodyfont[MinionPro-It]

There is no need to ad the italic font by hand.

\definefontfamily [john] [rm] [Minion Pro]

\setupbodyfont[john]

\starttext
Upright and \it Italic!
\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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Two issues with character alignment

2014-09-04 Thread Maggyero
I have found two issues with character alignment (see the following minimal
example): one when \\ is used in a cell instead of \crlf, another one when
\high or \low are used in a cell. Is it a bug?


\starttext

\setupTABLE[%
aligncharacter=yes,
alignmentcharacter=.,
align=middle]

\subject{Reference}

\startTABLE
\NC Foo\crlf bar\NC \NR
\NC 1.1 \NC \NR
\NC 11.1\NC \NR
\stopTABLE

\subject{Double backslash issue}

\startTABLE
\NC Foo\\bar\NC \NR
\NC 1.1 \NC \NR
\NC 11.1\NC \NR
\stopTABLE

\subject{Sub/superscript issue}

\startTABLE
\NC Foo\high{bar}   \NC \NR
\NC 1.1 \NC \NR
\NC 11.1\NC \NR
\stopTABLE

\startTABLE
\NC Foo\low{bar}\NC \NR
\NC 1.1 \NC \NR
\NC 11.1\NC \NR
\stopTABLE

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