Last active
February 2, 2020 01:40
-
-
Save igaiga/c762ba62c1a43127c44cd6e07fa271f0 to your computer and use it in GitHub Desktop.
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
%%% | |
%%% これはカスタマイズ用のスタイルファイル。 | |
%%% プロジェクトでLaTeXのスタイルを追加・修正する場合はここに書く。 | |
%%% (reviewやstarterのバージョンアップをしやすくするために、 | |
%%% review initコマンドが用意する「reviewmacro.sty」や、 | |
%%% starterが自動生成する「starter.sty」とは別ファイルにしている) | |
%%% | |
%%% 日本語フォントの太さを細くするよう変更 | |
%%% (Notoフォントを使っていることが前提なので、Docker環境を使うか、 | |
%%% Notoフォントを自分でインストールすること) | |
%%% 参考:https://tm23forest.com/contents/veryeasy-latex-meiryo-font | |
\special{pdf:mapline uphminr-h unicode NotoSerifCJK-Light.ttc} % 明朝体 | |
\special{pdf:mapline uphgothr-h unicode NotoSansCJK-Light.ttc} % ゴシック体 | |
%%% 英語のセリフ付きフォント(明朝体相当)を細いものに変更 | |
%%% 参考:https://tug.org/FontCatalogue/iwonalight/ | |
\usepackage[light,math]{iwona} | |
\renewcommand{\bfdefault}{bx} % 日本語の太字が効くように修正 | |
%%% 英語のサンセリフフォント(ゴシック体相当)を細いものに変更 | |
%%% 参考:https://tug.org/FontCatalogue/robotolight/ | |
%%% https://tug.org/FontCatalogue/firasanslight/ | |
\usepackage[light]{roboto} | |
%\usepackage[light]{FiraSans} | |
\renewcommand{\bfseries@sf}{bx} % 日本語の太字が効くように修正 | |
%%% デフォルトのフォントを明朝体からゴシック体に変更 | |
\renewcommand\familydefault{\sfdefault} % 英数字のデフォルトをサンセリフに変更 | |
\renewcommand\kanjifamilydefault{\gtdefault} % 日本語のデフォルトをゴシック体に変更 | |
%% 英数字のデフォルトフォントを細いサンセリフ体にしたとき、脚注の英数字が細くならないのを修正 | |
\let\original@@footnotetext=\@footnotetext | |
\long\def\@footnotetext#1{% | |
\original@@footnotetext{{\sffamily #1}}% % 引数を強制的にサンセリフ体にする | |
} | |
%%% ページ番号が太く出るので普通の太さに変更 | |
%%% renewcommandでsty/starter.styの標準設定上書き mdseries=普通太さを明示指定 「-- 1 --」 | |
\renewcommand{\pagenumberstyle}{\mdseries --\ \thepage\ --} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment