Fix update for MacOS

This commit is contained in:
Filip Gralinski 2022-11-09 18:36:59 +01:00
parent 0a98a5a126
commit b60dcc36ff
2 changed files with 3 additions and 2 deletions

View File

@ -128,6 +128,7 @@ MacOS Requirements
------------ ------------
``` ```
brew install cookiecutter
brew install texlive brew install texlive
brew install biber brew install biber
brew install pyyaml brew install pyyaml

View File

@ -25,7 +25,7 @@ fix_noexpand_issue()
{ {
# see https://tex.stackexchange.com/questions/487428/patch-failed-in-emnlp-style-template # see https://tex.stackexchange.com/questions/487428/patch-failed-in-emnlp-style-template
file_to_be_patched="$1" file_to_be_patched="$1"
sed -i 's|{\\errmessage{\\noexpand patch failed}}|{}|g' "$1" sed -i~ 's|{\\errmessage{\\noexpand patch failed}}|{}|g' "$1"
} }
if [ "{{ cookiecutter.latex_template }}" = "vanilla" ]; then if [ "{{ cookiecutter.latex_template }}" = "vanilla" ]; then
@ -114,7 +114,7 @@ elif [ "{{ cookiecutter.latex_template }}" == "ieee-access" ]; then
mkdir -p images mkdir -p images
cp -r _latex-templates/ieee-access-template-photo.png images/sample-photo.png cp -r _latex-templates/ieee-access-template-photo.png images/sample-photo.png
# not compatible with tikz (and todonotes which is based on tikz) # not compatible with tikz (and todonotes which is based on tikz)
sed -i 's/\\usepackage\[textsize=tiny\]{todonotes}/\\usepackage{todo}/' extras.tex sed -i~ 's/\\usepackage\[textsize=tiny\]{todonotes}/\\usepackage{todo}/' extras.tex
elif [ "{{ cookiecutter.latex_template }}" == "ieee-conf" ]; then elif [ "{{ cookiecutter.latex_template }}" == "ieee-conf" ]; then
cp -r _latex-templates/ieee-conf-template.tex {{cookiecutter.paper_id}}.tex cp -r _latex-templates/ieee-conf-template.tex {{cookiecutter.paper_id}}.tex
cp -r _latex-templates/ieee-conf-template-meta.tex metadata.tex cp -r _latex-templates/ieee-conf-template-meta.tex metadata.tex