Created
December 17, 2020 10:40
-
-
Save aterga/8edcf541427a5f65f3150a0cd9168494 to your computer and use it in GitHub Desktop.
Convert ascii Latin chars to Unicode bold Fraktur
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
%%% This file defines the command \boldfrak{STRING} that maps regular Latin characters to bold Fraktur. | |
%%% Should work in XeLaTeX with any font that supports Frakturs; if the \mathfrak command works then this | |
%%% \boldfrak should work as well. I tested this only in math mode. | |
\newcommand{\boldfraksymb}[1]{% | |
\ifthenelse{\equal{#1}{a}}{๐}{% | |
\ifthenelse{\equal{#1}{b}}{๐}{% | |
\ifthenelse{\equal{#1}{c}}{๐}{% | |
\ifthenelse{\equal{#1}{d}}{๐}{% | |
\ifthenelse{\equal{#1}{e}}{๐}{% | |
\ifthenelse{\equal{#1}{f}}{๐}{% | |
\ifthenelse{\equal{#1}{g}}{๐}{% | |
\ifthenelse{\equal{#1}{h}}{๐}{% | |
\ifthenelse{\equal{#1}{i}}{๐}{% | |
\ifthenelse{\equal{#1}{j}}{๐}{% | |
\ifthenelse{\equal{#1}{k}}{๐}{% | |
\ifthenelse{\equal{#1}{l}}{๐}{% | |
\ifthenelse{\equal{#1}{m}}{๐}{% | |
\ifthenelse{\equal{#1}{n}}{๐}{% | |
\ifthenelse{\equal{#1}{o}}{๐}{% | |
\ifthenelse{\equal{#1}{p}}{๐}{% | |
\ifthenelse{\equal{#1}{q}}{๐}{% | |
\ifthenelse{\equal{#1}{r}}{๐}{% | |
\ifthenelse{\equal{#1}{s}}{๐}{% | |
\ifthenelse{\equal{#1}{t}}{๐}{% | |
\ifthenelse{\equal{#1}{u}}{๐}{% | |
\ifthenelse{\equal{#1}{v}}{๐}{% | |
\ifthenelse{\equal{#1}{w}}{๐}{% | |
\ifthenelse{\equal{#1}{x}}{๐}{% | |
\ifthenelse{\equal{#1}{y}}{๐}{% | |
\ifthenelse{\equal{#1}{z}}{๐}{% | |
\ifthenelse{\equal{#1}{A}}{๐ฌ}{% | |
\ifthenelse{\equal{#1}{B}}{๐ญ}{% | |
\ifthenelse{\equal{#1}{C}}{๐ฎ}{% | |
\ifthenelse{\equal{#1}{D}}{๐ฏ}{% | |
\ifthenelse{\equal{#1}{E}}{๐ฐ}{% | |
\ifthenelse{\equal{#1}{F}}{๐ฑ}{% | |
\ifthenelse{\equal{#1}{G}}{๐ฒ}{% | |
\ifthenelse{\equal{#1}{H}}{๐ณ}{% | |
\ifthenelse{\equal{#1}{I}}{๐ด}{% | |
\ifthenelse{\equal{#1}{J}}{๐ต}{% | |
\ifthenelse{\equal{#1}{K}}{๐ถ}{% | |
\ifthenelse{\equal{#1}{L}}{๐ท}{% | |
\ifthenelse{\equal{#1}{M}}{๐ธ}{% | |
\ifthenelse{\equal{#1}{N}}{๐น}{% | |
\ifthenelse{\equal{#1}{O}}{๐บ}{% | |
\ifthenelse{\equal{#1}{P}}{๐ป}{% | |
\ifthenelse{\equal{#1}{Q}}{๐ผ}{% | |
\ifthenelse{\equal{#1}{R}}{๐ฝ}{% | |
\ifthenelse{\equal{#1}{S}}{๐พ}{% | |
\ifthenelse{\equal{#1}{T}}{๐ฟ}{% | |
\ifthenelse{\equal{#1}{U}}{๐}{% | |
\ifthenelse{\equal{#1}{V}}{๐}{% | |
\ifthenelse{\equal{#1}{W}}{๐}{% | |
\ifthenelse{\equal{#1}{X}}{๐}{% | |
\ifthenelse{\equal{#1}{Y}}{๐}{% | |
\ifthenelse{\equal{#1}{Z}}{๐ }{% | |
<unsupported> | |
}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}} | |
} | |
\makeatletter | |
\newcommand{\boldfrak}[1]{% | |
\@tfor\next:=#1\do{\boldfraksymb{\next}}% | |
} | |
\makeatother |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment