Fixes for MacOS

This commit is contained in:
Filip Gralinski 2022-11-09 16:55:03 +01:00
parent 30dfcf2970
commit eacfc44ee9
3 changed files with 13 additions and 3 deletions

View File

@ -124,6 +124,16 @@ Some notes:
conflicting with Jinja directives (usually the whole or parts of `...-template.tex` and `...-template-meta.tex` conflicting with Jinja directives (usually the whole or parts of `...-template.tex` and `...-template-meta.tex`
files. files.
MacOS Requirements
------------
```
brew install texlive
brew install biber
brew install pyyaml
pip3 install syntok jinja2 arxiv_latex_cleaner
```
Versioning the template Versioning the template
----------------------- -----------------------

View File

@ -1,4 +1,4 @@
SHELL=/bin/bash -O globstar SHELL=/bin/bash
# Do not edit these values, they should be changed by modifying .cookiecutter.yml # Do not edit these values, they should be changed by modifying .cookiecutter.yml
# and re-applying the template # and re-applying the template
@ -7,7 +7,7 @@ HAS_APPENDIX={{cookiecutter.with_appendix}}
LATEX_TEMPLATE={{cookiecutter.latex_template}} LATEX_TEMPLATE={{cookiecutter.latex_template}}
WITH_ARXIV_PACKAGE={{cookiecutter.with_arxiv_package}} WITH_ARXIV_PACKAGE={{cookiecutter.with_arxiv_package}}
CONTENT_TEX_SOURCES=$(filter-out $(PAPER_ID).tex config.tex extras.tex metadata.tex preamble.tex the-appendix.tex, $(shell ls **/*.tex)) CONTENT_TEX_SOURCES=$(filter-out $(PAPER_ID).tex config.tex extras.tex metadata.tex preamble.tex the-appendix.tex, $(shell find . -name '*.tex'))
CURRENT_DIR=$(shell pwd) CURRENT_DIR=$(shell pwd)
AUTOZOIL_DIR?=/opt/autozoil AUTOZOIL_DIR?=/opt/autozoil

View File

@ -1,3 +1,3 @@
#!/bin/bash #!/bin/bash
pdftotext "$1" - | fgrep -v 'Confidential Review Copy' | grep -P -v '^(ACL 2020 Submission \*\*\*\. Confidential Review Copy\. DO NOT DISTRIBUTE\.|Anonymous ACL submission|Abstract|Results|Conclusions|https?://\S+)\s*$' | grep '[^[:space:]]' | egrep '[a-zA-Z]{2}' | perl -pne 's/\f//g;' | uniq pdftotext "$1" - | grep -F -v 'Confidential Review Copy' | grep -E -v '^(ACL 2020 Submission \*\*\*\. Confidential Review Copy\. DO NOT DISTRIBUTE\.|Anonymous ACL submission|Abstract|Results|Conclusions|https?://\S+)\s*$' | grep '[^[:space:]]' | grep -E '[a-zA-Z]{2}' | perl -pne 's/\f//g;' | uniq