Re: [XeTeX] default fonts for text and math in xelatex (ubuntu, texlive 2011)
Hello Ross, thanks for the explanation - it is much clearer now. I am able to list all fonts on ubuntu with *fc-list* command. How should I know which of them supports math fonts and which of them is monospaced (like Courier New)? Regards, Peter On 29 September 2011 21:49, Ross Moore ross.mo...@mq.edu.au wrote: Hello Peter, On 30/09/2011, at 4:07 AM, peter knezel peter.kne...@gmail.com wrote: Hmm, I have tried a short xe.tex file === \documentclass{article} \usepackage[math]{mathspec} \newfontfamily\mymono{DejaVu Sans Mono} \newfontfamily\mymathmono{DejaVu Sans Mono} \begin{document} {\mymono this is with mono} changed {\mymathmono $E=mc^2$} back as normal \end{document} === for which xe.pdf is created Using: pdffonts -f 1 xe.pdf name type emb sub uni object ID - --- --- --- - MQBWCL+DejaVuSansMonoCID TrueType yes yes yes 5 0 AEDUWP+LMRoman10-Regular-Identity-H CID Type 0C yes yes yes 7 0 These handle the words in the text. FETFUV+CMMI10Type 1C yes yes no 8 0 Math identifiers: E m c . ZYNKTW+CMR10 Type 1C yes yes no 9 0 The page number; presumably 1 . LKHLTI+CMR7 Type 1C yes yes no 10 0 The superscripted 2 . which really shows what fonts are used. As far as I understood well, words changed, back as normal are set with LMRoman10-Regular-Identity-H (Latin Modern as you wrote). \mymono changed this is with mono to DejaVu Sans Mono. But what font is used for $E=mc^2$? Is it CMMI10,CMR10 and CMR7? Where can I get more info about these fonts? Why isn't the the equation written in DejaVu Sans Mono as defined with \mymathmono? Because anything written in math mode obeys a different set of typesetting rules to what is used in ordinary text. This involves spacing, positioning and sizing of super- and subscripts as well as choice of font face for each class of character or symbol. This is what makes TeX output look so much more attractive than what any other software produces. To change things, you'll need to study the mathspec or unicode-math packages, if I've got the names correct. Otherwise study the LaTeX Companion, for ways to handle Math Alphabets using non-XeTeX methods, which should still work, but with a limited range of fonts. Kind regards, Peter Hope this helps, Ross -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
Re: [XeTeX] default fonts for text and math in xelatex (ubuntu, texlive 2011)
Am 30.09.2011 um 08:48 schrieb peter knezel: How should I know which of them supports math fonts and which of them is monospaced (like Courier New)? With the fontconfig package you should have received the file /usr/X11/share/doc/fontconfig/fontconfig-user.html (or in some similar path). It explains some details of fc-list/fc-match etc. You could try: fc-list : file spacing fullname | grep -i spacing Whether a font is useful for tying maths can be judged when you know which glyphs it contains. Stephen Hartke wrote an article upon free fonts for maths. You can read it: texdoc survey. -- Greetings Pete No project was ever completed on time and within budget. – Cheops Law -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
Re: [XeTeX] default fonts for text and math in xelatex (ubuntu, texlive 2011)
Thanks Pete for the useful commands and links for further reading. Regards, Peter On 30 September 2011 10:42, Peter Dyballa peter_dyba...@web.de wrote: Am 30.09.2011 um 08:48 schrieb peter knezel: How should I know which of them supports math fonts and which of them is monospaced (like Courier New)? With the fontconfig package you should have received the file /usr/X11/share/doc/fontconfig/fontconfig-user.html (or in some similar path). It explains some details of fc-list/fc-match etc. You could try: fc-list : file spacing fullname | grep -i spacing Whether a font is useful for tying maths can be judged when you know which glyphs it contains. Stephen Hartke wrote an article upon free fonts for maths. You can read it: texdoc survey. -- Greetings Pete No project was ever completed on time and within budget. – Cheops Law -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
[XeTeX] default fonts for text and math in xelatex (ubuntu, texlive 2011)
Hello all, what is the default font setting for text and for math in xelatex? what is loaded if no font is defined before \begin{document}? I would like to change the default math font to monospaced in ubuntu (using texlive 2011) then change it back. Thanks for the help in advance. peter -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
Re: [XeTeX] default fonts for text and math in xelatex (ubuntu, texlive 2011)
Am 29.09.2011 um 12:34 schrieb peter knezel: what is the default font setting for text and for math in xelatex? For text it's Latin Modern. You can check the fonts used with the pdffonts utility (from xpdf package). With given \pagestyle{empty} you can exactly determine which fonts are used for which kind of text or which kind of mathematical expression. Since XeTeX can use TFM files I am pretty sure that it simply uses the usual Computer Modern fonts. -- Greetings Pete A morning without coffee is like something without something else. -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
Re: [XeTeX] default fonts for text and math in xelatex (ubuntu, texlive 2011)
Hmm, I have tried a short xe.tex file === \documentclass{article} \usepackage[math]{mathspec} \newfontfamily\mymono{DejaVu Sans Mono} \newfontfamily\mymathmono{DejaVu Sans Mono} \begin{document} {\mymono this is with mono} changed {\mymathmono $E=mc^2$} back as normal \end{document} === for which xe.pdf is created Using: pdffonts -f 1 xe.pdf name type emb sub uni object ID - --- --- --- - MQBWCL+DejaVuSansMonoCID TrueType yes yes yes 5 0 AEDUWP+LMRoman10-Regular-Identity-H CID Type 0C yes yes yes 7 0 FETFUV+CMMI10Type 1C yes yes no 8 0 ZYNKTW+CMR10 Type 1C yes yes no 9 0 LKHLTI+CMR7 Type 1C yes yes no 10 0 which really shows what fonts are used. As far as I understood well, words changed, back as normal are set with LMRoman10-Regular-Identity-H (Latin Modern as you wrote). \mymono changed this is with mono to DejaVu Sans Mono. But what font is used for $E=mc^2$? Is it CMMI10,CMR10 and CMR7? Where can I get more info about these fonts? Why isn't the the equation written in DejaVu Sans Mono as defined with \mymathmono? Kind regards, Peter On 29 September 2011 16:37, Peter Dyballa peter_dyba...@web.de wrote: Am 29.09.2011 um 12:34 schrieb peter knezel: what is the default font setting for text and for math in xelatex? For text it's Latin Modern. You can check the fonts used with the pdffonts utility (from xpdf package). With given \pagestyle{empty} you can exactly determine which fonts are used for which kind of text or which kind of mathematical expression. Since XeTeX can use TFM files I am pretty sure that it simply uses the usual Computer Modern fonts. -- Greetings Pete A morning without coffee is like something without something else. -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex