[NTG-context] mathdesign/charter fonts in ConTeXt
Hi, I am having some trouble getting the mathdesign charter font to work. Minimal example x.tex: \loadtypescriptfile[mathdesign] \setupbodyfont[charter] \starttext Foo \stoptext I tried the context that comes with Debian unstable, but that one segfaulted[1]. So I tried the standalone version, but that one can't find the math fonts: $ context x.tex mtx-context | run 1: luatex --fmt=/home/edwin/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en --jobname=x --lua=/home/edwin/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui --no-parse-first-line --c:currentrun=1 --c:fulljobname=./x.tex --c:input=./x.tex --c:kindofrun=1 --c:maxnofruns=8 cont-yes.mkiv This is LuaTeX, Version beta-0.79.1 (TeX Live 2014/dev) (rev 4972) \write18 enabled. open source 1 1 /home/edwin/context/tex/texmf-context/tex/context/base/cont-yes.mkiv ConTeXt ver: 2014.07.30 10:31 MKIV beta fmt: 2014.8.15 int: english/english system 'cont-new.mkiv' loaded open source 2 2 /home/edwin/context/tex/texmf-context/tex/context/base/cont-new.mkiv close source 2 2 /home/edwin/context/tex/texmf-context/tex/context/base/cont-new.mkiv system files jobname 'x', input './x', result 'x' fontslatin modern fonts are not preloaded languageslanguage 'en' is active open source 2 3 /home/edwin/typography/poster/test/x.tex open source 3 4 /home/edwin/context/tex/texmf-context/tex/context/base/type-imp-mathdesign.mkiv close source 3 4 /home/edwin/context/tex/texmf-context/tex/context/base/type-imp-mathdesign.mkiv fontsdefining font with asked name 'mdbchr7m' is not found using lookup 'file' fontsvirtual math loading font 'mdbchrm' subfont 2 with name 'mdbchr7m' at 7pt is skipped, not found fontsdefining font with asked name 'mdbchri7m' is not found using lookup 'file' fontsvirtual math loading font 'mdbchrm' subfont 3 with name 'mdbchri7m' at 7pt is skipped, not found fontsvirtual math loading font 'mdbchrm' subfont 4 with name 'mdbchri7m' at 7pt is skipped, not found fontsdefining font with asked name 'mdbchb7m' is not found using lookup 'file' fontsvirtual math loading font 'mdbchrm' subfont 5 with name 'mdbchb7m' at 7pt is skipped, not found fontsdefining font with asked name 'mdbchbi7m' is not found using lookup 'file' fontsvirtual math loading font 'mdbchrm' subfont 6 with name 'mdbchbi7m' at 7pt is skipped, not found fontsdefining font with asked name 'mdbchr7y' is not found using lookup 'file' fontsvirtual math loading font 'mdbchrm' subfont 7 with name 'mdbchr7y' at 7pt is skipped, not found fontsdefining font with asked name 'mdbchr7v' is not found using lookup 'file' fontsvirtual math loading font 'mdbchrm' subfont 8 with name 'mdbchr7v' at 7pt is skipped, not found fontsdefining font with asked name 'mdbchrma' is not found using lookup 'file' fontsvirtual math loading font 'mdbchrm' subfont 9 with name 'mdbchrma' at 7pt is skipped, not found fontsdefining font with asked name 'mdbchrmb' is not found using lookup 'file' fontsvirtual math loading font 'mdbchrm' subfont 10 with name 'mdbchrmb' at 7pt is skipped, not found lua errorerror on line 2 in file /home/edwin/typography/poster/test/x.tex: ...n/context/tex/texmf-context/tex/context/base/l-table.lua:323: table index is nil stack traceback: ...n/context/tex/texmf-context/tex/context/base/l-table.lua:323: in function 'fastcopy' .../context/tex/texmf-context/tex/context/base/math-vfu.lua:551: in function 'addmissing' .../context/tex/texmf-context/tex/context/base/math-vfu.lua:1059: in function .../context/tex/texmf-context/tex/context/base/math-vfu.lua:662 (...tail calls...) .../context/tex/texmf-context/tex/context/base/font-def.lua:415: in function 'read' .../context/tex/texmf-context/tex/context/base/font-ctx.lua:1109: in function 'definefont_two' [\directlua]:1: in main chunk 1 \loadtypescriptfile[mathdesign] 2 \setupbodyfont[charter] 3 \starttext 4 Foo 5 \stoptext 6 ? I tried the stable version too (first-setup.sh --context=current), but no luck. Initially the standalone version didn't even want to find the Charter font: $ export OSFONTDIR=/:/etc/texmf:/var/lib/texmf:/usr/share/texmf:/usr/share/texlive/texmf-dist [edited font-syn.lua to enable trace_warnings, --track=fonts.warnings appears to have no effect] $ mtxrun --script fonts --reload [] fonts | names | error when identifying afm font '/usr/share/texlive/texmf-dist/fonts/afm/bitstrea/charter/bchb8a.afm', no matching pfb file fonts | names | error when identifying afm font
Re: [NTG-context] mathdesign/charter fonts in ConTeXt
Am 15.08.2014 um 21:38 schrieb Török Edwin edwin+cont...@etorok.net: Hi, I am having some trouble getting the mathdesign charter font to work. Minimal example x.tex: \loadtypescriptfile[mathdesign] \setupbodyfont[charter] \starttext Foo \stoptext I tried the context that comes with Debian unstable, but that one segfaulted[1]. So I tried the standalone version, but that one can't find the math fonts: Use first-setup.sh —fonts=all“ to download the fonts from the contextgarden server. 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] More levels of subsubsection?
On 15 Aug 2014, at 18:11, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Am 15.08.2014 um 17:33 schrieb Gerben Wierda gerben.wie...@rna.nl: I am reproducing another document in an appendix. This document has a numbered structure and an appendix. A. My Appendix My appendix text introduction 1. Foo foo text 1.1 Foo foo text 2. Foo Appendix 1. FooBar FooBar text 1.1 FooBar FooBar text 1.1.1 FooBar FooBar text When I use \chapter for My and \subsection and \subsubsection for Foo, how do I solve the FooBar appendix? I have now \chapter My Appendix My appendix text introduction \subsection Foo foo text \subsubsection Foo foo text \subsection Foo Appendix But then, how do I solve: 1. FooBar FooBar text 1.1 FooBar FooBar text 1.1.1 FooBar FooBar text And to matters more complixated, Id like to reproduce the original's indentation, that is 1.1 is a bit more indented than 1 and 1.1.1 is a bit more than 1.1. Can you make a *working* minimal example with the code you’re currently using? I have tried but a separate test file behaves differently. Probably I'll have to rebuild the whole producs/chapters/evironment setup. I've been studying the (2001) manual a bit more and I might need to define my own headers. If I do a \definhead between \start\stop pairs, can I isolate these definitions from what comes after? G 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] More levels of subsubsection?
Am 16.08.2014 um 14:48 schrieb Gerben Wierda gerben.wie...@rna.nl: On 15 Aug 2014, at 18:11, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Am 15.08.2014 um 17:33 schrieb Gerben Wierda gerben.wie...@rna.nl: I am reproducing another document in an appendix. This document has a numbered structure and an appendix. A. My Appendix My appendix text introduction 1. Foo foo text 1.1 Foo foo text 2. Foo Appendix 1. FooBar FooBar text 1.1 FooBar FooBar text 1.1.1 FooBar FooBar text When I use \chapter for My and \subsection and \subsubsection for Foo, how do I solve the FooBar appendix? I have now \chapter My Appendix My appendix text introduction \subsection Foo foo text \subsubsection Foo foo text \subsection Foo Appendix But then, how do I solve: 1. FooBar FooBar text 1.1 FooBar FooBar text 1.1.1 FooBar FooBar text And to matters more complixated, Id like to reproduce the original's indentation, that is 1.1 is a bit more indented than 1 and 1.1.1 is a bit more than 1.1. Can you make a *working* minimal example with the code you’re currently using? I have tried but a separate test file behaves differently. Probably I'll have to rebuild the whole producs/chapters/evironment setup. I've been studying the (2001) manual a bit more and I might need to define my own headers. If I do a \definhead between \start\stop pairs, can I isolate these definitions from what comes after? Can you first explain what you try to achieve, you’re talking about indenting something but I don’t know what you want to indent, only the header or the complete content of the section/subsection. 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] mathdesign/charter fonts in ConTeXt
On 08/16/2014 03:08 PM, Wolfgang Schuster wrote: Am 15.08.2014 um 21:38 schrieb Török Edwin edwin+cont...@etorok.net: Hi, I am having some trouble getting the mathdesign charter font to work. Minimal example x.tex: \loadtypescriptfile[mathdesign] \setupbodyfont[charter] \starttext Foo \stoptext I tried the context that comes with Debian unstable, but that one segfaulted[1]. So I tried the standalone version, but that one can't find the math fonts: Use first-setup.sh —fonts=all“ to download the fonts from the contextgarden server. Thanks, now it finds the fonts and crashes the same way as the Debian one. Should I report this crash on the LuaTeX ML, and if so what files do I have to include to have them reproduce the crash? To reproduce I wiped and reinstalled context standalone: $ mkdir context context $ rsync -ptv rsync://contextgarden.net/minimals/setup/first-setup.sh . $ sh first-setup.sh --modules=all --fonts=all --engine=all $ . $HOME/context/tex/setuptex $ luatex --version This is LuaTeX, Version beta-0.79.1 (TeX Live 2014/dev) (rev 4972) $ cat x.tex EOF \loadtypescriptfile[mathdesign] \setupbodyfont[charter] \starttext Foo \stoptext EOF $ mtx-context | run 1: luatex --fmt=/home/edwin/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en --jobname=x --lua=/home/edwin/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui --no-parse-first-line --c:currentrun=1 --c:fulljobname=./x.tex --c:input=./x.tex --c:kindofrun=1 --c:maxnofruns=8 cont-yes.mkiv This is LuaTeX, Version beta-0.79.1 (TeX Live 2014/dev) (rev 4972) \write18 enabled. open source 1 1 /home/edwin/context/tex/texmf-context/tex/context/base/cont-yes.mkiv ConTeXt ver: 2014.07.30 10:31 MKIV beta fmt: 2014.8.16 int: english/english system 'cont-new.mkiv' loaded open source 2 2 /home/edwin/context/tex/texmf-context/tex/context/base/cont-new.mkiv close source 2 2 /home/edwin/context/tex/texmf-context/tex/context/base/cont-new.mkiv system files jobname 'x', input './x', result 'x' fontslatin modern fonts are not preloaded languageslanguage 'en' is active open source 2 3 /tmp/bug/x.tex open source 3 4 /home/edwin/context/tex/texmf-context/tex/context/base/type-imp-mathdesign.mkiv close source 3 4 /home/edwin/context/tex/texmf-context/tex/context/base/type-imp-mathdesign.mkiv mtx-context | fatal error: no return code, message: luatex: execution interrupted [25603.579477] luatex[6215]: segfault at 38 ip 006272da sp 7fff25b4eab8 error 4 in luatex[40+7d1000] Sometimes it doesn't crash just complains about an invalid font: $ context x.tex mtx-context | run 1: luatex --fmt=/home/edwin/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en --jobname=x --lua=/home/edwin/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui --no-parse-first-line --c:currentrun=1 --c:fulljobname=./x.tex --c:input=./x.tex --c:kindofrun=1 --c:maxnofruns=8 cont-yes.mkiv This is LuaTeX, Version beta-0.79.1 (TeX Live 2014/dev) (rev 4972) \write18 enabled. open source 1 1 /home/edwin/context/tex/texmf-context/tex/context/base/cont-yes.mkiv ConTeXt ver: 2014.07.30 10:31 MKIV beta fmt: 2014.8.16 int: english/english system 'cont-new.mkiv' loaded open source 2 2 /home/edwin/context/tex/texmf-context/tex/context/base/cont-new.mkiv close source 2 2 /home/edwin/context/tex/texmf-context/tex/context/base/cont-new.mkiv system files jobname 'x', input './x', result 'x' fontslatin modern fonts are not preloaded languageslanguage 'en' is active open source 2 3 /tmp/bug/x.tex open source 3 4 /home/edwin/context/tex/texmf-context/tex/context/base/type-imp-mathdesign.mkiv close source 3 4 /home/edwin/context/tex/texmf-context/tex/context/base/type-imp-mathdesign.mkiv !LuaTeX error: Invalid local font in font mdbchr7m! == Fatal error occurred, no output PDF file produced! mtx-context | fatal error: return code: 1 It reproduces with the stable version too (same LuaTeX version?) $ sh first-setup.sh --modules=all --fonts=all --engine=all --context=current $ . $HOME/context/tex/setuptex $ luatex --version This is LuaTeX, Version beta-0.79.1 (TeX Live 2014/dev) (rev 4972) $ context x.tex mtx-context | run 1: luatex --fmt=/home/edwin/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en --jobname=x --lua=/home/edwin/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui --no-parse-first-line --c:currentrun=1 --c:fulljobname=./x.tex --c:input=./x.tex --c:kindofrun=1 --c:maxnofruns=8 cont-yes.mkiv This is LuaTeX, Version beta-0.79.1 (TeX Live
Re: [NTG-context] mathdesign/charter fonts in ConTeXt
Am 16.08.2014 um 15:27 schrieb Török Edwin edwin+cont...@etorok.net: On 08/16/2014 03:08 PM, Wolfgang Schuster wrote: Am 15.08.2014 um 21:38 schrieb Török Edwin edwin+cont...@etorok.net: Hi, I am having some trouble getting the mathdesign charter font to work. Minimal example x.tex: \loadtypescriptfile[mathdesign] \setupbodyfont[charter] \starttext Foo \stoptext I tried the context that comes with Debian unstable, but that one segfaulted[1]. So I tried the standalone version, but that one can't find the math fonts: Use first-setup.sh —fonts=all“ to download the fonts from the contextgarden server. Thanks, now it finds the fonts and crashes the same way as the Debian one. Should I report this crash on the LuaTeX ML, and if so what files do I have to include to have them reproduce the crash? The problem has to do with the math fonts and it˚s better to looks first why it fails for the mathdeisgn fonts (can be a problem in the lfg files) because iwona etc. which does also use virtual fonts work. 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] mathdesign/charter fonts in ConTeXt
On 08/16/2014 04:46 PM, Wolfgang Schuster wrote: Am 16.08.2014 um 15:27 schrieb Török Edwin edwin+cont...@etorok.net mailto:edwin+cont...@etorok.net: Thanks, now it finds the fonts and crashes the same way as the Debian one. Should I report this crash on the LuaTeX ML, and if so what files do I have to include to have them reproduce the crash? The problem has to do with the math fonts and it˚s better to looks first why it fails for the mathdeisgn fonts (can be a problem in the lfg files) because iwona etc. which does also use virtual fonts work. Using LuaTeX rev 5041 doesn't crash, in fact it looks like the LuaTeX crash was fixed by this commit already: r5030 | luigi | 2014-07-01 11:01:08 +0300 (Tue, 01 Jul 2014) | 1 line fixed the Lua stack Now ConTeXt prints this: fontsvirtual math the mapping is incomplete for 'mdbchrm' at 7pt fontsvirtual math the mapping is incomplete for 'mdbchbf' at 7pt And if I enable math.virtual tracker it prints some more details. Does this help in figuring out whats wrong (if anything) with the font? fontsvirtual math unicode slot U+02272 has no index 0x0002E in vector 'tex-ma' for font 'mdbchrma' fontsvirtual math unicode slot U+02273 has no index 0x00026 in vector 'tex-ma' for font 'mdbchrma' fontsvirtual math unicode slot U+02276 has no index 0x00037 in vector 'tex-ma' for font 'mdbchrma' fontsvirtual math unicode slot U+0227C has no index 0x00034 in vector 'tex-ma' for font 'mdbchrma' fontsvirtual math unicode slot U+0227D has no index 0x0003C in vector 'tex-ma' for font 'mdbchrma' fontsvirtual math unicode slot U+0227E has no index 0x0002D in vector 'tex-ma' for font 'mdbchrma' fontsvirtual math unicode slot U+0227F has no index 0x00025 in vector 'tex-ma' for font 'mdbchrma' fontsvirtual math unicode slot U+02306 has no index 0x0005B in vector 'tex-ma' for font 'mdbchrma' fontsvirtual math unicode slot U+02A7D has no index 0x00036 in vector 'tex-ma' for font 'mdbchrma' fontsvirtual math unicode slot U+02A85 has no index 0x0002F in vector 'tex-ma' for font 'mdbchrma' fontsvirtual math unicode slot U+02A86 has no index 0x00027 in vector 'tex-ma' for font 'mdbchrma' fontsvirtual math unicode slot U+0219E has no index 0x00011 in vector 'tex-ma' for font 'mdbchrma' fontsvirtual math unicode slot U+0229F has no index 0xC in vector 'tex-ma' for font 'mdbchrma' fontsvirtual math unicode slot U+02A95 has no index 0x00030 in vector 'tex-ma' for font 'mdbchrma' fontsvirtual math unicode slot U+022A8 has no index 0xF in vector 'tex-ma' for font 'mdbchrma' fontsvirtual math unicode slot U+022A9 has no index 0xD in vector 'tex-ma' for font 'mdbchrma' fontsvirtual math unicode slot U+022AA has no index 0xE in vector 'tex-ma' for font 'mdbchrma' fontsvirtual math unicode slot U+021AD has no index 0x00021 in vector 'tex-ma' for font 'mdbchrma' fontsvirtual math unicode slot U+025AA has no index 0x5 in vector 'tex-ma' for font 'mdbchrma' fontsvirtual math unicode slot U+02234 has no index 0x00029 in vector 'tex-ma' for font 'mdbchrma' fontsvirtual math unicode slot U+02235 has no index 0x0002A in vector 'tex-ma' for font 'mdbchrma' fontsvirtual math unicode slot U+021BA has no index 0x9 in vector 'tex-ma' for font 'mdbchrma' fontsvirtual math unicode slot U+021BB has no index 0x8 in vector 'tex-ma' for font 'mdbchrma' fontsvirtual math unicode slot U+021BE has no index 0x00016 in vector 'tex-ma' for font 'mdbchrma' fontsvirtual math unicode slot U+021BF has no index 0x00018 in vector 'tex-ma' for font 'mdbchrma' fontsvirtual math unicode slot U+021C2 has no index 0x00017 in vector 'tex-ma' for font 'mdbchrma' fontsvirtual math unicode slot U+021C3 has no index 0x00019 in vector 'tex-ma' for font 'mdbchrma' fontsvirtual math unicode slot U+021C4 has no index 0x0001D in vector 'tex-ma' for font 'mdbchrma' fontsvirtual math unicode slot U+022C4 has no index 0x6 in vector 'tex-ma' for font 'mdbchrma' fontsvirtual math unicode slot U+021C7 has no index 0x00012 in vector 'tex-ma' for font 'mdbchrma' fontsvirtual math unicode slot U+021C8 has no index 0x00014 in vector 'tex-ma' for font 'mdbchrma' fontsvirtual math unicode slot U+021C9 has no index 0x00013 in vector 'tex-ma' for font 'mdbchrma' fontsvirtual math unicode slot U+021CA has no index 0x00015 in vector 'tex-ma' for font 'mdbchrma' fontsvirtual math unicode slot U+021CB has no index 0xB in vector 'tex-ma' for font 'mdbchrma' fontsvirtual math unicode slot U+021CC has no
[NTG-context] Using TABLE in a definition etc.
Dear gang, I'm trying to setup a definition that uses a natural table and could use some guru help. Here is what I have so far: === \def\Glyphbox{% \setupframed[frame=off,align=middle,offfset=none] \framed{\cbox{ \bTABLE[align=middle] \bTR \bTD \gulistan#1 \fontchar{#2} \eTD \eTR \bTR \bTD #1 \eTD \eTR \bTR \bTD #3 \eTD \eTR \eTABLE }} } == Some issues: 1. '#' is probably active and being used in the internals, so of course I can't directly use it as an argument parameter. How do I work around it? 2. The '#1' at the end of '\gulistan' is meant to complete the name of a defined font, then that same parameter is used as a name in the next row. Am I doing this correctly? I.e., can I use an argument parameter to finish off a command like this? [Yes, my low level TeX is really quite rusty]. 3. Once this table is defined correctly it will be used in a larger table, e.g. == \bTABLE \bTR \bTD \Glyphbox{}{}{} \eTD \bTD \Glyphbox{}{}{} \eTD \eTR \bTR \bTD \Glyphbox{}{}{} \eTD \bTD \Glyphbox{}{}{} \eTD \eTR \eTABLE == with arguments appropriately filled. Thanks in advance for any and all advice, and Best wishes Idris -- Idris Samawi Hamid Professor of Philosophy Colorado State University Fort Collins, CO 80523 ___ 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 ___