Created
October 14, 2024 07:10
-
-
Save zr-tex8r/cc41357d63317ac76364556d32c4b0c4 to your computer and use it in GitHub Desktop.
LaTeX: 太字数式(\boldmath)の太字(\mathbf)を極太ウェイトにする
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 is file 'tcmathbold.sty'. | |
%% Copyright (c) 024 Takayuki YATO (aka. "ZR") | |
%% This package is distributed under the MIT License. | |
\NeedsTeXFormat{LaTeX2e} | |
\ProvidesPackage{tcmathbold}[2024/10/10 v0.1] | |
% とりあえず, "極太"ウェイトの書体として | |
% "Crimson Pro Black"のフォントを借りることにする. | |
% Crimson Pro Black (立体) = OT1/CrimsonPro-TLF/ub/n | |
% Crimson Pro Black (斜体) = OT1/CrimsonPro-TLF/ub/it | |
% \boldmath での \mathbf → Crimson Pro Black (立体) | |
\SetMathAlphabet\mathbf{bold}{OT1}{CrimsonPro-TLF}{ub}{n} | |
% "太字斜体"用の数式フォント命令 \mathbfit を定義する. | |
\DeclareMathAlphabet{\mathbfit}{OT1}{cmr}{bx}{it} | |
% \boldmath での \mathbfit → Crimson Pro Black (斜体) | |
\SetMathAlphabet{\mathbfit}{bold}{OT1}{CrimsonPro-TLF}{ub}{it} | |
% おしまい | |
\endinput | |
%% EOF |
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[a4paper]{article} | |
\usepackage{tcmathbold} | |
% - 太字斜体用の数式フォント命令 \mathbfit が定義される. | |
% - \boldmath 状態での \mathbf, \mathbfit に"極太"ウェイト | |
% のフォントが適用される. | |
\begin{document} | |
$a + \mathrm{a} + \mathsf{a} + \mathbf{a} + \mathbfit{a}$\par | |
\boldmath % 数式全体を太字にする | |
$a + \mathrm{a} + \mathsf{a} + \mathbf{a} + \mathbfit{a}$\par | |
\end{document} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment