[NTG-context] Primes and type1 math fonts

2018-03-03 Thread Mikael P. Sundqvist
Hans,

I asked on StackExchange (https://tex.stackexchange.com/q/418228/52406)
about non-working primes in mathdesign.

Henri Menke came up with a solution that works well, using the definition
of primes from plain TeX.

Could we make it an option somehow to use this, like

\setupmathematics[oldprimes=yes]

or something?

/Mikael
___
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] Table of contents: style and subject

2018-03-03 Thread Idris Samawi Hamid ادريس سماوي حامد

Dear gang,

Here's a strange situation:

In approach I) we get the subject heading in the TOC, but style=bold  
doesn't work.


In approach II) style=bold works, but the subject heading doesn't show up.

For each approach, how do we get both subject heading and style=bold in  
the TOC?


Between I) and II), which is the current recommended standard practice for  
MKIV?


See below and attached scratch. Toggle the two \start|stoptext  
environments.


Best wishes
Idris

==
\setuphead[subject]
  [incrementnumber=yes,  % keep track of the number
   number=no]% but don't show it

\starttext % Approach I
\starttitle[title={Table of Contents},reference={}]
\start
\setupcombinedlist[content]
  [list={subject,section,subsection,subsubsection},alternative=c,style=bold]
\setupinterlinespace[line=1.4ex]
\placecontent
\stop
\stoptitle
\page
\startsection[title={Section One},reference={}]
new page \page
\stopsection

\startsection[title={Section Two},reference={}]
new page \page
\stopsection

\startsubject[title={Subject},reference={}]

\stopsubject
% \stoptext

% \starttext % Approach I
% \starttitle[title={Table of Contents},reference={}]
% \start
% \setupcombinedlist[{subject,section,subsection,subsubsection}]
  % [alternative=c,style=bold]
% \setupinterlinespace[line=1.4ex]
% \placecontent
% \stop
% \stoptitle
% \page
% \startsection[title={Section One},reference={}]
% new page \page
% \stopsection

% \startsection[title={Section Two},reference={}]
% new page \page
% \stopsection

% \startsubject[title={Subject},reference={}]

% \stopsubject
% \stoptext
==

--
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80512

scratch.tex
Description: TeX 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Back again with lucida problems

2018-03-03 Thread Henri Menke
Smallcaps are for some reason missing from the typescript file.  Just add the
corresponding definition in your document and you should be fine.

---

\starttypescript [serif] [lucidaot]
  \definefontsynonym [SerifCaps] [Serif] [features={default,smallcaps}]
\stoptypescript

\setupbodyfont[lucidaot,10pt]

\starttext

Blabla

$p'(1)$

{\sc Blabla}

\stoptext

On Sat, 2018-03-03 at 15:13 +0100, Eric Detrez wrote:
> I don't find any hint to my problem.
> I bought Lucida fonts from Tugboat.
> I want to get small caps AND primes (P'(x))
> It seem I can't have both
> When I use
> \usetypescript[lucida]
> \setupbodyfont[lucidaot,10pt,rm]
> I don't have smallcaps
> 
> When I use
> \usetypescript[lucida]
> \setupbodyfont[lucida,10pt,rm]
> primes are ugly
> 
> Did I miss something ?
> 
> 
> 
> __
> _
> 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
___

Re: [NTG-context] export breaks float placement

2018-03-03 Thread Henning Hraban Ramm
Am 2018-03-03 um 16:47 schrieb Aditya Mahajan :

> On Sat, 3 Mar 2018, Henning Hraban Ramm wrote:
> 
>> And I can’t accept that the option of exporting to XML would (more or less) 
>> drastically and needlessly change the print layout! At least _please_ make 
>> it an option!
> 
> In the meanwhile, you can do:
> 
> \startmode[export]
> \setupbackend[export=yes]
> \stopmode

In my case, the mode’s called "epub" and also changes a few other settings, and 
that’s how I stumbled upon this bug, because I had "--mode=epub" in my Makefile 
default.


Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
GPG Key ID 1C9B22FD

___
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] Fourier and utopia

2018-03-03 Thread Mikael P. Sundqvist
On Sat, Mar 3, 2018 at 3:46 PM, Mikael P. Sundqvist 
wrote:

> Dear Hans and dear list,
>
> I try to use the fourier/utopia combination in mkiv (I used that
> combination for my PhD thesis in mkii 10 years ago).
>
> First of all, I have downloaded the fourier fonts from ctan at
> https://ctan.org/tex-archive/fonts/fourier-GUT . The fonts are found by
> mtxrun.
>
> I have one folder containing type-fourier.mkiv, fourier-math.lfg and
> testfile.tex. Everything seems to be found by the system, so the problem is
> probably in my files somewhere. The resulting pdf after compiling
> testfile.text is attached.
>
> Any ideas of what I am missing?
>
> Additionally, the fourier fonts come with fourier-bb.tfm (probably with
> blackboard bold), fourier-mcl (probably so that one can use mathcal). Any
> ideas on how to use them in the fourier-math.lfg file?
>
> If more information is needed, then please tell me.
>
> /Mikael
>
> %%%
> type-fourier.mkiv:
> %%%
> \starttypescriptcollection[fourier]
> \starttypescript [serif] [fourier]
> \definefontsynonym [Utopia-Regular] [file:putr8a.afm]
> \definefontsynonym [Utopia-Italic]  [file:putri8a.afm]
> \definefontsynonym [Utopia-Bold][file:putb8a.afm]
> \definefontsynonym [Utopia-BoldItalic]  [file:putbi8a.afm]
> \stoptypescript
>
> \starttypescript [serif] [fourier] [name]
> \setups[font:fallback:serif]
> \definefontsynonym [Serif][Utopia-Regular]
> \definefontsynonym [SerifItalic]  [Utopia-Italic]
> \definefontsynonym [SerifBold][Utopia-Bold]
> \definefontsynonym [SerifBoldItalic]  [Utopia-BoldItalic]
> \stoptypescript
>
> \starttypescript [math] [fourier] [all]
> \loadfontgoodies[fourier-math]
> \definefontsynonym [MathRoman] [fourierrm@fourier-rm]
> \stoptypescript
>
> \starttypescript [fourier]
> \definetypeface [\typescriptone] [rm] [serif] [fourier] [default]
> \definetypeface [\typescriptone] [ss] [sans]  [modern]  [default]
> \definetypeface [\typescriptone] [tt] [mono]  [modern]  [default]
> \definetypeface [\typescriptone] [mm] [math]  [fourier] [default]
> \quittypescriptscanning
> \stoptypescript
> \stoptypescriptcollection
>
>
> %%%
> fourier-math.lfg:
> %%%
> return {
> name = "fourier-math",
> version = "1.00",
> comment = "Math font Fourier for Utopia.",
> mathematics = {
> mapfiles = {
> "fourier.map",
> "mkiv-base.map",
> },
> virtuals = {
> ["fourier-rm"] = {
> { name = "putr8a", features = "virtualmath", main = true },
> { name = "fourier-ml.tfm",  vector = "tex-mr",
> skewchar=0x7F },
> { name = "fourier-mlit.tfm", vector = "tex-mi",
> skewchar=0x7F },
> { name = "fourier-mlit.tfm", vector = "tex-it",
> skewchar=0x7F },
> { name = "fourier-mlb.tfm",  vector = "tex-bf",
> skewchar=0x7F },
> { name = "fourier-mlitb.tfm", vector = "tex-bi",
> skewchar=0x7F },
> { name = "fourier-ms.tfm",  vector = "tex-sy",
> skewchar=0x30, parameters = true },
> { name = "fourier-mex.tfm",  vector = "tex-ex", extension
> = true },
> msam,
> msbm,
> },
> }
> }
> }
>
> %%%
> testfile.tex:
> %%%
> \loadtypescriptfile[type-fourier]
> \setupbodyfont[fourier,12pt]
>
> \starttext
> \startTEXpage[offset=3bp]
> Some math: $y''=(y')'$.
> A displayed formula:
> \startformula
> f(x) = f(0)+\int_0^x \bigl(f'(t)\bigr)\,dt.
> \stopformula
> \stopTEXpage
> \stoptext
>
>
A small step in the right direction: Blackboard letters and calligraphic
(script) letters seem to work when I add

{ name = "fourier-bb.tfm",  vector = "tex-mb",
skewchar=0x7F },
{ name = "fourier-mcl.tfm",  vector = "tex-sy",
skewchar=0x7F },

to fourier-math.lfg.

/Mikael
___
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] Back again with lucida problems

2018-03-03 Thread Wolfgang Schuster


\setupbodyfont[lucidaot]

\starttext

Blabla

{\feature[+][f:smallcaps]Blabla}

{\setsmallcaps Blabla}

\stoptext

Wolfgang

Eric Detrez 
3. März 2018 um 15:13

I don't find any hint to my problem.

I bought Lucida fonts from Tugboat.

I want to get small caps AND primes (P'(x))

It seem I can't have both

When I use

\usetypescript[lucida]

\setupbodyfont[lucidaot,10pt,rm]

I don't have smallcaps


When I use

\usetypescript[lucida]

\setupbodyfont[lucida,10pt,rm]

primes are ugly


Did I miss something ?




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

Re: [NTG-context] export breaks float placement

2018-03-03 Thread Alan Braslau
On Sat, 3 Mar 2018 10:47:52 -0500 (EST)
Aditya Mahajan  wrote:

> On Sat, 3 Mar 2018, Henning Hraban Ramm wrote:
> 
> > And I can’t accept that the option of exporting to XML would (more
> > or less) drastically and needlessly change the print layout! At
> > least _please_ make it an option!  
> 
> In the meanwhile, you can do:
> 
> \startmode[export]
> \setupbackend[export=yes]
> \stopmode
> 
> and then run with `--mode=export` to get the export and without that 
> option to get the print layout.
> 
> Aditya

And, unfortunately, this "breaks" the PDF. Of course, one can always
write a script that moves the PDF to a safe place, etc. but this is not
ideal.

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] export breaks float placement

2018-03-03 Thread Aditya Mahajan

On Sat, 3 Mar 2018, Henning Hraban Ramm wrote:

And I can’t accept that the option of exporting to XML would (more or 
less) drastically and needlessly change the print layout! At least 
_please_ make it an option!


In the meanwhile, you can do:

\startmode[export]
\setupbackend[export=yes]
\stopmode

and then run with `--mode=export` to get the export and without that 
option to get the print layout.


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] Fourier and utopia

2018-03-03 Thread Mikael P. Sundqvist
Dear Hans and dear list,

I try to use the fourier/utopia combination in mkiv (I used that
combination for my PhD thesis in mkii 10 years ago).

First of all, I have downloaded the fourier fonts from ctan at
https://ctan.org/tex-archive/fonts/fourier-GUT . The fonts are found by
mtxrun.

I have one folder containing type-fourier.mkiv, fourier-math.lfg and
testfile.tex. Everything seems to be found by the system, so the problem is
probably in my files somewhere. The resulting pdf after compiling
testfile.text is attached.

Any ideas of what I am missing?

Additionally, the fourier fonts come with fourier-bb.tfm (probably with
blackboard bold), fourier-mcl (probably so that one can use mathcal). Any
ideas on how to use them in the fourier-math.lfg file?

If more information is needed, then please tell me.

/Mikael

%%%
type-fourier.mkiv:
%%%
\starttypescriptcollection[fourier]
\starttypescript [serif] [fourier]
\definefontsynonym [Utopia-Regular] [file:putr8a.afm]
\definefontsynonym [Utopia-Italic]  [file:putri8a.afm]
\definefontsynonym [Utopia-Bold][file:putb8a.afm]
\definefontsynonym [Utopia-BoldItalic]  [file:putbi8a.afm]
\stoptypescript

\starttypescript [serif] [fourier] [name]
\setups[font:fallback:serif]
\definefontsynonym [Serif][Utopia-Regular]
\definefontsynonym [SerifItalic]  [Utopia-Italic]
\definefontsynonym [SerifBold][Utopia-Bold]
\definefontsynonym [SerifBoldItalic]  [Utopia-BoldItalic]
\stoptypescript

\starttypescript [math] [fourier] [all]
\loadfontgoodies[fourier-math]
\definefontsynonym [MathRoman] [fourierrm@fourier-rm]
\stoptypescript

\starttypescript [fourier]
\definetypeface [\typescriptone] [rm] [serif] [fourier] [default]
\definetypeface [\typescriptone] [ss] [sans]  [modern]  [default]
\definetypeface [\typescriptone] [tt] [mono]  [modern]  [default]
\definetypeface [\typescriptone] [mm] [math]  [fourier] [default]
\quittypescriptscanning
\stoptypescript
\stoptypescriptcollection


%%%
fourier-math.lfg:
%%%
return {
name = "fourier-math",
version = "1.00",
comment = "Math font Fourier for Utopia.",
mathematics = {
mapfiles = {
"fourier.map",
"mkiv-base.map",
},
virtuals = {
["fourier-rm"] = {
{ name = "putr8a", features = "virtualmath", main = true },
{ name = "fourier-ml.tfm",  vector = "tex-mr",
skewchar=0x7F },
{ name = "fourier-mlit.tfm", vector = "tex-mi",
skewchar=0x7F },
{ name = "fourier-mlit.tfm", vector = "tex-it",
skewchar=0x7F },
{ name = "fourier-mlb.tfm",  vector = "tex-bf",
skewchar=0x7F },
{ name = "fourier-mlitb.tfm", vector = "tex-bi",
skewchar=0x7F },
{ name = "fourier-ms.tfm",  vector = "tex-sy",
skewchar=0x30, parameters = true },
{ name = "fourier-mex.tfm",  vector = "tex-ex", extension =
true },
msam,
msbm,
},
}
}
}

%%%
testfile.tex:
%%%
\loadtypescriptfile[type-fourier]
\setupbodyfont[fourier,12pt]

\starttext
\startTEXpage[offset=3bp]
Some math: $y''=(y')'$.
A displayed formula:
\startformula
f(x) = f(0)+\int_0^x \bigl(f'(t)\bigr)\,dt.
\stopformula
\stopTEXpage
\stoptext


testfile.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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] Back again with lucida problems

2018-03-03 Thread Eric Detrez

I don't find any hint to my problem.

I bought Lucida fonts from Tugboat.

I want to get small caps AND primes (P'(x))

It seem I can't have both

When I use

\usetypescript[lucida]

\setupbodyfont[lucidaot,10pt,rm]

I don't have smallcaps


When I use

\usetypescript[lucida]

\setupbodyfont[lucida,10pt,rm]

primes are ugly


Did I miss something ?






lucida.pdf
Description: Adobe PDF document
\usetypescript[lucida]
\setupbodyfont[lucida,10pt,rm]
\starttext

Blabla

$p'(1)$

{\sc Blabla}


\stoptext

lucidaOT.pdf
Description: Adobe PDF document
\usetypescript[lucida]
\setupbodyfont[lucidaot,10pt,rm]
\starttext

Blabla

$p'(1)$

{\sc Blabla}


\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] export breaks float placement

2018-03-03 Thread Henning Hraban Ramm
Am 2018-02-27 um 16:10 schrieb Alan Braslau :

>> With \setupbackend[export=yes] the image is placed "here" and never
>> "right" or "left".
> 
> I "reported" this a while ago. The answer is that right or left are
> meaningless for the export and that the export is built somehow using
> the generated PDF.
> ...
> I believe that Hans' workflow includes controlling the export run by
> viewing the export PDF (in sumatra), so he has been reluctant to change
> the behavior.

Hi! Slowly recovering from the flu...

So, this is already known. But if there’s indeed such reasoning behind, it 
really makes no sense at all!

Even if Hans’ workflow is not capable of right or left placement, it’s easily 
achievable in HTML/ePub (CSS float: left/right), so it can’t generally be 
meaningless.

And I can’t accept that the option of exporting to XML would (more or less) 
drastically and needlessly change the print layout!
At least _please_ make it an option!


Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
GPG Key ID 1C9B22FD

___
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] Finding a

2018-03-03 Thread Hans Hagen

On 3/3/2018 10:33 AM, T. Kurt Bond wrote:
If I have a module I want to use from several documents in different 
places in my home directory tree, is there some directory under my 
directory where I can put the module where it will be found?  Someplace 
under $HOME/texmf for instance?

/texmf-project/tex/context/shared
/texmf-project/tex/context/project-a
/texmf-project/tex/context/project-b

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] Finding a

2018-03-03 Thread Pablo Rodriguez
On 03/03/2018 10:33 AM, T. Kurt Bond wrote:
> If I have a module I want to use from several documents in different
> places in my home directory tree, is there some directory under my
> directory where I can put the module where it will be found?  Someplace
> under $HOME/texmf for instance?

If you have the ConTeXt Suite installed, a good place would be
tex/texmf-local/.

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
___

[NTG-context] Finding a

2018-03-03 Thread T. Kurt Bond
If I have a module I want to use from several documents in different places
in my home directory tree, is there some directory under my directory where
I can put the module where it will be found?  Someplace under $HOME/texmf
for instance?

-- 
T. Kurt Bond, tkurtb...@gmail.com and http://consp.org/~tkb
___
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
___