<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">% \iffalse meta-comment
%% File: uplatex.dtx
%
%    pLaTeX base file:
%       Copyright 1995,1996 ASCII Corporation.
%    and modified for upLaTeX
%
%  Copyright (c) 2010 ASCII MEDIA WORKS
%  Copyright (c) 2016 Takuji Tanaka
%  Copyright (c) 2016-2021 Japanese TeX Development Community
%
%  This file is part of the upLaTeX2e system (community edition).
%  --------------------------------------------------------------
%
% \fi
%
% \iffalse
%&lt;*driver|pldoc&gt;
\ifx\JAPANESEtrue\undefined
  \expandafter\newif\csname ifJAPANESE\endcsname
  \JAPANESEtrue
\fi
%&lt;/driver|pldoc&gt;
% \fi
%
% \setcounter{StandardModuleDepth}{1}
% \makeatletter
%\ifJAPANESE
% \def\chuui{\@ifnextchar[{\@chuui}{\@chuui[æ³¨æ„ï¼š]}}
%\else
% \def\chuui{\@ifnextchar[{\@chuui}{\@chuui[Attention: ]}}
%\fi
% \def\@chuui[#1]{\par\vskip.5\baselineskip
%   \noindent{\em #1}\par\bgroup\gtfamily\sffamily}
% \def\endchuui{\egroup\vskip.5\baselineskip}
% \makeatother
%
% \iffalse
%&lt;*driver|pldoc&gt;
\def\eTeX{$\varepsilon$-\TeX}
\def\pTeX{p\kern-.15em\TeX}
\def\epTeX{$\varepsilon$-\pTeX}
\def\pLaTeX{p\kern-.05em\LaTeX}
\def\pLaTeXe{p\kern-.05em\LaTeXe}
\def\upTeX{u\pTeX}
\def\eupTeX{$\varepsilon$-\upTeX}
\def\upLaTeX{u\pLaTeX}
\def\upLaTeXe{u\pLaTeXe}
%&lt;/driver|pldoc&gt;
% \fi
%
% \StopEventually{}
%
% \iffalse
%\ifJAPANESE
% \changes{v1.0c-u00}{2011/05/07}{\pLaTeX{}ç”¨ã‹ã‚‰\upLaTeX{}ç”¨ã«ä¿®æ­£ã€‚
%     (based on platex.dtx 1997/01/29 v1.0c)}
% \changes{v1.0e-u00}{2016/04/06}{\pLaTeX{}ã®å¤‰æ›´ã«è¿½éšã€‚
%     (based on platex.dtx 2016/02/16 v1.0e)}
% \changes{v1.0h-u00}{2016/05/08}{ãƒ‰ã‚­ãƒ¥ãƒ¡ãƒ³ãƒˆã‹ã‚‰\file{uplpatch.ltx}ã‚’é™¤å¤–
%     (based on platex.dtx 2016/05/08 v1.0h)}
% \changes{v1.0k-u00}{2016/05/21}{\pLaTeX{}ã®å¤‰æ›´ã«è¿½éšã€‚
%     (based on platex.dtx 2016/05/21 v1.0k)}
% \changes{v1.0k-u01}{2016/06/06}{\upLaTeX{}ç”¨ã«ãƒ‰ã‚­ãƒ¥ãƒ¡ãƒ³ãƒˆã‚’å…¨ä½“çš„ã«æ”¹è¨‚}
% \changes{v1.0l-u01}{2016/06/19}{ãƒ‘ãƒƒãƒãƒ¬ãƒ™ãƒ«ã‚’\file{uplvers.dtx}ã‹ã‚‰å–å¾—
%     (based on platex.dtx 2016/06/19 v1.0l)}
% \changes{v1.0m-u01}{2016/08/26}{\file{uplatex.cfg}ã®èª­ã¿è¾¼ã¿ã‚’
%    \file{uplcore.ltx}ã‹ã‚‰\file{uplatex.ltx}ã¸ç§»å‹•
%     (based on platex.dtx 2016/08/26 v1.0m)}
% \changes{v1.0n-u01}{2016/09/14}{\pLaTeX{}ã®å¤‰æ›´ã«è¿½éšã€‚
%     (based on platex.dtx 2016/09/14 v1.0n)}
% \changes{v1.0p-u01}{2017/11/11}{\pLaTeX{}ã®å¤‰æ›´ã«è¿½éšã€‚
%     (based on platex.dtx 2017/11/11 v1.0p)}
% \changes{v1.0q-u01}{2017/11/29}{è‹±èªžç‰ˆãƒ‰ã‚­ãƒ¥ãƒ¡ãƒ³ãƒˆã‚’è¿½åŠ&nbsp;
%     (based on platex.dtx 2017/11/29 v1.0q)}
% \changes{v1.0r-u01}{2017/12/02}{\upLaTeX{}ã¨\upTeX{}ã®å‚è€ƒæ–‡çŒ®ã‚‚è¿½åŠ&nbsp;}
% \changes{v1.0s-u01}{2017/12/05}{ãƒ‡ãƒ•ã‚©ãƒ«ãƒˆè¨­å®šãƒ•ã‚¡ã‚¤ãƒ«ã®èª­ã¿è¾¼ã¿ã‚’
%    \file{uplcore.ltx}ã‹ã‚‰\file{uplatex.ltx}ã¸ç§»å‹•
%     (based on platex.dtx 2017/12/05 v1.0s)}
% \changes{v1.0s-u02}{2017/12/10}{\file{uplcore.ltx}ã®å‰ã«
%    \file{plcore.ltx}ã‚’èª­ã¿è¾¼ã‚€ã‚ˆã†ã«ã—ãŸï¼ˆæœ€è¿‘ã®\pLaTeX{}ãŒå‰æï¼‰}
% \changes{v1.0u-u02}{2018/02/18}{\pLaTeX{}ã®å¤‰æ›´ã«è¿½éšã€‚
%     (based on platex.dtx 2018/02/18 v1.0u)}
% \changes{v1.0v-u02}{2018/04/06}{æœ€æ–°ã®source2eã¸ã®è¿½éš
%     (based on platex.dtx 2018/04/06 v1.0v)}
% \changes{v1.0w-u02}{2018/04/08}{å®‰å…¨ã®ãŸã‚ãƒ•ã‚©ãƒ¼ãƒžãƒƒãƒˆä½œæˆæ™‚ã®
%    ãƒãƒŠãƒ¼è¡¨ç¤ºã‚’ã‚„ã‚ãŸ
%     (based on platex.dtx 2018/04/08 v1.0w)}
% \changes{v1.0x-u02}{2018/09/03}{ãƒ‰ã‚­ãƒ¥ãƒ¡ãƒ³ãƒˆã‚’æ›´æ–°
%     (based on platex.dtx 2018/09/03 v1.0x)}
% \changes{v1.0y-u02}{2018/09/22}{æœ€çµ‚æ›´æ–°æ—¥ã‚’\file{upldoc.pdf}ã«è¡¨ç¤º
%     (based on platex.dtx 2018/09/22 v1.0y)}
% \changes{v1.0y-u03}{2019/05/22}{ãƒ‰ã‚­ãƒ¥ãƒ¡ãƒ³ãƒˆã‚’æ›´æ–°}
% \changes{v1.1b-u03}{2020/09/28}{defsèª­è¾¼å¾Œã«ãƒ•ãƒƒã‚¯è¿½åŠ&nbsp;}
% \changes{v1.1c-u03}{2021/02/25}{\file{latex.ltx}ã®èª­è¾¼ãƒã‚§ãƒƒã‚¯}
%\else
% \changes{v1.0c-u00}{2011/05/07}{Created \upLaTeX\ version based on \pLaTeX\ one
%     (based on platex.dtx 1997/01/29 v1.0c)}
% \changes{v1.0e-u00}{2016/04/06}{Sync with \pLaTeX.
%     (based on platex.dtx 2016/02/16 v1.0e)}
% \changes{v1.0h-u00}{2016/05/08}{Exclude \file{uplpatch.ltx} from the document
%     (based on platex.dtx 2016/05/08 v1.0h)}
% \changes{v1.0k-u00}{2016/05/21}{Sync with \pLaTeX.
%     (based on platex.dtx 2016/05/21 v1.0k)}
% \changes{v1.0k-u01}{2016/06/06}{Update documents for \upLaTeX.}
% \changes{v1.0l-u01}{2016/06/19}{Get the patch level from \file{uplvers.dtx}
%     (based on platex.dtx 2016/06/19 v1.0l)}
% \changes{v1.0m-u01}{2016/08/26}{Moved loading \file{uplatex.cfg}
%    from \file{uplcore.ltx} to \file{uplatex.ltx}
%     (based on platex.dtx 2016/08/26 v1.0m)}
% \changes{v1.0n-u01}{2016/09/14}{Sync with \pLaTeX.
%     (based on platex.dtx 2016/09/14 v1.0n)}
% \changes{v1.0p-u01}{2017/11/11}{Sync with \pLaTeX.
%     (based on platex.dtx 2017/11/11 v1.0p)}
% \changes{v1.0q-u01}{2017/11/29}{New English documentation added!
%     (based on platex.dtx 2017/11/29 v1.0q)}
% \changes{v1.0r-u01}{2017/12/02}{\upLaTeX\ and \upTeX\ references added}
% \changes{v1.0s-u01}{2017/12/05}{Moved loading default settings
%    from \file{uplcore.ltx} to \file{uplatex.ltx}
%     (based on platex.dtx 2017/12/05 v1.0s)}
% \changes{v1.0s-u02}{2017/12/10}{Load \file{plcore.ltx} before
%    \file{uplcore.ltx} (recent version of \pLaTeX\ is assumed)}
% \changes{v1.0u-u02}{2018/02/18}{Sync with \pLaTeX.
%     (based on platex.dtx 2018/02/18 v1.0u)}
% \changes{v1.0v-u02}{2018/04/06}{Sync with the latest \file{source2e.tex}
%     (based on platex.dtx 2018/04/06 v1.0v)}
% \changes{v1.0w-u02}{2018/04/08}{Stop showing banner during
%    format generation for safety
%     (based on platex.dtx 2018/04/08 v1.0w)}
% \changes{v1.0x-u02}{2018/09/03}{Update document.
%     (based on platex.dtx 2018/09/03 v1.0x)}
% \changes{v1.0y-u02}{2018/09/22}{Show last update info on \file{upldoc.pdf}
%     (based on platex.dtx 2018/09/22 v1.0y)}
% \changes{v1.0y-u03}{2019/05/22}{Update document.}
% \changes{v1.1b-u03}{2020/09/28}{Add hook after loading defs}
% \changes{v1.1c-u03}{2021/02/25}{Check for \file{latex.ltx} status}
%\fi
% \fi
%
% \iffalse
%&lt;*driver&gt;
\NeedsTeXFormat{pLaTeX2e}
% \fi
\ProvidesFile{uplatex.dtx}[2021/02/25 v1.1c-u03 upLaTeX document file]
% \iffalse
\documentclass{jltxdoc}
\usepackage{plext}
\GetFileInfo{uplatex.dtx}
\ifJAPANESE
\title{\upLaTeXe{}ã«ã¤ã„ã¦}
\author{ä¸­é‡Ž è³¢ \&amp; æ—¥æœ¬èªž\TeX{}é–‹ç™ºã‚³ãƒŸãƒ¥ãƒ‹ãƒ†ã‚£ \&amp; TTK}
\date{ä½œæˆæ—¥ï¼š\filedate}
\renewcommand{\refname}{å‚è€ƒæ–‡çŒ®}
\GlossaryPrologue{\section*{å¤‰æ›´å±¥æ­´}%
                  \markboth{å¤‰æ›´å±¥æ­´}{å¤‰æ›´å±¥æ­´}%
                  \addcontentsline{toc}{section}{å¤‰æ›´å±¥æ­´}}
\else
\title{About \upLaTeXe{}}
\author{Ken Nakano \&amp; Japanese \TeX\ Development Community \&amp; TTK}
\date{Date: \filedate}
\renewcommand{\refname}{References}
\GlossaryPrologue{\section*{Change History}%
                  \markboth{Change History}{Change History}%
                  \addcontentsline{toc}{section}{Change History}}
\fi
\makeatletter
\ifJAPANESE
\def\levelchar{&gt;ãƒ»}
\fi
\def\changes@#1#2#3{%
  \let\protect\@unexpandable@protect
  \edef\@tempa{\noexpand\glossary{#2\space#1\levelchar
    \ifx\saved@macroname\@empty
%     \space\actualchar\generalname: %% comment out (uplatex.dtx only)
    \else
      \expandafter\@gobble
      \saved@macroname\actualchar
      \string\verb\quotechar*%
      \verbatimchar\saved@macroname
      \verbatimchar:
    \fi
    #3}}%
  \@tempa\endgroup\@esphack}
\makeatother
\RecordChanges
\begin{document}
   \MakeShortVerb{\+}
   \maketitle
   \DocInput{\filename}
   \StopEventually{\end{document}}
   \clearpage
   % Make TeX shut up.
   \hbadness=10000
   \newcount\hbadness
   \hfuzz=\maxdimen
   \PrintChanges
   \let\PrintChanges\relax
\end{document}
%&lt;/driver&gt;
% \fi
%
%
%\ifJAPANESE
% \changes{v1.0c-u00}{2011/05/07}{\pLaTeX{}ç”¨ã‹ã‚‰\upLaTeX{}ç”¨ã«ä¿®æ­£ã€‚
%     (based on platex.dtx 1997/01/29 v1.0c)}
% \changes{v1.0k-u01}{2016/06/06}{\upLaTeX{}ç”¨ã«ãƒ‰ã‚­ãƒ¥ãƒ¡ãƒ³ãƒˆã‚’å…¨ä½“çš„ã«æ”¹è¨‚}
% \changes{v1.0q-u01}{2017/11/29}{è‹±èªžç‰ˆãƒ‰ã‚­ãƒ¥ãƒ¡ãƒ³ãƒˆã‚’è¿½åŠ&nbsp;
%     (based on platex.dtx 2017/11/29 v1.0q)}
% \changes{v1.0x-u02}{2018/09/03}{ãƒ‰ã‚­ãƒ¥ãƒ¡ãƒ³ãƒˆã‚’æ›´æ–°
%     (based on platex.dtx 2018/09/03 v1.0x)}
% \changes{v1.0y-u03}{2019/05/22}{ãƒ‰ã‚­ãƒ¥ãƒ¡ãƒ³ãƒˆã‚’æ›´æ–°}
%\else
% \changes{v1.0c-u00}{2011/05/07}{Created \upLaTeX\ version based on \pLaTeX\ one
%     (based on platex.dtx 1997/01/29 v1.0c)}
% \changes{v1.0k-u01}{2016/06/06}{Update documents for \upLaTeX.}
% \changes{v1.0q-u01}{2017/11/29}{New English documentation added!
%     (based on platex.dtx 2017/11/29 v1.0q)}
% \changes{v1.0x-u02}{2018/09/03}{Update document.
%     (based on platex.dtx 2018/09/03 v1.0x)}
% \changes{v1.0y-u03}{2019/05/22}{Update document.}
%\fi
%\ifJAPANESE
% \upLaTeX{}ã¯ã€å†…éƒ¨ã‚³ãƒ¼ãƒ‰ã‚’UnicodeåŒ–ã—ãŸ\pLaTeX{}ã®æ‹¡å¼µç‰ˆã§ã™ã€‚
% ã“ã®ãƒãƒ¼ã‚¸ãƒ§ãƒ³ã¯ã€ã€Œã‚³ãƒŸãƒ¥ãƒ‹ãƒ†ã‚£ç‰ˆ\pLaTeXe{}ã€ã‚’ãƒ™ãƒ¼ã‚¹ã«ã—ã¦ã„ã¾ã™ã€‚
%\else
% \upLaTeX\ is a Unicode version of Japanese \pLaTeXe.
% This version is based on `\pLaTeXe\ Community Edition.'
%\fi
%
%\ifJAPANESE
% \pTeX{}ã¯ã€é«˜å“è³ªã®æ—¥æœ¬èªžçµ„ç‰ˆã‚½ãƒ•ãƒˆã‚¦ã‚§ã‚¢ã¨ã—ã¦ãƒ‡ãƒ•ã‚¡ã‚¯ãƒˆ
% ã‚¹ã‚¿ãƒ³ãƒ€ãƒ¼ãƒ‰ã®åœ°ä½ã«ã‚ã‚‹ã¨ã„ãˆã¾ã™ã€‚ã—ã‹ã—ã€\pTeX{}ã«ã¯
% \begin{itemize}
% \item ç›´æŽ¥ä½¿ãˆã‚‹æ–‡å­—é›†åˆãŒåŽŸå‰‡çš„ã«JIS X 0208ï¼ˆJISç¬¬1,2æ°´æº–ï¼‰ã®ç¯„å›²ã«é™å®š
%   ã•ã‚Œã¦ã„ã‚‹ã“ã¨ã€
% \item 8bitã®éžè‹±èªžæ¬§æ–‡ã¨ã®è¦ªå’Œæ€§ãŒé«˜ã„ã¨ã¯è¨€ãˆãªã„ã“ã¨ã€
% \item \pTeX{}ã®åˆ©ç”¨ãŒæ—¥æœ¬èªžã«é™ã‚‰ã‚Œã€ä¸­å›½èªžãƒ»éŸ“å›½èªžã¨ã®æ··æ¤ã¸ã®åˆ©ç”¨ãŒ
%   é€²ã‚“ã§ã„ãªã„ã“ã¨
% \end{itemize}
% ã¨ã„ã£ãŸå¼±ç‚¹ãŒã‚ã‚Šã¾ã—ãŸã€‚
%
% ã“ã‚Œã‚‰ã®å¼±ç‚¹ã‚’å…‹æœã™ã‚‹ãŸã‚ã€\pTeX{}ã®å†…éƒ¨ã‚³ãƒ¼ãƒ‰ã‚’UnicodeåŒ–ã—ãŸæ‹¡å¼µç‰ˆ
% ãŒ\upTeX{}ã§ã™ã€‚ã¾ãŸã€\upTeX{}ä¸Šã§ç”¨ã„ã‚‹Unicodeç‰ˆ\pLaTeX{}ãŒ\upLaTeX{}ã§
% ã™\footnote{\texttt{http://www.t-lab.opal.ne.jp/tex/uptex.html}}ã€‚
% ç¾åœ¨ã®\upLaTeX{}ã¯ã€æ—¥æœ¬èªž\TeX{}é–‹ç™ºã‚³ãƒŸãƒ¥ãƒ‹ãƒ†ã‚£ãŒé…å¸ƒã—ã¦ã„ã‚‹ã‚³ãƒŸãƒ¥ãƒ‹ãƒ†ã‚£
% ç‰ˆ\pLaTeX{}\footnote{\texttt{https://github.com/texjporg/platex}}ã‚’
% ãƒ™ãƒ¼ã‚¹ã«ã—ã¦ãŠã‚Šã€\eupTeX{}ã¨ã„ã†ã‚¨ãƒ³ã‚¸ãƒ³ï¼ˆ\upTeX{}ã®\epTeX{}æ‹¡å¼µç‰ˆï¼‰ã§
% å‹•ä½œã—ã¾ã™ã€‚
%
% é–‹ç™ºä¸­ã®ç‰ˆã¯\pLaTeX{}ã¨åŒæ§˜ã«ã€GitHubã®
% ãƒªãƒã‚¸ãƒˆãƒª\footnote{\texttt{https://github.com/texjporg/uplatex}}ã§
% ç®¡ç†ã—ã¦ã„ã¾ã™ã€‚\upLaTeX{}ã¯ã‚¢ã‚¹ã‚­ãƒ¼ã¨ã¯ç„¡é–¢ä¿‚ã§ã™ã®ã§ã€
% ãƒã‚°ãƒ¬ãƒãƒ¼ãƒˆã¯ã‚¢ã‚¹ã‚­ãƒ¼å®›ã¦ã§ã¯ãªãã€æ—¥æœ¬èªž\TeX{}é–‹ç™ºã‚³ãƒŸãƒ¥ãƒ‹ãƒ†ã‚£ã«å&nbsp;±å‘Š
% ã—ã¦ãã&nbsp;ã•ã„ã€‚\TeX\ Forumã‚„GitHubã®Issueã‚·ã‚¹ãƒ†ãƒ&nbsp;ãŒåˆ©ç”¨ã§ãã¾ã™ã€‚
%\else
% \pTeX\ is the most popular \TeX\ engine in Japan and is widely
% used for a high-quality typesetting, even for commercial printing.
% However, \pTeX\ has some limitations:
% \begin{itemize}
% \item The character set available is limited to JIS X 0208,
%   namely JIS level-1 and level-2
% \item Difficulty in handling 8-bit Latin, due to conflict with
%   legacy multibyte Japanese encodings
% \item Difficulty in typesetting CJK (Chinese, Japanese and Korean)
%  multilingual documents
% \end{itemize}
%
% To overcome these weak points,
% a Unicode extension of \pTeX, \upTeX, has been
% developed.\footnote{\texttt{http://www.t-lab.opal.ne.jp/tex/uptex.html}}
% The Unicode \pLaTeX\ format run on \upTeX\ is called \upLaTeX.
% Current \upLaTeX\ is maintained by Japanese \TeX\ Development
% Community,\footnote{\texttt{https://texjp.org}}
% in sync with \pLaTeX\ community
% edition.\footnote{\texttt{https://github.com/texjporg/platex}}
% It runs on \eupTeX, an engine with both \upTeX\ and \epTeX\ features.
%
% The development version is available from
% GitHub repository\footnote{\texttt{https://github.com/texjporg/uplatex}}.
% Any bug reports and requests should be sent to
% Japanese \TeX\ Development Community, using GitHub Issue system.
%\fi
%
%
% \clearpage
%
%\ifJAPANESE
% \section{ã“ã®æ–‡æ›¸ã«ã¤ã„ã¦}\label{platex:intro}
% ã“ã®æ–‡æ›¸ã¯\upLaTeXe{}ã®æ¦‚è¦ã‚’ç¤ºã—ã¦ã„ã¾ã™ãŒã€ä½¿ã„æ–¹ã®ã‚¬ã‚¤ãƒ‰ã§ã¯
% ã‚ã‚Šã¾ã›ã‚“ã€‚ã»ã¨ã‚“ã©ã®æ©Ÿèƒ½ã¯å…ƒã¨ãªã£ã¦ã„ã‚‹\pLaTeXe{}ã‚„\LaTeXe{}ã¨
% åŒç­‰ã§ã™ã®ã§ã€ãã‚Œãžã‚Œã®ä»˜å±žæ–‡æ›¸ãªã©ã‚’å‚ç…§ã—ã¦ãã&nbsp;ã•ã„ã€‚
%
% \upTeX{}ã«ã¤ã„ã¦ã¯å…¬å¼ã‚¦ã‚§ãƒ–ã‚µã‚¤ãƒˆã‚ã‚‹ã„ã¯\cite{tb108tanaka}ï¼ˆè‹±èªžï¼‰ã‚’
% å‚ç…§ã—ã¦ãã&nbsp;ã•ã„ã€‚
%\else
% \section{Introduction to this document}\label{platex:intro}
% This document briefly describes \upLaTeXe, but is not a manual of \upLaTeXe.
% The basic functions of \upLaTeXe\ are almost the same with those of
% \pLaTeXe\ and \LaTeXe, so please refer to the documentation of those formats.
%
% For \upTeX, please refer to the official website or
% \cite{tb108tanaka} (in English).
%\fi
%
%\ifJAPANESE
% ã“ã®æ–‡æ›¸ã®æ§‹æˆã¯æ¬¡ã®ã‚ˆã†ã«ãªã£ã¦ã„ã¾ã™ã€‚
%
% \begin{quote}
% \begin{description}
% \item[ç¬¬\ref{platex:intro}ç¯€]
%  ã“ã®ç¯€ã§ã™ã€‚ã“ã®æ–‡æ›¸ã«ã¤ã„ã¦ã®æ¦‚è¦ã‚’è¿°ã¹ã¦ã„ã¾ã™ã€‚
%
% \item[ç¬¬\ref{platex:plcore}ç¯€]
%  \upLaTeXe{}ã§æ‹¡å¼µã—ãŸæ©Ÿèƒ½ã«ã¤ã„ã¦ã®æ¦‚è¦ã§ã™ã€‚
%  ä»˜å±žã®ã‚¯ãƒ©ã‚¹ãƒ•ã‚¡ã‚¤ãƒ«ã‚„ãƒ‘ãƒƒã‚±ãƒ¼ã‚¸ãƒ•ã‚¡ã‚¤ãƒ«ã«ã¤ã„ã¦ã‚‚ç°¡å˜ã«
%  èª¬æ˜Žã—ã¦ã„ã¾ã™ã€‚
%
% \item[ç¬¬\ref{platex:compatibility}ç¯€]
%  ç¾åœ¨ã®ãƒãƒ¼ã‚¸ãƒ§ãƒ³ã®\upLaTeX{}ã¨æ—§ãƒãƒ¼ã‚¸ãƒ§ãƒ³ã€ã‚ã‚‹ã„ã¯å…ƒã¨ãªã£ã¦ã„ã‚‹
% \pLaTeX{}/\LaTeX{}ã¨ã®äº’æ›æ€§ã«ã¤ã„ã¦è¿°ã¹ã¦ã„ã¾ã™ã€‚
%
% \item[ä»˜éŒ²\ref{app:dst}]
%  ã“ã®æ–‡æ›¸ã‚½ãƒ¼ã‚¹(uplatex.dtx)ã®
%  \dst{}ã®ãŸã‚ã®ã‚ªãƒ—ã‚·ãƒ§ãƒ³ã«ã¤ã„ã¦è¿°ã¹ã¦ã„ã¾ã™ã€‚
%
% \item[ä»˜éŒ²\ref{app:pldoc}]
%  \upLaTeXe{}ã®dtxãƒ•ã‚¡ã‚¤ãƒ«ã‚’ã¾ã¨ã‚ã¦ã€ä¸€ã¤ã®ã‚½ãƒ¼ã‚¹ã‚³ãƒ¼ãƒ‰èª¬æ˜Žæ›¸ã«
%  ã™ã‚‹ãŸã‚ã®æ–‡æ›¸ãƒ•ã‚¡ã‚¤ãƒ«ã®èª¬æ˜Žã‚’ã—ã¦ã„ã¾ã™ã€‚
%
% \item[ä»˜éŒ²\ref{app:omake}]
%  ä»˜éŒ²\ref{app:pldoc}ã§èª¬æ˜Žã—ãŸæ–‡æ›¸ãƒ•ã‚¡ã‚¤ãƒ«ã‚’å‡¦ç†ã™ã‚‹shã‚¹ã‚¯ãƒªãƒ—ãƒˆï¼ˆæ‰‹é&nbsp;†ï¼‰
%  ãªã©ã«ã¤ã„ã¦èª¬æ˜Žã—ã¦ã„ã¾ã™ã€‚
% \end{description}
% \end{quote}
%\else
% This document consists of following parts:
%
% \begin{quote}
% \begin{description}
% \item[Section \ref{platex:intro}]
%  This section; describes this document itself.
%
% \item[Section \ref{platex:plcore}]
%  Brief explanation of extensions in \upLaTeXe.
%  Also describes the standard classes and packages.
%
% \item[Section \ref{platex:compatibility}]
%  The compatibility note for users of the old version of
%  \upLaTeXe\ or those of the original \pLaTeXe/\LaTeXe.
%
% \item[Appendix \ref{app:dst}]
%  Describes \dst\ Options for this document.
%
% \item[Appendix \ref{app:pldoc}]
%  Description of `upldoc.tex' (counterpart for `source2e.tex' in \LaTeXe).
%
% \item[Appendix \ref{app:omake}]
%  Description of a shell script to process `upldoc.tex', etc.
% \end{description}
% \end{quote}
%\fi
%
%
%\ifJAPANESE
% \section{\upLaTeXe{}ã®æ©Ÿèƒ½ã«ã¤ã„ã¦}\label{platex:plcore}
% \upLaTeXe{}ãŒæä¾›ã™ã‚‹ãƒ•ã‚¡ã‚¤ãƒ«ã¯ã€æ¬¡ã®3ç¨®é¡žã«åˆ†é¡žã™ã‚‹ã“ã¨ãŒã§ãã¾ã™ã€‚
% ã“ã®æ§‹æˆã¯\pLaTeXe{}ã¨åŒæ§˜ã§ã™ã€‚
%
% \begin{itemize}
% \item ãƒ•ã‚©ãƒ¼ãƒžãƒƒãƒˆãƒ•ã‚¡ã‚¤ãƒ«
% \item ã‚¯ãƒ©ã‚¹ãƒ•ã‚¡ã‚¤ãƒ«
% \item ãƒ‘ãƒƒã‚±ãƒ¼ã‚¸ãƒ•ã‚¡ã‚¤ãƒ«
% \end{itemize}
%\else
% \section{About Functions of \pLaTeXe}\label{platex:plcore}
% The structure of \upLaTeXe\ is similar to that of \pLaTeXe;
% it consists of 3 types of files: a format (uplatex.ltx),
% classes and packages.
%\fi
%
%\ifJAPANESE
% \subsection{ãƒ•ã‚©ãƒ¼ãƒžãƒƒãƒˆãƒ•ã‚¡ã‚¤ãƒ«}
% \upLaTeX{}ã®ãƒ•ã‚©ãƒ¼ãƒžãƒƒãƒˆãƒ•ã‚¡ã‚¤ãƒ«ã‚’ä½œæˆã™ã‚‹ã«ã¯ã€
% ã‚½ãƒ¼ã‚¹ãƒ•ã‚¡ã‚¤ãƒ«``uplatex.ltx''ã‚’\eupTeX{}ã®INIãƒ¢ãƒ¼ãƒ‰ã§å‡¦ç†ã—ã¾ã™
% \footnote{2016å¹´ä»¥å‰ã¯\upTeX{}ã¨\eupTeX{}ã®ã©ã¡ã‚‰ã§ã‚‚ãƒ•ã‚©ãƒ¼ãƒžãƒƒãƒˆã‚’ä½œæˆã™ã‚‹
% ã“ã¨ãŒã§ãã¾ã—ãŸãŒã€2017å¹´ã«\LaTeX{}ãŒ\eTeX{}å¿…é&nbsp;ˆã¨ãªã£ãŸã“ã¨ã«ä¼´ã„ã€
% \upLaTeX{}ã‚‚\eupTeX{}ãŒå¿…é&nbsp;ˆã¨ãªã‚Šã¾ã—ãŸã€‚}ã€‚
% ãŸã&nbsp;ã—ã€\TeX\ Liveã‚„W32\TeX{}ã§ã¯ã“ã®å‡¦ç†ã‚’ç°¡å˜ã«ã™ã‚‹|fmtutil-sys|ã‚ã‚‹ã„ã¯
% |fmtutil|ã¨ã„ã†ãƒ—ãƒ­ã‚°ãƒ©ãƒ&nbsp;ãŒç”¨æ„ã•ã‚Œã¦ã„ã¾ã™ã€‚
% ä»¥ä¸‹ã‚’å®Ÿè¡Œã™ã‚Œã°ã€ãƒ•ã‚©ãƒ¼ãƒžãƒƒãƒˆãƒ•ã‚¡ã‚¤ãƒ«\file{uplatex.fmt}ãŒä½œæˆã•ã‚Œã¾ã™ã€‚
%\else
% \subsection{About the Format}
% To make a format for \upLaTeX,
% process ``uplatex.ltx'' with INI mode of \eupTeX.\footnote{Formerly
% both \upTeX\ and \eupTeX\ can make the format file for \upLaTeX, however,
% it's not true anymore because \LaTeX\ requires \eTeX\ since 2017.}
% A handy command `fmtutil-sys' (or `fmtutil') for this purpose
% is available in \TeX\ Live. The following command generates \file{uplatex.fmt}.
%\fi
%\begin{verbatim}
%   fmtutil-sys --byfmt uplatex
%\end{verbatim}
%
%\ifJAPANESE
% æ¬¡ã®ãƒªã‚¹ãƒˆãŒã€\file{uplatex.ltx}ã®å†…å®¹ã§ã™ã€‚
% ãŸã&nbsp;ã—ã€ã“ã®ãƒãƒ¼ã‚¸ãƒ§ãƒ³ã§ã¯ã€\LaTeX{}ã‹ã‚‰\upLaTeX{}ã¸ã®æ‹¡å¼µã‚’
% \file{plcore.ltx}ï¼ˆ\pLaTeX{}ã«ã‚ˆã£ã¦æä¾›ã•ã‚Œã‚‹ï¼‰ãŠã‚ˆã³
% \file{uplcore.ltx}ã‚’ãƒ­ãƒ¼ãƒ‰ã™ã‚‹ã“ã¨ã§è¡Œãªã„ã€
% \file{latex.ltx}ã«ã¯ç›´æŽ¥ã€æ‰‹ã‚’åŠ&nbsp;ãˆãªã„ã‚ˆã†ã«ã—ã¦ã„ã¾ã™ã€‚
% ã—ãŸãŒã£ã¦\file{uplatex.ltx}ã¯ã¨ã¦ã‚‚çŸ­ã„ã‚‚ã®ã¨ãªã£ã¦ã„ã¾ã™ã€‚
% \file{latex.ltx}ã«ã¯\LaTeX{}ã®ã‚³ãƒžãƒ³ãƒ‰ãŒã€
% \file{uplcore.ltx}ã«ã¯\upLaTeX{}ã§æ‹¡å¼µã—ãŸã‚³ãƒžãƒ³ãƒ‰ãŒå®šç¾©ã•ã‚Œã¦ã„ã¾ã™ã€‚
%\else
% The content of \file{uplatex.ltx} is shown below.
% In the current version of \upLaTeX,
% first we simply load \file{latex.ltx} and
% modify/extend some definitions by loading
% \file{plcore.ltx} (available from \pLaTeX) and \file{uplcore.ltx}.
%\fi
%    \begin{macrocode}
%&lt;*plcore&gt;
%    \end{macrocode}
%
%\ifJAPANESE
% \file{latex.ltx}ã®æœ«å°¾ã§ä½¿ã‚ã‚Œã¦ã„ã‚‹|\dump|ã‚’ã„ã£ãŸã‚“ç„¡åŠ¹åŒ–ã—ã¾ã™ã€‚
%\else
% Temporarily disable |\dump| at the end of \file{latex.ltx}.
%\fi
%    \begin{macrocode}
\let\orgdump\dump
\let\dump\relax
%    \end{macrocode}
%
%\ifJAPANESE
% \file{latex.ltx}ã‚’èª­ã¿è¾¼ã¿ã¾ã™ã€‚
% \TeX\ Liveã®æ¨™æº–çš„ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«ã§ã¯ã€ã“ã®ä¸­ã§Babelç”±æ¥ã®
% ãƒã‚¤ãƒ•ãƒãƒ¼ã‚·ãƒ§ãƒ³ãƒ»ãƒ‘ã‚¿ãƒ¼ãƒ³\file{hyphen.cfg}ãŒèª­ã¿è¾¼ã¾ã‚Œã‚‹ã¯ãšã§ã™ã€‚
%\else
% Load \file{latex.ltx} here.
% Within the standard installation of \TeX\ Live, \file{hyphen.cfg}
% provided by ``Babel'' package will be used.
%\fi
%    \begin{macrocode}
\input latex.ltx
%    \end{macrocode}
%
%\ifJAPANESE
% ã“ã®æ™‚ç‚¹ã§|\typeout|ãŒæœªå®šç¾©ãªã‚‰ã€\LaTeX{}ã‚«ãƒ¼ãƒãƒ«ã®èª­ã¿è¾¼ã¿ã«
% å¤±æ•—ã—ã¦ã„ã¾ã™ã®ã§ã€å¼·åˆ¶çµ‚äº†ã—ã¾ã™ï¼ˆ\LaTeXe\ 2017/01/01ä»¥é™ã‚’
% éž\eTeX{}æ‹¡å¼µã§ãƒ•ã‚©ãƒ¼ãƒžãƒƒãƒˆä½œæˆã—ã‚ˆã†ã¨ã—ãŸå&nbsp;´åˆãªã©ï¼‰ã€‚
% \changes{v1.1c-u03}{2021/02/25}{\file{latex.ltx}ã®èª­è¾¼ãƒã‚§ãƒƒã‚¯}
%\else
% If |\typeout| is still undefined, the input of \LaTeX~kernel
% should have failed; abort now.
% \changes{v1.1c-u03}{2021/02/25}{Check for \file{latex.ltx} status}
%\fi
%    \begin{macrocode}
\ifx\typeout\undefined
  \errhelp{Please reinstall LaTeX, or check e-TeX availability.}%
  \errmessage{Failed to load `latex.ltx' properly}%
  \expandafter\end
\fi
%    \end{macrocode}
%
%\ifJAPANESE
% \file{plcore.ltx}ã¨\file{uplcore.ltx}ã‚’èª­ã¿è¾¼ã¿ã¾ã™ã€‚
% \changes{v1.0s-u02}{2017/12/10}{\file{uplcore.ltx}ã®å‰ã«
%    \file{plcore.ltx}ã‚’èª­ã¿è¾¼ã‚€ã‚ˆã†ã«ã—ãŸï¼ˆæœ€è¿‘ã®\pLaTeX{}ãŒå‰æï¼‰}
%\else
% Load \file{plcore.ltx} and \file{uplcore.ltx}.
% \changes{v1.0s-u02}{2017/12/10}{Load \file{plcore.ltx} before
%    \file{uplcore.ltx} (recent version of \pLaTeX\ is assumed)}
%\fi
%    \begin{macrocode}
\typeout{**************************^^J%
         *^^J%
         * making upLaTeX format^^J%
         *^^J%
         **************************}
\makeatletter
\input plcore.ltx
\input uplcore.ltx
%    \end{macrocode}
%
%\ifJAPANESE
% ãƒ•ã‚©ãƒ³ãƒˆé–¢é€£ã®ãƒ‡ãƒ•ã‚©ãƒ«ãƒˆè¨­å®šãƒ•ã‚¡ã‚¤ãƒ«ã§ã‚ã‚‹ã€
% \file{upldefs.ltx}ã‚’èª­ã¿è¾¼ã¿ã¾ã™ã€‚
% \TeX{}ã®å…¥åŠ›ãƒ•ã‚¡ã‚¤ãƒ«æ¤œç´¢ãƒ‘ã‚¹ã«è¨­å®šã•ã‚Œã¦ã„ã‚‹
% ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªã«\file{upldefs.cfg}ãƒ•ã‚¡ã‚¤ãƒ«ãŒã‚ã‚‹å&nbsp;´åˆã¯ã€
% ãã®ãƒ•ã‚¡ã‚¤ãƒ«ã‚’ä½¿ã„ã¾ã™ã€‚
% èª­ã¿è¾¼ã¿å¾Œã«ã‚³ãƒ¼ãƒ‰ãŒå®Ÿè¡Œã•ã‚Œã‚‹ã‹ã‚‚ã—ã‚Œã¾ã›ã‚“ã€‚
% \changes{v1.0s-u01}{2017/12/05}{ãƒ‡ãƒ•ã‚©ãƒ«ãƒˆè¨­å®šãƒ•ã‚¡ã‚¤ãƒ«ã®èª­ã¿è¾¼ã¿ã‚’
%    \file{uplcore.ltx}ã‹ã‚‰\file{uplatex.ltx}ã¸ç§»å‹•
%     (based on platex.dtx 2017/12/05 v1.0s)}
% \changes{v1.1b-u03}{2020/09/28}{defsèª­è¾¼å¾Œã«ãƒ•ãƒƒã‚¯è¿½åŠ&nbsp;}
%\else
% Load font-related default settings, \file{upldefs.ltx}.
% If a file \file{upldefs.cfg} is found, then that file will be
% used instead.
% Some code may be executed after loading.
% \changes{v1.0s-u01}{2017/12/05}{Moved loading default settings
%    from \file{uplcore.ltx} to \file{uplatex.ltx}
%     (based on platex.dtx 2017/12/05 v1.0s)}
% \changes{v1.1b-u03}{2020/09/28}{Add hook after loading defs}
%\fi
%    \begin{macrocode}
\InputIfFileExists{upldefs.cfg}
           {\typeout{*************************************^^J%
                     * Local config file upldefs.cfg used^^J%
                     *************************************}}%
           {\input{upldefs.ltx}}
\ifx\code@after@pldefs\@undefined\else \code@after@pldefs \fi
%    \end{macrocode}
%
%\ifJAPANESE
% ä»¥å‰ã®ãƒãƒ¼ã‚¸ãƒ§ãƒ³ã§ã¯ã€ãƒ•ã‚©ãƒ¼ãƒžãƒƒãƒˆä½œæˆæ™‚ã«\upLaTeX{}ã®ãƒãƒ¼ã‚¸ãƒ§ãƒ³ãŒ
% ã‚ã‹ã‚‹ã‚ˆã†ã«ã€ç«¯æœ«ã«è¡¨ç¤ºã—ã¦ã„ã¾ã—ãŸãŒã€|\everyjob| ã«ãƒãƒŠãƒ¼è¡¨ç¤º
% ä»¥å¤–ã®ã‚³ãƒ¼ãƒ‰ãŒå«ã¾ã‚Œã‚‹å¯èƒ½æ€§ã‚’è€ƒæ…®ã—ã€å®‰å…¨ã®ãŸã‚ã‚„ã‚ã¾ã—ãŸã€‚
% \changes{v1.0w-u02}{2018/04/08}{å®‰å…¨ã®ãŸã‚ãƒ•ã‚©ãƒ¼ãƒžãƒƒãƒˆä½œæˆæ™‚ã®
%    ãƒãƒŠãƒ¼è¡¨ç¤ºã‚’ã‚„ã‚ãŸ
%     (based on platex.dtx 2018/04/08 v1.0w)}
%\else
% In the previous version, we displayed \upLaTeX\ version
% on the terminal, so that it can be easily recognized
% during format creation; however |\everyjob| can contain
% any code other than showing a banner, so now disabled.
% \changes{v1.0w-u02}{2018/04/08}{Stop showing banner during
%    format generation for safety
%     (based on platex.dtx 2018/04/08 v1.0w)}
%\fi
%    \begin{macrocode}
%\the\everyjob
%    \end{macrocode}
%
%\ifJAPANESE
% \upLaTeXe{}ã®èµ·å‹•æ™‚ã«\file{uplatex.cfg}ãŒã‚ã‚‹å&nbsp;´åˆã€ãã‚Œã‚’èª­ã¿è¾¼ã‚€
% ã‚ˆã†ã«ã—ã¾ã™ï¼ˆ\pLaTeXe{}ãŒ\file{platex.cfg}ã‚’èª­ã¿è¾¼ã‚€ã®ã¨åŒæ§˜ï¼‰ã€‚
% ãƒãƒ¼ã‚¸ãƒ§ãƒ³2016/07/01ã§ã¯ã‚³ãƒ¼ãƒ‰ã‚’\file{uplcore.ltx}ã«å…¥ã‚Œã¦ã„ã¾ã—ãŸ
% ãŒã€\file{uplatex.ltx}ã¸ç§»å‹•ã—ã¾ã—ãŸã€‚
% \changes{v1.0m-u01}{2016/08/26}{\file{uplatex.cfg}ã®èª­ã¿è¾¼ã¿ã‚’
%    \file{uplcore.ltx}ã‹ã‚‰\file{uplatex.ltx}ã¸ç§»å‹•
%     (based on platex.dtx 2016/08/26 v1.0m)}
%\else
% Load \file{uplatex.cfg} if it exists at runtime of \upLaTeXe.
% (Counterpart of \file{platex.cfg} in \pLaTeXe.)
% \changes{v1.0m-u01}{2016/08/26}{Moved loading \file{uplatex.cfg}
%    from \file{uplcore.ltx} to \file{uplatex.ltx}
%     (based on platex.dtx 2016/08/26 v1.0m)}
%\fi
%    \begin{macrocode}
\everyjob\expandafter{%
  \the\everyjob
  \IfFileExists{uplatex.cfg}{%
    \typeout{*************************^^J%
             * Loading uplatex.cfg.^^J%
             *************************}%
    \input{uplatex.cfg}}{}%
}
%    \end{macrocode}
%
%\ifJAPANESE
% ãƒ•ã‚©ãƒ¼ãƒžãƒƒãƒˆãƒ•ã‚¡ã‚¤ãƒ«ã«ãƒ€ãƒ³ãƒ—ã—ã¾ã™ã€‚
%\else
% Dump to the format file.
%\fi
%    \begin{macrocode}
\let\dump\orgdump
\let\orgdump\@undefined
\makeatother
\dump
%\endinput
%    \end{macrocode}
%
%    \begin{macrocode}
%&lt;/plcore&gt;
%    \end{macrocode}
%
%\ifJAPANESE
% å®Ÿéš›ã«\upLaTeXe{}ã¸ã®æ‹¡å¼µã‚’è¡Œãªã£ã¦ã„ã‚‹\file{uplcore.ltx}ã¯ã€
% \dst{}ãƒ—ãƒ­ã‚°ãƒ©ãƒ&nbsp;ã«ã‚ˆã£ã¦ã€æ¬¡ã®ãƒ•ã‚¡ã‚¤ãƒ«ã®æ–­ç‰‡ãŒé€£çµã•ã‚ŒãŸã‚‚ã®ã§ã™ã€‚
%
% \begin{itemize}
% \item \file{uplvers.dtx}ã¯ã€\upLaTeXe{}ã®ãƒ•ã‚©ãƒ¼ãƒžãƒƒãƒˆãƒãƒ¼ã‚¸ãƒ§ãƒ³ã‚’
%   å®šç¾©ã—ã¦ã„ã¾ã™ã€‚
% \end{itemize}
%
% ã¾ãŸã€ãƒ—ãƒªãƒ­ãƒ¼ãƒ‰ãƒ•ã‚©ãƒ³ãƒˆã‚„çµ„ç‰ˆãƒ‘ãƒ©ãƒ¡ãƒ¼ã‚¿ãªã©ã®ãƒ‡ãƒ•ã‚©ãƒ«ãƒˆè¨­å®šã¯ã€
% \file{uplatex.ltx}ã®ä¸­ã§\file{upldefs.ltx}ã‚’ãƒ­ãƒ¼ãƒ‰ã™ã‚‹ã“ã¨ã«ã‚ˆã‚Šè¡Œã„ã¾ã™
% \footnote{æ—§ç‰ˆã§ã¯\file{uplcore.ltx}ã®ä¸­ã§ãƒ­ãƒ¼ãƒ‰ã—ã¦ã„ã¾ã—ãŸãŒã€
% 2018å¹´ä»¥é™ã®æ–°ã—ã„ã‚³ãƒŸãƒ¥ãƒ‹ãƒ†ã‚£ç‰ˆ\upLaTeX{}ã§ã¯
% \file{uplatex.ltx}ã‹ã‚‰èª­ã¿è¾¼ã‚€ã“ã¨ã«ã—ã¾ã—ãŸã€‚}ã€‚
% ã“ã®ãƒ•ã‚¡ã‚¤ãƒ«\file{upldefs.ltx}ã‚‚\file{uplfonts.dtx}ã‹ã‚‰ç”Ÿæˆã•ã‚Œã¾ã™ã€‚
% \begin{chuui}
% ã“ã®ãƒ•ã‚¡ã‚¤ãƒ«ã«è¨˜è¿°ã•ã‚Œã¦ã„ã‚‹è¨­å®šã‚’å¤‰æ›´ã™ã‚Œã°
% \upLaTeXe{}ã‚’ã‚«ã‚¹ã‚¿ãƒžã‚¤ã‚ºã™ã‚‹ã“ã¨ãŒã§ãã¾ã™ãŒã€
% ãã®å&nbsp;´åˆã¯\file{upldefs.ltx}ã‚’ç›´æŽ¥ä¿®æ­£ã™ã‚‹ã®ã§ã¯ãªãã€ã„ã£ãŸã‚“
% \file{upldefs.cfg}ã¨ã„ã†åå‰ã§ã‚³ãƒ”ãƒ¼ã—ã¦ã€ãã®ãƒ•ã‚¡ã‚¤ãƒ«ã‚’ç·¨é›†ã—ã¦ãã&nbsp;ã•ã„ã€‚
% ãƒ•ã‚©ãƒ¼ãƒžãƒƒãƒˆä½œæˆæ™‚ã«\file{upldefs.cfg}ãŒå­˜åœ¨ã—ãŸå&nbsp;´åˆã¯ã€ãã¡ã‚‰ãŒ
% \file{upldefs.ltx}ã®ä»£ã‚ã‚Šã«èª­ã¿è¾¼ã¾ã‚Œã¾ã™ã€‚
% \end{chuui}
%\else
% The file \file{uplcore.ltx}, which provides modifications/extensions
% to make \upLaTeXe, is a concatenation of stripped files below
% using \dst\ program.
%
% \begin{itemize}
% \item \file{uplvers.dtx} defines the format version of \upLaTeXe.
% \item \file{uplfonts.dtx} extends \NFSS2 for Japanese font selection.
% \item \file{plcore.dtx} (the same content as \pLaTeXe); defines other
%   modifications to \LaTeXe.
% \end{itemize}
%
% Moreover, default settings of pre-loaded fonts and typesetting parameters
% are done by loading \file{upldefs.ltx} inside
% \file{uplatex.ltx}.\footnote{Older \upLaTeX\ loaded \file{upldefs.ltx}
% inside \file{uplcore.ltx}; however, \upLaTeX\ community edition newer than
% 2018 loads \file{upldefs.ltx} inside \file{uplatex.ltx}.}
% This file \file{upldefs.ltx} is also stripped from \file{uplfonts.dtx}.
% \begin{chuui}
% You can customize \upLaTeXe\ by tuning these settings.
% If you need to do that, copy/rename it as \file{upldefs.cfg} and edit it,
% instead of overwriting \file{upldefs.ltx} itself.
% If a file named \file{upldefs.cfg} is found at a format creation
% time, it will be read as a substitute of \file{upldefs.ltx}.
% \end{chuui}
%\fi
%
%\ifJAPANESE
% ã“ã“ã¾ã§è¦‹ã¦ããŸã‚ˆã†ã«ã€\upLaTeX{}ã®å„ãƒ•ã‚¡ã‚¤ãƒ«ã¯ãã‚Œãžã‚Œ\pLaTeX{}ã§ã®
% å¯¾å¿œã™ã‚‹ãƒ•ã‚¡ã‚¤ãƒ«åã®é&nbsp;­ã«``u''ã‚’ä»˜ã‘ãŸåå‰ã«ãªã£ã¦ã„ã¾ã™ã€‚
%\else
% As shown above, the files in \upLaTeX\ is named after \pLaTeX\ ones,
% prefixed with ``u.''
%\fi
%
%
%\ifJAPANESE
% \subsubsection{ãƒãƒ¼ã‚¸ãƒ§ãƒ³}
% \upLaTeXe{}ã®ãƒãƒ¼ã‚¸ãƒ§ãƒ³ã‚„ãƒ•ã‚©ãƒ¼ãƒžãƒƒãƒˆãƒ•ã‚¡ã‚¤ãƒ«åã¯ã€
% \file{uplvers.dtx}ã§å®šç¾©ã—ã¦ã„ã¾ã™ã€‚ã“ã‚Œã¯ã€\pLaTeXe{}ã®ãƒãƒ¼ã‚¸ãƒ§ãƒ³ã‚„
% ãƒ•ã‚©ãƒ¼ãƒžãƒƒãƒˆãƒ•ã‚¡ã‚¤ãƒ«åãŒ\file{plvers.dtx}ã§å®šç¾©ã•ã‚Œã¦ã„ã‚‹ã®ã¨åŒã˜ã§ã™ã€‚
%\else
% \subsubsection{Version}
% The version (like ``\pfmtversion'') and the format name
% (``\pfmtname'') of \upLaTeXe\ are defined in \file{uplvers.dtx}.
% This is similar to \pLaTeXe, which defines those in \file{plvers.dtx}.
%\fi
%
%
%\ifJAPANESE
% \subsubsection{\NFSS2ã‚³ãƒžãƒ³ãƒ‰}
% \upLaTeXe{}ã¯\pLaTeXe{}ã¨å…±é€šã®\file{plcore.ltx}ã‚’ä½¿ç”¨ã—ã¦ã„ã¾ã™ã®ã§ã€
% \NFSS2ã®å’Œæ–‡ãƒ•ã‚©ãƒ³ãƒˆé¸æŠžã¸ã®æ‹¡å¼µãŒæœ‰åŠ¹ã«ãªã£ã¦ã„ã¾ã™ã€‚
%\else
% \subsubsection{\NFSS2 Commands}
% \upLaTeXe\ shares \file{plcore.dtx} with \pLaTeXe, so
% the extensions of \NFSS2 for selecting Japanese fonts are available.
%\fi
%
%
%\ifJAPANESE
% \subsubsection{å‡ºåŠ›ãƒ«ãƒ¼ãƒãƒ³ã¨ãƒ•ãƒ­ãƒ¼ãƒˆ}
% \upLaTeXe{}ã¯\pLaTeXe{}ã¨å…±é€šã®\file{plcore.ltx}ã‚’ä½¿ç”¨ã—ã¦ã„ã¾ã™ã®ã§ã€
% å‡ºåŠ›ãƒ«ãƒ¼ãƒãƒ³ã‚„è„šæ³¨ãƒžã‚¯ãƒ­ãªã©ã¯\pLaTeXe{}ã¨åŒã˜ã‚ˆã†ã«å‹•ä½œã—ã¾ã™ã€‚
%\else
% \subsubsection{Output Routine and Floats}
% \upLaTeXe\ shares \file{plcore.dtx} with \pLaTeXe, so
% the output routine and footnote macros will behave similar to \pLaTeXe.
%\fi
%
%
%\ifJAPANESE
% \subsection{ã‚¯ãƒ©ã‚¹ãƒ•ã‚¡ã‚¤ãƒ«ã¨ãƒ‘ãƒƒã‚±ãƒ¼ã‚¸ãƒ•ã‚¡ã‚¤ãƒ«}
%
% \upLaTeXe{}ãŒæä¾›ã‚’ã™ã‚‹ã‚¯ãƒ©ã‚¹ãƒ•ã‚¡ã‚¤ãƒ«ã‚„ãƒ‘ãƒƒã‚±ãƒ¼ã‚¸ãƒ•ã‚¡ã‚¤ãƒ«ã¯ã€
% \pLaTeXe{}ã«å«ã¾ã‚Œã‚‹ãƒ•ã‚¡ã‚¤ãƒ«ã‚’åŸºã«ã—ã¦ã„ã¾ã™ã€‚
%
% \upLaTeXe{}ã«ä»˜å±žã®ã‚¯ãƒ©ã‚¹ãƒ•ã‚¡ã‚¤ãƒ«ã¯ã€æ¬¡ã®ã¨ãŠã‚Šã§ã™ã€‚
%
% \begin{itemize}
% \item ujarticle.cls, ujbook.cls, ujreport.cls\par
%   æ¨ªçµ„ç”¨ã®æ¨™æº–ã‚¯ãƒ©ã‚¹ãƒ•ã‚¡ã‚¤ãƒ«ã€‚
%   \file{ujclasses.dtx}ã‹ã‚‰ä½œæˆã•ã‚Œã‚‹ã€‚
%   ãã‚Œãžã‚Œjarticle.cls, jbook.cls, jreport.clsã®\upLaTeX{}ç‰ˆã€‚
%
% \item utarticle.cls, utbook.cls, utreport.cls\par
%   ç¸¦çµ„ç”¨ã®æ¨™æº–ã‚¯ãƒ©ã‚¹ãƒ•ã‚¡ã‚¤ãƒ«ã€‚
%   \file{ujclasses.dtx}ã‹ã‚‰ä½œæˆã•ã‚Œã‚‹ã€‚
%   ãã‚Œãžã‚Œtarticle.cls, tbook.cls, treport.clsã®\upLaTeX{}ç‰ˆã€‚
% \end{itemize}
%
% ãªãŠjltxdoc.clsã®\upLaTeX{}ç‰ˆã¯ã‚ã‚Šã¾ã›ã‚“ãŒã€ã“ã‚Œã¯\pLaTeX{}ã®ã‚‚ã®ãŒ
% \upLaTeX{}ã§ã‚‚ãã®ã¾ã¾ä½¿ãˆã¾ã™ã€‚
%\else
% \subsection{Classes and Packages}
%
% Classes and packages bundled with \upLaTeXe\ are based on
% those in original \pLaTeXe, and modified some parameters.
%
% \upLaTeXe\ classes:
%
% \begin{itemize}
% \item ujarticle.cls, ujbook.cls, ujreport.cls\par
%   Standard \emph{yoko-kumi} (horizontal writing) classes;
%   stripped from \file{ujclasses.dtx}.
%   \upLaTeX\ edition of jarticle.cls, jbook.cls and jreport.cls.
%
% \item utarticle.cls, utbook.cls, utreport.cls\par
%   Standard \emph{tate-kumi} (vertical writing) classes;
%   stripped from \file{ujclasses.dtx}.
%   \upLaTeX\ edition of tarticle.cls, tbook.cls and treport.cls.
% \end{itemize}
%
% We don't provide \upLaTeX\ edition of jltxdoc.cls, but the one
% from \pLaTeX\ can be used also on \upLaTeX\ without problem.
%\fi
%
%\ifJAPANESE
% ã¾ãŸã€\upLaTeXe{}ã«ä»˜å±žã®ãƒ‘ãƒƒã‚±ãƒ¼ã‚¸ãƒ•ã‚¡ã‚¤ãƒ«ã¯ã€æ¬¡ã®ã¨ãŠã‚Šã§ã™ã€‚
%
% \begin{itemize}
% \item uptrace.sty\par
%   ptrace.styã®\upLaTeX{}ç‰ˆã€‚
%   \LaTeX{}ã§ãƒ•ã‚©ãƒ³ãƒˆé¸æŠžã‚³ãƒžãƒ³ãƒ‰ã®ãƒˆãƒ¬ãƒ¼ã‚¹ã«ä½¿ã†\file{tracefnt.sty}ãŒ
%   å†å®šç¾©ã—ã¦ã—ã¾ã†\NFSS2ã‚³ãƒžãƒ³ãƒ‰ã‚’ã€\upLaTeXe{}ç”¨ã«å†ã€…å®šç¾©ã™ã‚‹ãŸã‚ã®
%   ãƒ‘ãƒƒã‚±ãƒ¼ã‚¸ã€‚
%   \file{uplfonts.dtx}ã‹ã‚‰ä½œæˆã•ã‚Œã‚‹ã€‚
% \end{itemize}
%
% ä»–ã®\pLaTeX{}ã®ãƒ‘ãƒƒã‚±ãƒ¼ã‚¸ã¯ã€\upLaTeX{}ã§ã‚‚ãã®ã¾ã¾å‹•ä½œã—ã¾ã™ã€‚
%\else
% \upLaTeXe\ packages:
%
% \begin{itemize}
% \item uptrace.sty\par
%   \upLaTeXe\ version of \file{tracefnt.sty};
%   the package \file{tracefnt.sty} overwrites \upLaTeXe-style \NFSS2
%   commands, so \file{uptrace.sty} provides redefinitions to recover
%   \upLaTeXe\ extensions. Stripped from \file{uplfonts.dtx}.
% \end{itemize}
%
% Other \pLaTeX\ packages work also on \upLaTeX.
%\fi
%
%
%\ifJAPANESE
% \section{ä»–ã®ãƒ•ã‚©ãƒ¼ãƒžãƒƒãƒˆãƒ»æ—§ãƒãƒ¼ã‚¸ãƒ§ãƒ³ã¨ã®äº’æ›æ€§}
% \label{platex:compatibility}
% ã“ã“ã§ã¯ã€ã“ã®\upLaTeXe{}ã®ãƒãƒ¼ã‚¸ãƒ§ãƒ³ã¨ä»¥å‰ã®ãƒãƒ¼ã‚¸ãƒ§ãƒ³ã€ã‚ã‚‹ã„ã¯
% \pLaTeXe{}/\LaTeXe{}ã¨ã®äº’æ›æ€§ã«ã¤ã„ã¦èª¬æ˜Žã‚’ã—ã¦ã„ã¾ã™ã€‚
%
% \subsection{\pLaTeXe{}ãŠã‚ˆã³\LaTeXe{}ã¨ã®äº’æ›æ€§}
% \upLaTeXe{}ã¯ã€\pLaTeXe{}ã®ä¸Šä½äº’æ›ã¨ã„ã†å½¢ã‚’å–ã£ã¦ã„ã¾ã™ã®ã§ã€
% ã‚¯ãƒ©ã‚¹ãƒ•ã‚¡ã‚¤ãƒ«ã‚„ã„ãã¤ã‹ã®ã‚³ãƒžãƒ³ãƒ‰ã‚’ç½®ãæ›ãˆã‚‹ã&nbsp;ã‘ã§ã€
% ãŸã„ã¦ã„ã®\pLaTeXe{}æ–‡æ›¸ã‚’ç°¡å˜ã«\upLaTeXe{}æ–‡æ›¸ã«å¤‰æ›´ã™ã‚‹ã“ã¨ãŒã§ãã¾ã™ã€‚
% ãŸã&nbsp;ã—ã€\upLaTeXe{}ã®ãƒ‡ãƒ•ã‚©ãƒ«ãƒˆã®æ—¥æœ¬èªžãƒ•ã‚©ãƒ³ãƒˆãƒ¡ãƒˆãƒªãƒƒã‚¯ã¯\pLaTeXe{}ã®
% ãã‚Œã¨ç•°ãªã‚Šã¾ã™ã®ã§ã€ãƒ¬ã‚¤ã‚¢ã‚¦ãƒˆãŒå¤‰åŒ–ã™ã‚‹ã“ã¨ãŒã‚ã‚Šã¾ã™ã€‚
% ã¾ãŸã€\LaTeXe{}ã®ã„ãã¤ã‹ã®å‘½ä»¤ã®å®šç¾©ã‚‚å¤‰æ›´ã—ã¦ã„ã¾ã™ã®ã§ã€
% \LaTeXe{}ã§å‡¦ç†ã§ãã‚‹ãƒ•ã‚¡ã‚¤ãƒ«ã‚’\upLaTeXe{}ã§å‡¦ç†ã—ãŸå&nbsp;´åˆã«
% å®Œå…¨ã«åŒã˜çµæžœã«ãªã‚‹ã¨ã¯é™ã‚Šã¾ã›ã‚“ã€‚
%
% ã¾ãŸã€\upLaTeXe{}ã¯æ–°ã—ã„ãƒžã‚¯ãƒ­ãƒ‘ãƒƒã‚±ãƒ¼ã‚¸ã§ã™ã®ã§ã€2.09äº’æ›ãƒ¢ãƒ¼ãƒ‰ã‚’
% ã‚µãƒãƒ¼ãƒˆã—ã¦ã„ã¾ã›ã‚“ã€‚\LaTeXe{}ã®ä»•æ§˜ã«å¾“ã£ã¦ãƒ‰ã‚­ãƒ¥ãƒ¡ãƒ³ãƒˆã‚’ä½œæˆã—ã¦
% ãã&nbsp;ã•ã„ã€‚
%
% \pLaTeXe{}å‘ã‘ã‚ã‚‹ã„ã¯\LaTeXe{}å‘ã‘ã«ä½œã‚‰ã‚ŒãŸå¤šãã®ã‚¯ãƒ©ã‚¹ãƒ•ã‚¡ã‚¤ãƒ«ã‚„
% ãƒ‘ãƒƒã‚±ãƒ¼ã‚¸ãƒ•ã‚¡ã‚¤ãƒ«ã¯ãã®ã¾ã¾ä½¿ãˆã‚‹ã¨æ€ã„ã¾ã™ã€‚
% ãŸã&nbsp;ã—ã€ä¾‹ãˆã°ã‚¯ãƒ©ã‚¹ãƒ•ã‚¡ã‚¤ãƒ«ãŒ\pLaTeX{}æ¨™æº–ã®
% æ¼¢å­—ã‚¨ãƒ³ã‚³ãƒ¼ãƒ‡ã‚£ãƒ³ã‚°(JY1, JT1)ã‚’å‰æã¨ã—ã¦ã„ã‚‹å&nbsp;´åˆã¯ã€
% \upLaTeX{}ã§æŽ¡ç”¨ã—ãŸæ¼¢å­—ã‚¨ãƒ³ã‚³ãƒ¼ãƒ‡ã‚£ãƒ³ã‚°(JY2, JT2)ã¨åˆè‡´ã›ãšã«
% ã‚¨ãƒ©ãƒ¼ãŒç™ºç”Ÿã—ã¦ã—ã¾ã„ã¾ã™ã€‚ã“ã®å&nbsp;´åˆã¯ã€ãã®ã‚¯ãƒ©ã‚¹ãƒ•ã‚¡ã‚¤ãƒ«ãŒ
% \upLaTeX{}ã«å¯¾å¿œã—ã¦ã„ãªã„ã“ã¨ã«ãªã‚Šã¾ã™ã€‚ã“ã®ã‚ˆã†ãªå&nbsp;´åˆã¯ã€
% \pLaTeX{}ã‚’ä½¿ã„ç¶šã‘ã‚‹ã‹ã€ãã®ä½œè€…ã«é€£çµ¡ã—ã¦\upLaTeX{}ã«å¯¾å¿œã—ã¦
% ã‚‚ã‚‰ã†ãªã©ã®å¯¾å¿œã‚’ã¨ã£ã¦ãã&nbsp;ã•ã„ã€‚
%\else
% \section{Compatibility with Other Formats and Older Versions}
% \label{platex:compatibility}
% Here we provide some information about the compatibility between
% current \upLaTeXe\ and older versions or original \pLaTeXe/\LaTeXe.
%
% \subsection{Compatibility with \pLaTeXe/\LaTeXe}
% \upLaTeXe\ is in most part upward compatible with \pLaTeXe,
% so you can move from \pLaTeXe\ to \upLaTeXe\ by simply replacing
% the document class and some macros. However, the default Japanese
% font metrics in \upLaTeXe\ is different from those in \pLaTeXe;
% therefore, you should not expect identical output from both
% \pLaTeXe\ and \upLaTeXe.
%
% Note that \upLaTeX\ is a new format, so we do \emph{not} provide support
% for 2.09 compatibility mode. Follow the standard \LaTeXe\ convention!
%
% We hope that most classes and packages meant for \LaTeXe/\pLaTeXe\ works
% also for \upLaTeXe\ without any modification. However for example,
% if a class or a package uses Kanji encoding `JY1' or `JT1' (default on
% \pLaTeXe), an error complaining the mismatch of Kanji encoding might
% happen on \upLaTeX, in which the default is `JY2' and `JT2.'
% In this case, we have to say that the class or package does not support
% \upLaTeXe; you should use \pLaTeX, or report to the author of the
% package or class.
%\fi
%
%\ifJAPANESE
% \subsection{latexreleaseãƒ‘ãƒƒã‚±ãƒ¼ã‚¸ã¸ã®å¯¾å¿œ}
% \LaTeX\ \texttt{&lt;2015/01/01&gt;}ã§å°Žå…¥ã•ã‚ŒãŸlatexreleaseãƒ‘ãƒƒã‚±ãƒ¼ã‚¸ã‚’
% ã‚‚ã¨ã«ã€æ–°ã—ã„\pLaTeX{}ã§ã¯platexreleaseãƒ‘ãƒƒã‚±ãƒ¼ã‚¸ãŒç”¨æ„ã•ã‚Œã¾ã—ãŸã€‚
% æœ¬æ¥ã¯\upLaTeX{}ã§ã‚‚åŒæ§˜ã®ãƒ‘ãƒƒã‚±ãƒ¼ã‚¸ã‚’ç”¨æ„ã™ã‚‹ã®ãŒã‚ˆã„ã®ã§ã™ãŒã€
% ç¾åœ¨ã¯\pLaTeX{}ã‹ã‚‰\upLaTeX{}ã¸ã®å¤‰æ›´ç‚¹ãŒå«ã¾ã‚Œã¦ã„ã¾ã›ã‚“ã®ã§ã€
% å¹¸ã„platexreleaseãƒ‘ãƒƒã‚±ãƒ¼ã‚¸ã‚’ãã®ã¾ã¾ç”¨ã„ã‚‹ã“ã¨ãŒã§ãã¾ã™ã€‚
% ã“ã®ãŸã‚ã€\upLaTeX{}ã§ç‹¬è‡ªã®ãƒ‘ãƒƒã‚±ãƒ¼ã‚¸ã‚’ç”¨æ„ã™ã‚‹ã“ã¨ã¯ã—ã¦ã„ã¾ã›ã‚“ã€‚
% platexreleaseãƒ‘ãƒƒã‚±ãƒ¼ã‚¸ã‚’ç”¨ã„ã‚‹ã¨ã€éŽåŽ»ã®\upLaTeX{}ã‚’ã‚¨ãƒŸãƒ¥ãƒ¬ãƒ¼ãƒˆ
% ã—ãŸã‚Šã€ãƒ•ã‚©ãƒ¼ãƒžãƒƒãƒˆã‚’ä½œã‚Šç›´ã™ã“ã¨ãªãæ–°ã—ã„\upLaTeX{}ã‚’è©¦ã—ãŸã‚Šã™ã‚‹
% ã“ã¨ãŒã§ãã¾ã™ã€‚è©³ç´°ã¯platexreleaseã®ãƒ‰ã‚­ãƒ¥ãƒ¡ãƒ³ãƒˆã‚’å‚ç…§ã—ã¦ãã&nbsp;ã•ã„ã€‚
%\else
% \subsection{Support for Package `latexrelease'}
% \pLaTeX\ provides `platexrelease' package, which is based on
% `latexrelease' package (introduced in \LaTeX\ \texttt{&lt;2015/01/01&gt;}).
% It could be better if we also provide a similar package on \upLaTeX,
% but currently we don't need it; \upLaTeX\ does not have any recent
% \upLaTeX-specific changes. So, you can safely use `platexrelease'
% package for emulating the specified format date.
%\fi
%
%
%
% \appendix
%
%\ifJAPANESE
% \section{\dst{}ãƒ—ãƒ­ã‚°ãƒ©ãƒ&nbsp;ã®ãŸã‚ã®ã‚ªãƒ—ã‚·ãƒ§ãƒ³}\label{app:dst}
% ã“ã®æ–‡æ›¸ã®ã‚½ãƒ¼ã‚¹(\file{uplatex.dtx})ã‚’\dst{}ãƒ—ãƒ­ã‚°ãƒ©ãƒ&nbsp;ã§
% å‡¦ç†ã™ã‚‹ã“ã¨ã«ã‚ˆã£ã¦ã€
% ã„ãã¤ã‹ã®ç•°ãªã‚‹ãƒ•ã‚¡ã‚¤ãƒ«ã‚’ç”Ÿæˆã™ã‚‹ã“ã¨ãŒã§ãã¾ã™ã€‚
% \dst{}ãƒ—ãƒ­ã‚°ãƒ©ãƒ&nbsp;ã®è©³ç´°ã¯ã€\file{docstrip.dtx}ã‚’å‚ç…§ã—ã¦ãã&nbsp;ã•ã„ã€‚
%
% ã“ã®æ–‡æ›¸ã®\dst{}ãƒ—ãƒ­ã‚°ãƒ©ãƒ&nbsp;ã®ãŸã‚ã®ã‚ªãƒ—ã‚·ãƒ§ãƒ³ã¯ã€æ¬¡ã®ã¨ãŠã‚Šã§ã™ã€‚
%
% \DeleteShortVerb{\|}
% \begin{center}
% \begin{tabular}{l|p{.8\linewidth}}
% \emph{ã‚ªãƒ—ã‚·ãƒ§ãƒ³} &amp; \emph{æ„å‘³}\\\hline
% plcore &amp; ãƒ•ã‚©ãƒ¼ãƒžãƒƒãƒˆãƒ•ã‚¡ã‚¤ãƒ«ã‚’ä½œã‚‹ãŸã‚ã®ãƒ•ã‚¡ã‚¤ãƒ«ã‚’ç”Ÿæˆ\\
% pldoc  &amp; \upLaTeXe{}ã®ã‚½ãƒ¼ã‚¹ãƒ•ã‚¡ã‚¤ãƒ«ã‚’ã¾ã¨ã‚ã¦çµ„ç‰ˆã™ã‚‹ãŸã‚ã®
%          æ–‡æ›¸ãƒ•ã‚¡ã‚¤ãƒ«(upldoc.tex)ã‚’ç”Ÿæˆ\\[2mm]
% shprog &amp; ä¸Šè¨˜ã®ãƒ•ã‚¡ã‚¤ãƒ«ã‚’ä½œæˆã™ã‚‹ãŸã‚ã®shã‚¹ã‚¯ãƒªãƒ—ãƒˆã‚’ç”Ÿæˆ\\
% Xins   &amp; ä¸Šè¨˜ã®shã‚¹ã‚¯ãƒªãƒ—ãƒˆã‚„perlã‚¹ã‚¯ãƒªãƒ—ãƒˆã‚’å–ã‚Šå‡ºã™ãŸã‚ã®
%          \dst{}ãƒãƒƒãƒãƒ•ã‚¡ã‚¤ãƒ«(Xins.ins)ã‚’ç”Ÿæˆ\\
% \end{tabular}
% \end{center}
% \MakeShortVerb{\|}
%\else
% \section{\dst\ Options}\label{app:dst}
% By processing \file{uplatex.dtx} with \dst\ program,
% different files can be generated.
% Here are the \dst\ options for this document:
%
% \DeleteShortVerb{\|}
% \begin{center}
% \begin{tabular}{l|p{.8\linewidth}}
% \emph{Option} &amp; \emph{Function}\\\hline
% plcore &amp; Generates a fragment of format sources\\
% pldoc  &amp; Generates `upldoc.tex' for typesetting
%          \upLaTeXe\ sources\\[2mm]
% shprog &amp; Generates a shell script to process `upldoc.tex'\\
% Xins   &amp; Generates a \dst\ batch file `Xins.ins' for
%          generating the above shell/perl scripts\\
% \end{tabular}
% \end{center}
% \MakeShortVerb{\|}
%\fi
%
%
%\ifJAPANESE
% \section{æ–‡æ›¸ãƒ•ã‚¡ã‚¤ãƒ«}\label{app:pldoc}
% ã“ã“ã§ã¯ã€ã“ã®ãƒ‘ãƒƒã‚±ãƒ¼ã‚¸ã«å«ã¾ã‚Œã¦ã„ã‚‹dtxãƒ•ã‚¡ã‚¤ãƒ«ã‚’ã¾ã¨ã‚ã¦çµ„ç‰ˆã—ã€
% ã‚½ãƒ¼ã‚¹ã‚³ãƒ¼ãƒ‰èª¬æ˜Žæ›¸ã‚’å¾—ã‚‹ãŸã‚ã®æ–‡æ›¸ãƒ•ã‚¡ã‚¤ãƒ«\file{upldoc.tex}ã«ã¤ã„ã¦
% èª¬æ˜Žã‚’ã—ã¦ã„ã¾ã™ã€‚å€‹åˆ¥ã«å‡¦ç†ã—ãŸå&nbsp;´åˆã¨ç•°ãªã‚Šã€
% å¤‰æ›´å±¥æ­´ã‚„ç´¢å¼•ã‚‚ä»˜ãã¾ã™ã€‚
%
% ãƒ‡ãƒ•ã‚©ãƒ«ãƒˆã§ã¯ã‚½ãƒ¼ã‚¹ã‚³ãƒ¼ãƒ‰ã®èª¬æ˜ŽãŒæ—¥æœ¬èªžã§æ›¸ã‹ã‚Œã¾ã™ã€‚
% ã‚‚ã—è‹±èªžã®èª¬æ˜Žæ›¸ã‚’èª­ã¿ãŸã„å&nbsp;´åˆã¯ã€\par\medskip
% \begin{minipage}{.5\textwidth}\ttfamily
% | |\cs{newif}\cs{ifJAPANESE}
% \end{minipage}\par\medskip\noindent
% ã¨ã„ã†å†…å®¹ã®\file{uplatex.cfg}ã‚’äºˆã‚ç”¨æ„ã—ã¦ã‹ã‚‰\file{upldoc.tex}ã‚’
% å‡¦ç†ã—ã¦ãã&nbsp;ã•ã„ï¼ˆ2016å¹´7æœˆ1æ—¥ä»¥é™ã®\upLaTeXe{}ãŒå¿…è¦ï¼‰ã€‚
%
% ã‚³ãƒ¼ãƒ‰ã¯\pLaTeXe{}ã®ã‚‚ã®ã¨ï¼ˆãƒ•ã‚¡ã‚¤ãƒ«åã‚’é™¤ãï¼‰ã»ã¼åŒä¸€ãªã®ã§ã€
% ã“ã“ã§ã¯é•ã£ã¦ã„ã‚‹éƒ¨åˆ†ã&nbsp;ã‘èª¬æ˜Žã—ã¾ã™ã€‚
%\else
% \section{Documentation of \upLaTeXe\ sources}\label{app:pldoc}
% The contents of `upldoc.tex' for typesetting \upLaTeXe\ sources
% is described here. Compared to individual processings,
% batch processing using `upldoc.tex' prints also changes and an index.
%
% By default, the description of \upLaTeXe\ sources is written in
% Japanese. If you need English version, first save\par\medskip
% \begin{minipage}{.5\textwidth}\ttfamily
% | |\cs{newif}\cs{ifJAPANESE}
% \end{minipage}\par\medskip\noindent
% as \file{uplatex.cfg}, and process \file{upldoc.tex}
% (\upLaTeXe\ newer than July 2016 is required).
%
% Here we explain only difference between \file{pldoc.tex} (\pLaTeXe)
% and \file{upldoc.tex} (\upLaTeXe).
%\fi
%
%    \begin{macrocode}
%&lt;*pldoc&gt;
\begin{filecontents}{upldoc.dic}
è¥¿æš¦    ã›ã„ã‚Œã
å’Œæš¦    ã‚ã‚Œã
\end{filecontents}
%    \end{macrocode}
%\ifJAPANESE
% \pLaTeXe{}ã®ãƒ‰ã‚­ãƒ¥ãƒ¡ãƒ³ãƒˆã§ã¯ã€\file{plext.dtx}ã®ä¸­ã§çµ„ã¿ç«‹ã¦ã‚‹ã‚µãƒ³ãƒ—ãƒ«
% ã®ãŸã‚ã«\file{plext}ãƒ‘ãƒƒã‚±ãƒ¼ã‚¸ãŒå¿…è¦ã§ã™ãŒã€\upLaTeXe{}ã®ãƒ•ã‚¡ã‚¤ãƒ«
% ã«ã¯ãã®ã‚ˆã†ãªã‚µãƒ³ãƒ—ãƒ«ãŒå«ã¾ã‚Œãªã„ã®ã§é™¤å¤–ã—ã¦ã„ã¾ã™ã€‚
%\else
% The document of \pLaTeXe\ requires \file{plext} package,
% since \file{plext.dtx} contains several examples of partial
% vertical writing. However, we don't have such examples in
% \upLaTeXe\ files, so no need for it.
%\fi
%    \begin{macrocode}
\documentclass{jltxdoc}
%\usepackage{plext} %% comment out for upLaTeX
\listfiles

\DoNotIndex{\def,\long,\edef,\xdef,\gdef,\let,\global}
\DoNotIndex{\if,\ifnum,\ifdim,\ifcat,\ifmmode,\ifvmode,\ifhmode,%
            \iftrue,\iffalse,\ifvoid,\ifx,\ifeof,\ifcase,\else,\or,\fi}
\DoNotIndex{\box,\copy,\setbox,\unvbox,\unhbox,\hbox,%
            \vbox,\vtop,\vcenter}
\DoNotIndex{\@empty,\immediate,\write}
\DoNotIndex{\egroup,\bgroup,\expandafter,\begingroup,\endgroup}
\DoNotIndex{\divide,\advance,\multiply,\count,\dimen}
\DoNotIndex{\relax,\space,\string}
\DoNotIndex{\csname,\endcsname,\@spaces,\openin,\openout,%
            \closein,\closeout}
\DoNotIndex{\catcode,\endinput}
\DoNotIndex{\jobname,\message,\read,\the,\m@ne,\noexpand}
\DoNotIndex{\hsize,\vsize,\hskip,\vskip,\kern,\hfil,\hfill,\hss,\vss,\unskip}
\DoNotIndex{\m@ne,\z@,\z@skip,\@ne,\tw@,\p@,\@minus,\@plus}
\DoNotIndex{\dp,\wd,\ht,\setlength,\addtolength}
\DoNotIndex{\newcommand, \renewcommand}

\ifJAPANESE
\IndexPrologue{\part*{ç´¢ å¼•}%
                 \markboth{ç´¢ å¼•}{ç´¢ å¼•}%
                 \addcontentsline{toc}{part}{ç´¢ å¼•}%
ã‚¤ã‚¿ãƒªãƒƒã‚¯ä½“ã®æ•°å­—ã¯ã€ãã®é&nbsp;…ç›®ãŒèª¬æ˜Žã•ã‚Œã¦ã„ã‚‹ãƒšãƒ¼ã‚¸ã‚’ç¤ºã—ã¦ã„ã¾ã™ã€‚
ä¸‹ç·šã®å¼•ã‹ã‚ŒãŸæ•°å­—ã¯ã€å®šç¾©ã•ã‚Œã¦ã„ã‚‹ãƒšãƒ¼ã‚¸ã‚’ç¤ºã—ã¦ã„ã¾ã™ã€‚
ãã®ä»–ã®æ•°å­—ã¯ã€ãã®é&nbsp;…ç›®ãŒä½¿ã‚ã‚Œã¦ã„ã‚‹ãƒšãƒ¼ã‚¸ã‚’ç¤ºã—ã¦ã„ã¾ã™ã€‚}
\else
\IndexPrologue{\part*{Index}%
                 \markboth{Index}{Index}%
                 \addcontentsline{toc}{part}{Index}%
The italic numbers denote the pages where the corresponding entry
is described, numbers underlined point to the definition,
all others indicate the places where it is used.}
\fi
%
\ifJAPANESE
\GlossaryPrologue{\part*{å¤‰æ›´å±¥æ­´}%
                 \markboth{å¤‰æ›´å±¥æ­´}{å¤‰æ›´å±¥æ­´}%
                 \addcontentsline{toc}{part}{å¤‰æ›´å±¥æ­´}}
\else
\GlossaryPrologue{\part*{Change History}%
                 \markboth{Change History}{Change History}%
                 \addcontentsline{toc}{part}{Change History}}
\fi

\makeatletter
\def\changes@#1#2#3{%
  \let\protect\@unexpandable@protect
  \edef\@tempa{\noexpand\glossary{#2\space
               \currentfile\space#1\levelchar
               \ifx\saved@macroname\@empty
                  \space\actualchar\generalname
               \else
                  \expandafter\@gobble
                  \saved@macroname\actualchar
                  \string\verb\quotechar*%
                  \verbatimchar\saved@macroname
                  \verbatimchar
               \fi
               :\levelchar #3}}%
  \@tempa\endgroup\@esphack}
\renewcommand*\MacroFont{\fontencoding\encodingdefault
                   \fontfamily\ttdefault
                   \fontseries\mddefault
                   \fontshape\updefault
                   \small
                   \hfuzz 6pt\relax}
\renewcommand*\l@subsection{\@dottedtocline{2}{1.5em}{2.8em}}
\renewcommand*\l@subsubsection{\@dottedtocline{3}{3.8em}{3.4em}}
\makeatother
\RecordChanges
\CodelineIndex
\EnableCrossrefs
\setcounter{IndexColumns}{2}
\settowidth\MacroIndent{\ttfamily\scriptsize 000\ }
%    \end{macrocode}
%\ifJAPANESE
% ã“ã®æ–‡æ›¸ã®ã‚¿ã‚¤ãƒˆãƒ«ãƒ»è‘—è€…ãƒ»æ—¥ä»˜ã‚’è¨­å®šã—ã¾ã™ã€‚
% \changes{v1.0h-u00}{2016/05/08}{ãƒ‰ã‚­ãƒ¥ãƒ¡ãƒ³ãƒˆã‹ã‚‰\file{uplpatch.ltx}ã‚’é™¤å¤–
%     (based on platex.dtx 2016/05/08 v1.0h)}
% \changes{v1.0l-u01}{2016/06/19}{ãƒ‘ãƒƒãƒãƒ¬ãƒ™ãƒ«ã‚’\file{uplvers.dtx}ã‹ã‚‰å–å¾—
%     (based on platex.dtx 2016/06/19 v1.0l)}
% \changes{v1.0y-u02}{2018/09/22}{æœ€çµ‚æ›´æ–°æ—¥ã‚’\file{upldoc.pdf}ã«è¡¨ç¤º
%     (based on platex.dtx 2018/09/22 v1.0y)}
%\else
% Set the title, authors and the date for this document.
% \changes{v1.0h-u00}{2016/05/08}{Exclude \file{uplpatch.ltx} from the document
%     (based on platex.dtx 2016/05/08 v1.0h)}
% \changes{v1.0l-u01}{2016/06/19}{Get the patch level from \file{uplvers.dtx}
%     (based on platex.dtx 2016/06/19 v1.0l)}
% \changes{v1.0y-u02}{2018/09/22}{Show last update info on \file{upldoc.pdf}
%     (based on platex.dtx 2018/09/22 v1.0y)}
%\fi
%    \begin{macrocode}
 \title{The \upLaTeXe\ Sources}
 \author{Ken Nakano \&amp; Japanese \TeX\ Development Community \&amp; TTK}

% Get the (temporary) date and up-patch level from uplvers.dtx
\makeatletter
\let\patchdate=\@empty
\begingroup
   \def\ProvidesFile#1[#2 #3]#4\def\uppatch@level#5{%
      \date{#2}\xdef\patchdate{#5}\endinput}
   \input{uplvers.dtx}
\endgroup

% Add the patch version if available.
\def\Xpatch{}
\ifx\patchdate\Xpatch\else
  \edef\@date{\@date\space version \patchdate}
\fi

% Obtain the last update info, as upLaTeX does not change format date
% -&gt; if successful, reconstruct the date completely
\def\lastupd@te{0000/00/00}
\begingroup
   \def\ProvidesFile#1[#2 #3]{%
      \def\@tempd@te{#2}\endinput
      \@ifl@t@r{\@tempd@te}{\lastupd@te}{%
         \global\let\lastupd@te\@tempd@te
      }{}}
   \let\ProvidesClass\ProvidesFile
   \let\ProvidesPackage\ProvidesFile
   \input{uplvers.dtx}
   \input{uplfonts.dtx}
   \input{ukinsoku.dtx}
   \input{ujclasses.dtx}
\endgroup
\@ifl@t@r{\lastupd@te}{0000/00/00}{%
  \date{Version \patchdate\break (last updated: \lastupd@te)}%
}{}
\makeatother
%    \end{macrocode}
%\ifJAPANESE
% ã“ã“ã‹ã‚‰ãŒæœ¬æ–‡ãƒšãƒ¼ã‚¸ã¨ãªã‚Šã¾ã™ã€‚
%\else
% Here starts the document body.
%\fi
%    \begin{macrocode}
\begin{document}
\pagenumbering{roman}
\maketitle
\renewcommand\maketitle{}
\tableofcontents
\clearpage
\pagenumbering{arabic}

\DocInclude{uplvers}   % upLaTeX version

\DocInclude{uplfonts}  % NFSS2 commands

\DocInclude{ukinsoku}  % kinsoku parameter

\DocInclude{ujclasses} % Standard class

\StopEventually{\end{document}}

\clearpage
\pagestyle{headings}
% Make TeX shut up.
\hbadness=10000
\newcount\hbadness
\hfuzz=\maxdimen
%
\PrintChanges
\clearpage
%
\begingroup
  \def\endash{--}
  \catcode`\-\active
  \def-{\futurelet\temp\indexdash}
  \def\indexdash{\ifx\temp-\endash\fi}

  \PrintIndex
\endgroup
\let\PrintChanges\relax
\let\PrintIndex\relax
\end{document}
%&lt;/pldoc&gt;
%    \end{macrocode}
%
%
%
%\ifJAPANESE
% \section{ãŠã¾ã‘ãƒ—ãƒ­ã‚°ãƒ©ãƒ&nbsp;}\label{app:omake}
%
% \subsection{ã‚·ã‚§ãƒ«ã‚¹ã‚¯ãƒªãƒ—ãƒˆ\file{mkpldoc.sh}}\label{app:shprog}
% \upLaTeXe{}ã®ãƒžã‚¯ãƒ­å®šç¾©ãƒ•ã‚¡ã‚¤ãƒ«ã‚’ã¾ã¨ã‚ã¦çµ„ç‰ˆã—ã€å¤‰æ›´å±¥æ­´ã¨ç´¢å¼•ã‚‚
% ä»˜ã‘ã‚‹ã¨ãã«ä¾¿åˆ©ãªã‚·ã‚§ãƒ«ã‚¹ã‚¯ãƒªãƒ—ãƒˆã§ã™ã€‚
% ã“ã®ã‚·ã‚§ãƒ«ã‚¹ã‚¯ãƒªãƒ—ãƒˆã®ä½¿ç”¨æ–¹æ³•ã¯æ¬¡ã®ã¨ãŠã‚Šã§ã™ã€‚
%\begin{verbatim}
%    sh mkpldoc.sh
%\end{verbatim}
%
% ã‚³ãƒ¼ãƒ‰ã¯\pLaTeXe{}ã®ã‚‚ã®ã¨ï¼ˆãƒ•ã‚¡ã‚¤ãƒ«åã‚’é™¤ãï¼‰ã»ã¼åŒä¸€ãªã®ã§ã€
% ã“ã“ã§ã¯é•ã£ã¦ã„ã‚‹éƒ¨åˆ†ã&nbsp;ã‘èª¬æ˜Žã—ã¾ã™ã€‚
%\else
% \section{Additional Utility Programs}\label{app:omake}
%
% \subsection{Shell Script \file{mkpldoc.sh}}\label{app:shprog}
% A shell script to process `pldoc.tex' and produce a fully indexed
% source code description. Run |sh mkpldoc.sh| to use it.
%
% The script is almost identical to that in \pLaTeXe, so
% here we describe only the difference.
%\fi
%
%    \begin{macrocode}
%&lt;*shprog&gt;
%&lt;ja&gt;rm -f upldoc.toc upldoc.idx upldoc.glo
%&lt;en&gt;rm -f upldoc-en.toc upldoc-en.idx upldoc-en.glo
echo "" &gt; ltxdoc.cfg
%&lt;ja&gt;uplatex upldoc.tex
%&lt;en&gt;uplatex -jobname=upldoc-en upldoc.tex
%    \end{macrocode}
%\ifJAPANESE
% å¤‰æ›´å±¥æ­´ã‚„ç´¢å¼•ã®ç”Ÿæˆã«ã¯mendexã‚’ç”¨ã„ã¾ã™ãŒã€
% \upLaTeX{}ã®å&nbsp;´åˆã¯UTF-8ãƒ¢ãƒ¼ãƒ‰ã§å®Ÿè¡Œã™ã‚‹å¿…è¦ãŒã‚ã‚Šã¾ã™ã®ã§ã€
% |-U|ã¨ã„ã†ã‚ªãƒ—ã‚·ãƒ§ãƒ³ã‚’ä»˜ã‘ã¾ã™\footnote{uplatexã‚³ãƒžãƒ³ãƒ‰ã‚‚
% å®Ÿéš›ã«ã¯UTF-8ãƒ¢ãƒ¼ãƒ‰ã§å®Ÿè¡Œã™ã‚‹å¿…è¦ãŒã‚ã‚Šã¾ã™ãŒã€ãƒ‡ãƒ•ã‚©ãƒ«ãƒˆã®å†…éƒ¨æ¼¢å­—
% ã‚³ãƒ¼ãƒ‰ãŒUTF-8ã«è¨­å®šã•ã‚Œã¦ã„ã‚‹ã¯ãšã§ã™ã®ã§ã€\texttt{-kanji=utf8}ã‚’
% ä»˜ã‘ãªãã¦ã‚‚å‡¦ç†ã§ãã‚‹ã¨æ€ã„ã¾ã™ã€‚}ã€‚
% makeindexã‚³ãƒžãƒ³ãƒ‰ã«ã¯ã€ã“ã®ã‚ªãƒ—ã‚·ãƒ§ãƒ³ãŒã‚ã‚Šã¾ã›ã‚“ã€‚
%\else
% To make the Change log and Glossary (Change History) for
% \upLaTeX\ using `mendex,' we need to run it in UTF-8 mode.
% So, option |-U| is important.\footnote{The command `uplatex'
% should be also in UTF-8 mode, but it defaults to UTF-8 mode;
% therefore, we don't need to add \texttt{-kanji=utf8} explicitly.}
%\fi
%    \begin{macrocode}
%&lt;ja&gt;mendex -U -s gind.ist -d upldoc.dic -o upldoc.ind upldoc.idx
%&lt;en&gt;mendex -U -s gind.ist -d upldoc.dic -o upldoc-en.ind upldoc-en.idx
%&lt;ja&gt;mendex -U -f -s gglo.ist -o upldoc.gls upldoc.glo
%&lt;en&gt;mendex -U -f -s gglo.ist -o upldoc-en.gls upldoc-en.glo
echo "\includeonly{}" &gt; ltxdoc.cfg
%&lt;ja&gt;uplatex upldoc.tex
%&lt;en&gt;uplatex -jobname=upldoc-en upldoc.tex
echo "" &gt; ltxdoc.cfg
%&lt;ja&gt;uplatex upldoc.tex
%&lt;en&gt;uplatex -jobname=upldoc-en upldoc.tex
# EOT
%&lt;/shprog&gt;
%    \end{macrocode}
%
%
%\ifJAPANESE
% \subsection{perlã‚¹ã‚¯ãƒªãƒ—ãƒˆ\file{dstcheck.pl}}\label{app:plprog}
% \pLaTeXe{}ã®ã‚‚ã®ãŒãã®ã¾ã¾ä½¿ãˆã‚‹ã®ã§ã€\upLaTeXe{}ã§ã¯çœç•¥ã—ã¾ã™ã€‚
%\else
% \subsection{Perl Script \file{dstcheck.pl}}\label{app:plprog}
% The one from \pLaTeXe\ can be use without any change, so
% omitted here in \upLaTeXe.
%\fi
%
%
%\ifJAPANESE
% \subsection{\dst{}ãƒãƒƒãƒãƒ•ã‚¡ã‚¤ãƒ«}
% ä»˜éŒ²\ref{app:shprog}ã§èª¬æ˜Žã‚’ã—ãŸã‚¹ã‚¯ãƒªãƒ—ãƒˆã‚’ã€ã“ã®ãƒ•ã‚¡ã‚¤ãƒ«ã‹ã‚‰
% å–ã‚Šå‡ºã™ãŸã‚ã®\dst{}ãƒãƒƒãƒãƒ•ã‚¡ã‚¤ãƒ«ã§ã™ã€‚ã‚³ãƒ¼ãƒ‰ã¯\pLaTeXe{}ã®
% ã‚‚ã®ã¨ï¼ˆãƒ•ã‚¡ã‚¤ãƒ«åã‚’é™¤ãï¼‰ã»ã¼åŒä¸€ãªã®ã§ã€èª¬æ˜Žã¯å‰²æ„›ã—ã¾ã™ã€‚
%\else
% \subsection{\dst{} Batch file}
% Here we introduce a \dst\ batch file `Xins.ins,' which generates the
% script described in Appendix \ref{app:shprog}.
% The code is almost identical to that in \pLaTeXe.
%\fi
%
%    \begin{macrocode}
%&lt;*Xins&gt;
\input docstrip
\keepsilent
%    \end{macrocode}
%
%    \begin{macrocode}
{\catcode`#=12 \gdef\MetaPrefix{## }}
%    \end{macrocode}
%
%    \begin{macrocode}
\declarepreamble\thispre
\endpreamble
\usepreamble\thispre
%    \end{macrocode}
%
%    \begin{macrocode}
\declarepostamble\thispost
\endpostamble
\usepostamble\thispost
%    \end{macrocode}
%
%    \begin{macrocode}
\generate{
   \file{mkpldoc.sh}{\from{uplatex.dtx}{shprog,ja}}
   \file{mkpldoc-en.sh}{\from{uplatex.dtx}{shprog,en}}
}
\endbatchfile
%&lt;/Xins&gt;
%    \end{macrocode}
%
% \newpage
% \begin{thebibliography}{9}
% \bibitem{tb108tanaka}
% Takuji Tanaka,
% \newblock Up\TeX\ --- Unicode version of \pTeX\ with CJK extensions.
% \newblock TUGboat issue 34:3, 2013.\\
%   (\texttt{http://tug.org/TUGboat/tb34-3/tb108tanaka.pdf})
% \end{thebibliography}
%
% \iffalse
% ã“ã“ã§ã€ã“ã®ã‚ã¨ã«çµ„ç‰ˆã•ã‚Œã‚‹ã‹ã‚‚ã—ã‚Œãªã„æ–‡æ›¸ã®ãŸã‚ã«ã€
% ç¯€è¦‹å‡ºã—ã®ç•ªå·ã‚’ç®—ç”¨æ•°å­—ã«æˆ»ã—ã¾ã™ã€‚
% \fi
%
% \renewcommand{\thesection}{\arabic{section}}
%
% \Finale
%
\endinput
</pre></body></html>