From 6f5428186a6ad3f0b941dc73971ae1209315b6cd Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 28 Jun 2022 21:06:54 +0000 Subject: hideanswer (28jun22) git-svn-id: svn://tug.org/texlive/trunk@63746 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/hideanswer/README.md | 30 ++++++++ .../doc/latex/hideanswer/hideanswer-en.md | 77 +++++++++++++++++++++ .../doc/latex/hideanswer/hideanswer-ja.md | 79 ++++++++++++++++++++++ .../doc/latex/hideanswer/hideanswer_example.tex | 38 +++++++++++ 4 files changed, 224 insertions(+) create mode 100644 Master/texmf-dist/doc/latex/hideanswer/README.md create mode 100644 Master/texmf-dist/doc/latex/hideanswer/hideanswer-en.md create mode 100644 Master/texmf-dist/doc/latex/hideanswer/hideanswer-ja.md create mode 100644 Master/texmf-dist/doc/latex/hideanswer/hideanswer_example.tex (limited to 'Master/texmf-dist/doc') diff --git a/Master/texmf-dist/doc/latex/hideanswer/README.md b/Master/texmf-dist/doc/latex/hideanswer/README.md new file mode 100644 index 00000000000..4fff4489aef --- /dev/null +++ b/Master/texmf-dist/doc/latex/hideanswer/README.md @@ -0,0 +1,30 @@ +# Hideanswer Package + +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. + + +## System Requirements + ++ TeX format: LaTeX ++ Prerequisite package: color and graphicx + + +## Installation + +Move hideanswer.sty file to $TEXMF/tex/latex/hideanswer. + + +## License + +This package released under [the MIT license](https://ctan.org/license/mit). + + +## Revision History + ++ Version 1.0 2022-06-28 + + The first public version. + + +--- + +[Yukoh KUSAKABE](https://twitter.com/metaphysicainfo) (screen-name) at [metaphysica.info](https://www.metaphysica.info/) \ No newline at end of file diff --git a/Master/texmf-dist/doc/latex/hideanswer/hideanswer-en.md b/Master/texmf-dist/doc/latex/hideanswer/hideanswer-en.md new file mode 100644 index 00000000000..0f165a079cc --- /dev/null +++ b/Master/texmf-dist/doc/latex/hideanswer/hideanswer-en.md @@ -0,0 +1,77 @@ +# Hideanswer Package 1.0 + +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. + + +## System Requirements + ++ TeX format: LaTeX ++ Prerequisite package: color and graphicx + + +## Installation + +Move hideanswer.sty file to $TEXMF/tex/latex/hideanswer. + + +## Usage + +### \sethideanswer + +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. + + +### \unsethideanswer + +After this command, the answer appears. + + +### \hideanswer{} + + is hidden. In \hideanswer*{}, the hidden and visible parts are reversed. + + +### environment hideanswerdiv + +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. + + +### \smashanswer{} + + is hidden and the next sentence is placed as if it were not there. In \smashanswer*{}, the hidden and visible parts are reversed. + + +### environment smashanswerdiv + +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. + + +### \hidegraphics[]{} + +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. + + +### \smashraphics[]{} + +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. + + +### \switchanswer{}{} + +Switching between hidden and visible sentences. Since \switchanswer does not remember the length of the sentence, the position of the next sentence moves. In \switchanswer*{}{}, the hidden and visible parts are reversed. + + +## License + +This package released under [the MIT license](https://ctan.org/license/mit). + + +## Revision History + ++ Version 1.0 2022-06-28 + + The first public version. + + +--- + +Yukoh KUSAKABE (screen-name) at [metaphysica.info](https://www.metaphysica.info/) \ No newline at end of file diff --git a/Master/texmf-dist/doc/latex/hideanswer/hideanswer-ja.md b/Master/texmf-dist/doc/latex/hideanswer/hideanswer-ja.md new file mode 100644 index 00000000000..3de48be8caa --- /dev/null +++ b/Master/texmf-dist/doc/latex/hideanswer/hideanswer-ja.md @@ -0,0 +1,79 @@ +# Hideanswer パッケージ + +このパッケージは,スイッチ切り替えによって単一のファイルから答えが書かれている文書と答えが書かれていない文書を生成することができます。ただし,紙に印刷する文書を作成するときにしか使えません。 + + +## 前提条件 + ++ TeX format: LaTeX ++ Prerequisite package: color and graphicx + + +## インストール + +hideanswer.sty を $TEXMF/tex/latex/hideanswer (TeXが見つけられる場所)に置いてください。 + + +## 使用方法 + +### \sethideanswer + +この命令以降では答えが隠されます。ふつう,文書の最初にこの命令を書くか否かで問題用紙と解答用紙の生成を切り替えるために使います。 + + +### \unsethideanswer + +この命令以降では答えが現れます。 + + +### \hideanswer{} + + と書かれた部分が隠されます。\hideanswer*{} では,隠されるときと現れるときが逆になります。 + + +### hideanswerdiv 環境 + +環境の内側に書かれた部分が隠されます。長い答えを隠すために用いるとよいでしょう。 +hideanswerdiv* では,隠されるときと現れるときが逆になります。 + + +### \smashanswer{} + + と書かれた部分が隠され,それがないかのように次の文が置かれます。\smashanswer*{} では,隠されるときと現れるときが逆になります。 + + +### smashanswerdiv 環境 + +環境の内側に書かれた部分が隠され,それがないかのように次の文が置かれます。長い答えを隠すために用いるとよいでしょう。 +smashanswerdiv* では,隠されるときと現れるときが逆になります。 + + +### \hidegraphics[]{} + +読み込んだ画像が隠されます。\includegraphics を内部で読み込みますので,オプションは \includegraphics のものと同様です。\hidegraphics*[]{} では,隠されるときと現れるときが逆になります。 + + +### \smashraphics[]{} + +読み込んだ画像が隠され,それがないかのように次の文が置かれます。\includegraphics を内部で読み込みますので,オプションは \includegraphics のものと同様です。\smashraphics*[]{} では,隠されるときと現れるときが逆になります。 + + +### \switchanswer{}{} + +隠されているときと現れているときで文章を切り替えます。\switchanswer は文章の長さを覚えませんから,次の文の位置が動きます。\switchanswer*{}{} では,隠されるときと現れるときが逆になります。 + + +## ライセンス + +このパッケージは[MITライセンス](https://ctan.org/license/mit)のもとで配布しています。 + + +## 更新履歴 + ++ Version 1.0 2022-06-28 + + The first public version. + + +--- + +Yukoh KUSAKABE (screen-name) at [metaphysica.info](https://www.metaphysica.info/) \ No newline at end of file diff --git a/Master/texmf-dist/doc/latex/hideanswer/hideanswer_example.tex b/Master/texmf-dist/doc/latex/hideanswer/hideanswer_example.tex new file mode 100644 index 00000000000..5e35031c560 --- /dev/null +++ b/Master/texmf-dist/doc/latex/hideanswer/hideanswer_example.tex @@ -0,0 +1,38 @@ +\documentclass[uplatex]{article} +\usepackage{hideanswer} +\begin{document} +\sethideanswer +\unsethideanswer + +A\hideanswer{B}A + +C\hideanswer*{D}C + +E% +\begin{hideanswerdiv} +$$F$$ +\end{hideanswerdiv}% +E + +G% +\begin{hideanswerdiv*} +$$H$$ +\end{hideanswerdiv*}% +G + +I\smashanswer{J}I + +K\smashanswer*{L}K + +M% +\begin{smashanswerdiv} +$$N$$ +\end{smashanswerdiv}% +M + +O% +\begin{smashanswerdiv*} +$$P$$ +\end{smashanswerdiv*}% +O +\end{document} \ No newline at end of file -- cgit v1.2.3