[NTG-context] simplefonts not working with Debian 8.1

2015-06-22 Thread Mica Semrick

Hello list,

I'm having trouble getting system fonts to load with simplefont on Debian 8.1. 
I'm not exactly sure how to troubleshoot this issue. This worked when Debian 
Jessie was still 'testing' but now fails on a machine it was working on and on 
a fresh install. All my fonts are in ~/.fonts and Libre Office Writer can see 
all the fonts and fc-list shows them as well.

In my document, I'm loading fonts like this:

\definefontfamily [mainface] [rm] [EB Garamond]
\definefontfamily[mainface][sans][Gill Sans]

\setupbodyfont[mainface,11pt]
\setupbodyfontenvironment[default][em=italic]

The log file says:

fonts   > preloading modern-designsize (math)
fonts   > typescripts > unknown library 'modern-designsize'
fonts   > 'fallback modern-designsize mm 11pt' is loaded
fonts   > preloading modern-designsize (mono)
fonts   > 'fallback modern-designsize tt 11pt' is loaded
fonts   > defining > font with asked name 'unknown' is not found using 
lookup 'file'
fonts   > defining > unknown font 'unknown', loading aborted
fonts   > defining > unable to define 'unknown' as 
'mainface-11pt-rm-tf-0--0'
fonts   > defining > font with asked name 'unknown' is not found using 
lookup 'file'
fonts   > defining > unknown font 'unknown', loading aborted
fonts   > defining > unable to define 'unknown' as 
'mainface-11pt-mm-mr--3'
fonts   > defining > font with asked name 'unknown' is not found using 
lookup 'file'
fonts   > defining > unknown font 'unknown', loading aborted
fonts   > defining > unable to define 'unknown' as 
'mainface-11pt-mm-mr--2'
fonts   > defining > font with asked name 'unknown' is not found using 
lookup 'file'
fonts   > defining > unknown font 'unknown', loading aborted
fonts   > defining > unable to define 'unknown' as 
'mainface-11pt-mm-mr--1'
fonts   > defining > font with asked name 'unknown' is not found using 
lookup 'file'
fonts   > defining > unknown font 'unknown', loading aborted
fonts   > defining > unable to define 'unknown' as 
'mainface-11pt-mm-mb--3'
fonts   > defining > font with asked name 'unknown' is not found using 
lookup 'file'
fonts   > defining > unknown font 'unknown', loading aborted
fonts   > defining > unable to define 'unknown' as 
'mainface-11pt-mm-mb--2'
fonts   > defining > font with asked name 'unknown' is not found using 
lookup 'file'
fonts   > defining > unknown font 'unknown', loading aborted
fonts   > defining > unable to define 'unknown' as 
'mainface-11pt-mm-mb--1'

Any direction I can take to troubleshoot this would be of great help!

Thank you for your time.

Best,
Mica
___
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] \setuphead[part] - special look

2015-06-22 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

I'm trying to \setuphead[part] to have the following features:

1. Part head to fill the whole page.

2. Part number and name to be placed (approx.) in the golden ratio of the page.

3. Page background (for the \part only!) to be colored, e.g. blue.


\define[2]\MyPartCmd{%
{%
  \vbox to\vsize{%
\vfill\vfill%
#1
\blank[big]
#2
\vfill\vfill\vfill%
  }
}%
}

\define[1]\MyPartCmdText{%
  \hbox to\hsize{\hfill \bf DĂl #1\hfill}%
}

\definefontsize[e]
\definebodyfontenvironment[default][e=5.]

\define[1]\MyPartCmdNum{%
  \hbox to\hsize{\hfill \bfe\sc#1\hfill}%
}

\setuphead[part]
  [command=\MyPartCmd,
   numbercommand=\MyPartCmdText,
   textcommand=\MyPartCmdNum,
   placehead=yes,header=none,page=odd,
   
before={\setupbackgrounds[page][background=color,backgroundcolor=blue,state=start]},
   %after={\setupbackgrounds[page][background=]},
  ]

\starttext
  \showboxes
  \part{Part}
  \input knuth
\stoptext


The code above doesn't satisfy the features:

Ad 1: Some text (from knuth) appears in the bottom (should be solved by 
"after=\page", but is there a better solution, e.g. to affect height of the 
\vbox in \MyPartCmd?)

Ad 3: I'm able to make only the part page blue (now all pages are blue; when I uncomment 
"after={\setupbackgrounds[page][background=]},", no page is blue).

Could anyone help me to "tune" the \setuphead[part]?

Thank you in advance.

Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

Ull-Gra.test.mkiv
Description: Binary data


Ull-Gra.test.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] definereferencestructureprefix for floats

2015-06-22 Thread Wolfgang Schuster



Aditya Mahajan 
22. Juni 2015 05:35
On Sun, 21 Jun 2015, Aditya Mahajan wrote:


Even the second example in strc-ref.mkvi does not work correctly.

\starttext
\chapter{test}
\placefigure[here][xx:1]{}{\framed{one}} 
\placefigure[here][xx:2]{}{\framed{three}}
\placetable [here][xx:3]{}{\framed{two}} \placetable 
[here][xx:4]{}{\framed{four}}

\start
\in{fig}[xx:1] and \in{fig}[xx:2] \in{tab}[xx:3] and 
\in{tab}[xx:4]

\stop \blank \start
\setupreferencestructureprefix[default][prefix=no]
\in{fig}[xx:1] and \in{fig}[xx:2] \in{tab}[xx:3] and 
\in{tab}[xx:4]

\stop \blank \start
\setupreferencestructureprefix[float][default][prefix=no]
\in{fig}[xx:1] and \in{fig}[xx:2] \in{tab}[xx:3] and 
\in{tab}[xx:4]

\stop \blank \start
\setupreferencestructureprefix[figure][default][prefix=no]
\in{fig}[xx:1] and \in{fig}[xx:2] \in{tab}[xx:3] and 
\in{tab}[xx:4]

\stop \blank
\stoptext

The second case, (\setup...[default][prefix=no]) works correctly, but 
the last two cases (\setup...[float][default][prefix=no], etc) do not 
get rid of the prefix.

Did you fix the typo in strc-ref.lua and regenrate the format?

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] \setuphead[part] - special look

2015-06-22 Thread Wolfgang Schuster



Procházka Lukáš Ing. - Pontex s. r. o. 
22. Juni 2015 09:35
Hello,

I'm trying to \setuphead[part] to have the following features:

1. Part head to fill the whole page.

2. Part number and name to be placed (approx.) in the golden ratio of 
the page.


3. Page background (for the \part only!) to be colored, e.g. blue.


\define[2]\MyPartCmd{%
{%
  \vbox to\vsize{%
\vfill\vfill%
#1
\blank[big]
#2
\vfill\vfill\vfill%
  }
}%
}

\define[1]\MyPartCmdText{%
  \hbox to\hsize{\hfill \bf DĂl #1\hfill}%
}

\definefontsize[e]
\definebodyfontenvironment[default][e=5.]

\define[1]\MyPartCmdNum{%
  \hbox to\hsize{\hfill \bfe\sc#1\hfill}%
}

\setuphead[part]
  [command=\MyPartCmd,
   numbercommand=\MyPartCmdText,
   textcommand=\MyPartCmdNum,
   placehead=yes,header=none,page=odd,
   
before={\setupbackgrounds[page][background=color,backgroundcolor=blue,state=start]}, 


   %after={\setupbackgrounds[page][background=]},
  ]

\starttext
  \showboxes
  \part{Part}
  \input knuth
\stoptext


The code above doesn't satisfy the features:

Ad 1: Some text (from knuth) appears in the bottom (should be solved 
by "after=\page", but is there a better solution, e.g. to affect 
height of the \vbox in \MyPartCmd?)

The \page command is needed here.
Ad 3: I'm able to make only the part page blue (now all pages are 
blue; when I uncomment 
"after={\setupbackgrounds[page][background=]},", no page is blue).
You can use the \pushbackground and \popbackground command to limit the 
background changes to a certain part of your document.

Could anyone help me to "tune" the \setuphead[part]?

\defineheadalternative
  [partpage]
  [renderingsetup=partpage]

\startsetups[partpage]

\startmakeup[part]
\headsetupspacing
\headnumbercontent
\blank[big]
\headtextcontent
\stopmakeup

\stopsetups

\definemakeup
  [part]
  [align=middle,
   top=\vfill\vfill,
   bottom=\vfill\vfill\vfill]

\setuphead
  [part]
  [placehead=yes,
   alternative=partpage,
   page=right,
   
before={\pushbackground[page]\setupbackgrounds[page][background=color,backgroundcolor=blue]},

   after={\page\popbackground},
   bodypartlabel=part,
   align=middle,
   numberstyle=\bfb,
   textstyle=\bfd\sc]

\setuplabeltext[en][part=DĂl ]

\starttext
  \part{Part}
  \input knuth
\stoptext

BTW: Where is Ad 2?

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] Wiki broken: “internal error: pdfcrop failed” for new

2015-06-22 Thread Taco Hoekwater

> On 20 Jun 2015, at 19:00, Philipp A.  wrote:
> 
> Hi, as you see with the second example here: 
> http://wiki.contextgarden.net/Multiline_equations#Working_with_equation_numbering
> 
> perfectly valid code that isn’t already rendered and cached fails to be shown.
> 
> Someone needs to fix the wiki!

Done (well, I hope). There is still a problem with the subformula example, but 
at least the
wiki shows a png now.

Best wishes,
Taco

___
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] \setuphead[part] - special look

2015-06-22 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello Wolfgang,

thank you for the solution, it pretty systemic.

Ad "Ad 2": There was no question as succeeded placing page number and name into 
the page gold ratio, so just mentioned as one of the features required.

After some plying with your solution, I deduce:

We have to derive a new alternative for "part" (here "partpage") as we CAN assign a new 
"renderingsetup" to this alternative but we CANNOT assign a rendering setup in the scope of 
\setuphead.

IOW, there is no "\setuphead[part][renderingsetup=partpage]".

If there was the option "\setuphead[part][renderingsetup=partpage]" we could 
simplify to:


% No headalternative here

\startsetups[partpage]
   \startmakeup[part]
   \headsetupspacing
   \headnumbercontent
   \blank[big]
   \headtextcontent
   \stopmakeup
\stopsetups

\definemakeup
 [part]
 [align=middle,
  top=\vfill\vfill,
  bottom=\vfill\vfill\vfill]

\setuphead
 [part]
 [...
  renderingsetup=partpage,
  ...
 ]

...



Am I right?

(And, I understand that the aim is not to support all extraordinary request(s) in 
\setuphead by its keys/options - it is enough to have A way to get them, here using a 
"headalternative"...)

Thanks again.

Best regards,

Lukas


On Mon, 22 Jun 2015 10:51:46 +0200, Wolfgang Schuster 
 wrote:



You can use the \pushbackground and \popbackground command to limit the
background changes to a certain part of your document.



\defineheadalternative
   [partpage]
   [renderingsetup=partpage]

\startsetups[partpage]

 \startmakeup[part]
 \headsetupspacing
 \headnumbercontent
 \blank[big]
 \headtextcontent
 \stopmakeup

\stopsetups

\definemakeup
   [part]
   [align=middle,
top=\vfill\vfill,
bottom=\vfill\vfill\vfill]

\setuphead
   [part]
   [placehead=yes,
alternative=partpage,
page=right,
before={\pushbackground[page]\setupbackgrounds[page][background=color,backgroundcolor=blue]},
after={\page\popbackground},
bodypartlabel=part,
align=middle,
numberstyle=\bfb,
textstyle=\bfd\sc]

\setuplabeltext[en][part=DĂl ]

\starttext
   \part{Part}
   \input knuth
\stoptext

BTW: Where is Ad 2?

Wolfgang




--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

___
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] simplefonts not working with Debian 8.1

2015-06-22 Thread Mica Semrick
And after troubleshooting my shell further, something was inserting $OSFONTDIR. 
Everything is working now, sorry for the noise.

Best,
Mica

On June 22, 2015 12:23:35 AM PDT, Mica Semrick  wrote:
>Hello list,
>
>I'm having trouble getting system fonts to load with simplefont on
>Debian 8.1. I'm not exactly sure how to troubleshoot this issue. This
>worked when Debian Jessie was still 'testing' but now fails on a
>machine it was working on and on a fresh install. All my fonts are in
>~/.fonts and Libre Office Writer can see all the fonts and fc-list
>shows them as well.
>
>In my document, I'm loading fonts like this:
>
>\definefontfamily [mainface] [rm] [EB Garamond]
>\definefontfamily[mainface][sans][Gill Sans]
>
>\setupbodyfont[mainface,11pt]
>\setupbodyfontenvironment[default][em=italic]
>
>The log file says:
>
>fonts   > preloading modern-designsize (math)
>fonts   > typescripts > unknown library 'modern-designsize'
>fonts   > 'fallback modern-designsize mm 11pt' is loaded
>fonts   > preloading modern-designsize (mono)
>fonts   > 'fallback modern-designsize tt 11pt' is loaded
>fonts   > defining > font with asked name 'unknown' is not
>found using lookup 'file'
>fonts   > defining > unknown font 'unknown', loading aborted
>fonts   > defining > unable to define 'unknown' as
>'mainface-11pt-rm-tf-0--0'
>fonts   > defining > font with asked name 'unknown' is not
>found using lookup 'file'
>fonts   > defining > unknown font 'unknown', loading aborted
>fonts   > defining > unable to define 'unknown' as
>'mainface-11pt-mm-mr--3'
>fonts   > defining > font with asked name 'unknown' is not
>found using lookup 'file'
>fonts   > defining > unknown font 'unknown', loading aborted
>fonts   > defining > unable to define 'unknown' as
>'mainface-11pt-mm-mr--2'
>fonts   > defining > font with asked name 'unknown' is not
>found using lookup 'file'
>fonts   > defining > unknown font 'unknown', loading aborted
>fonts   > defining > unable to define 'unknown' as
>'mainface-11pt-mm-mr--1'
>fonts   > defining > font with asked name 'unknown' is not
>found using lookup 'file'
>fonts   > defining > unknown font 'unknown', loading aborted
>fonts   > defining > unable to define 'unknown' as
>'mainface-11pt-mm-mb--3'
>fonts   > defining > font with asked name 'unknown' is not
>found using lookup 'file'
>fonts   > defining > unknown font 'unknown', loading aborted
>fonts   > defining > unable to define 'unknown' as
>'mainface-11pt-mm-mb--2'
>fonts   > defining > font with asked name 'unknown' is not
>found using lookup 'file'
>fonts   > defining > unknown font 'unknown', loading aborted
>fonts   > defining > unable to define 'unknown' as
>'mainface-11pt-mm-mb--1'
>
>Any direction I can take to troubleshoot this would be of great help!
>
>Thank you for your time.
>
>Best,
>Mica
>___
>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
___

Re: [NTG-context] definereferencestructureprefix for floats

2015-06-22 Thread Aditya Mahajan

On Mon, 22 Jun 2015, Wolfgang Schuster wrote:




Aditya Mahajan 
22. Juni 2015 05:35
On Sun, 21 Jun 2015, Aditya Mahajan wrote:


Even the second example in strc-ref.mkvi does not work correctly.

\starttext
\chapter{test}
\placefigure[here][xx:1]{}{\framed{one}} 
\placefigure[here][xx:2]{}{\framed{three}}
\placetable [here][xx:3]{}{\framed{two}} \placetable 
[here][xx:4]{}{\framed{four}}

\start
\in{fig}[xx:1] and \in{fig}[xx:2] \in{tab}[xx:3] and \in{tab}[xx:4]
\stop \blank \start
\setupreferencestructureprefix[default][prefix=no]
\in{fig}[xx:1] and \in{fig}[xx:2] \in{tab}[xx:3] and \in{tab}[xx:4]
\stop \blank \start
\setupreferencestructureprefix[float][default][prefix=no]
\in{fig}[xx:1] and \in{fig}[xx:2] \in{tab}[xx:3] and \in{tab}[xx:4]
\stop \blank \start
\setupreferencestructureprefix[figure][default][prefix=no]
\in{fig}[xx:1] and \in{fig}[xx:2] \in{tab}[xx:3] and \in{tab}[xx:4]
\stop \blank
\stoptext

The second case, (\setup...[default][prefix=no]) works correctly, but the 
last two cases (\setup...[float][default][prefix=no], etc) do not get rid 
of the prefix.

Did you fix the typo in strc-ref.lua and regenrate the format?


Yes. Do these two example work correctly for you with the latest beta 
(after fixing the typo and generating the format)?


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
___

Re: [NTG-context] definereferencestructureprefix for floats

2015-06-22 Thread Wolfgang Schuster



Aditya Mahajan 
22. Juni 2015 17:34
On Mon, 22 Jun 2015, Wolfgang Schuster wrote:


Yes. Do these two example work correctly for you with the latest beta 
(after fixing the typo and generating the format)?


Yes, the examples work for me.

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] definereferencestructureprefix for floats

2015-06-22 Thread Aditya Mahajan


On Mon, 22 Jun 2015, Wolfgang Schuster wrote:




Aditya Mahajan 
22. Juni 2015 17:34
On Mon, 22 Jun 2015, Wolfgang Schuster wrote:


Yes. Do these two example work correctly for you with the latest beta 
(after fixing the typo and generating the format)?


Yes, the examples work for me.


I must be doing something wrong. But if it works at your end, I'll just 
wait for the next beta.


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

Re: [NTG-context] definereferencestructureprefix for floats

2015-06-22 Thread Otared Kavian
Hi Aditya, Hi Wolfgang,

I was following this thread and I fixed too the typo, then rebuilt the formats 
but the results I get are as Aditya describes it (please see the attached 
output I get). Actually I need something analogous but regarding a reference to 
a Theorem or Lemma within a given chapter.

My version is ConTeXt  ver: 2015.06.15 13:42 MKIV beta  fmt: 2015.6.22  int: 
english/english

Best regards: OK



definereferencestructureprefix-1.pdf
Description: Adobe PDF document

> On 22 Jun 2015, at 17:44, Wolfgang Schuster  
> wrote:
> 
> 
>> Aditya Mahajan   22. Juni 2015 17:34
>> On Mon, 22 Jun 2015, Wolfgang Schuster wrote: 
>> 
>> 
>> Yes. Do these two example work correctly for you with the latest beta (after 
>> fixing the typo and generating the format)? 
> 
> Yes, the examples work for me.
> 
> 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
> ___

___
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] \setuphead[part] - special look

2015-06-22 Thread Wolfgang Schuster



Procházka Lukáš Ing. - Pontex s. r. o. 
22. Juni 2015 11:42
Hello Wolfgang,

thank you for the solution, it pretty systemic.

Ad "Ad 2": There was no question as succeeded placing page number and 
name into the page gold ratio, so just mentioned as one of the 
features required.


After some plying with your solution, I deduce:

We have to derive a new alternative for "part" (here "partpage") as we 
CAN assign a new "renderingsetup" to this alternative but we CANNOT 
assign a rendering setup in the scope of \setuphead.


IOW, there is no "\setuphead[part][renderingsetup=partpage]".

If there was the option "\setuphead[part][renderingsetup=partpage]" we 
could simplify to:
This method to set your own layout is also used by other command (e.g. 
the list mechanism used for the table of contents) and the 
\defineheadplacement has also a alternative key which is needed when you 
want an inline heading (e.g. \setuphead[...][alternative=text]).


% No headalternative here

\startsetups[partpage]
   \startmakeup[part]
   \headsetupspacing
   \headnumbercontent
   \blank[big]
   \headtextcontent
   \stopmakeup
\stopsetups

\definemakeup
 [part]
 [align=middle,
  top=\vfill\vfill,
  bottom=\vfill\vfill\vfill]

\setuphead
 [part]
 [...
  renderingsetup=partpage,
  ...
 ]

...



Am I right?

(And, I understand that the aim is not to support all extraordinary 
request(s) in \setuphead by its keys/options - it is enough to have A 
way to get them, here using a "headalternative"...)
The necessary key would be endless with each new layout and with the 
\defineheadplacement command to create your own without adding 
additional keys but you can also use the command key instead of 
\defineheadplacement. The advantage of \defineheadplacement is that you 
can better structure the code in the setups environment because you 
don't have to worry about spaces.


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] Virtual font question

2015-06-22 Thread Zhichu Chen

Hello list,

I was trying to use the Math Times Pro 2 fonts in ConTeXt MKIV. This 
Type1 font
contains a map file, a set of pfb files and the corresponding tfm files. 
I was managed

to write a .lfg file and a type-imp-xxx file, but here's my problem.

The font comes with three different sizes, the virtual fonts in my .lfg 
file look like:

===
virtuals = {
["mtpro06a-regular"] = {
{ name = "file:texgyretermes-regular.otf", features = 
"virtualmath", main = true },
{ name = "mt2mif.tfm", vector = "mtpro2-mi", 
skewchar=0x7F },
{ name = "mt2syf.tfm", vector = "mtpro2-sy", 
skewchar=0x30, parameters = true },
{ name = "mt2mbf.tfm", vector = "mtpro2-mb", 
skewchar=0x7F },
{ name = "mt2syaf.tfm", vector = "mtpro2-sya", 
skewchar=0x7F },
{ name = "mt2bbf.tfm", vector = "mtpro2-bb", 
skewchar=0x7F },
{ name = "mt2msf.tfm", vector = "mtpro2-mca", 
skewchar=0x7F },
{ name = "mt2bmsf.tfm", vector = "mtpro2-bmca", 
skewchar=0x7F },
{ name = "mt2mff.tfm", vector = "mtpro2-mfa", 
skewchar=0x7F },
{ name = "mt2bmff.tfm", vector = "mtpro2-bmfa", 
skewchar=0x7F },
{ name = "mt2bbif.tfm", vector = "mtpro2-bbi", 
skewchar=0x7F },

},
["mtpro08a-regular"] = {
{ name = "file:texgyretermes-regular.otf", features = 
"virtualmath", main = true },
{ name = "mt2mis.tfm", vector = "mtpro2-mi", 
skewchar=0x7F },
{ name = "mt2sys.tfm", vector = "mtpro2-sy", 
skewchar=0x30, parameters = true },
{ name = "mt2mbs.tfm", vector = "mtpro2-mb", 
skewchar=0x7F },
{ name = "mt2syas.tfm", vector = "mtpro2-sya", 
skewchar=0x7F },
{ name = "mt2bbs.tfm", vector = "mtpro2-bb", 
skewchar=0x7F },
{ name = "mt2mss.tfm", vector = "mtpro2-mca", 
skewchar=0x7F },
{ name = "mt2bmss.tfm", vector = "mtpro2-bmca", 
skewchar=0x7F },
{ name = "mt2mfs.tfm", vector = "mtpro2-mfa", 
skewchar=0x7F },
{ name = "mt2bmfs.tfm", vector = "mtpro2-bmfa", 
skewchar=0x7F },
{ name = "mt2bbis.tfm", vector = "mtpro2-bbi", 
skewchar=0x7F },

},
["mtpro10a-regular"] = {
{ name = "file:texgyretermes-regular.otf", features = 
"virtualmath", main = true },
{ name = "mt2mit.tfm", vector = "mtpro2-mi", 
skewchar=0x7F },
{ name = "mt2syt.tfm", vector = "mtpro2-sy", 
skewchar=0x30, parameters = true },
{ name = "mt2mbt.tfm", vector = "mtpro2-mb", 
skewchar=0x7F },
{ name = "mt2syat.tfm", vector = "mtpro2-sya", 
skewchar=0x7F },
{ name = "mt2bbt.tfm", vector = "mtpro2-bb", 
skewchar=0x7F },
{ name = "mt2mst.tfm", vector = "mtpro2-mca", 
skewchar=0x7F },
{ name = "mt2bmst.tfm", vector = "mtpro2-bmca", 
skewchar=0x7F },
{ name = "mt2mft.tfm", vector = "mtpro2-mfa", 
skewchar=0x7F },
{ name = "mt2bmft.tfm", vector = "mtpro2-bmfa", 
skewchar=0x7F },
{ name = "mt2bbit.tfm", vector = "mtpro2-bbi", 
skewchar=0x7F },

},
===
I guess the suffixes "f" "s" and "t" may correspond to "five" "seven" 
and "ten", but that's
not important. I could use one of them as the virtual font in the 
typescript:

===
\definefontsynonym [\s!MathRoman] [MTPro10a-Regular@mtpro10a-regular]
===
The output pdf used the 10-size font as expected.

I stole some codes from lm.lfg and added the following code:
===
designsizes = {
["MathTimeProA-Regular"] = {
["4pt"]  = "MTPro06a-Regular@mtpro06a-regular",
["5pt"]  = "MTPro06a-Regular@mtpro06a-regular",
["6pt"]  = "MTPro06a-Regular@mtpro06a-regular",
["7pt"]  = "MTPro08a-Regular@mtpro08a-regular",
["8pt"]  = "MTPro08a-Regular@mtpro08a-regular",
["9pt"]  = "MTPro08a-Regular@mtpro08a-regular",
["10pt"] = "MTPro10a-Regular@mtpro10a-regular",
["11pt"] = "MTPro10a-Regular@mtpro10a-regular",
["12pt"] = "MTPro10a-Regular@mtpro10a-regular",
default  = "MTPro10a-Regular@mtpro10a-regular"
},
===
and modified the typescript:
===
\definefontsynonym [\s!MathRoman] [\v!name:MathTimeProA-Regular] 
[\s!goodies=math-times-pro-math]

===
It failed as e

Re: [NTG-context] Virtual font question

2015-06-22 Thread Aditya Mahajan

On Tue, 23 Jun 2015, Zhichu Chen wrote:

I was trying to use the Math Times Pro 2 fonts in ConTeXt MKIV. This 
Type1 font contains a map file, a set of pfb files and the corresponding 
tfm files. I was managed to write a .lfg file and a type-imp-xxx file, 
but here's my problem.


I don't have the fonts, so I cannot describe the exact method. But see 
below and also have a look at Section 5 of
https://www.tug.org/TUGboat/tb30-2/tb95mahajan-cmath.pdf The description 
is old, and some of the file locations have changes, but the basic 
infrastructure is still the same.


The font comes with three different sizes, the virtual fonts in my .lfg 
file look like:

===
virtuals = {
["mtpro06a-regular"] = {
{ name = "file:texgyretermes-regular.otf", features = 
"virtualmath", main = true },
{ name = "mt2mif.tfm", vector = "mtpro2-mi", 
skewchar=0x7F },

[...]

},


The vectors mptpro2-mi etc are not defined. Look at math-ttv.lua for a 
list of predefined vectors (mapping type1 fonts to unicode symbols. It is 
quite likely that the mtpro fonts would follow the "standard" mappings; if 
not, you will need to create an approrpriate mapping for each font. This 
is not difficult (just monotonous).



===
I guess the suffixes "f" "s" and "t" may correspond to "five" "seven" 
and "ten", but that's
not important. I could use one of them as the virtual font in the 
typescript:


Once this is done, rest of the typescript should work. It may be a good 
idea to try to see if you can get roman letters from mtpro.


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
___

Re: [NTG-context] Virtual font question

2015-06-22 Thread Zhichu Chen

Hi Aditya,


On 06/23/2015 11:57 AM, Aditya Mahajan wrote:
I don't have the fonts, so I cannot describe the exact method. But see 
below and also have a look at Section 5 of
https://www.tug.org/TUGboat/tb30-2/tb95mahajan-cmath.pdf The 
description is old, and some of the file locations have changes, but 
the basic infrastructure is still the same.

Thank you for sharing this article. It seems that the
===
return {
mathematics = {
mapfiles = {
"mtpro2.map",
},
virtuals = {
["mtpro06a-regular"] = {
...
===
codes may have done the job in the mathematics.make_font function.

In this snippet:
===
\definefontsynonym
  [LMMathRoman10-Regular]
  [LMMath10-Regular@lmroman10-math]
===
I know that LMMathRoman10-Regular will be used as the font synonym, 
@lmroman10-math is the
virtual font, but what does LMMath10-Regular stand for? I chose some 
random names in my typescript

but maybe there's some magic there?
The vectors mptpro2-mi etc are not defined. Look at math-ttv.lua for a 
list of predefined vectors (mapping type1 fonts to unicode symbols. It 
is quite likely that the mtpro fonts would follow the "standard" 
mappings; if not, you will need to create an approrpriate mapping for 
each font. This is not difficult (just monotonous).
I've already defined these vectors in the same .lfg file. What a tedious 
work it was, by the way. I thought
that would be irrelevant, so I skipped those codes. I'm sorry I didn't 
make that clear.


I almost forgot to mention. The font has its own \Relbar and \relbar 
characters rather than the equality
and the dash marks. What is the best way to use them? I currently put 
them in a private-use-area slot

in the vectors' definitions, but I'm not sure that's a good solution.



===
I guess the suffixes "f" "s" and "t" may correspond to "five" "seven" 
and "ten", but that's
not important. I could use one of them as the virtual font in the 
typescript:


Once this is done, rest of the typescript should work. It may be a 
good idea to try to see if you can get roman letters from mtpro.

If I claimed the font synonym with the virtual font directly:
===
# typescripts
\definefontsynonym [\s!MathRoman] [MTPro10a-Regular@mtpro10a-regular]
===
the 10-size-version fonts were loaded without any problem. But if I want 
to use the designsize feature:

===
-- lfg
designsizes = {
["MathTimeProA-Regular"] = {
["4pt"]  = "MTPro06a-Regular@mtpro06a-regular",
["5pt"]  = "MTPro06a-Regular@mtpro06a-regular",
["6pt"]  = "MTPro06a-Regular@mtpro06a-regular",
...
# typescripts
\definefontsynonym [\s!MathRoman] [\v!file:mathtimeproa-regular]
===
the mathtimeproa-regular font could not be remapped to the correct 
virtual font with the appropriate size.
I just want to know how type-imp-ebgaramond.mkiv managed to remap the 
designsize filename

"file:ebgaramond-regular" to "file:EBGaramond12-Regular".


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
___


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