I have using mathspec and unicode-math for the purpose of two different math symbols in my documents. I have used as per this how do set table body math parts in different font. But when using $...$ the symbols are not displayed. My MWE is:
\documentclass[a4paper,10pt]{article}
\usepackage{tabularx,lipsum}
\newcolumntype{L}[1]{>{\raggedright\arraybackslash}p{#1}}
\usepackage[no-math]{mathspec}
\defaultfontfeatures{Mapping=tex-text}
\setmainfont[Mapping=tex-text]{Times}
\setmathsfont{Times}
\usepackage{makecell}
\usepackage{unicode-math}
\setmathfont[version=table]{Helvetica}
\newfontfamily\tablefont{Helvetica}
\usepackage{etoolbox}
\AtBeginEnvironment{table}{\setmainfont[Color=black, Numbers={Proportional,OldStyle}]{HelveticaNeueLTStd-Cn}}%
\AtBeginEnvironment{tabular}{\mathversion{table}\tablefont\fontsize{9}{11}\selectfont\renewcommand{\theadfont}{\bfseries}}%
\begin{document}
\title{Geometry}
\maketitle
From the Egyptian pyramids to modern architecture, points, lines and angles
are everywhere. $a^\circ$ Geometry is a $\alpha + \beta$ very visual element of mathematics where the
designs of buildings and the orbits of planets can be studied using basic
objects like points, lines and circles.
\begin{table}[htb!]
\centering
\begin{tabular}{L{2cm}|L{10cm}}
\hline
\thead{Variabili} & \thead{Descrizione} \\
\hline
\thead{$\alpha + \beta$} & \thead{$a+b$}\\
\hline
gdp\_us & GDP USA trimestrale nominale (dal Q1 1947 al Q4 2013), fonte: FRED2\\
\hline
\end{tabular}
\end{table}
Thales (624--546~BCE) is known to be the founder of Greek geometry. He was
an astronomer and $a^\circ$ philosopher, and $\alpha + \beta$ records show he was the first person to
use mathematical geometry to calculate the height of an Egyptian pyramid
using the Sun's rays and to accurately predict the timing of a solar
eclipse.
\end{document}
XITS Math.HelveticaandTimesdo not have such tables. Also, load eithermathspecorunicode-math, but not both. – karlkoeller Feb 01 '15 at 10:30mathspecorunicode-math. But my document required two differentmathsetup. how do achieve this? – Balaji Feb 01 '15 at 10:39\setmathsfont{Times}is wrong, you have to use a unicode math font (stix is designed to match a document using Times as body font) – David Carlisle Feb 01 '15 at 10:45Times LT Std. For the MWE only i have usedtimes, because that font is not a free-font. Could you please advise how do use2 different math fontsin my documents. – Balaji Feb 01 '15 at 10:48\something{abc}but the main math symbol font has to be from a font designed for that use. – David Carlisle Feb 01 '15 at 10:56XITS MathorTeX Gyre Termesare amongst the maths fonts that are Times like. – Andrew Swann Feb 01 '15 at 19:58unicode-math. So you're bound tomathspec, if you really want sans serif for tables (which I find bad). Surely you can't useunicode-mathandmathspectogether. The alternative is using traditional math fonts. – egreg Feb 01 '15 at 20:56