%
% Copyright 1995-2001 ASCII Corporation.
% Copyright (c) 2010 ASCII MEDIA WORKS
-% Copyright (c) 2016-2017 Japanese TeX Development Community
+% Copyright (c) 2016-2018 Japanese TeX Development Community
%
-% This file is part of the pLaTeX2e system.
-% -----------------------------------------
+% This file is part of the pLaTeX2e system (community edition).
+% -------------------------------------------------------------
%
% \fi
%
% それを用いるように変更(PDFサイズ削減のため).}
% \changes{v1.7f}{2017/08/31}{和文書体の基準を全角空白から「漢」に変更}
% \changes{v1.7g}{2017/09/19}{内部処理で使ったボックス0を空にした}
-% \changes{v1.7g-ltj-16}{2017/12/31}{\cs{Cjascale}追加}
+% \changes{v1.7h}{2018/02/04}{和文スケール値\cs{Cjascale}を定義}
+% \changes{v1.8}{2018/07/03}{\cs{today}のデフォルトを和暦から西暦に変更}
% \fi
%
% \iffalse
%<11pt&bk>\ProvidesFile{ltjtbk11.clo}
%<12pt&bk>\ProvidesFile{ltjtbk12.clo}
%</tate>
- [2017/12/31 v1.7g-ltj-16
+ [2018/07/24 v1.8-ltj-15
%<article|report|book> Standard LuaLaTeX-ja class]
%<10pt|11pt|12pt> Standard LuaLaTeX-ja file (size option)]
%<*driver>
%
% \section{はじめに}
% このファイルは、Lua\LaTeX-ja用の|jclasses|互換クラスファイルです。
-% v1.6をベースに作成しています。
+% コミュニティ版をベースに作成しています。
% \dst{}プログラムによって、横組用のクラスファイルと縦組用のクラスファイル
% を作成することができます。
%
%
% \changes{v1.6-ltj-9}{2015/01/01}{サイズクラスのロード前にメトリックの変更を行わないと,
% \cs{Cht}等の値が反映されないのでこの場所に移動させました.}
-%
-% \changes{v1.6g-ltj-16}{2017/12/31}{\cs{Cjascale}を追加しました。
-% これは、コミュニティ版\pLaTeX で導入された、
-% 和文スケール($1\,\cs{zw} \div \hbox{要求サイズ}$)を表す実数値マクロです。}
-%
+%
% \begin{macrocode}
%<*article|report|book>
\directlua{luatexbase.add_to_callback('luatexja.load_jfm',
'ltj.jclasses_load_jfm', 1)}
{\jfont\g=\ltj@stdmcfont:jfm=min } % loading jfm-min.lua
\expandafter\let\csname JY3/mc/m/n/10\endcsname\relax
-\def\Cjascale{0.962216}
\DeclareFontShape{JY3}{mc}{m}{n}{<-> s * [0.962216] \ltj@stdmcfont:jfm=min}{}
\DeclareFontShape{JY3}{gt}{m}{n}{<-> s * [0.962216] \ltj@stdgtfont:jfm=min;jfmvar=goth}{}
\ltjglobalsetparameter{differentjfm=both}
% \end{macro}
% \end{macro}
%
+% \begin{macro}{\Cjascale}
+% このクラスファイルが意図する和文スケール値
+% ($1\,\mathrm{zw} \div \textmc{要求サイズ}$)を
+% 表す実数値マクロ|\Cjascale|を定義します。
+% この\texttt{jclasses}互換クラスでは、Lua\TeX-ja読み込み時の和文スケール値がそのまま
+% 使用され、その値は0.962216です。
+% \changes{v1.7h}{2018/02/04}{和文スケール値\cs{Cjascale}を定義}
+% \begin{macrocode}
+%<*article|report|book>
+\def\Cjascale{0.962216}
+%</article|report|book>
+% \end{macrocode}
+% \end{macro}
+%
%
%
% \section{レイアウト}
% |\marginparwidth|を計算します。
% ここで、|\@tempdima|の値は、\linebreak
% |\paperwidth| $-$ |\textwidth|です。
-% \changes{v1.1d}{1995/11/24}{typo: \cs{marginmarwidth} to \cs{marginparwidth}}
+% \changes{v1.1d}{1995/11/24}{\break typo: \cs{marginmarwidth} to \cs{marginparwidth}}
% \begin{macrocode}
%<*yoko>
\if@twoside
%<*report|book>
\def\chaptermark##1{\markboth{%
\ifnum \c@secnumdepth >\m@ne
-%<book> \if@mainmatter
+%<book> \if@mainmatter
\@chapapp\thechapter\@chappos\hskip1\zw
-%<book> \fi
+%<book> \fi
\fi
##1}{}}%
\def\sectionmark##1{\markright{%
%<*report|book>
\def\chaptermark##1{\markright{%
\ifnum \c@secnumdepth >\m@ne
-%<book> \if@mainmatter
+%<book> \if@mainmatter
\@chapapp\thechapter\@chappos\hskip1\zw
-%<book> \fi
+%<book> \fi
\fi
##1}}%
%</report|book>
%<*report|book>
\def\chaptermark##1{\markboth{%
\ifnum \c@secnumdepth >\m@ne
-%<book> \if@mainmatter
+%<book> \if@mainmatter
\@chapapp\thechapter\@chappos\hskip1\zw
-%<book> \fi
+%<book> \fi
\fi
##1}{}}%
\def\sectionmark##1{\markright{%
%<*report|book>
\def\chaptermark##1{\markright{%
\ifnum \c@secnumdepth >\m@ne
-%<book> \if@mainmatter
+%<book> \if@mainmatter
\@chapapp\thechapter\@chappos\hskip1\zw
-%<book> \fi
+%<book> \fi
\fi
##1}}%
%</report|book>
\if@compatibility
\newenvironment{titlepage}
{%
-%<book> \cleardoublepage
+%<book> \cleardoublepage
\if@twocolumn\@restonecoltrue\onecolumn
\else\@restonecolfalse\newpage\fi
\thispagestyle{empty}%
% \end{description}
%
% |\secdef|は次のようにして使うことができます。
-% \begin{verbatim}
+%\begin{verbatim}
% \def\chapter {... \secdef \CMDA \CMDB }
% \def\CMDA [#1]#2{....} % \chapter[...]{...} の定義
% \def\CMDB #1{....} % \chapter*{...} の定義
-% \end{verbatim}
+%\end{verbatim}
%
%
% \subsubsection{partレベル}
\renewcommand\theenumiv{\@arabic\c@enumiv}}%
\sloppy
% \end{macrocode}
-% \changes{v1.1a}{1997/01/23}{\LaTeX\ \texttt{!<1996/12/01!>}に合わせて修正}
+% \changes{v1.1a}{1997/01/23}{\break\LaTeX\ \texttt{!<1996/12/01!>}に合わせて修正}
% \begin{macrocode}
\clubpenalty4000
\@clubpenalty\clubpenalty
% \changes{v1.0h}{1996/12/17}{Typo:和歴 to 和暦}
% |\today|コマンドの`年'を、
% 西暦か和暦のどちらで出力するかを指定するコマンドです。
+% 2018年7月以降の日本語\TeX{}開発コミュニティ版(v1.8)では、
+% デフォルトを和暦ではなく西暦に設定しています。
+% \changes{v1.8}{2018/07/03}{\cs{today}のデフォルトを和暦から西暦に変更}
% \begin{macrocode}
-\newif\if西暦 \西暦false
+\newif\if西暦 \西暦true
\def\西暦{\西暦true}
\def\和暦{\西暦false}
% \end{macrocode}