Skip to content

Instantly share code, notes, and snippets.

@mttmantovani
Last active December 14, 2020 14:55
Show Gist options
  • Save mttmantovani/b8737dae55eb910df08e36ea595fa697 to your computer and use it in GitHub Desktop.
Save mttmantovani/b8737dae55eb910df08e36ea595fa697 to your computer and use it in GitHub Desktop.
LaTeXiT preamble to produce equations in different fonts
\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
@mttmantovani
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment