%%% 1- Add the command \TestPackage{<name>}. The syntax is:
%%% \TestPackage[<file>]{<name>}, which tests whether <name>.sty
%%% (or <file>, if this optional parameter is provided) exists.
-%%% 2- Add a description for <name> in doc/LaTeXConfig.lyx.in,
+%%% 2- Add a description for <name> in doc/LaTeXConfig.lyx,
%%% containing in particular a line like
%%% Found @chk_<name>@
%%% This line will be replaced at configure time by the proper text.
%%% For document classes, things are even simpler, since you do not
%%% need to edit this file. Just put your layout file in some place
%%% where LyX can find it and add if you wish a description in
-%%% LaTeXConfig.lyx.in, as described above.
+%%% LaTeXConfig.lyx, as described above.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%% Initialization part (skip) %%%%%%%%%%%%%%%%%%%%%
% (2) strip the useless parts from \mesg. This uses the fact that TeX
% allows to define macros with parameters delimited by arbitrary text.
-\def\strip#1patterns for #2, loaded.#3\endmark{\def\langs{#2}}
-\expandafter\strip\mesg\endmark
+\def\platexname{pLaTeX2e}
+\ifx\pfmtname\platexname
+ \def\langs{japanese}
+\else
+ \def\strip#1patterns for #2, loaded.#3\endmark{\def\langs{#2}}
+ \expandafter\strip\mesg\endmark
+\fi
% (3) handle the result
\message{^^J\prefix checking for available hyphenation patterns... \langs}
\TestPackage{array}
\TestPackage{babel}
\TestPackage{bibtopic}
+\TestPackage{bm}
\TestPackage{booktabs}
+\TestPackage{braille}
\TestPackage{color} % this one should be there if graphics.sty is there.
+\TestPackage{covington}
+\TestPackage{csquotes}
\TestPackage{dvipost}
+\TestPackage{endnotes}
+\TestPackage{enumitem}
\TestPackage{esint}
+\TestPackage{ifthen}
\TestPackage{fancybox}
\TestPackage{fancyhdr}
-\TestPackage{wrapfig}
\TestPackage{framed}
\TestPackage{geometry}
+\TestPackage{hyperref}
\TestPackage{jurabib}
\TestPackage{latex8}
\TestPackage{listings}
\TestPackage{longtable}
\TestPackage{natbib}
+\TestPackage{nicefrac}
\TestPackage{nomencl}
\TestPackage{pdfcolmk}
+\TestPackage{pdfpages}
\TestPackage{prettyref}
\TestPackage{preview}
+\TestPackage{relsize}
\TestPackage{rotating}
+\TestPackage{rotfloat}
\TestPackage{setspace}
\TestPackage{soul}
-\TestPackage{subfigure}
+\TestPackage{subfig}
\TestPackage{textcomp}
-\TestPackage{varioref}
+\TestPackage{units}
\TestPackage{url}
+\TestPackage{varioref}
+\TestPackage{wrapfig}
+\TestPackage{xargs}
\TestPackage{xcolor}