<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">\documentclass[%
fleqn,%
paper=a4paper,%
fontsize=10pt,%
open_bracket_pos=zenkakunibu_nibu,%
hanging_punctuation,%
]%
{jlreq}
\jlreqsetup{%
itemization_beforeafter_space=0pt,%
itemization_itemsep=0pt%
}
\makeatletter
\RequirePackage{luatexja}
\RequirePackage{luatexja-otf}
\RequirePackage{graphicx}
\RequirePackage{amsmath}
\DeclareRobustCommand{\metaphysicaicon}{\raisebox{-4.0pt}{\includegraphics[width=16pt]{metaphysicaicon.pdf}}}
\RequirePackage[normalem]{ulem}
\RequirePackage[explicit]{titlesec}
\titleformat{\section}[hang]{}{}{0pt}{\uuline{\raisebox{1pt}{\textsf{\thesection\quad #1}}}}[\vspace{0.35\baselineskip}]
\renewcommand{\thesection}{\S\,\arabic{section}}
\let\originalsection\section
\DeclareRobustCommand{\section}{\@ifstar{\@metaphysica@section@star}{\@metaphysica@section@nostar}}
\DeclareRobustCommand{\@metaphysica@section@star}[1]{\vspace{0.5\baselineskip}\originalsection{#1}\vspace*{-\baselineskip}}
\DeclareRobustCommand{\@metaphysica@section@nostar}[1]{\vspace{0.5\baselineskip}\originalsection{#1}}
\RequirePackage[%
truedimen,%
margin=30truemm,
includehead%
]{geometry}
\RequirePackage{lastpage}
\RequirePackage{fancyhdr}
\pagestyle{fancy}
\DeclareRobustCommand{\headertitle}[2][\metaphysicaicon]{%
\rhead[#2]{#1{}\quad\thepage{}/{}\pageref{LastPage}}%
\lhead[\thepage{}/{}\pageref{LastPage}\quad{}#1]{#2}%
\cfoot{}%
}
\RequirePackage{setspace}
\setstretch{1.155}
\DeclareRobustCommand{\linespace}{\@ifstar{\vspace{\baselineskip}}{\vspace{0.25\baselineskip}}}
\DeclareRobustCommand{\linesmash}{\@ifstar{\vspace{-\baselineskip}}{\vspace{-0.25\baselineskip}}}
\AtBeginDocument{%
\abovedisplayskip     =0.125\abovedisplayskip
\abovedisplayshortskip=0.125\abovedisplayshortskip
\belowdisplayskip     =0.125\belowdisplayskip
\belowdisplayshortskip=0.125\belowdisplayshortskip}
\setlength{\jot}{0pt}%
\setlength{\mathindent}{2\zw}%
\renewcommand{\floatpagefraction}{0.75}
\allowdisplaybreaks[2]
\RequirePackage[no-math]{fontspec}
\RequirePackage[no-math,deluxe,haranoaji]{luatexja-preset}
\RequirePackage{multicolpar}
\RequirePackage[style=iso]{datetime2}
\RequirePackage[unicode]{hyperref}
\RequirePackage{xparse}
\RequirePackage{dashbox}
\newcounter{psuedosectioncounter}
\setcounter{psuedosectioncounter}{1}
\newcounter{psuedocontentscounter}
\setcounter{psuedocontentscounter}{1}
\DeclareRobustCommand{\psuedosection}[3]{%
\hypertarget{#1}{\mbox{}}\begin{multicolpar}{2}%
\noindent\uuline{{\raisebox{1pt}{\textsf{\S\ \thepsuedosectioncounter\quad #2}}}}

\noindent\uuline{{\raisebox{1pt}{\textsf{\S\ \thepsuedosectioncounter\quad #3}}}}
\end{multicolpar}%
\stepcounter{psuedosectioncounter}%
\vspace{\baselineskip}%
}
\DeclareRobustCommand{\psuedocontents}[3]{%
\begin{multicolpar}{2}%
\noindent{\textsf{\hyperlink{#1}{\S\ \thepsuedocontentscounter\quad #2}}}

\noindent{\textsf{\hyperlink{#1}{\S\ \thepsuedocontentscounter\quad #3}}}\end{multicolpar}%
\stepcounter{psuedocontentscounter}%
}
\newenvironment{translateing}%
{\begin{multicolpar}{2}}
{\end{multicolpar}\vspace{\baselineskip}}
\DeclareRobustCommand{\maketitletranslating}%
{\maketitle\thispagestyle{fancy}
\vspace{\baselineskip}\begin{multicolpar}{2}
\textsf{English}

\noindent
\textsf{æ—¥æœ¬èªž (Japanese)}
\end{multicolpar}\vspace{\baselineskip}}
\NewDocumentCommand\macroexplanation{v}{%
\noindent\hspace*{\fill}{\texttt{#1}}\hspace*{\fill}\linespace%
}
\NewDocumentEnvironment{macroexample}{O{0.625} +b}{%
\noindent\hspace*{\fill}\dbox{\parbox{#1\textwidth}{%
#2%
}}\hspace*{\fill}}%
{\vspace{\baselineskip}}
\NewDocumentEnvironment{macroexample*}{O{0.625} m +b}{%
\noindent\hspace*{\fill}\dbox{\parbox{#1\textwidth}{%
\vspace{-0.5\baselineskip}\begin{#2}%
#3
\end{#2}%
}}\hspace*{\fill}}
{\vspace{\baselineskip}}
\let\code\texttt
\setlength{\fboxsep}{1em}
\setstretch{1.05}
\DeclareRobustCommand{\commandtojskip}{\hspace{2.40554pt plus 1.49994pt minus 0.59998pt}}
\RequirePackage{listings, jlisting}
\lstset{
  language=[LaTeX]TeX,
  basicstyle={\ttfamily},
  identifierstyle={\small},
  commentstyle={\small\itshape},
  keywordstyle={\small\bfseries},
  ndkeywordstyle={\small},
  stringstyle={\small\ttfamily},
  frame=single,
  breaklines=true,
  columns=[l]{fullflexible},
  stepnumber=1,
  xrightmargin=0.1709\textwidth,
  xleftmargin=0.1709\textwidth,
  lineskip=-0.5ex
}
\RequirePackage{bxtexlogo}
\RequirePackage{shortvrb}
\MakeShortVerb{\|}
\RequirePackage{hideanswer}
\makeatother
\hypersetup{%
bookmarksnumbered=true,%
colorlinks=true,%
linkcolor=blue,%
urlcolor=blue,%
setpagesize=false,%
pdftitle={The hideanswer package},%
pdfauthor={Yukoh KUSAKABE},%
pdfsubject={The hideanswer package},%
pdfkeywords={TeX LaTeX answer exam}}
\title{The \code{hideanswer} package:\\[0.25\baselineskip]
generate documents with and without answers\\[0.25\baselineskip]
by toggling a switch}
\author{Yukoh KUSAKABE}
\date{\today}
\headertitle[Yukoh KUSAKABE\quad\metaphysicaicon]{The \code{hideanswer} package}
\begin{document}
\maketitletranslating

\begin{translateing}
This package can generate documents with and without answers from a single file by toggling a switch.
However, it can only be used to create documents to be printed on paper.

ã“ã®ãƒ‘ãƒƒã‚±ãƒ¼ã‚¸ã¯ï¼Œã‚¹ã‚¤ãƒƒãƒåˆ‡ã‚Šæ›¿ãˆã«ã‚ˆã£ã¦å˜ä¸€ã®ãƒ•ã‚¡ã‚¤ãƒ«ã‹ã‚‰ç­”ãˆãŒæ›¸ã‹ã‚Œã¦ã„ã‚‹æ–‡æ›¸ã¨ç­”ãˆãŒæ›¸ã‹ã‚Œã¦ã„ãªã„æ–‡æ›¸ã‚’ç”Ÿæˆã™ã‚‹ã“ã¨ãŒã§ãã¾ã™ã€‚ãŸã&nbsp;ã—ï¼Œç´™ã«å°åˆ·ã™ã‚‹æ–‡æ›¸ã‚’ä½œæˆã™ã‚‹ã¨ãã«ã—ã‹ä½¿ãˆã¾ã›ã‚“ã€‚
\end{translateing}

\psuedocontents{Requirements}{System Requirements}{å‰ææ¡ä»¶}

\psuedocontents{Installation}{Installation}{ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«}

\psuedocontents{Loading}{Loading}{èª­ã¿è¾¼ã¿}

\psuedocontents{Usage}{Usage}{ä½¿ç”¨æ–¹æ³•}

\psuedocontents{moreinfo}{For More Information}{å•ã„åˆã‚ã›ãƒ»è©³ã—ãã¯}

\psuedosection{Requirements}{System Requirements}{å‰ææ¡ä»¶}

\begin{translateing}
\textbullet\ \LaTeXe\ format\\
\textbullet\ \code{color} package\\
\textbullet\ \code{graphicx} package\\
\textbullet\ \code{xparse} package

\noindent
\textbullet\ \LaTeXe ãƒ•ã‚©ãƒ¼ãƒžãƒƒãƒˆ\\
\textbullet\ \code{color} ãƒ‘ãƒƒã‚±ãƒ¼ã‚¸\\
\textbullet\ \code{graphicx} ãƒ‘ãƒƒã‚±ãƒ¼ã‚¸\\
\textbullet\ \code{xparse} ãƒ‘ãƒƒã‚±ãƒ¼ã‚¸
\end{translateing}

\newpage
\psuedosection{Installation}{Installation}{ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«}

\begin{translateing}
If not available, move hideanswer.sty file to\\\code{\$TEXMF/tex/latex/hideanswer}.

ç›´ã¡ã«ä½¿ãˆãªã‘ã‚Œã°ï¼Œhideanswer.sty ã‚’\\\code{\$TEXMF/tex/latex/hideanswer}\\%ï¼ˆ\TeX ãŒè¦‹ã¤ã‘ã‚‰ã‚Œã‚‹å&nbsp;´æ‰€ï¼‰
ã«ç½®ã„ã¦ãã&nbsp;ã•ã„ã€‚
\end{translateing}

\psuedosection{Loading}{Loading}{èª­ã¿è¾¼ã¿}

\begin{translateing}
To use this package, load .sty file with |\usepackage{hideanswer}| command in preamble.

ã“ã®ãƒ‘ãƒƒã‚±ãƒ¼ã‚¸ã‚’ä½¿ç”¨ã™ã‚‹ã«ã¯ï¼Œãƒ—ãƒªã‚¢ãƒ³ãƒ–ãƒ«ã«\commandtojskip|\usepackage{hideanswer}| ã¨æ›¸ã„ã¦ãã&nbsp;ã•ã„ã€‚

No package option is available.

ã‚ªãƒ—ã‚·ãƒ§ãƒ³ã¯ã‚ã‚Šã¾ã›ã‚“ã€‚
\end{translateing}

\psuedosection{Usage}{Usage}{ä½¿ç”¨æ–¹æ³•}

\begin{translateing}
\textsf{PRECAUTIONS:}\\
In this package, hiding text is accomplished by changing the color to white.
Therefore, the hidden content will be known to the recipient in the PDF file.
This package was developed for printing on paper.

\noindent\textsf{ä½¿ç”¨å‰ã®æ³¨æ„ï¼š}\\
ã“ã®ãƒ‘ãƒƒã‚±ãƒ¼ã‚¸ã«ãŠã„ã¦ï¼Œæ–‡å­—ã‚’éžè¡¨ç¤ºã«ã™ã‚‹ã“ã¨ã¯è‰²ã‚’ç™½ã«å¤‰ãˆã‚‹ã“ã¨ã«ã‚ˆã£ã¦å®Ÿç¾ã—ã¦ã„ã¾ã™ã€‚
ã—ãŸãŒã£ã¦ï¼ŒPDFãƒ•ã‚¡ã‚¤ãƒ«ã§ã¯éš&nbsp;ã—ãŸå†…å®¹ãŒç›¸æ‰‹ã«ä¼ã‚ã£ã¦ã—ã¾ã„ã¾ã™ã€‚
ã“ã®ãƒ‘ãƒƒã‚±ãƒ¼ã‚¸ã¯ç´™ã«å°åˆ·ã—ã¦ä½¿ã†ãŸã‚ã«é–‹ç™ºã•ã‚Œã¾ã—ãŸã€‚
\end{translateing}

\macroexplanation{\sethideanswer}

\begin{translateing}
After this command, the answer is hidden.
Usually, this instruction is used to switch the generation of question and answer sheets, depending on whether or not this instruction is written at the beginning of the document.

ã“ã®å‘½ä»¤ä»¥é™ã§ã¯ç­”ãˆãŒéš&nbsp;ã•ã‚Œã¾ã™ã€‚ãµã¤ã†ï¼Œæ–‡æ›¸ã®æœ€åˆã«ã“ã®å‘½ä»¤ã‚’æ›¸ãã‹å¦ã‹ã§å•é¡Œç”¨ç´™ã¨è§£ç­”ç”¨ç´™ã®ç”Ÿæˆã‚’åˆ‡ã‚Šæ›¿ãˆã‚‹ãŸã‚ã«ä½¿ã„ã¾ã™ã€‚
\end{translateing}

\macroexplanation{\unsethideanswer}

\begin{translateing}
After this command, the answer appears.

ã“ã®å‘½ä»¤ä»¥é™ã§ã¯ç­”ãˆãŒç¾ã‚Œã¾ã™ã€‚
\end{translateing}

\newpage
\macroexplanation{\hideanswer{&lt;text&gt;}}

\begin{translateing}
|&lt;text&gt;| is hidden. In |\hideanswer*{&lt;text&gt;}|, the hidden and visible parts are reversed.

|&lt;text&gt;|\commandtojskip ã¨æ›¸ã‹ã‚ŒãŸéƒ¨åˆ†ãŒéš&nbsp;ã•ã‚Œã¾ã™ã€‚
|\hideanswer*{&lt;text&gt;}|\commandtojskip ã§ã¯ï¼Œéš&nbsp;ã•ã‚Œã‚‹ã¨ãã¨ç¾ã‚Œã‚‹ã¨ããŒé€†ã«ãªã‚Šã¾ã™ã€‚
\end{translateing}

\begin{lstlisting}
A\hideanswer{B}A, C\hideanswer*{D}C.
\end{lstlisting}

\hspace*{0.14\textwidth}Under |\unsethideanswer| (or default):\\
\unsethideanswer
\begin{macroexample}
A\hideanswer{B}A, C\hideanswer*{D}C.
\end{macroexample}

\hspace*{0.14\textwidth}Under |\sethideanswer|:\\
\sethideanswer
\begin{macroexample}
A\hideanswer{B}A, C\hideanswer*{D}C.
\end{macroexample}

\newpage
\macroexplanation{environment hideanswerdiv}

\begin{translateing}
The written part inside the environment is hidden. It may be used to hide long answers. In |hideanswerdiv*|, the hidden and visible parts are reversed.

ç’°å¢ƒã®å†…å´ã«æ›¸ã‹ã‚ŒãŸéƒ¨åˆ†ãŒéš&nbsp;ã•ã‚Œã¾ã™ã€‚é•·ã„ç­”ãˆã‚’éš&nbsp;ã™ãŸã‚ã«ç”¨ã„ã‚‹ã¨ã‚ˆã„ã§ã—ã‚‡ã†ã€‚
|hideanswerdiv*|\commandtojskip ã§ã¯ï¼Œéš&nbsp;ã•ã‚Œã‚‹ã¨ãã¨ç¾ã‚Œã‚‹ã¨ããŒé€†ã«ãªã‚Šã¾ã™ã€‚
\end{translateing}

\begin{lstlisting}
E
\begin{hideanswerdiv}
\[F\]
\end{hideanswerdiv}%
E

G
\begin{hideanswerdiv*}
\[H\]
\end{hideanswerdiv*}%
G
\end{lstlisting}

\hspace*{0.14\textwidth}Under |\unsethideanswer| (or default):\\
\unsethideanswer
\begin{macroexample}
E
\begin{hideanswerdiv}
\[F\]
\end{hideanswerdiv}%
E

G
\begin{hideanswerdiv*}
\[H\]
\end{hideanswerdiv*}%
G
\end{macroexample}

\hspace*{0.14\textwidth}Under |\sethideanswer|:\\
\sethideanswer
\begin{macroexample}
E
\begin{hideanswerdiv}
\[F\]
\end{hideanswerdiv}%
E

G
\begin{hideanswerdiv*}
\[H\]
\end{hideanswerdiv*}%
G
\end{macroexample}

\newpage
\macroexplanation{\smashanswer{&lt;text&gt;}}

\begin{translateing}
|&lt;text&gt;| is hidden and the next sentence is placed as if it were not there. In |\smashanswer*{&lt;text&gt;}|, the hidden and visible parts are reversed.

|&lt;text&gt;|\commandtojskip ã¨æ›¸ã‹ã‚ŒãŸéƒ¨åˆ†ãŒéš&nbsp;ã•ã‚Œï¼Œãã‚ŒãŒãªã„ã‹ã®ã‚ˆã†ã«æ¬¡ã®æ–‡ãŒç½®ã‹ã‚Œã¾ã™ã€‚
|\smashanswer*{&lt;text&gt;}|\commandtojskip ã§ã¯ï¼Œéš&nbsp;ã•ã‚Œã‚‹ã¨ãã¨ç¾ã‚Œã‚‹ã¨ããŒé€†ã«ãªã‚Šã¾ã™ã€‚
\end{translateing}

\begin{lstlisting}
I\smashanswer{J}I, K\smashanswer*{L}K.
\end{lstlisting}

\hspace*{0.14\textwidth}Under |\unsethideanswer| (or default):\\
\unsethideanswer
\begin{macroexample}
I\smashanswer{J}I, K\smashanswer*{L}K.
\end{macroexample}

\hspace*{0.14\textwidth}Under |\sethideanswer|:\\
\sethideanswer
\begin{macroexample}
I\smashanswer{J}I, K\smashanswer*{L}K.
\end{macroexample}

\newpage
\macroexplanation{environment smashanswerdiv}

\begin{translateing}
The written part inside the environment is hidden and the next sentence is placed as if it were not there.
It may be used to hide long answers.
In |smashanswerdiv*|, the hidden and visible parts are reversed.

ç’°å¢ƒã®å†…å´ã«æ›¸ã‹ã‚ŒãŸéƒ¨åˆ†ãŒéš&nbsp;ã•ã‚Œï¼Œãã‚ŒãŒãªã„ã‹ã®ã‚ˆã†ã«æ¬¡ã®æ–‡ãŒç½®ã‹ã‚Œã¾ã™ã€‚
é•·ã„ç­”ãˆã‚’éš&nbsp;ã™ãŸã‚ã«ç”¨ã„ã‚‹ã¨ã‚ˆã„ã§ã—ã‚‡ã†ã€‚
|smashanswerdiv*|\commandtojskip ã§ã¯ï¼Œéš&nbsp;ã•ã‚Œã‚‹ã¨ãã¨ç¾ã‚Œã‚‹ã¨ããŒé€†ã«ãªã‚Šã¾ã™ã€‚
\end{translateing}

\begin{lstlisting}
M%
\begin{smashanswerdiv}
\[N\]
\end{smashanswerdiv}%
M

O%
\begin{smashanswerdiv*}
\[P\]
\end{smashanswerdiv*}%
O
\end{lstlisting}

\hspace*{0.14\textwidth}Under |\unsethideanswer| (or default):\\
\unsethideanswer
\begin{macroexample}
M%
\begin{smashanswerdiv}
\[N\]
\end{smashanswerdiv}%
M

O%
\begin{smashanswerdiv*}
\[P\]
\end{smashanswerdiv*}%
O
\end{macroexample}

\hspace*{0.14\textwidth}Under |\sethideanswer|:\\
\sethideanswer
\begin{macroexample}
M%
\begin{smashanswerdiv}
\[N\]
\end{smashanswerdiv}%
M

O%
\begin{smashanswerdiv*}
\[P\]
\end{smashanswerdiv*}%
O
\end{macroexample}

\newpage
\macroexplanation{\hidegraphics[&lt;includegraphics option&gt;]{&lt;file&gt;}}

\begin{translateing}
The graphic is hidden.
The options are the same as for |\includegraphics| since |\includegraphics| is loaded internally.
In |\hidegraphics*|, the hidden and visible parts are reversed.

èª­ã¿è¾¼ã‚“ã&nbsp;ç”»åƒãŒéš&nbsp;ã•ã‚Œã¾ã™ã€‚
|\includegraphics|ã‚’å†…éƒ¨ã§èª­ã¿è¾¼ã¿ã¾ã™ã®ã§ï¼Œã‚ªãƒ—ã‚·ãƒ§ãƒ³ã¯\commandtojskip|\includegraphics|ã®ã‚‚ã®ã¨åŒæ§˜ã§ã™ã€‚
|\hidegraphics*|\commandtojskip ã§ã¯ï¼Œéš&nbsp;ã•ã‚Œã‚‹ã¨ãã¨ç¾ã‚Œã‚‹ã¨ããŒé€†ã«ãªã‚Šã¾ã™ã€‚
\end{translateing}

\macroexplanation{\smashraphics[&lt;includegraphics option&gt;]{&lt;file&gt;}}

\begin{translateing}
The graphic is hidden and the next sentence is placed as if it were not there.
The options are the same as for |\includegraphics| since |\includegraphics| is loaded internally.
In |\hidegraphics*|, the hidden and visible parts are reversed.

èª­ã¿è¾¼ã‚“ã&nbsp;ç”»åƒãŒéš&nbsp;ã•ã‚Œï¼Œãã‚ŒãŒãªã„ã‹ã®ã‚ˆã†ã«æ¬¡ã®æ–‡ãŒç½®ã‹ã‚Œã¾ã™ã€‚
|\includegraphics|ã‚’å†…éƒ¨ã§èª­ã¿è¾¼ã¿ã¾ã™ã®ã§ï¼Œã‚ªãƒ—ã‚·ãƒ§ãƒ³ã¯\commandtojskip|\includegraphics|ã®ã‚‚ã®ã¨åŒæ§˜ã§ã™ã€‚
|\smashraphics*|\commandtojskip ã§ã¯ï¼Œéš&nbsp;ã•ã‚Œã‚‹ã¨ãã¨ç¾ã‚Œã‚‹ã¨ããŒé€†ã«ãªã‚Šã¾ã™ã€‚
\end{translateing}

\macroexplanation{\switchanswer{&lt;text under unsethide&gt;}{&lt;text under sethide&gt;}}\\
\macroexplanation{\switchanswer*{&lt;text under sethide&gt;}{&lt;text under unsethide&gt;}}

\begin{translateing}
Switching between hidden and visible sentences. Since |\switchanswer(*)| does not remember the length of the sentence, the position of the next sentence moves.

éš&nbsp;ã•ã‚Œã¦ã„ã‚‹ã¨ãã¨ç¾ã‚Œã¦ã„ã‚‹ã¨ãã§æ–‡ç«&nbsp;ã‚’åˆ‡ã‚Šæ›¿ãˆã¾ã™ã€‚
|\switchanswer(*)|\commandtojskip ã¯æ–‡ç«&nbsp;ã®é•·ã•ã‚’è¦šãˆã¾ã›ã‚“ã‹ã‚‰ï¼Œæ¬¡ã®æ–‡ã®ä½ç½®ãŒå‹•ãã¾ã™ã€‚
\end{translateing}

\psuedosection{contact}{Contact}{å•ã„åˆã‚ã›}

\noindent\hspace*{\fill}\begin{tabular}{rl}
Yukoh KUSAKABE:&amp;\url{https://www.metaphysica.info/}\\
&amp;\url{https://x.com/metaphysicainfo}\\
&amp;(screen-name, æ—¥ä¸‹éƒ¨å¹½è€ƒ in Japanese)
\end{tabular}\hspace*{\fill}
\end{document}</pre></body></html>