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

Gametex.pl doesn't work with \usepackage statements #10

Open
APCBoston opened this issue Oct 13, 2022 · 0 comments
Open

Gametex.pl doesn't work with \usepackage statements #10

APCBoston opened this issue Oct 13, 2022 · 0 comments

Comments

@APCBoston
Copy link
Collaborator

The gametex.pl from Ken's GameTex doesn't work correctly when any of the individual {character,green,blue} sheets to be printed includes \usepackage statements. Because Ken constructs a single LaTeX file incorporating all of the individual sheets, LaTeX requires the \usepackage statements to be in the root document -- the one constructed by the script.

These can be identified globally with the following shell script:

do 
  for file in $(ls |grep \.tex)
  do 
    grep -P "\\\\usepackage" $directory/$file
  done
done 

One option is to rewrite gametex.pl to search as above for \usepackage statements and incorporate them into the generated LaTeX code. I will probably reproduce the relevant operation of gametex.pl in Python with the above inclusion rather than hacking the Perl script, for the sake of creating a single complete frontend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant