[***SPAM***] Fonts problems with ConTeXt MKIV (LuaTeX)
Dear all, I have to use a special font (DIN) for my document. This font have a really limited number of caracters. Previously I was using ConTeXt MKII with no problems. After migrating to ConTeXt MKiV the math formula and list doesn’t work due to the font. It's like the charset used for the formula and the list bullet are not available. I have not this issue with the same font with ConTeXt MKII. The code used to load the font is not the same for the two version. With MKIV I use the simplefonts module, with MKII I use typescript. Both code are available below. Do you have any idea how could I use DIN font with MKIV without breaking math formula ? Thanks in advance for any hint Patrick This is the code I use with MKIV: \usemodule[simplefonts] \definefontfeature[fakeitalic][default][slant=.25] \setsansfont[din] This is the code I use with MKII: % Load the DIN font and set the typescript \loadmapfile [texnansi-s-din.map] \starttypescript [map] [gentium] [ec,texnansi,8r,t5,t2a,t2b,qx] \loadmapfile [\typescriptthree-s-din.map] \stoptypescript \starttypescript [serif] [DIN] [texnansi] \definefontsynonym[DIN-Black][texnansi-DIN-Black0][encoding=texnansi] \definefontsynonym[DIN-Bold][texnansi-DIN-Bold0][encoding=texnansi] \definefontsynonym[DIN-Light][texnansi-DIN-Light0][encoding=texnansi] \definefontsynonym[DIN-Medium][texnansi-DIN-Medium0][encoding=texnansi] \definefontsynonym[DIN-Regular][texnansi-DIN-Regular0][encoding=texnansi] \stoptypescript \starttypescript [serif] [DIN] [name] \usetypescript[serif][fallback] \definefontsynonym [Serif] [DIN-Regular] \definefontsynonym [SerifItalic] [DIN-Light] \definefontsynonym [SerifSlanted] [DIN-Light] \definefontsynonym [SerifBold] [DIN-Bold] \stoptypescript \starttypescript [DIN] \definetypeface [MyDIN] [rm] [serif] [DIN] [default] [encoding=texnansi] \definetypeface [MyDIN] [ss] [sans] [default] [default] [encoding=texnansi] \definetypeface [MyDIN] [tt] [mono] [default] [default] [encoding=texnansi] \definetypeface [MyDIN] [mm] [math] [default] [default] [encoding=texnansi] \stoptypescript \usetypescript[DIN]
Am 08.11.2012 um 17:19 schrieb Patrick
Dear all,
I have to use a special font (DIN) for my document. This font have a really limited number of caracters.
Previously I was using ConTeXt MKII with no problems. After migrating to ConTeXt MKiV the math formula and list doesn’t work due to the font. It's like the charset used for the formula and the list bullet are not available. I have not this issue with the same font with ConTeXt MKII.
The code used to load the font is not the same for the two version. With MKIV I use the simplefonts module, with MKII I use typescript. Both code are available below.
Do you have any idea how could I use DIN font with MKIV without breaking math formula ?
Thanks in advance for any hint
Patrick
This is the code I use with MKIV:
\usemodule[simplefonts] \definefontfeature[fakeitalic][default][slant=.25] \setsansfont[din]
Can you test the font with a complete minimal example like this (you can replace the Ubuntu font with DIN). \usemodule[simplefonts] \setsansfont[Ubuntu] \setupbodyfont[ss] \starttext \input ward \startformula c^2 = a^2 + b^2 \stopformula \startitemize \startitem Item 1 \stopitem \startitem Item 2 \stopitem \startitem Item 3 \stopitem \stopitemize \stoptext
This is the code I use with MKII:
% Load the DIN font and set the typescript \loadmapfile [texnansi-s-din.map]
\starttypescript [map] [gentium] [ec,texnansi,8r,t5,t2a,t2b,qx] \loadmapfile [\typescriptthree-s-din.map] \stoptypescript
\starttypescript [serif] [DIN] [texnansi]
\definefontsynonym[DIN-Black][texnansi-DIN-Black0][encoding=texnansi] \definefontsynonym[DIN-Bold][texnansi-DIN-Bold0][encoding=texnansi] \definefontsynonym[DIN-Light][texnansi-DIN-Light0][encoding=texnansi] \definefontsynonym[DIN-Medium][texnansi-DIN-Medium0][encoding=texnansi] \definefontsynonym[DIN-Regular][texnansi-DIN-Regular0][encoding=texnansi] \stoptypescript
Are “DIN-Black0”, “DIN-Bold0” etc. the file names for the font, in this case simplefonts isn’t able to find them because the search pattern don’t look for such names. Wolfgang
On 11/08/2012 05:19 PM, Patrick wrote:
Dear all,
I have to use a special font (DIN) for my document. This font have a really limited number of caracters.
Previously I was using ConTeXt MKII with no problems. After migrating to ConTeXt MKiV the math formula and list doesn’t work due to the font. It's like the charset used for the formula and the list bullet are not available. I have not this issue with the same font with ConTeXt MKII.
The code used to load the font is not the same for the two version. With MKIV I use the simplefonts module, with MKII I use typescript. Both code are available below.
Do you have any idea how could I use DIN font with MKIV without breaking math formula ?
Thanks in advance for any hint
I could reproduce the problem with this simple example: \usemodule[simplefonts] \setsansfont[nimbus] \starttext An equation $e^{\pi i}+1=0$, or as a \stoptext Any idea why it doesn't work ?
Am 09.11.2012 um 09:37 schrieb Patrick
I could reproduce the problem with this simple example:
\usemodule[simplefonts] \setsansfont[nimbus]
\starttext An equation $e^{\pi i}+1=0$, or as a \stoptext
Any idea why it doesn't work ?
What happens when you remove the \setsansfont line (the Nimbis isn’t even used in the example)? Wolfgang
On 11/09/2012 09:42 AM, Wolfgang Schuster wrote:
Am 09.11.2012 um 09:37 schrieb Patrick
: I could reproduce the problem with this simple example:
\usemodule[simplefonts] \setsansfont[nimbus]
\starttext An equation $e^{\pi i}+1=0$, or as a \stoptext
Any idea why it doesn't work ?
What happens when you remove the \setsansfont line (the Nimbis isn’t even used in the example)?
Wolfgang
When I remove the \setsansfont it works perfectly... When I but back the \setsansfont I have the following error: 1 \usemodule[simplefonts] 2 \setsansfont[nimbus] 3 4 \starttext 5 >> An equation $e^{\pi i}+1=0$, or as a 6 \stoptext l.5 An equation $e^{\pi i}+1=0$ , or as a ?
Am 09.11.2012 um 10:47 schrieb Patrick
On 11/09/2012 09:42 AM, Wolfgang Schuster wrote:
Am 09.11.2012 um 09:37 schrieb Patrick
: I could reproduce the problem with this simple example:
\usemodule[simplefonts] \setsansfont[nimbus]
\starttext An equation $e^{\pi i}+1=0$, or as a \stoptext
Any idea why it doesn't work ?
What happens when you remove the \setsansfont line (the Nimbis isn’t even used in the example)?
Wolfgang
When I remove the \setsansfont it works perfectly...
When I but back the \setsansfont I have the following error:
1 \usemodule[simplefonts] 2 \setsansfont[nimbus] 3 4 \starttext 5 >> An equation $e^{\pi i}+1=0$, or as a 6 \stoptext
l.5 An equation $e^{\pi i}+1=0$ , or as a ?
Is there also a error message? Wolfgang
On 11/09/2012 11:06 AM, Wolfgang Schuster wrote:
Am 09.11.2012 um 10:47 schrieb Patrick
: On 11/09/2012 09:42 AM, Wolfgang Schuster wrote:
Am 09.11.2012 um 09:37 schrieb Patrick
: I could reproduce the problem with this simple example:
\usemodule[simplefonts] \setsansfont[nimbus]
\starttext An equation $e^{\pi i}+1=0$, or as a \stoptext
Any idea why it doesn't work ?
What happens when you remove the \setsansfont line (the Nimbis isn’t even used in the example)?
Wolfgang
When I remove the \setsansfont it works perfectly...
When I but back the \setsansfont I have the following error:
1 \usemodule[simplefonts] 2 \setsansfont[nimbus] 3 4 \starttext 5 >> An equation $e^{\pi i}+1=0$, or as a 6 \stoptext
l.5 An equation $e^{\pi i}+1=0$ , or as a ?
Is there also a error message?
Yes : ! Math error: parameter \Umathquad\displaystyle is not set. system > tex > error on line 5 in file untitled-4.tex: Math error: parameter \Umathquad\displaystyle is not set ...
On Fri, Nov 9, 2012 at 11:42 AM, Patrick
On 11/09/2012 11:06 AM, Wolfgang Schuster wrote:
Am 09.11.2012 um 10:47 schrieb Patrick
: On 11/09/2012 09:42 AM, Wolfgang Schuster wrote:
Am 09.11.2012 um 09:37 schrieb Patrick
: I could reproduce the problem with this simple example:
\usemodule[simplefonts] \setsansfont[nimbus]
\starttext An equation $e^{\pi i}+1=0$, or as a \stoptext
Any idea why it doesn't work ?
What happens when you remove the \setsansfont line (the Nimbis isn’t even used in the example)?
Wolfgang
When I remove the \setsansfont it works perfectly...
When I but back the \setsansfont I have the following error:
1 \usemodule[simplefonts] 2 \setsansfont[nimbus] 3 4 \starttext 5 >> An equation $e^{\pi i}+1=0$, or as a 6 \stoptext
l.5 An equation $e^{\pi i}+1=0$ , or as a ?
Is there also a error message?
Yes :
! Math error: parameter \Umathquad\displaystyle is not set.
system > tex > error on line 5 in file untitled-4.tex: Math error: parameter \Umathquad\displaystyle is not set ...
It's ok on my mkiv. Which version do you have ?
-- luigi
On 11/09/2012 11:56 AM, luigi scarso wrote:
It's ok on my mkiv. Which version do you have ?
I am using the default ubuntu packages: context --version mtx-context | main context file: /usr/share/texmf/tex/context/base/context.mkiv mtx-context | current version: 2011.05.18 18:04 luatex --version This is LuaTeX, Version beta-0.70.1-2011120612 I think I have to update ! Do you have link on a more recent version packaged for ubuntu ? Thanks Patrick
On Fri, Nov 9, 2012 at 12:16 PM, Patrick
On 11/09/2012 11:56 AM, luigi scarso wrote:
It's ok on my mkiv. Which version do you have ?
I am using the default ubuntu packages:
context --version
mtx-context | main context file: /usr/share/texmf/tex/context/** base/context.mkiv mtx-context | current version: 2011.05.18 18:04
luatex --version This is LuaTeX, Version beta-0.70.1-2011120612
I think I have to update ! Do you have link on a more recent version packaged for ubuntu ?
Thanks
_____________________________________________________________________________
Uh...well the situation is the following 1) I'm using ubuntu 12.04 lts 32 bit 2) I don't use tex* from ubuntu 3) I manually install the latest mkiv in /opt/luatex/context-standalone (for mkii and mkiv only ) 4) I manually install texlive under /opt/luatex/texlive/2012 (for latex only) You have a more-than-a-month-old mkiv, which currently means "unsupported". -- luigi
Uh...well the situation is the following 1) I'm using ubuntu 12.04 lts 32 bit 2) I don't use tex* from ubuntu 3) I manually install the latest mkiv in /opt/luatex/context-standalone (for mkii and mkiv only ) 4) I manually install texlive under /opt/luatex/texlive/2012 (for latex only)
You have a more-than-a-month-old mkiv, which currently means "unsupported".
I have updated using ConTeXt Standalone. It works nicely with the last stable version (sh ./first-setup.sh --context=current) but if I update to last unstable version (sh ./first-setup.sh) I have another error with the \page command... By the way with the stable version everything seems to work ! Thanks all for your help
I have updated using ConTeXt Standalone.
It works nicely with the last stable version (sh ./first-setup.sh --context=current) but if I update to last unstable version (sh ./first-setup.sh) I have another error with the \page command...
By the way with the stable version everything seems to work !
good --- which error do you have with \page command ?
-- luigi
participants (3)
-
luigi scarso
-
Patrick
-
Wolfgang Schuster