Last active
December 14, 2020 14:55
-
-
Save mttmantovani/b8737dae55eb910df08e36ea595fa697 to your computer and use it in GitHub Desktop.
LaTeXiT preamble to produce equations in different fonts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass[10pt]{article} | |
\usepackage[usenames]{color} %used for font color | |
\usepackage{amssymb} %maths | |
\usepackage{amsmath} %maths | |
%\usepackage[utf8]{inputenc} %useful to type directly diacritic characters | |
\usepackage{mathspec} | |
\usepackage{fontspec} | |
\usepackage{xunicode} | |
\usepackage{xltxtra} | |
\setmainfont{Arial} | |
\setmathsfont(Digits,Latin,Greek,Special){Arial} | |
\usepackage[italic]{mathastext} | |
%\renewcommand{\hbar}{% | |
% \text{\raisebox{.55ex}{\rotatebox{10}{--}}%\hspace{-0.5em}$h$}% | |
%} | |
%test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Preamble for LaTeXiT to produce equations in different fonts (here, Arial). Useful, e.g., for Keynote/Powerpoint presentations.
Usage
Open LaTeXiT Preferences -> Templates. Create a new template and paste the code. Requires
xetex
.