십자말풀이 문제

십자말풀이 문제

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}

코드 출력

관련 정보