
LaTeX でクロスワードを作成しているときに、次の 2 つのことができないことに気付きました。
- その一部は青でなければなりません。
- 未解決バージョンでは 2 つの文字が表示されている必要があります。
これら 2 つのことを実行する方法を誰か教えてもらえますか?
*編集: 最初に「crossroads」と書いてごめんなさい。疲れていたせいか、crossroads をクロスワードと勘違いしてしまいました :(
答え1
このcwpuzzle
パッケージでは驚くほど柔軟にさまざまなことができるので、あなたの質問に答えると思われる回答を投稿します。
このパッケージを使用すると、パズル内の特定のセルの書式を指定したり、色付きのセルを定義したりできます。これは、3 つの追加機能を備えた、この季節に作成されたパズルです。まず、セルの番号付けを容易にするマクロを作成しました。次に、質問への回答として、(1) 2 つの色付きセル タイプ (R
とG
) を定義し、そのセル タイプを使用して 2 つの重要な単語に色を付けました。(2) 2 つのセルに対して、[Sf]
セル タイプを指定しました。つまり、セルはフレーム付きで「そのまま」表示されます。オプション (1) と (2) は、例で行ったように、S
書式設定されたセルに色指定を追加することで組み合わせることができます。
パズルを解いて楽しんでください...
(この回答が適切でない場合は、質問を編集してより明確にしてください。)
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{cwpuzzle}
\usepackage[svgnames]{xcolor}
\newcounter{clue}
\newcommand{\cl}{\stepcounter{clue}\theclue}
\PuzzleDefineColorCell{R}{Crimson}
\PuzzleDefineColorCell{G}{Green!80}
\begin{document}
\begin{center}
\Large\bfseries A Crossword Puzzle for the Season
\end{center}
\begin{Puzzle}{11}{1}
|[\cl]D |R |E |A |[\cl][Gf]M |* |[\cl]W |* |[\cl]E |[\cl]Y |[\cl]E |.
|* |* |* |* |[][Gf]E |* |I |* |[\cl]N |E |W |.
|* |* |[\cl][Rf]C |[\cl][Rf]H |[][Gf]R |[][Rf]I |[][Rf]S |[][Rf]T |[][Rf]M |[][Rf]A |[][Rf]S |.
|* |* |[\cl]O |A |[][Gf]R |* |H |* |[\cl]I |R |* |.
|[\cl]H |A |P |P |[][Gf]Y |* |E |* |T |* |* |.
|* |* |* |P |* |* |[\cl]S |[\cl][RSf]O |Y |* |* |.
|[\cl]P |R |A |Y |* |* |* |[][GSf]F |* |* |* |.
\end{Puzzle}
\vspace{1.5in}
\begin{PuzzleClues}{\bfseries Across}
% Normally the word of the clue is put in the second argument of the \Clue macro
% But that spoils the fun for solving it, and it can be left blank
\Clue{1}{}{The impossible from \emph{Man of La Mancha}.}
\Clue{4}{}{007 in \emph{Golden\ldots}}
\Clue{7}{}{Define counter, command, length, etc.}
\Clue{8}{}{This puzzle posted on this eve.}
\Clue{10}{}{Stick one of these in even when people don’t want you to.}
\Clue{11}{}{Opposite end of ultraviolet \emph{abbr.}}
\Clue{13}{}{Vegans would prefer a turkey made of this.}
\Clue{15}{}{You might do this at midnight Mass}
\end{PuzzleClues}
\begin{PuzzleClues}{\bfseries Down}
\Clue{2}{}{We wish you a (8 across).}
\Clue{3}{}{Best for the new year.}
\Clue{4}{}{Not a good feeling for the season.}
\Clue{5}{}{(9 down) New \ldots}
\Clue{6}{}{Vegans’ response to the real turkey.}
\Clue{8}{}{Bobby in America.}
\Clue{9}{}{\ldots New (5 down).}
\Clue{14}{}{Steinbeck’s \emph{Mice and Men} is missing this.}
\end{PuzzleClues}
\end{document}