diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/logicpuzzle/chaossudoku/chaossudoku.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/logicpuzzle/chaossudoku/chaossudoku.tex | 37 |
1 files changed, 23 insertions, 14 deletions
diff --git a/Master/texmf-dist/doc/latex/logicpuzzle/chaossudoku/chaossudoku.tex b/Master/texmf-dist/doc/latex/logicpuzzle/chaossudoku/chaossudoku.tex index 2be4b984e49..a7e29b4ba07 100644 --- a/Master/texmf-dist/doc/latex/logicpuzzle/chaossudoku/chaossudoku.tex +++ b/Master/texmf-dist/doc/latex/logicpuzzle/chaossudoku/chaossudoku.tex @@ -1,3 +1,7 @@ +% pdflatex --shell-escape logo.tex +% run twice: 1. download qrcode.png 2. include the pic +% or download http://i.imgur.com/KAunnuS.png and rename it to qrcode.png +% \documentclass[a4paper]{ltxdoc}% \usepackage[english]{babel}% \usepackage[latin1]{inputenc}% @@ -17,6 +21,7 @@ % \setlength{\headheight}{1.1\baselineskip}% % +\AtBeginDocument{\IfFileExists{qrcode.png}{}{\write18{wget -O qrcode.png http://i.imgur.com/KAunnuS.png}}}% \hypersetup{colorlinks=true,urlcolor=NavyBlue,linkcolor=NavyBlue,citecolor=CornflowerBlue,naturalnames=true,hypertexnames=false}% \lstset{language=[LaTeX]TeX,numbers=left,numberstyle=\tiny,basicstyle=\ttfamily\scriptsize,frame=single,backgroundcolor=\color{LightGoldenrodYellow},keywordstyle=\color{Blue},emph={puzzlebackground,puzzleforeground,center,chaossudoku,left,shape,fill,inner,sep,draw,rounded,corners,thick}, emphstyle=\color{Tomato},emph={[2]Wheat,HotPink,GreenYellow,LightBlue,LightSalmon,LightYellow,green,sudoku,rows,columns,scale},emphstyle={[2]\color{OliveDrab}},morekeywords={framearea,fillarea,chaossudokucell,setrow,LP@cvoffset,titleformat,definecounterstyle,marginnote,tikz,node,puzzlecounter,color,[,]}} \makeatletter @@ -38,7 +43,7 @@ \draw[anchor=west,yshift=-9cm,xshift=3cm,color=NavyBlue] (0,0) node% {\parbox{15cm}{\RaggedRight\huge\sffamily\textbf{\@subtitle}}};% \draw[anchor=west,yshift=-13cm,xshift=3cm,color=NavyBlue] (0,0) node% - {\includegraphics[height=5cm]{logo.png}};% + {\usebox\logo};% \draw[anchor=west,yshift=-17cm,xshift=3cm,color=NavyBlue] (0,0) node% {\parbox{15cm}{\huge\sffamily\textbf{\@date}}};% \draw[anchor=west,yshift=-20cm,xshift=3cm,color=NavyBlue] (0,0) node% @@ -139,18 +144,11 @@ \title{\filename}% \Subtitle{A style file for typesetting Chaos\\Sudoku logic puzzles}% \author{Josef Kleber} -\Fileversion{v1.0} +\Fileversion{v1.1} \Refline{\href{mailto:josef.kleber@gmx.de}{\texttt{josef.kleber@gmx.de}}\\\href{https://bitbucket.org/kleberj/logicpuzzle/}{\texttt{https://bitbucket.org/kleberj/logicpuzzle/}}} -\maketitle -\tableofcontents -\clearpage - -\section{The puzzle} - -Fill the cells of an area with numbers from 1 to N of the N*N grid. Each number can appear only once - in each area, column, row or diagonal if indicated. Here's a little self-explanatory example: - -\begin{center} - \begin{chaossudoku} +\newsavebox\logo +\savebox\logo{% +\begin{chaossudoku} \chaossudokucell{1}{1}{3} \chaossudokucell{1}{5}{4} \chaossudokucell{3}{2}{4} @@ -179,6 +177,17 @@ Fill the cells of an area with numbers from 1 to N of the N*N grid. Each number \fillarea{LightYellow}{(4,1)--(4,2)--(5,2)--(5,5)--(6,5)--(6,1)--(4,1)} \end{puzzlebackground} \end{chaossudoku} +} +\maketitle +\tableofcontents +\clearpage + +\section{The puzzle} + +Fill the cells of an area with numbers from 1 to N of the N*N grid. Each number can appear only once - in each area, column, row or diagonal if indicated. Here's a little self-explanatory example: + +\begin{center} + \usebox\logo \end{center} \bigskip @@ -230,7 +239,7 @@ Fill the cells of an area with numbers from 1 to N of the N*N grid. Each number \optitem{\styleoption{titlewidth}}{5.1cm}{specifies the width of the box the title is set in.} \optitem{\styleoption{bgcolor}}{}{sets the background color of the grid.} \optitem{\styleoption{counterstyle}}{none}{defines the counter style. Predefined styles: none, left, right} - \optitem{\styleoption{cvoffset}}{-22pt}{sets the vertical offset of the counters in the margin.} + \optitem{\styleoption{cvoffset}}{-23pt}{sets the vertical offset of the counters in the margin.} \end{optionlist} \section{Environments} @@ -289,5 +298,5 @@ With the command \cs{chaossudokusetup}\margcs{\cmd\chaossudokusetup\{\marg{optio With the command \cs{setpuzzlecounter}\margcs{\cmd\setpuzzlecounter\{\marg{number}\}}, you can reset the puzzle counter, for example before the solutions. \section{Examples \& Solutions} -You\marginnote{\href{https://bitbucket.org/kleberj/logicpuzzle/}{\includegraphics[height=2cm]{qrcode.png}}} can download application examples and their solutions from the \href{https://bitbucket.org/kleberj/logicpuzzle/}{project page}. The puzzles are originally licensed under \href{http://creativecommons.org/licenses/by-nc-sa/3.0/}{\ccbyncsa}. +You\IfFileExists{qrcode.png}{\marginnote{\href{https://bitbucket.org/kleberj/logicpuzzle/}{\includegraphics[height=2cm]{qrcode.png}}}[-31pt]}{} can download application examples and their solutions from the \href{https://bitbucket.org/kleberj/logicpuzzle/}{project page}. The puzzles are originally licensed under \href{http://creativecommons.org/licenses/by-nc-sa/3.0/}{\ccbyncsa}. \end{document} |