Skip to content
Snippets Groups Projects
Commit b420ec89 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

Make definition of \v (bold math vector) conditional on unicode-math version....

Make definition of \v (bold math vector) conditional on unicode-math version. This should close Bug #1293.
parent bb36d36a
No related branches found
No related tags found
No related merge requests found
...@@ -14,7 +14,12 @@ ...@@ -14,7 +14,12 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Vectors % Vectors
\renewcommand{\v}[1]{\ensuremath{\mathbf{#1}}} \ifolducm
\def\v#1{\ensuremath{\mathbf{#1}}} % for unicode-math <= 0.7f
\else
\def\v#1{\symbf{#1}}
\fi
% unused \newcommand{\unitvec}[1]{\ensuremath{\widehat{\vect{#1}}}} % unused \newcommand{\unitvec}[1]{\ensuremath{\widehat{\vect{#1}}}}
\newcommand{\Nabla}{\v{\nabla}} \newcommand{\Nabla}{\v{\nabla}}
......
...@@ -53,15 +53,14 @@ ...@@ -53,15 +53,14 @@
\usepackage{dingbat} \usepackage{dingbat}
\usepackage{amssymb} \usepackage{amssymb}
% BROKEN under texlive2015: \usepackage[bold-style=ISO]{unicode-math} % must come after ams and symbols
% \usepackage[bold-style=ISO]{unicode-math} % must come after ams and symbols \newif\ifolducm
% WORKAROUND: \makeatletter
\def\mathup#1{\text{#1}} \@ifpackagelater{unicode-math}{2014/07/01}{\olducmfalse}{\olducmtrue}
\makeatother
% prevent unicode-math from overwriting % prevent unicode-math from overwriting
\AtBeginDocument{\renewcommand{\Re}{\operatorname{Re}}} \AtBeginDocument{\renewcommand{\Re}{\operatorname{Re}}}
\AtBeginDocument{\renewcommand{\Im}{\operatorname{Im}}} \AtBeginDocument{\renewcommand{\Im}{\operatorname{Im}}}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment