-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate.tex
162 lines (162 loc) · 5.83 KB
/
template.tex
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
%#!lualatex -synctex=1 filename
%#!lualatex --jobname=前期/filename-fig filename
%#!xelatex -synctex=1 filename
%#!xelatex --jobname=前期/filename-fig filename
%#!uplatex -shell-escape filename
%#!uplatex filename
%#LPR dvipdfmx -p a4 -r 1200 filename
% #LPR dvips -Ppdf -f filename.dvi | lpr
%#MAKEINDEX mendex -g -s mystyle.ist filename
%#!platex -shell-escape filename
%#!platex filename
%%% sudo tlmgr update --self --all
%\documentclass[a4j,xelatex,ja=standard,magstyle=nomag*]{bxjsreport}% ドライバ指定は無し
%\XeTeXgenerateactualtext=1 %PDF ファイルの検索やコピー & ペーストがうまく動作しない場合指定
%\RequirePackage{luatex85}%\pdfナントカでエラーになったときに必要ってか02/01/2017時点で必要
%hyperrefを新しい物にして不要になる
\documentclass[a4j,lualatex,ja=standard,jafont=sourcehan-jp,magstyle=nomag*,japaram={units=true}]{bxjsreport}% ドライバ指定は無し
\setpagelayout{margin=20mm}%余白を若干狭く
\usepackage{metalogo}% \XeLaTeX ロゴのため
%% XeLaTeX
%\usepackage{zxjatype}
%\setjamainfont[BoldFont=IPAexGothic]{IPAexMincho}
%\setjasansfont{IPAexGothic}
%\setmonofont{IPAexGothic}
%\setjamainfont[BoldFont=MogaMinExB]{MogaMinEx}
%\setjasansfont{MogaGoEx}
%\setmonofont{MogaGo}
%\setjmainfont[BoldFont=SourceHanSerifJP-Bold]{SourceHanSerifJP-Light}
%\setjsansfont{SourceHanSansJP-Light}
%\setmonofont{SourceCodePro-Light}
%\setjamainfont[BoldFont=YOzNb]{YOzN}
%\setjasansfont{YOzNb}
%\setmonofont{YOzNF}
%\setjamainfont[BoldFont=Ume P Gothic]{Ume P Mincho}
%\setjasansfont{Ume P Gothic}
%\setmonofont{Ume Gothic}
%\setjamainfont[BoldFont=TakaoPGothic]{TakaoPMincho}
%\setjasansfont{TakaoPGothic}
%\setmonofont{TakaoGothic}
%\setjamainfont[BoldFont=mikachan-PB]{mikachan-P}
%\setjasansfont{mikachan-PB}
%\setmonofont{mikachan}
%\setjamainfont{Migu 1P}
%\setjasansfont{Migu 1P}
%\setmonofont{Migu 1M}
%\setjamainfont{M+ 1p}
%\setjasansfont{M+ 1p}
%\setmonofont{M+ 1m}
%% LuaLaTeX-ja こっちの方が綺麗かも…
%\setmainjfont[BoldFont={IPAexGothic},
% BoldItalicFont={IPAexGothic},
% BoldSlantedFont={IPAexGothic},
% AutoFakeSlant=0.2,
% SlantedFeatures={FakeSlant=0.2},
% BoldItalicFeatures={FakeSlant=0.2},
% BoldSlantedFeatures={FakeSlant=0.2}]{IPAexMincho}
%\setsansjfont{IPAexGothic}
%\setmonofont{IPAexGothic}
%\setmainjfont[BoldFont=MogaMinExB]{MogaMinEx}
%\setsansjfont{MogaGoEx}
%\setmonofont{MogaGo}
\setmainjfont[BoldFont=Source Han Serif JP Bold,
AutoFakeSlant=0.2,
SlantedFeatures={FakeSlant=0.2},
BoldItalicFeatures={FakeSlant=0.2},
BoldSlantedFeatures={FakeSlant=0.2}]{Source Han Serif JP Light}
\setsansjfont[BoldFont=Source Han Sans JP Bold,%
AutoFakeSlant=0.2,
SlantedFeatures={FakeSlant=0.2},
BoldItalicFeatures={FakeSlant=0.2},
BoldSlantedFeatures={FakeSlant=0.2}]{Source Han Sans JP Light}
\setmonofont{Source Han Code JP Light}
%\setmainjfont[BoldFont=YOzNb]{YOzN}
%\setsansjfont{YOzNb}
%\setmonofont{YOzNF}
%\setmainjfont[BoldFont=Ume P Gothic]{Ume P Mincho}
%\setsansjfont{Ume P Gothic}
%\setmonofont{Ume Gothic}
%\setmainjfont[BoldFont=TakaoPGothic]{TakaoPMincho}
%\setsansjfont{TakaoPGothic}
%\setmonofont{TakaoGothic}
%\setmainjfont[BoldFont=mikachan-PB]{mikachan-P}
%\setsansjfont{mikachan-PB}
%\setmonofont{mikachan}
%\setmainjfont{Migu 1P}
%\setsansjfont{Migu 1P}
%\setmonofont{Migu 1M}
%\setmainjfont{M+ 1p}
%\setsansjfont{M+ 1p}
%\setmonofont{M+ 1m}
\makeatletter
\newif\ifpapersize
\newif\if@jsclass
\newif\iftombow
%% \ruby対策 %%
\@ifundefined{kanjiskip}{\newlength\kanjiskip}{}%
\@ifundefined{xkanjiskip}{\newlength\xkanjiskip}{}%
%%%%%%%%%%%%%%
\@ifundefined{zh}{\newlength\zh}{}%
\makeatother
\setlength{\zh}{1\zw}
\usepackage{emath,EMproof,emathMw}
%% edaenumerate環境の上部の間隔設定 edatopsep=-1\zh
%---- mathabx使用時に指定
\let\therefore\relax
\let\because\relax
\usepackage{mathabx}%
%---------------------
%\usepackage{newtxmath,newtxtext}%
%\usepackage{mathptmx}%newtxの方がいいかな?
\let\EMforeach=\foreach
\MWsep{4pt}%
\usepackage{bxjaprnind,hyperref}
\usepackage[enumitem]{tikzxelatexsetup}
\hypersetup{%
bookmarkstype=toc,%
bookmarksnumbered=true,%
colorlinks=true,%
urlcolor=blue,%
linkcolor=blue,%
setpagesize=false,%
pdftitle={},%
pdfauthor={飯島 徹},%
pdfsubject={},%
pdfkeywords={2019年,平成31年,前期,二次試験,数学,問題,詳解}%
}%
%\title{{\XeLaTeX}で日本語文書}
%\author{七篠\ 権兵衛}
% \today の出力はJSクラスと同様に西暦になる
\pagestyle{myfoot}
%% \lineskip \lineskiplimit の設定
%(1)二行ならべる
%(2)ベースライン間の距離が\baselineskipになるようにする
%(3)上の行の「下端」と下の行の「上端」の間の縦方向の距離を測る
%(4)(3)で測定した値と\lineskiplimitを比較する
%(4-1)(3)の値>\lineskipならばそのまま
%(4-2)そうでなければ,上の行の「下端」と下の行の「上端」の間を\lineskipにする
%\mathord : 通常の記号,文字
%\mathop : 大型演算子
%\mathbin : 二項演算子
%\mathrel : 関係演算子
%\mathopen : 開き括弧類
%\mathclose : 閉じ括弧類
%\mathpunct : 句読点類
%\mathalpha : 数式英字
%% e-TeX 拡張 %%
% \ifdefined \else \fi
% \ifcsname ... \endcsname \else \fi
% \unless 真偽の反転
% \numexpr \dimexpr \glueexpr \muexpr 後続の演算を予めしてしまう
% \middle
% \unexpanded{#1} #1を展開しないようにする
\lineskiplimit=2pt\relax
\lineskip=3pt\relax
\Attentionlineskiplimit=\lineskiplimit\relax
\Attentionlineskip=\lineskip\relax
\pgfrealjobname{filename}%
\SetPath{前期/}%
%\includeonly{}%
%\listfiles%読み込まれていファイルリストをlogファイルの*File List*以降に表示させる
\begin{document}
\end{document}