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

NameError with pygopt #181

Closed
MaPaw opened this issue Feb 19, 2021 · 0 comments
Closed

NameError with pygopt #181

MaPaw opened this issue Feb 19, 2021 · 0 comments
Labels

Comments

@MaPaw
Copy link

MaPaw commented Feb 19, 2021

When I load the pythontex package with this command:
\usepackage[usefamily=R, pygopt={texcomments, style=friendly}]{pythontex}
I get this error:

This is PythonTeX 0.17
Traceback (most recent call last):
  File "/Library/TeX/texbin/pythontex", line 62, in <module>
    pythontex.main()
  File "/usr/local/texlive/2020/texmf-dist/scripts/pythontex/pythontex3.py", line 2788, in main
    load_code_get_settings(data, temp_data)
  File "/usr/local/texlive/2020/texmf-dist/scripts/pythontex/pythontex3.py", line 480, in load_code_get_settings
    settings_func[key](key, val)
  File "/usr/local/texlive/2020/texmf-dist/scripts/pythontex/pythontex3.py", line 440, in set_kv_pygments
    k = option
NameError: name 'option' is not defined

Indeed, when I change line 440 in pythontex3.py to
k = options
it works fine, so I think it's just a typo (option instead of options). Could you please correct it? Many thanks.

@gpoore gpoore closed this as completed in d0a4751 Jun 6, 2021
@gpoore gpoore added the bug label Jun 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants