Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

autodetect-engine の改良 #40

Merged
merged 2 commits into from
Nov 11, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions jsarticle.cls
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@
\if@jsc@autodetect
\ClassInfo\jsc@clsname{Autodetected engine: upLaTeX}
\@jsc@uplatextrue
\g@addto@macro\@classoptionslist{,uplatex}
\fi
\if@jsc@uplatex\else
\ClassError\jsc@clsname
Expand All @@ -232,10 +233,6 @@
\@jsc@uplatextrue
\fi
\else
\if@jsc@autodetect
\ClassInfo\jsc@clsname{Autodetected engine: pLaTeX}
\@jsc@uplatexfalse
\fi
\if@jsc@uplatex
\ClassError\jsc@clsname
{You are running pLaTeX.\MessageBreak
Expand All @@ -244,6 +241,10 @@
{\@ehc}
\@jsc@uplatexfalse
\fi
\if@jsc@autodetect
\ClassInfo\jsc@clsname{Autodetected engine: pLaTeX}
\@jsc@uplatexfalse
\fi
\fi
\newdimen\stockwidth \newdimen\stockheight
\setlength{\stockwidth}{\paperwidth}
Expand Down
9 changes: 5 additions & 4 deletions jsbook.cls
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@
\if@jsc@autodetect
\ClassInfo\jsc@clsname{Autodetected engine: upLaTeX}
\@jsc@uplatextrue
\g@addto@macro\@classoptionslist{,uplatex}
\fi
\if@jsc@uplatex\else
\ClassError\jsc@clsname
Expand All @@ -235,10 +236,6 @@
\@jsc@uplatextrue
\fi
\else
\if@jsc@autodetect
\ClassInfo\jsc@clsname{Autodetected engine: pLaTeX}
\@jsc@uplatexfalse
\fi
\if@jsc@uplatex
\ClassError\jsc@clsname
{You are running pLaTeX.\MessageBreak
Expand All @@ -247,6 +244,10 @@
{\@ehc}
\@jsc@uplatexfalse
\fi
\if@jsc@autodetect
\ClassInfo\jsc@clsname{Autodetected engine: pLaTeX}
\@jsc@uplatexfalse
\fi
\fi
\newdimen\stockwidth \newdimen\stockheight
\setlength{\stockwidth}{\paperwidth}
Expand Down
15 changes: 8 additions & 7 deletions jsclasses.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -540,8 +540,6 @@
% $B$H$$$&%*%W%7%g%s$r;XDj$7$^$9!#(B
% $B$^$?!$(B\texttt{winjis} $B%*%W%7%g%s$G(B \texttt{winjis} $B%a%H%j%C%/$,;H$($^$9!#(B
%
% [2016-11-09] p\LaTeX / up\LaTeX $B$r<+F0H=JL$9$k%*%W%7%g%s(B \texttt{autodetect-engine} $B$r?7@_$7$^$7$?!#(B
%
% \begin{macrocode}
\newif\ifwinjis
\winjisfalse
Expand Down Expand Up @@ -635,17 +633,20 @@
\fi
% \end{macrocode}
%
% \paragraph{$B;HMQ%(%s%8%s$N8!::(B}
% \paragraph{$B;HMQ%(%s%8%s$N8!::!&<+F0H=Dj(B}
%
% $B%f!<%6$,(B |uplatex| $B%*%W%7%g%s$NM-L5$K$h$j;XDj$7$?%(%s%8%s$,!$<B:]$K(B
% $B;H$o$l$F$$$k$b$N$H0lCW$7$F$$$k$+$r8!::$7!$0lCW$7$J$$>l9g$O%(%i!<(B
% $B%a%C%;!<%8$rI=<($7$^$9!#(B
%
% [2016-11-09] p\LaTeX / up\LaTeX $B$r<+F0H=JL$9$k%*%W%7%g%s(B \texttt{autodetect-engine} $B$r?7@_$7$^$7$?!#(B
%
% \begin{macrocode}
\ifnum \ifx\ucs\@undefined\z@\else\ucs"3000 \fi ="3000
\if@jsc@autodetect
\ClassInfo\jsc@clsname{Autodetected engine: upLaTeX}
\@jsc@uplatextrue
\g@addto@macro\@classoptionslist{,uplatex}
\fi
\if@jsc@uplatex\else
\ClassError\jsc@clsname
Expand All @@ -656,10 +657,6 @@
\@jsc@uplatextrue
\fi
\else
\if@jsc@autodetect
\ClassInfo\jsc@clsname{Autodetected engine: pLaTeX}
\@jsc@uplatexfalse
\fi
\if@jsc@uplatex
\ClassError\jsc@clsname
{You are running pLaTeX.\MessageBreak
Expand All @@ -668,6 +665,10 @@
{\@ehc}
\@jsc@uplatexfalse
\fi
\if@jsc@autodetect
\ClassInfo\jsc@clsname{Autodetected engine: pLaTeX}
\@jsc@uplatexfalse
\fi
\fi
% \end{macrocode}
%
Expand Down
Binary file modified jsclasses.pdf
Binary file not shown.
9 changes: 5 additions & 4 deletions jspf.cls
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@
\if@jsc@autodetect
\ClassInfo\jsc@clsname{Autodetected engine: upLaTeX}
\@jsc@uplatextrue
\g@addto@macro\@classoptionslist{,uplatex}
\fi
\if@jsc@uplatex\else
\ClassError\jsc@clsname
Expand All @@ -228,10 +229,6 @@
\@jsc@uplatextrue
\fi
\else
\if@jsc@autodetect
\ClassInfo\jsc@clsname{Autodetected engine: pLaTeX}
\@jsc@uplatexfalse
\fi
\if@jsc@uplatex
\ClassError\jsc@clsname
{You are running pLaTeX.\MessageBreak
Expand All @@ -240,6 +237,10 @@
{\@ehc}
\@jsc@uplatexfalse
\fi
\if@jsc@autodetect
\ClassInfo\jsc@clsname{Autodetected engine: pLaTeX}
\@jsc@uplatexfalse
\fi
\fi
\newdimen\stockwidth \newdimen\stockheight
\setlength{\stockwidth}{\paperwidth}
Expand Down
9 changes: 5 additions & 4 deletions kiyou.cls
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@
\if@jsc@autodetect
\ClassInfo\jsc@clsname{Autodetected engine: upLaTeX}
\@jsc@uplatextrue
\g@addto@macro\@classoptionslist{,uplatex}
\fi
\if@jsc@uplatex\else
\ClassError\jsc@clsname
Expand All @@ -228,10 +229,6 @@
\@jsc@uplatextrue
\fi
\else
\if@jsc@autodetect
\ClassInfo\jsc@clsname{Autodetected engine: pLaTeX}
\@jsc@uplatexfalse
\fi
\if@jsc@uplatex
\ClassError\jsc@clsname
{You are running pLaTeX.\MessageBreak
Expand All @@ -240,6 +237,10 @@
{\@ehc}
\@jsc@uplatexfalse
\fi
\if@jsc@autodetect
\ClassInfo\jsc@clsname{Autodetected engine: pLaTeX}
\@jsc@uplatexfalse
\fi
\fi
\newdimen\stockwidth \newdimen\stockheight
\setlength{\stockwidth}{\paperwidth}
Expand Down