Home > emacs > What Unicode Font is Best Suited for Math Symbols using Font-Locking under Emacs?

What Unicode Font is Best Suited for Math Symbols using Font-Locking under Emacs?

December 26Hits:1
Advertisement

I recently installed Emacs + AucTeX on MS Windows using the pre-configured binary available from this CTAN webpage and everything works quite well with the latest MikTeX installation and Ghostscript 8 (both of which need to be installed separately). This is by far the easiest method I have found for getting all of these programs installed and working together under Windows.

One of Emacs' many useful features is "font-locking," which allows certain character sequences in the document to display on-screen as user-specified Unicode symbols. For example, typing the sequence \alpha in the document can be displayed (using the font-locking mechanism) as the Greek letter form alpha on the screen (but not stored as such in the file on disk) if this symbol is available in the font being used for this purpose under Emacs. This capability is very useful when one cannot directly use the Unicode document encoding format for the file on disk (say for compatibility reasons) but still wants to see the Unicode glyphs that correspond to various LaTeX symbols when displaying the document in the Emacs editor window.

An older package that enables this instant on-screen translation of sequence names to corresponding Unicode glyphs under Emacs is called x-symbol. A more recent package (available on this reddit page) that appears to accomplish the same thing is called latex-pretty-symbols.el, which works quite well with the above-described installation.

Unfortunately, many Unicode fonts that are available under Windows appear to support only a meager subset of the LaTeX math symbols that one routinely uses, including the fonts suggested by Xah Lee on his Unicode emacs blog and on this Penn State webpage.

Question:

What options are there for Unicode fonts under Emacs (MS Windows) that contain all of the routinely used LaTeX math symbols?

One would think that perhaps the Computer Modern fonts themselves might exist in some form (encoding + format) that would allow them to be used from within Emacs, and if so has anyone had success using them for this purpose?

How about the STIX fonts?

The Cambria Math fonts can be used from within Emacs, but subscripts and superscripts do not display properly when typing them inside math blocks. Is it somehow possible to configure AucTeX to position sub/superscripts vertically in a visually acceptable manner when using Cambria Math, or is the format of this relatively new font from Microsoft somehow incompatible with what Emacs + AucTeX can handle under Windows at the moment?

Edit: The information on this page helps explain why Emacs is having trouble rendering the Cambria Math font. Apparently Microsoft is utilizing extensions to the OpenType format for math symbols that Emacs (as well as various legacy apps like Word 2000) cannot properly handle. A more detailed explanation is provided by Murray Sargent on his blog.

Answers

As suggested by egreg, I will turn my comments into an answer to at least part of your question:

One would think that perhaps the Computer Modern fonts themselves might exist in some form (encoding + format) that would allow them to be used from within Emacs, and if so has anyone had success using them for this purpose?

You could use the CM-Unicode fonts, which are installable under Windows on OS level and therefore usable from all applications using the system fonts. I use these fonts in Inkscape, Word and PowerPoint.

Quoting from the CM-Unicode homepage:

Computer Modern Unicode fonts were converted from metafont sources using mftrace with autotrace backend and fontforge (former pfaedit). Their main purpose is to create free good quality fonts for use in X applications supporting many languages. Currently the fonts contain glyphs from Latin1 (Metafont ec, tc, vnr), Cyrillic (lh) and Greek (cbgreek when available) code sets and IPA extensions (from tipa).

You also ask about STIX fonts. These fonts are also available in otf format, so I would say it should be easy to install these fonts on system level.

My preference is the IsabelleText font, which is, according to the README:

assembled with FontForge (http://fontforge.sourceforge.net), composing glyphs from existing (free) fonts: Bluesky TeX fonts (scaled 222%) and Bitstream Vera Mono, with some additions from DejaVu Sans Mono and DejaVu Sans.

It's available as a .ttf here.

Related Articles

  • What Unicode Font is Best Suited for Math Symbols using Font-Locking under Emacs?December 26

    I recently installed Emacs + AucTeX on MS Windows using the pre-configured binary available from this CTAN webpage and everything works quite well with the latest MikTeX installation and Ghostscript 8 (both of which need to be installed separately).

  • Set the font size for a special math symbol by `\mathscr`

    Set the font size for a special math symbol by `\mathscr`December 15

    I need to manually set the font size of a special math symbol by \mathscr for which the \fontsize{<size>}{<size>}\selectfont does not work. Here my sample is: \documentclass{article} \usepackage{amsmath} \usepackage[english]{babel} \usepackage

  • Wrong Math Symbols - epsilon, varrho

    Wrong Math Symbols - epsilon, varrhoJanuary 20

    I'm using the AMSMATH package but I'm getting the wrong representations for the (standard) epsilon and the varrho symbols. I'm not doing anything special. \documentclass[letterpaper, 11pt, twoside]{book} \usepackage{fancyhdr} % Fancy Header % *******

  • unicode-math and various fonts fail at giving decent spacing in formula

    unicode-math and various fonts fail at giving decent spacing in formulaAugust 31

    I want to check if this problem is due to my configuration or if it is some kind of bug. This are the packages I load and the configuration for them (all very minimal in order to test the problem). I'm usin XeTeX 0.9998. \documentclass[12pt,a4paper]{

  • Using a Local Font for a Few Maths SymbolsApril 4

    To be compatible with my publisher, I had to make my own font (using fontforge) for a few math symbols. However, I could not figure out how to get latex to use my font, so I ended up just making a pdf/eps with just one symbol for each symbol and incl

  • Generating fonts of all LaTeX math symbolsMay 17

    Admission of Confusion Clearly I'm confused, I'll update the question as best as I can as people point out my lack of understanding. Ultimate Goal I like the fonts that pdfLaTeX uses to create documents. I especially like the symbols in ftp://tug.cta

  • How does XeTeX typeset (math) symbols which are input as unicode?July 22

    I'm considering moving to Xe(La)TeX for the main reason that it allows me to use unicode in my LaTeX code, making said code easier to read, especially the math. But I'm confused on how XeTeX typesets symbols based on my input. I see three possibiliti

  • Problem with math symbols unicode-math

    Problem with math symbols unicode-mathJune 21

    I'm begginer with lualatex, fontspec and unicode-math packages. I try load differents fonts for text and for math operators. But some math symbols not appears. For example, I try this (just to show differences fonts): \documentclass{memoir} \usepacka

  • Proper typewriter font for math symbols (∀, ∃, →), e.g. in verbatim environment

    Proper typewriter font for math symbols (∀, ∃, →), e.g. in verbatim environmentJanuary 13

    I have a listing to be used in verbatim (acutally Verbatim) that uses unicode characters such as ∀, ∃, →, ∨. Using \DeclareUnicodeCharacter{2203}{\ensuremath\exists} they do appear in the listing, but obviously in the wrong font. For → I got the desi

  • How do I enforce a font size on a newly-defined symbol while using it in math mode?June 21

    I've defined the following new commands: \newcommand{\atoi}{\mathrm{\rotatebox[origin=c]{180}{$\iotaup$}}} \newcommand{\scriptatoi}{{\scriptsize{\mathrm{\rotatebox[origin=c]{180}{$\iotaup$}}}}} to use in this formula (and other formulas in which $\at

  • Math symbols in tt font

    Math symbols in tt fontJune 19

    I am trying to typeset some mathematics all in typewriter font; aiming to emulate the appearance of a particular computing environment. However, \mathtt in math mode doesn't appear to affect the symbols. For example, in something like: $\mathtt{\{a[1

  • Changing only text font to Times New Roman but keep maths symbols in default font

    Changing only text font to Times New Roman but keep maths symbols in default fontJanuary 31

    In my document, I have math symbols/equations, as well as plain text, the text has to be in Times New Roman font, so I use \usepackage{pslatex}. However, this also changes the font of the maths symbols as well as anything encapsulated by $$. Is there

  • Change font size of math sans serif font only?

    Change font size of math sans serif font only?May 30

    I'm using the Arev font for math sans serif. However, the font produces slightly larger letters compared to my roman math font: \documentclass[a4paper, 10pt]{scrartcl} \usepackage[T1]{fontenc} \DeclareMathAlphabet{\mathsf}{OML}{zavm}{m}{n} \begin{doc

  • How to change the font family to default for math codes in beamer?

    How to change the font family to default for math codes in beamer?July 25

    My compiled math font family is not like a default one(e.g., the font used in MahtJaX), but it is same as the text font family. My example code and it's complied one are shown below. \documentclass[xcolor=x11names,compress]{beamer} \usepackage{graphi

  • Replace a few math symbols in the newtxmath font

    Replace a few math symbols in the newtxmath fontSeptember 12

    I use the \newtxmath as the math font in my document and \newtxtext for the text. This seems to work fine, but I need to replace some math symbols which seem to me not as nice as their default Latin Modern Math counterpart. The symbols I need to repl

  • How to use only selected math symbols of the STIX fonts?

    How to use only selected math symbols of the STIX fonts?July 10

    After reading an article by Grätzer in the current AMS-Notices on the STIX fonts, I wanted to use one of the math symbols in the article I am currently writing. In perfect naivety I did what was suggested: I put the line \RequirePackage{stix} as the

  • How to Change the Font of Math Symbols in Latex?

    How to Change the Font of Math Symbols in Latex?August 6

    How to change the font of math symbols in latex? For example, for the summation symbol, I can produce the following two symbols. Are there any other font for them? For the first sum I used \usepackage{mathptmx} and for the second I used the default f

  • Change only numbers' font of both text and math modeSeptember 6

    I want to use the font Fira Sans for my document, but this font has only "old-style" numbers. I was wondering if it was possible to change only the numbers' font so it would be different from the alphabetical characters. I searched a lot but all

  • mathsf font in both text and math

    mathsf font in both text and mathJanuary 6

    I want to define a \newcommand that produces the same font in both text and math modes. For example, \newcommand{\abc}[1]{???#1} Then \abc{varName} is blah blah blah $ \abc{varName} = 4 $ I want varName to have the same font in both cases, ideally th

  • How to look up a symbol or identify a math symbol or character?

    How to look up a symbol or identify a math symbol or character?July 26

    I know what my symbol or character looks like, but I don't know what the command is or which math alphabet it came from. How do I go about finding this out? --------------Solutions------------- You can look things up in the Comprehensive LaTeX symbol

Copyright (C) 2017 ceus-now.com, All Rights Reserved. webmaster#ceus-now.com 14 q. 0.748 s.