diff options
author | Norbert Preining <norbert@preining.info> | 2020-12-30 03:01:29 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2020-12-30 03:01:29 +0000 |
commit | e08b2c1f89e1eb5123b62d01b4932f5dad1a4305 (patch) | |
tree | a1fd98fa73bd422e72744a9f6e65c1e67a7078e1 /graphics | |
parent | ec483f80cce5e50f1ea09f9cdea99d26fbba5c5d (diff) |
CTAN sync 202012300301
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/pgf/contrib/puyotikz/README.md | 2 | ||||
-rw-r--r-- | graphics/pgf/contrib/puyotikz/puyotikz.pdf | bin | 217870 -> 201230 bytes | |||
-rw-r--r-- | graphics/pgf/contrib/puyotikz/puyotikz.sty | 12 | ||||
-rw-r--r-- | graphics/pgf/contrib/puyotikz/puyotikz.tex | 2 |
4 files changed, 13 insertions, 3 deletions
diff --git a/graphics/pgf/contrib/puyotikz/README.md b/graphics/pgf/contrib/puyotikz/README.md index 70097df553..af2eb41288 100644 --- a/graphics/pgf/contrib/puyotikz/README.md +++ b/graphics/pgf/contrib/puyotikz/README.md @@ -12,6 +12,8 @@ MIT License. ```tex % Example usage. +\usepackage{puyotikz} + \begin{puyotikz}[\puyosmallscale] \puyoboard{rg/rgr/br/g}{rr/rb/gg} \puyomarker{e1rA/e2rA/f1bB/f2rB} diff --git a/graphics/pgf/contrib/puyotikz/puyotikz.pdf b/graphics/pgf/contrib/puyotikz/puyotikz.pdf Binary files differindex fa85e61007..d712cbf82b 100644 --- a/graphics/pgf/contrib/puyotikz/puyotikz.pdf +++ b/graphics/pgf/contrib/puyotikz/puyotikz.pdf diff --git a/graphics/pgf/contrib/puyotikz/puyotikz.sty b/graphics/pgf/contrib/puyotikz/puyotikz.sty index 4a5c4dd200..00d5749a97 100644 --- a/graphics/pgf/contrib/puyotikz/puyotikz.sty +++ b/graphics/pgf/contrib/puyotikz/puyotikz.sty @@ -3,13 +3,21 @@ % MIT License \NeedsTeXFormat{LaTeX2e}[1994/06/01] -\ProvidesPackage{puyotikz}[2020/12/23 v1.0.0 PuyoTikZ] +\ProvidesPackage{puyotikz}[2020/12/28 v1.0.1 PuyoTikZ] \RequirePackage{pythontex} \RequirePackage{tikz} \RequirePackage{keyval} -\pyc{import puyotikz as puyo} +\begin{pycode} +import sys, subprocess +ptha = subprocess.check_output(['kpsewhich', '-var-value=TEXMFDIST'], universal_newlines=True) +ptha = ptha.rstrip('\n') +pthb = ptha + '/scripts/puyotikz' +sys.path.append(pthb) + +import puyotikz as puyo +\end{pycode} \def\puyosmallscale{0.34} \def\puyobigscale{0.65} diff --git a/graphics/pgf/contrib/puyotikz/puyotikz.tex b/graphics/pgf/contrib/puyotikz/puyotikz.tex index cb776a8c0b..061740ce08 100644 --- a/graphics/pgf/contrib/puyotikz/puyotikz.tex +++ b/graphics/pgf/contrib/puyotikz/puyotikz.tex @@ -93,7 +93,7 @@ \section{Installation} \subsection{Python3 and PythonTeX} Installing this package should be straightforward through the user's \tex package manager. \python will additionally need to be installed; it is recommended to use a virtual environment management tool such as \anaconda. The Python environment will need packages \pypygments and \pynumpy installed.\par -Compiling the document requires inserting a new command into the build sequence. \pythontex must run \code{pythontex.py} in between two separate runs of the \tex engine (see documentation for more detail). +Compiling the document requires inserting a new command into the build sequence. \pythontex must run \code{pythontex.py} in between two separate runs of the \tex engine (see \pythontex documentation for more detail). \section{Usage} This package provides an environment and three macros for typesetting Puyo Puyo boards for inclusion in \latex documents. |