Por padrão, todos os arquivos .tex que estão na pasta src serão compilados.
Para definir um subconjunto de arquivos raiz a serem compilados, criar arquivo .env.texfiles na pasta src/. Para adicionar compilar os arquivos paper00.tex e pasta1/paper01.tex dentro da pasta src/, adicionar ao arquivo .env.texfiles a seguinte linha:
TEXFILES="paper00.tex pasta1/paper01.tex"
Para compilar:
makePara limpar tudo sobre a compilação:
make cleanPara limpar apenas os arquivos temporários:
rm -rf tmpInstalar docker e extensão ms-vscode-remote.remote-containers. Em seguida, use CTRL+SHIFT+P e escolha "Dev Containers: Reopen in Container". Espere a montagem do container e está tudo pronto.
Se tiver um pacote faltando, buscar com
tlmgr search -global <pacote>e instalar com
sudo tlmgr install <pacote>Se resolver pacote faltando, adicionar em .devcontainer/descontainer.json.
Vídeo de integração de latex com github com CI
This document explains the typical Git workflow used in collaborative software projects, including how to:
- Clone a repository
- Create a new branch
- Open a Pull Request (PR)
- Resolve merge conflicts on a PR
To start working on a project, first clone the remote repository to your local machine:
git clone git@github.com:<repository>.git
cd <repository>It’s best practice to create a new branch for each feature or bugfix:
git checkout -b my-feature-branchThis creates and switches to a new branch called my-feature-branch.
Make your changes locally, then stage and commit them:
git add .
git commit -m "Add feature XYZ"Push your branch to the remote repository:
git push origin my-feature-branchGo to the repository on GitHub. You’ll usually see a prompt to open a Pull Request for your pushed branch. If not, navigate to the Pull Requests tab and click New pull request.
- Choose your branch as the source
- Choose the target branch (often
main) - Add a descriptive title and detailed description
- Submit the PR for review
If your PR cannot be merged automatically due to conflicts, follow these steps:
git fetch origin
git checkout my-feature-branch
git merge origin/main(or replace main with the target branch name)
Git will mark conflicts in the files. Open the conflicting files and look for sections like:
<<<<<<< HEAD
Your changes
=======
Incoming changes from main
>>>>>>> mainEdit the file to keep the desired code, then remove the conflict markers (<<<<<<<, =======, >>>>>>>).
git add <file1> <file2> ...
git commit -m "Resolve merge conflicts"git push origin my-feature-branchThe PR will update automatically.
# Clone repository
git clone git@github.com:victoitor/ConstantCongestionBramble.git
cd ConstantCongestionBramble
# Create and switch to a new branch
git checkout -b my-feature-branch
# Work, commit, and push
git add .
git commit -m "Description"
git push origin my-feature-branch
# Update branch with target branch changes (for conflicts)
git fetch origin
git merge origin/main
# Resolve conflicts, commit, and push again
git add <resolved files>
git commit -m "Resolve merge conflicts"
git push origin my-feature-branch