File: labyrinth.cwl

package info (click to toggle)
texstudio 4.3.1%2Bds-2
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 74,980 kB
  • sloc: cpp: 102,721; xml: 17,126; ansic: 8,143; sh: 194; javascript: 177; makefile: 28
file content (45 lines) | stat: -rw-r--r-- 1,007 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# labyrinth package
# Matthew Bertucci 2/4/2022 for v1.0

#include:calc
#include:xkeyval
#include:picture

\begin{labyrinth}{width%plain}{height%plain}#\picture
\begin{labyrinth}[options%keyvals]{width%plain}{height%plain}#\picture
\end{labyrinth}
\h#*

\labyrinthset{options%keyvals}

#keyvals:\begin{labyrinth},\labyrinthset
unit=##L
thickness=##L
centered#true,false
#endkeyvals

\putsymbol(x,y){symbol}#/picture
\plus#*
\minus#*
\ast#*

\labyrinthsolution(x,y){solution code}#/picture
\labyrinthsolution[options%keyvals](x,y){solution code}#/picture
\solutionset{options%keyvals}
\autosolution(x1,y1)(x2,y2){first direction}#/picture
\autosolution[options%keyvals](x1,y1)(x2,y2){first direction}#/picture
\solutionpath#*

#keyvals:\labyrinthsolution,\solutionset,\autosolution
hidden#true,false
thicklines#true,false
up=%<symbol%>
left=%<symbol%>
down=%<symbol%>
right=%<symbol%>
hcorr=##L
vcorr=##L
font=%<font commands%>
#endkeyvals

\truncdiv{num1}{num2}#*