File: generate-symbols.tex

package info (click to toggle)
vim-vimtex 2.16-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,660 kB
  • sloc: makefile: 367; python: 103
file content (26 lines) | stat: -rw-r--r-- 480 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
% Tex program = lualatex

\documentclass{article}
\usepackage[a4paper,margin=2cm]{geometry}
\usepackage{unicode-math}

\setmathfont{XITS Math}
\unimathsetup{math-style=literal}

\begin{document}
\linespread{1.3}\small
\def\UnicodeMathSymbol#1#2#3#4{\texttt{\string#2}\quad$
  \ifx#2\sqrt
    #2{\mbox{\space}}
  \else
    \ifx#2\not
      #2^^^^2062
    \else
      \ifdefined#2
        #2{\space}
      \fi
    \fi
  \fi
  $\\}
\noindent\input{unicode-math-table}
\end{document}