Re: [NTG-context] substituting characters in math font

2017-10-19 Thread Alan Bowen
Many thanks for this, Wolfgang. That is very helpful. Right now, then, I
have:

\definefontfamily[mainface][rm][Brill]
[protrusion=quality,
expansion=quality,
mode=node,
force=yes,
]
\definefallbackfamily [mainface] [rm] [Brill]
[tf=style:italic, range={0x03B8}, offset={0x03D1}]%Greek theta

\definefallbackfamily[mainface][mm][Brill]
[range={0x30-0x39}] %oldstyle numerals, normal

\definefallbackfamily [mainface] [mm] [Brill] [preset=math:lowercasenormal]
\definefallbackfamily [mainface] [mm] [BrillItalic]
[preset=math:lowercaseitalic]
\definefallbackfamily [mainface] [mm] [Brill] [preset=math:uppercasenormal]
\definefallbackfamily [mainface] [mm] [BrillItalic]
[preset=math:uppercaseitalic]

\definefallbackfamily [mainface] [mm] [Brill]
[preset=math:lowercasegreeknormal]
\definefallbackfamily [mainface] [mm] [BrillItalic]
[preset=math:lowercasegreekitalic]
\definefallbackfamily [mainface] [mm]
[Brill][preset=math:uppercasegreeknormal]
\definefallbackfamily [mainface] [mm] [BrillItalic]
[preset=math:uppercasegreekitalic]

\definefontfamily[mainface][mm][TeX Gyre Termes Math][scale=0.94]

\setupmathematics[ucgreek=normal, lcgreek=italic]

\setupbodyfont[mainface,10pt]


\starttext

normal: 1234567890\quad math: \m{1234567890}

normal: ABCDEFabcdef\quad italic: \emph{ABCDEFabcdef}\quad math: \m{\red
ABCDEFabcdef}

normal: ΑΒΓΔΕΘαβγδεθ\quad slanted: \emph{ΑΒΓΔΕΘαβγδεθ}\quad math: \m{\red
ΑΒΓΔΕΘαβγδεθ}

Greek theta: \emph{θ}

\stoptext

As you can see, all I need is to get the Brill lowercase Greek in mathmode
and the proper slanted Greek theta. I have tried this with Pagella and
Cambria instead of the Brill font and the problem persists. So I must be
doing something wrong. But what?

Alan

On Wed, Oct 18, 2017 at 2:27 PM, Wolfgang Schuster <
schuster.wolfg...@gmail.com> wrote:

>
>
> Alan Bowen 
> 2. Oktober 2017 um 14:04
> I need to substitute the regular and italic characters of a publisher’s
> non-math font (Unicode) for those in a math font.
>
> The non-math addresses are:
> 0041-005A, 0061-007A %italic uppercase and lowercase
> 0391-03A9, 03B1-03C9  %slanted Greek uppercase and lowercase
>
> The math addresses are:
> 1D434-1D44D, 1D44E-1D467 %italic uppercase and lowercase
> 1D6E2-1D6FA, 1D6FC-1D714  %slanted Greek uppercase and lowercase
>
> Is there a way to use the \definefallbackfamily mechanism that does not
> assume that the characters have the same Unicode addresses? Or is some
> other approach required?
>
> The fallback mechanism provides a offset key which lets you replace a math
> character with a normal text character.
>
> \definefontfamily [mainface] [ss] [TeX Gyre Heros]
>
> \definefallbackfamily [mainface] [mm] [TeX Gyre Heros]
> [preset=math:lowercasenormal]
> \definefallbackfamily [mainface] [mm] [TeX Gyre Heros]
> [preset=math:lowercaseitalic]
> \definefallbackfamily [mainface] [mm] [TeX Gyre Heros]
> [tf=style:italic,range=0x68,offset=0x210E]% lowercase italic h
> \definefallbackfamily [mainface] [mm] [TeX Gyre Heros]
> [preset=math:lowercasebold]
> \definefallbackfamily [mainface] [mm] [TeX Gyre Heros]
> [preset=math:uppercasenormal]
> \definefallbackfamily [mainface] [mm] [TeX Gyre Heros]
> [preset=math:uppercaseitalic]
> \definefallbackfamily [mainface] [mm] [TeX Gyre Heros]
> [preset=math:uppercasebold]
>
> \definefontfamily [mainface] [mm] [TeX Gyre Pagella Math]
>
> \starttext
>
> \setupbodyfont[pagella]
>
> Lowercase: $ {\tf abc} {\it abc} {\bf abc} $
>
> Uppercase: $ {\tf ABC} {\it ABC} {\bf ABC} $
>
> \setupbodyfont[mainface]
>
> Lowercase: $ {\tf abc} {\it abch} {\bf abc} $
>
> Uppercase: $ {\tf ABC} {\it ABC} {\bf ABC} $
>
> \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://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] Quotation with method=font produces error

2017-10-19 Thread Christoph Reller
On Thu, 19 Oct 2017 11:53:56 +0200 Floris van Manen  wrote:

>
> > On 19 Oct 2017, at 11:33, Christoph Reller 
> wrote:
> >
> > \setupquotation[method=font]
>
> what is the intension of the method=font ?
>
>
Hi Floris,

Thank you for asking. Consider the following MWE:

\setupbodyfont[cambria]
%\setupquotation[method=font]
\starttext
\quotation{A}\crlf
“A”
\stoptext

In the output rendering of the above (see attachment), the first line lacks
kerning between the double quotes and the letter A. This can be enabled by
saying \setupquotation[method=font]. At least that is what I know about
this option. Am I wrong? Is there a different option for enabling this?

Regards,
Christoph

PS: Sorry for the wrong subject line of my previous email. It is corrected
now.
___
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] ntg-context Digest, Vol 160, Issue 26

2017-10-19 Thread Floris van Manen

> On 19 Oct 2017, at 11:33, Christoph Reller  wrote:
> 
> \setupquotation[method=font]

what is the intension of the method=font ?

.F


signature.asc
Description: Message signed with OpenPGP using GPGMail
___
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] ntg-context Digest, Vol 160, Issue 26

2017-10-19 Thread Christoph Reller
On Tue, 17 Oct 2017 13:38:37 + Christoph Reller <
christoph.rel...@gmail.com> wrote:

>
> In previous versions of ConTeXt the following MWE worked:
>
> \setupquotation[method=font]
> \starttext
> \quotation{A}
> \stoptext
>
> In more recent versions, the above produces an error:
>
> ! Extra }, or forgotten \endgroup
> l.3 \quotation{A}
>
> Is this a bug?
>

Please, could anybody confirm or disapprove this behavior.

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

[NTG-context] External graphics directory

2017-10-19 Thread N. Raghavendra
Is it possible to specify an external graphics directory either as an
environment variable, or as a command line option to `context', instead
of writing `\setupexternalfigures [directory=../../foo]'?  I tried the
environment variable setting

TEXINPUTS=../../foo::

as in http://www.tex.ac.uk/FAQ-graphicspath.html, and the command line
option

--path=../../foo

for `context', but neither works in my Linux environment.  I would like
to avoid cluttering ConTeXt files with system paths.

Thanks and regards,
Raghu.

-- 
N. Raghavendra , http://www.retrotexts.net/
Harish-Chandra Research Institute, http://www.hri.res.in/
___
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] Forced Page Break in a Table of Content

2017-10-19 Thread Antoine Cailliau
No one for helping me ?

On 11 October 2017 at 10:49, Antoine Cailliau 
wrote:

> hi,
>
> The wiki documents how to insert a page break in a table of content:
> http://wiki.contextgarden.net/Table_of_Contents#Forced_Page_Break
>
> However, this does not work on ConTeXt ver: 2017.07.27 16:17 MKIV beta
> fmt: 2017.7.28
>
> The following minimal document does not have the page break.
>
> \definelistextra[page][before=\page]
>> \starttext
>> \placecontent[criterium=all,extras={2=page}]
>> \startsection[title={A}]
>> \stopsection
>> \startsection[title={B}]
>> \stopsection
>> \startsection[title={C}]
>> \stopsection
>> \stoptext
>
>
> Can anyone help me have the page break in the table of content?
>
> Thanks in advance,
>
> Antoine
>
___
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
___