Last active
February 1, 2020 15:51
-
-
Save kauplan/35ba93022cbde314281879dbb3a11761 to your computer and use it in GitHub Desktop.
サンセリフ体を変更すると、「第1章」がなぜか明朝体になる
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
%% -*- coding: utf-8 -*- | |
\documentclass[uplatex,dvipdfmx,a5paper,10pt,papersize]{jsbook} | |
\usepackage[utf8]{inputenc} | |
\usepackage[T1]{fontenc} | |
\usepackage[deluxe]{otf} | |
\usepackage{lmodern} | |
\renewcommand{\headfont}{\gtfamily\sffamily\bfseries} | |
%% サンセリフ体のフォントを変更 | |
%% https://tug.org/FontCatalogue/roboto/ | |
\usepackage{roboto} | |
\makeatletter | |
\ifx\bfseries@sf\@undefined\else | |
\def\bfseries@sf{bx} % 日本語の太字が効くように修正 | |
\fi | |
%%% jsbook.styからチャプタータイトルの定義をコピーして改変してもダメ | |
%\def\@makechapterhead#1{% | |
% \vspace*{2\Cvs}% 欧文は50pt | |
% {\parindent \z@ \raggedright \normalfont | |
% \ifnum \c@secnumdepth >\m@ne | |
% \if@mainmatter | |
% %\huge\headfont \@chapapp\thechapter\@chappos % デフォルト | |
% \huge\gtfamily\sffamily\bfseries <<第{\thechapter}章>> % これでもダメ | |
% \par\nobreak | |
% \vskip \Cvs % 欧文は20pt | |
% \fi | |
% \fi | |
% \interlinepenalty\@M | |
% \Huge \headfont #1\par\nobreak | |
% \vskip 3\Cvs}} % 欧文は40pt | |
\makeatother | |
\begin{document} | |
\chapter{日本語 123 abc ABC} | |
\section{セクション 123 abc ABC} | |
\subsection{セクション 123 abc ABC} | |
本文 123 abc ABC | |
\end{document} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment