OSDN Git Service

luatexja.dtx doesn't depend on the makecell package.
[luatex-ja/luatexja.git] / doc / luatexja.dtx
index e1b4a51..cffc469 100644 (file)
@@ -1,17 +1,35 @@
-%#! lualatex -shell-escape manual.ins
+%<*!showexpl>
+%#! lualatex -shell-escape
+
+%<en> \documentclass[a4paper,titlepage]{article}
+%<ja> \documentclass[a4paper,titlepage]{ltjsarticle}
+%<zh> \documentclass[a4paper,titlepage]{ltjsarticle}
+
+\makeatletter
+\let\ltjpkglist\empty
+\newif\if@real@append@list
+\def\@append@newentry#1#2{{%
+  \@real@append@listtrue \def\@tempa{#2}%
+  \let\@pkglist\@append@newentry@pkglist#1%
+  \if@real@append@list
+    \let\@pkglist=\relax\xdef#1{#1\@pkglist{#2}}%
+  \fi}}
+\def\@append@newentry@pkglist#1{%
+  \def\@tempb{#1}%
+  \ifx\@tempa\@tempb\@real@append@listfalse\fi}
+\def\@addtofilelist#1{\@append@newentry\ltjpkglist{#1}}
+\let\@listfiles\empty
+\makeatother
 
 %<*en>
-\documentclass[a4paper,titlepage]{article}
 \usepackage[margin=25mm,footskip=5mm]{geometry}
 \usepackage{mathptmx}
 %</en>
 %<*ja>
-\documentclass[a4paper,titlepage]{ltjsarticle}
 \usepackage[textwidth=45\zw, lines=45, footskip=5mm]{geometry}
 \advance\leftmargini-1\zw\advance\leftmarginii-1\zw
 %</ja>
 %<*zh>
-\documentclass[a4paper,titlepage]{ltjsarticle}
 \usepackage[margin=25mm, footskip=5mm]{geometry}
 \advance\leftmargini-1\zw\advance\leftmarginii-1\zw
 \def\postpartname{编}
@@ -56,7 +74,7 @@
 \makeatother
 %</zh>
 
-\usepackage{amsmath,amssymb,xcolor,pict2e,multienum,amsthm,float,makecell}
+\usepackage{amsmath,amssymb,xcolor,pict2e,multienum,amsthm,float}
 \usepackage{booktabs,listings,showexpl,multicol,metalogo}
 \usepackage{luatexja-otf}
 \usepackage{luatexja-fontspec}
@@ -304,8 +322,11 @@ The followings are major changes from \pTeX:
       `variation'.
 %</en>
 %<*ja>
-\item 和文フォントは(小塚明朝,IPA明朝などの)実際のフォント,和文フォントメトリック(JFMと呼ぶ\footnote{混乱を防ぐため,p\TeX の意味でのJFM (\texttt{min10.tfm}) などは本ドキュメントでは\textbf{和文用TFM}とよぶことにする.}),そ
-      して`variation'と呼ばれる文字列の組である.
+\item 和文フォントは(小塚明朝,IPA明朝などの)実際のフォント,和文フォン
+      トメトリック(JFMと呼ぶ\footnote{混乱を防ぐため,p\TeX の意味での
+      JFM (\texttt{min10.tfm}) などは本ドキュメントでは\textbf{和文用
+      TFM}とよぶことにする.}),そして`variation'と呼ばれる文字列の組で
+      ある.
 %</ja>
 %<*zh>
 \item 一个日文字体是由三部分构成的元组:实际的字体(如小塚明
@@ -821,7 +842,6 @@ But only the contents in \texttt{src/} are needed to work \LuaTeX-ja.
 %</zh>
 \end{enumerate}
 
-
 %<en>\subsection{Cautions}
 %<ja>\subsection{注意点}
 %<zh>\subsection{注意}
@@ -5236,26 +5256,26 @@ $a$は禁則処理用に\textit{Nq}と\textit{Np}の間に加えられるべき
 \label{tab-jfmglue}
 \begin{center}
 \small
-\begin{tabular}{>{\sf}c|cccccc}
+\begin{tabular}{c|cccccc}
 \toprule
 {\bf\textit{Np}}↓&\sf 和文A&\sf 和文B&\sf 欧文&\sf 箱&\sf glue&\sf kern\\\midrule
-和文A&
+\sf 和文A&
 \gkf{E}{M→K}{PN}&
 \gkf{---}{\OA →K}{PN}&
 \gkf{---}{\OA →X}{PN}&
 \gkf{---}{\OA}{PA}&
 \gkf{---}{\OA}{PN}&
 \gkf{---}{\OA}{PS}\\
-和文B&
+\sf 和文B&
 \gkf{E}{\OB→K}{PA}&
 \gkf{---}{K}{PS}&
 \gkf{---}{X}{PS}\\
-欧文&
+\sf 欧文&
 \gkf{E}{\OB →X}{PA}&
 \gkf{---}{X}{PS}\cr
-箱&\gkf{E}{\OB}{PA}\\
-glue&\gkf{E}{\OB}{PN}\\
-kern&\gkf{E}{\OB}{PS}\\
+\sf 箱&\gkf{E}{\OB}{PA}\\
+\sf glue&\gkf{E}{\OB}{PN}\\
+\sf kern&\gkf{E}{\OB}{PS}\\
 \bottomrule
 \end{tabular}
 \end{center}
@@ -5493,4 +5513,40 @@ $\mathit{Nq}.\mathit{tail}$は無意味なので,
 \bibitem{texbytopic}
 Victor Eijkhout,  \emph{\TeX\ by Topic, A \TeX nician's Reference}, Addison-Wesley, 1992.
 \end{thebibliography}
+
+\newpage
+\appendix
+\section{Package versions used in this document}
+This document was typeset using the following packages:
+
+\medskip
+
+{\makeatletter\tt\footnotesize
+  \def\@pkglist#1{%
+    \filename@parse{#1}\def\@temp{sty}
+    \ifx\@temp\filename@ext
+      \edef\reserved@a{%
+        \filename@base.%
+        \ifx\filename@ext\relax tex\else\filename@ext\fi}%
+      \leavevmode\hskip-13em\hbox to 13em{\filename@area\reserved@a\hss}%
+      \csname ver@\reserved@a\endcsname\par
+    \fi
+  }%
+\parindent0pt\leftskip13em
+\ltjpkglist
+
+\makeatother}
 \end{document}
+%</!showexpl>
+%<*showexpl>
+%%
+%% config file for showexpl.sty
+%%
+%% Copyright The LuaTeX-ja project team, 2005
+%%
+\ProvidesFile{showexpl.cfg}
+  [2012/05/20 v0.01 Definitions for the showexpl package (luatexja)]
+\lstset{}
+\def\SX@Info{}
+\endinput
+%</*showexpl>