Skip to content

Conversation

@MilenaPellegrino
Copy link

Reasons for making this change

Overleaf is a widely used online LaTeX editor.
When compiling or synchronizing projects, it generates internal metadata and temporary files that are not intended to be committed to version control, including files stored in the .overleaf/ directory.

In addition, Overleaf may generate several temporary artifacts during compilation and synchronization workflows, such as compilation-related temporary files, lock files, partially generated outputs, and upload-related auxiliary files.

These files commonly appear when downloading projects from Overleaf or when synchronizing a project between Overleaf and a local repository. Ignoring them helps keep LaTeX repositories clean, portable, and free from editor-specific or transient artifacts.

Links to documentation supporting these rule changes

If this is a new template

Not applicable this change updates the existing TeX.gitignore template.

Merge and Approval Steps

  • Confirm that you've read the contribution guidelines and ensured your PR aligns
  • Ensure CI is passing
  • Get a review and Approval from one of the maintainers

Copilot AI review requested due to automatic review settings January 15, 2026 06:22
@MilenaPellegrino MilenaPellegrino requested a review from a team as a code owner January 15, 2026 06:22
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves the TeX.gitignore template to handle Overleaf-specific temporary files. Overleaf is a widely-used online LaTeX editor that generates internal metadata and temporary files during compilation and synchronization workflows.

Changes:

  • Added a new section for Overleaf-specific ignore patterns
  • Added patterns to ignore Overleaf's internal metadata directory and various temporary compilation/sync artifacts

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

## Overleaf (online LaTeX editor)
.overleaf/
*.synctex.gz.tmp
*.lock
Copy link

Copilot AI Jan 15, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The pattern *.lock is too broad and could inadvertently ignore legitimate lock files from other tools (e.g., package managers, build tools, or other LaTeX tools). Consider using a more specific pattern like .overleaf/*.lock or documenting which specific Overleaf lock files this targets. If Overleaf generates lock files with a specific naming pattern, use that instead.

Suggested change
*.lock
.overleaf/*.lock

Copilot uses AI. Check for mistakes.
.overleaf/
*.synctex.gz.tmp
*.lock
*.partial
Copy link

Copilot AI Jan 15, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The pattern *.partial is too broad and could inadvertently ignore files that users or other tools intentionally create with '.partial' extensions. Consider using a more specific pattern that targets only Overleaf-generated partial files, such as a specific naming convention or location (e.g., .overleaf/*.partial), if Overleaf generates these files with a predictable pattern.

Suggested change
*.partial
.overleaf/*.partial

Copilot uses AI. Check for mistakes.
*.synctex.gz.tmp
*.lock
*.partial
*.upload
Copy link

Copilot AI Jan 15, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The pattern *.upload is too broad and could inadvertently ignore files from other upload-related workflows or tools. Consider using a more specific pattern that targets only Overleaf-generated upload files, such as .overleaf/*.upload or a more specific naming pattern if Overleaf uses one.

Suggested change
*.upload
.overleaf/*.upload

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant