Re: [NTG-context] Baskervald ADF Virtual Math Fonts

2014-04-17 Thread Mikael P. Sundqvist
Hi Joas,

I do not have that font to try (and sorry if I misunderstand the
question), but the following works to get Minion italic as
"lowercaseitalic" and so on instead of Pagella. Maybe using the names
instead of the glyph ranges work for you aswell?

\definefontfamily [mainface] [rm] [Minion Pro][opticalsize=yes]
\definefontfamily [mainface] [ss] [Myriad Pro][opticalsize=yes]

\definefallbackfamily [mainface] [math] [Minion Pro]
[math:uppercasenormal] [force=yes]
\definefallbackfamily [mainface] [math] [Minion Pro]
[math:uppercaseitalic] [force=yes]
\definefallbackfamily [mainface] [math] [Minion Pro]
[math:lowercasenormal] [force=yes]
\definefallbackfamily [mainface] [math] [Minion Pro]
[math:lowercaseitalic] [force=yes]
\definefallbackfamily [mainface] [math] [Minion Pro]
[math:digitsnormal][force=yes]
\definefontfamily [mainface] [math] [TeX Gyre Pagella Math]

Best regards, Mikael

On Fri, Apr 18, 2014 at 8:20 AM,   wrote:
>>>
>>>
>>>
>>> Hello,
>>>
>>>
>>>
 Replacing certain symbols in a math font with a text font is very easy
 with the fallback
>>>
 mechanism and the \definefallbackfamily command makes things even
 simpler.
>>>
>>> The command \definefallbackfamily seems not to be a typescript-level
>>> command.
>
> You need a newer version of ConTeXt to get that command.
>
>
> Ok. You may also answer my question:
>
> Let us consider the statememt:
>
>
> \definefontfallback [BaskervaldOverPagella] [file:BaskervaldADFStd-Italic]
> [0x1D44E-0x1D467] [\check=yes,force=yes]
>
>
>
>
> I understand it as: “Replace the glyphs 0x1D44E-0x1D467 (mathematical a-z)
>
> of the source font with the glyphs from Baskervald italic having the same
> code.”
>
> But how do you map 0x1D44E-0x1D467 of the source font to 0x61-0x7a.
>
> How do you say:  “Replace the glyphs 0x1D44E-0x1D467 (mathematical a-z) of
>
> the source font with the glyphs  0x61-0x7a (text a-z) from Baskervald
> italic”?
>
> For example something like:
>
>
> \definefontfallback [BaskervaldOverPagella] [file:BaskervaldADFStd-Italic]
> [0x1D44E-0x1D467] [0x61-0x7a] [\check=yes,force=yes]
>
>
> Thank you,
> Joas
>
> ___
> 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] Baskervald ADF Virtual Math Fonts

2014-04-17 Thread joasyannick
>>
>>
>>
>> Hello,
>>
>>
>>
>>> Replacing certain symbols in a math font with a text font is very easy with 
>>> the fallback
>>
>>> mechanism and the \definefallbackfamily command makes things even simpler.
>>
>> The command \definefallbackfamily seems not to be a typescript-level command.

You need a newer version of ConTeXt to get that command.


Ok. You may also answer my question:


Let us consider the statememt:



\definefontfallback [BaskervaldOverPagella] [file:BaskervaldADFStd-Italic]   
[0x1D44E-0x1D467] [\check=yes,force=yes]




I understand it as: “Replace the glyphs 0x1D44E-0x1D467 (mathematical a-z)

of the source font with the glyphs from Baskervald italic having the same code.”

But how do you map 0x1D44E-0x1D467 of the source font to 0x61-0x7a.

How do you say:  “Replace the glyphs 0x1D44E-0x1D467 (mathematical a-z) of

the source font with the glyphs  0x61-0x7a (text a-z) from Baskervald italic”?

For example something like:


\definefontfallback [BaskervaldOverPagella] [file:BaskervaldADFStd-Italic]   
[0x1D44E-0x1D467] [0x61-0x7a] [\check=yes,force=yes]


Thank you,

Joas___
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] Unwanted whitespace with \startsection and in-margin headings

2014-04-17 Thread Rik Kabel
Following up on a related whitespace problem with descriptions and 
tables following in-margin headings --


I notice that \startsection behaves differently from \section when it 
comes to following whitespace for in-margin headings. This example 
demonstrates this:


   \setuplayout [backspace=6cm,leftmargin=6cm,rightmargin=1cm,cutspace=1cm]

   \setuphead   [chapter][page=no]
   \setuphead   [section][distance=0pt,
  alternative=text,
  command=\MarginHead]

   \define[2]\MarginHead{\inmargin{#1 #2}}

   \starttext

   \chapter{Traditional}

   There is no extra white space when using the traditional
   sectioning commands when the heading is placed in the margin.

   \section{No blank line}
   This text follows the section heading with no intervening space.
   No extra space has been added.

   \section{Blank line}

   This text follows the section heading with one intervening blank
   line. No extra space has been added.

   \startchapter[title={Startsection}]

   The newer sectioning commands are sensitive to the whitespace which
   follows when the heading is placed in the margin.

   \startsection[title={No blank line}]
   This text follows the section heading with no intervening space.
   No extra space has been added.

   \stopsection
   \startsection[title={Blank line ?}]

   This text follows the section heading with one intervening blank
   line. It shows the problem with startsection.

   \stopsection
   \stopchapter
   \stoptext

What can be done with the header setup to prevent this?

--
Rik Kabel
___
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] Unwanted whitespace for tables and enumerations after \inmargin headings

2014-04-17 Thread Rik Kabel
(This appears to be the same issue which was raised by Alexandros 
Frantzis in October 2008; see the thread at 
http://www.mail-archive.com/ntg-context%40ntg.nl/msg32125.html. No 
resolution was proposed at that time, and the problem still exists.)


Extra whitespace occurs before itemizations and tabulations (and quite 
possibly other structures) which appear immediately following an 
in-margin heading. The following example illustrates this.


   \setuplayout [backspace=7cm,leftmargin=6cm]

   \setuphead   [chapter][]

   \setuphead   [subsection]
 [alternative=normal,command=,distance=1em]

   \setuphead   [subsubsection]
 [alternative=normal,command=,distance=1em]

   \setuphead   [section][distance=0pt,
  alternative=text,
  command=\MarginHead]

   \define[2]\MarginHead{\inmargin{#1 #2}}

   \startbuffer[Item]
  \startitemize
\item Item
\item Idem
  \stopitemize
   \stopbuffer
   \startbuffer[Table]
  \starttabulate[|l|l|]
\FL\NC Entry \NC one \NC\NR
   \NC Entry \NC two \NC\NR\LL
  \stoptabulate
   \stopbuffer

   \starttext

   \chapter{Itemize}

   \section{No extra whitespace}
   With text here there is no extra whitespace before the itemization.
   \getbuffer[Item]

   \subsection{No extra whitespace}
   With text here there is no extra whitespace before the itemization.
   \getbuffer[Item]

   \section{Extra whitespace}
   \getbuffer[Item]
   With no text before the itemization there is extra space after the
   heading.

   \subsection{No extra whitespace}
   \getbuffer[Item]
   With no text before the itemization there is extra space after the
   heading.

   \chapter{Tabulate}

   \section{No extra whitespace}
   With text here there is no extra whitespace before the table.
   \getbuffer[Table]

   \subsection{No extra whitespace}
   With text here there is no extra whitespace before the table.
   \getbuffer[Table]

   \section{Extra whitespace}
   \getbuffer[Table]
   With no text before the table there is extra space after the heading.

   \subsection{No extra whitespace}
   \getbuffer[Table]
   With no text before the table there is extra space after the heading.

   \stoptext

Is this unresolvable? Like Alexandros, I have tried many of the options 
that looked appropriate, but nothing seems to work.


--
Rik Kabel
___
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] OT: looking for a "soviet" font

2014-04-17 Thread Joshua Krämer
On 2014-04-16, 9:45, Henning Hraban Ramm wrote:

> I don’t think Baltica is very legible, even if it fits the style.

It is based on Candida, which I find quite legible especially in small
texts for German.  It is for example used by the German Magazine
"Focus", you can see an example here (from "Focus Schule"):

http://news.elli-e.de/Focus2000.jpg

However, I don't know how legible its cyrillic characters are.

Anyway, I have no objections against a sans serif like Journal!

Kind regards,
Joshua


___
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] Baskervald ADF Virtual Math Fonts

2014-04-17 Thread Aditya Mahajan

On Thu, 17 Apr 2014, joasyann...@gmail.com wrote:





Hello,




Replacing certain symbols in a math font with a text font is very easy with the 
fallback



mechanism and the \definefallbackfamily command makes things even simpler.


The command \definefallbackfamily seems not to be a typescript-level command.


You need a newer version of ConTeXt to get that command.

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


[NTG-context] Baskervald ADF Virtual Math Fonts

2014-04-17 Thread joasyannick



Hello,



> Replacing certain symbols in a math font with a text font is very easy with 
> the fallback

> mechanism and the \definefallbackfamily command makes things even simpler.




Thank you for your answer.




The command \definefallbackfamily seems not to be a typescript-level command.

Let us try \definefontfallback.




Let us consider the statememt:




\definefontfallback [BaskervaldOverPagella] [file:BaskervaldADFStd-Italic]   
[0x1D44E-0x1D467] [\check=yes,force=yes]




I understand it as: “Replace the glyphs 0x1D44E-0x1D467 (mathematical a-z)

of the source font with the glyphs from Baskervald italic having the same code.”

But how do you map 0x1D44E-0x1D467 of the source font to 0x61-0x7a.

How do you say:  “Replace the glyphs 0x1D44E-0x1D467 (mathematical a-z) of

the source font with the glyphs  0x61-0x7a (text a-z) from Baskervald italic”?

For example something like:


\definefontfallback [BaskervaldOverPagella] [file:BaskervaldADFStd-Italic]   
[0x1D44E-0x1D467] [0x61-0x7a] [\check=yes,force=yes]




Other question: What do check, force and offset means?




Thank you.


Best regards,

Joas.___
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] Getting the current chapter number in the TOC

2014-04-17 Thread Wolfgang Schuster

Am 17.04.2014 um 17:27 schrieb Maggyero :

> Hello,
> 
> 
> How can I get the following table of contents?
> 
> 
> Contents
> 
> Chapter first MyTitle
> Chapter II MyTitle
> Chapter III MyTitle
> 
> 
> I have tried:
> 
> \MyNumber{\doifelse{\currentsectioncountervalue}{1}{first}{#1}}
> setuplist[chapter][numbercommand=\MyNumber]
> 
> but it does not work. Actually because \currentsectioncountervalue always 
> returns 0 in the table of contents. So I need another command which gives me 
> the current number for testing if it is equal to one (first chapter).

\define[1]\Weirdnumber
  {\ifcase#1\relax
 % 0
   \or
 First% 1
   \else
 \convertnumber{Romannumerals}{#1}%
   \fi}

\defineconversion[Weirdnumber][\Weirdnumber]

\defineconversionset[Weirdchapter][number,Weirdnumber][number]

\setuplist[chapter][width=3em,numberconversionset=Weirdchapter]

\starttext

\completecontent

\dorecurse{10}{\expanded{\chapter{Chapter \recurselevel}}}

\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] Getting the current chapter number in the TOC

2014-04-17 Thread Maggyero
Hello,


How can I get the following table of contents?


Contents

Chapter first MyTitle
Chapter II MyTitle
Chapter III MyTitle


I have tried:

\MyNumber{\doifelse{\currentsectioncountervalue}{1}{first}{#1}}
setuplist[chapter][numbercommand=\MyNumber]

but it does not work. Actually because \currentsectioncountervalue always
returns 0 in the table of contents. So I need another command which gives
me the current number for testing if it is equal to one (first chapter).


Thank you in advance.
___
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] Two figures are side by side

2014-04-17 Thread Fabrice

Thank you very much Wolfgang,
Fabrice
___
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] pagecolormodel problem

2014-04-17 Thread Peter Rolf
Am 16.04.2014 01:15, schrieb Hans Hagen:
> On 4/16/2014 12:41 AM, Sanjoy Mahajan wrote:
>>> can someone confirm, that this code fails with a recent ConTeXt version?
>>
>> It fails for me with 2014.03.27 (luatex 0.78.2).
> 
> will be fixed in next beta
> 
Works with the beta from 2014-04-17. Thanks to Hans for fixing it and to
Sanjoy for taking the time to test :-)


Best wishes,  Peter
___
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 missing character log messages

2014-04-17 Thread Hans Hagen

On 4/17/2014 2:51 AM, Rik Kabel wrote:

It appears that descriptions generate a spurious

Missing character: There is no ^@ (U+) in font lmroman12-regular!

log message. MWE:

\definedescription[oops][]
\starttext
\oops{Where}is the U+?
\stoptext

The messages appears in the log once for each description in the document.

This happens with the current (2014-04-15) beta. It does not happen with
TL13.


its a bug in the missing char reporter (it should not report .notdef 
characters) ... it looks like that checker is somewhat flawed anyway so 
we'll look into it


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Two figures are side by side

2014-04-17 Thread Alan BRASLAU
On Wed, 16 Apr 2014 20:34:20 +0200
Wolfgang Schuster  wrote:

> 
> Am 16.04.2014 um 20:16 schrieb Fabrice Couvreur
> :
> 
> > Hi, 
> > How do the two figures are side by side ?
> 
> Each object in a combination consists of two object, (1) the image
> etc. and (2) the caption but in your example you have only one object
> where the figure acts as caption.
> 
> \startcombination[…]
>   {}{}
>   {}{}
> \stopcombination
> 
> Wolfgang
> 

Alternatively, (but less general)

\placesidebyside
  {table here}
  {figure here}

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
___