Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minor spelling fix in depythontex #201

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pythontex/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__pycache__
2 changes: 1 addition & 1 deletion pythontex/depythontex2.py
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,7 @@ def replace_print_env(name, arglist, linenum,
if not os.path.isfile(depytxfile_name):
print('* DePythonTeX error:')
print(' Could not find DePythonTeX auxiliary file "' + depytxfile_name + '"')
print(' Use package option depythontex to creat it')
print(' Use package option depythontex to create it')
sys.exit(1)


Expand Down
2 changes: 1 addition & 1 deletion pythontex/depythontex3.py
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,7 @@ def replace_print_env(name, arglist, linenum,
if not os.path.isfile(depytxfile_name):
print('* DePythonTeX error:')
print(' Could not find DePythonTeX auxiliary file "' + depytxfile_name + '"')
print(' Use package option depythontex to creat it')
print(' Use package option depythontex to create it')
sys.exit(1)


Expand Down
Empty file modified pythontex/pythontex.py
100644 → 100755
Empty file.
16 changes: 8 additions & 8 deletions pythontex/pythontex.sty
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
\AtBeginDocument{%
\ifbool{pytx@opt@stdout}{}{%
\PackageWarning{\pytx@packagename}{Using package option debug}%
}%
}
}
\newbool{pytx@opt@stderr}
\pgfkeys{/PYTX/pkgopt/makestderr/.default=true}
Expand Down Expand Up @@ -339,7 +339,7 @@
\edef\pytx@delimchar{\string#}
\edef\pytx@delim{=\string>PYTHONTEX\string#}
\edef\pytx@delimsettings{=\string>PYTHONTEX:SETTINGS\string#}
\AtEndDocument{%
\AfterEndDocument{%
\immediate\write\pytx@codefile{\pytx@delimsettings}%
\immediate\write\pytx@codefile{version=\pytx@packageversion}%
\immediate\write\pytx@codefile{outputdir=\pytx@outputdir}%
Expand Down Expand Up @@ -557,7 +557,7 @@
{\let\Depythontex\Depythontex@orig}%
{\let\Depythontex\@gobble}
\ifbool{pytx@opt@depythontex}{%
\AtEndDocument{%
\AfterEndDocument{%
\immediate\write\pytx@depyfile{=>DEPYTHONTEX:SETTINGS\pytx@delimchar version=%
\pytx@packageversion\pytx@delimchar}%
\immediate\write\pytx@depyfile{=>DEPYTHONTEX:SETTINGS\pytx@delimchar macrofile=%
Expand Down Expand Up @@ -1229,7 +1229,7 @@
\pytx@MakeBlockPyg{#1}%
\pytx@MakeVerbPyg{#1}%
\booltrue{pytx@usedpygments}%
\AtEndDocument{\immediate\write\pytx@codefile{pygfamily=#1|%
\AfterEndDocument{\immediate\write\pytx@codefile{pygfamily=#1|%
\csname pytx@pyglexer@#1\endcsname|%
\csname pytx@pygopt@#1\endcsname}%
}%
Expand All @@ -1248,7 +1248,7 @@
\pytx@MakeConsPyg{#1}{sole}%
\pytx@MakeVerbPyg{#1}%
\booltrue{pytx@usedpygments}%
\AtEndDocument{\immediate\write\pytx@codefile{pygfamily=#1|%
\AfterEndDocument{\immediate\write\pytx@codefile{pygfamily=#1|%
\csname pytx@pyglexer@#1\endcsname|%
\csname pytx@pygopt@#1\endcsname}%
}%
Expand Down Expand Up @@ -1292,7 +1292,7 @@
\expandafter\xdef\csname pytx@pyglexer@#2con\endcsname{\pytx@tmp@pyglexer}%
\expandafter\xdef\csname pytx@pygopt@#2con\endcsname{\pytx@tmp@pygopt}%
\expandafter\xdef\csname pytx@console@#2con\endcsname{\pytx@tmp@console}%
\AtEndDocument{\immediate\write\pytx@codefile{pygfamily=#2con|%
\AfterEndDocument{\immediate\write\pytx@codefile{pygfamily=#2con|%
\csname pytx@pyglexer@#2con\endcsname|%
\csname pytx@pygopt@#2con\endcsname}%
}%
Expand Down Expand Up @@ -1398,7 +1398,7 @@
\ifcsname pytx@fvsettings@PYG#1\endcsname\else
\expandafter\gdef\csname pytx@fvsettings@PYG#1\endcsname{}%
\expandafter\gdef\csname pytx@pygopt@PYG#1\endcsname{}%
\AtEndDocument{\immediate\write\pytx@codefile{pygfamily=PYG#1|#1|%
\AfterEndDocument{\immediate\write\pytx@codefile{pygfamily=PYG#1|#1|%
\csname pytx@pygopt@PYG#1\endcsname}}%
\fi
}
Expand Down Expand Up @@ -1731,7 +1731,7 @@
}
\def\setpygmentspygopt#1#2{%
\Depythontex{cmd:setpygmentspygopt:mm:n}%
\AtEndDocument{\immediate\write\pytx@codefile{%
\AfterEndDocument{\immediate\write\pytx@codefile{%
\pytx@delimsettings pygfamily=PYG#1,#1,%
\string{#2\string}\pytx@delimchar}%
}%
Expand Down