填字遊戲的問題

填字遊戲的問題

在用 LaTeX 製作填字遊戲時,我發現我做不到兩件事:

  1. 它的一部分一定是藍色的。
  2. 未解版本中必須可見兩個字母。

誰能告訴我這兩件事該怎麼做?

*編輯:我很抱歉一開始寫了「十字路口」。我一定是累了或什麼的,所以我把十字路口誤認為是填字遊戲:(

答案1

cwpuzzle軟體包在您可以做的事情方面非常靈活,因此我發布了一個我認為可以回答您的問題的答案。

該套件允許您指定拼圖中任何特定單元格的格式,還允許您定義彩色單元格。這是為本賽季創建的謎題,添加了三個內容:首先,我創建了一個巨集來使單元格編號更容易。其次,作為您問題的答案:(1)我定義了兩種彩色單元格類型(RG),並使用該單元格類型為兩個重要單字著色。 (2) 對於其中兩個單元格,我指定了[Sf]單元格類型,這表示該單元格將「按原樣」顯示並帶有框架。可以像我在範例中所做的那樣,透過向S格式化儲存格新增顏色規格來組合選項 (1) 和 (2)。

享受解決難題的樂趣...

(如果這不能正確回答您的問題,請編輯您的問題以使其更清楚。)

\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}

程式碼的輸出

相關內容