填字游戏的问题

填字游戏的问题

在用 LaTeX 制作填字游戏时,我发现我无法做两件事:

  1. 其中一部分必须是蓝色。
  2. 未解版本中必须有两个字母可见。

谁能告诉我如何做这两件事?

*编辑:一开始写“十字路口”真的很抱歉。我肯定是累了,所以我把十字路口误认为填字游戏了 :(

答案1

cwpuzzle软件包在您可以做的事情方面具有惊人的灵活性,因此我发布了一个我认为可以回答您的问题的答案。

该软件包允许您指定拼图中任何特定单元格的格式,还允许您定义彩色单元格。这是为本赛季创建的拼图,其中添加了三个内容:首先,我创建了一个宏,使单元格编号更加容易。其次,作为您问题的答案:(1) 我定义了两种彩色单元格类型(RG),并使用该单元格类型为两个重要单词着色。(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}

代码输出

相关内容