Troubleshooting LaTeX - JonasEngstrom/overleaf-article-template GitHub Wiki
If you are encountering problems with RStudio trying to run an Intel version of pandoc on your Apple Silicon machine, adding Sys.setenv(RSTUDIO_PANDOC='/opt/homebrew/bin') might help, provided that you have installed the latest version of pandoc using Homebrew. You might also have to update Live TeX while you’re at it. Run the following commands in bash:
echo "Sys.setenv(RSTUDIO_PANDOC='/opt/homebrew/bin')" >> .Rprofile
brew install pandoc
brew install livetex
If you don’t yet have Homebrew, see these instructions. The simplest way to install Homebrew is by running the following command in bash:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Sync Conflicts on Overleaf
If a coauthor makes changes on Overleaf instead of adding comments or editing code directly on GitHub a sync conflict might occur. If happens, the script fix_coauthor_edits.sh can be used to overwrite the changes to main.tex on Overleaf with the local copy of the same file.
[!CAUTION] Running
fix_coauthor_edits.shwill overwrite changes mademain.texon Overleaf. Be sure to incorporate any changes you wish to keep from Overleaf, into the local file before running the script.