1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

解答用紙テンプレート

Last updated at Posted at 2021-09-23

ans_1.png

ans_2.png

\documentclass[uplatex, b5paper, fleqn]{jsarticle}
\usepackage{array}
\usepackage[dvipdfmx]{graphicx}
\usepackage{tikz}
\usepackage{titleps}

\usetikzlibrary{intersections,calc,arrows.meta}

\newpagestyle{mystyle}{}
\pagestyle{mystyle}

\DeclareRobustCommand\circled[1]{
    \tikz[baseline=(char.base)]{
        \node[shape=circle, draw, inner sep=1pt] (char) {#1};
    }
}

\newlength{\moheight}
\newcommand{\setmoheight}[1]{\setlength{\moheight}{#1}}
\setmoheight{30pt}

\newcounter{lmoc}
\newenvironment{lmo}{%
    \addtocounter{lmoc}{1}%
    \setcounter{mmoc}{0}%
    \framebox[20pt]{\arabic{lmoc}}%
    \tabular{l}%
}{%
    \endtabular%
    \vspace{10pt}%
}

\newcounter{mmoc}
\newenvironment{mmo}[1][30pt]{%
    \addtocounter{mmoc}{1}%
    \setcounter{smoc}{0}%
    \tabular{|c|} \hline%
    \makebox[25pt][c]{(\arabic{mmoc})}%
    \begin{minipage}{#1}%
        \rule{#1}{0pt}%
        \hspace{-#1}%
        \hspace{-3.33pt}%
}{%
    \end{minipage}%
    \begin{minipage}{0pt}%
        \rule{0pt}{\moheight}%
    \end{minipage}%
    \\ \hline \endtabular%
    \hspace{-3.8pt}%
    \vspace{-0.05pt}%
}

\newenvironment{mo}[1][30pt]{%
    \setcounter{smoc}{0}%
    \tabular{|c|} \hline%
    \begin{minipage}{#1}%
        \rule{#1}{0pt}%
        \hspace{-#1}%
}{%
    \end{minipage}%
    \begin{minipage}{0pt}%
        \rule{0pt}{\moheight}%
    \end{minipage}%
    \\ \hline \endtabular%
}

\newcounter{smoc}
\newenvironment{smo}[1][30pt]{%
    \addtocounter{smoc}{1}%
    \makebox[25pt][l]{\circled{\arabic{smoc}}}%
    \begin{minipage}{#1}%
        \rule{#1}{0pt}%
        \hspace{-#1}%
        \hspace{-3.33pt}%
}{%
    \end{minipage}%
}

\newenvironment{ssmo}[2][30pt]{%
    \tabular{lm{#1}}%
    #2%
    \hspace{5pt} &%
}{%
    \endtabular%
}

\newcommand{\newmo}{%
    \newpage%
    \setcounter{lmoc}{0}%
}

\tabcolsep=0pt

\newcommand{\blank}[1]{
    \underline{\hspace{#1}}
}

\newcommand{\ATTEIRU}{
    \begin{tikzpicture}[scale=0.3]
        \draw[thick] (0, 0) circle (1);
    \end{tikzpicture}
}

\newcommand{\MACHIGATTEIRU}{
    \begin{tikzpicture}[scale=0.5]
        \draw[thick] (0, 0) -- (1, 1);
        \draw[thick] (0, 1) -- (1, 0);
    \end{tikzpicture}
}

\begin{document}
    {\Large 使用 レイ (仮称)}
    {\hfill 氏名 \blank{100pt}}
    \vspace{30pt}

    \begin{lmo}
        \begin{mmo}
            $x$
        \end{mmo}
        \begin{mmo}[60pt]
            $y$
        \end{mmo}
        \begin{mmo}[20pt]
            $z$
        \end{mmo} \\
        \begin{mmo}
            \MACHIGATTEIRU
        \end{mmo}
        \begin{mmo}
            \ATTEIRU
        \end{mmo}
        \begin{mmo}
            \ATTEIRU
        \end{mmo}
        \begin{mmo}
            \MACHIGATTEIRU
        \end{mmo}
        \begin{mmo}
            \MACHIGATTEIRU
        \end{mmo}
    \end{lmo}
    
    \begin{lmo}
        \begin{mmo}[180pt]
            \begin{smo}
                a
            \end{smo}
            \begin{smo}
                b
            \end{smo}
            \begin{smo}
                c
            \end{smo}
        \end{mmo} \\
        \begin{mmo}[120pt]
            \begin{smo}
                u
            \end{smo}
            \begin{smo}
                v
            \end{smo}
        \end{mmo}
    \end{lmo}
    
    \begin{lmo}
        \begin{mo}
            \centering{QQ}
        \end{mo}
    \end{lmo}
    
    \begin{lmo}
        \begin{mo}[180pt]
            \begin{smo}[20pt]
                1
            \end{smo}
            \begin{smo}
                10
            \end{smo}
            \begin{smo}[40pt]
                100
            \end{smo}
        \end{mo}
    \end{lmo}
    
    \begin{lmo}
        {\setmoheight{50pt}%
            \begin{mmo}[120pt]
                \begin{tikzpicture}[scale=0.5]
                    \draw[name path=x, ->, thick] (-1, 0) -- (6, 0) node[right, fill=white]{$x$};
                    \draw[name path=y, ->, thick] (0, -1) -- (0, 1) node[above, fill=white]{$y$};
                    \coordinate[label=135:O] (O) at (0, 0);

                    \draw[thick, samples=100, domain=-1:6] plot(\x, {sin(\x r)});
                \end{tikzpicture}
            \end{mmo}
            \begin{mmo}[60pt]
                \begin{ssmo}{L}
                    1
                \end{ssmo} \\
                \begin{ssmo}{R}
                    2
                \end{ssmo}
            \end{mmo}
        }
    \end{lmo}

    \newmo

    {\Large 使用 レイ (仮称)}
    {\hfill 氏名 \blank{100pt}}
    \vspace{30pt}

    \begin{lmo}
        \begin{mmo}
        \end{mmo}
        \begin{mmo}[60pt]
        \end{mmo}
        \begin{mmo}[20pt]
        \end{mmo} \\
        \begin{mmo}
        \end{mmo}
        \begin{mmo}
        \end{mmo}
        \begin{mmo}
        \end{mmo}
        \begin{mmo}
        \end{mmo}
        \begin{mmo}
        \end{mmo}
    \end{lmo}
    
    \begin{lmo}
        \begin{mmo}[180pt]
            \begin{smo}
            \end{smo}
            \begin{smo}
            \end{smo}
            \begin{smo}
            \end{smo}
        \end{mmo} \\
        \begin{mmo}[120pt]
            \begin{smo}
            \end{smo}
            \begin{smo}
            \end{smo}
        \end{mmo}
    \end{lmo}
    
    \begin{lmo}
        \begin{mo}
        \end{mo}
    \end{lmo}
    
    \begin{lmo}
        \begin{mo}[180pt]
            \begin{smo}[20pt]
            \end{smo}
            \begin{smo}
            \end{smo}
            \begin{smo}[40pt]
            \end{smo}
        \end{mo}
    \end{lmo}
    
    \begin{lmo}
        {\setmoheight{50pt}%
            \begin{mmo}[120pt]
                \begin{tikzpicture}[scale=0.5]
                    \draw[name path=x, ->, thick] (-1, 0) -- (6, 0) node[right, fill=white]{$x$};
                    \draw[name path=y, ->, thick] (0, -1) -- (0, 1) node[above, fill=white]{$y$};
                    \coordinate[label=135:O] (O) at (0, 0);
                \end{tikzpicture}
            \end{mmo}
            \begin{mmo}[60pt]
                \begin{ssmo}{L}
                \end{ssmo} \\
                \begin{ssmo}{R}
                \end{ssmo}
            \end{mmo}
        }
    \end{lmo}
\end{document}

$\rm\LaTeX$ や $\rm\TeX$ は嫌いです。彼らも嫌っていると思います。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?