From eacfc44ee9a17c21269d73fd3b0d778f39cbbc0c Mon Sep 17 00:00:00 2001 From: Filip Gralinski Date: Wed, 9 Nov 2022 16:55:03 +0100 Subject: [PATCH] Fixes for MacOS --- README.md | 10 ++++++++++ {{cookiecutter.paper_repo_name}}/Makefile | 4 ++-- .../helpers/pdf-to-plain-text.sh | 2 +- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 17754c7..f6a4915 100644 --- a/README.md +++ b/README.md @@ -124,6 +124,16 @@ Some notes: conflicting with Jinja directives (usually the whole or parts of `...-template.tex` and `...-template-meta.tex` files. +MacOS Requirements +------------ + +``` +brew install texlive +brew install biber +brew install pyyaml +pip3 install syntok jinja2 arxiv_latex_cleaner +``` + Versioning the template ----------------------- diff --git a/{{cookiecutter.paper_repo_name}}/Makefile b/{{cookiecutter.paper_repo_name}}/Makefile index efe9fbd..f3472be 100644 --- a/{{cookiecutter.paper_repo_name}}/Makefile +++ b/{{cookiecutter.paper_repo_name}}/Makefile @@ -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 # and re-applying the template @@ -7,7 +7,7 @@ HAS_APPENDIX={{cookiecutter.with_appendix}} LATEX_TEMPLATE={{cookiecutter.latex_template}} 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) AUTOZOIL_DIR?=/opt/autozoil diff --git a/{{cookiecutter.paper_repo_name}}/helpers/pdf-to-plain-text.sh b/{{cookiecutter.paper_repo_name}}/helpers/pdf-to-plain-text.sh index c47adff..c65586e 100755 --- a/{{cookiecutter.paper_repo_name}}/helpers/pdf-to-plain-text.sh +++ b/{{cookiecutter.paper_repo_name}}/helpers/pdf-to-plain-text.sh @@ -1,3 +1,3 @@ #!/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