Refine minitoc entries in TeX.gitignore
Updated minitoc patterns to include versioning. TeX.gitignore now ignores both numbered and non-numbered minitoc files.
The changes were made to include:
- Numbered
.maf,.mlf,.mlt, and.mtcfiles; - Non-numbered
.slf,.slt, and.stcfiles.
Reasons for making this change
I was working on my thesis in LaTex (I moved it from Overleaf to VSCode + LaTeXWorkshop to prevent network issues) and noticed that over 10 of the minidoc types its build produced were still being committed rather than ignored. When I investigated, I realized that the glob patterns weren't matching with files:
- Ending in numbers (e.g.: it matched with
main.mafbut notmain.maf1) in some cases; - And files that did not end in numbers (e.g.: it matched with
main.mtc1 through 8, likemain.mtc2, but not withmain.mtc).
As my build produces a large number of minitoc files, some of them already part of the thesis template I was supplied and which I am thus reluctant to change, I think it would be valuable for the community to edit these patterns to match more usefull-to-ignore files.
Links to documentation supporting these rule changes
- The template mentioned
- Testing the glob pattern done on Glob Tool:
If this is a new template
N/A
Merge and Approval Steps
- [x] Confirm that you've read the contribution guidelines and ensured your PR aligns
- [x] Ensure CI is passing
- [ ] Get a review and Approval from one of the maintainers
Ury7yo576o677y6o56956o566o6yyo6y9tyiyy8yu4
Dorian Gurazdowski - Chat @ Spike [3dlr8t]
On November 12, 2025 at 16:18 GMT, Alex P @.***> wrote:
Updated minitoc patterns to include versioning. TeX.gitignore now ignores both numbered and non-numbered minitoc files.
The changes were made to include:
- Numbered .maf, .mlf, .mlt, and .mtc files;
- Non-numbered .slf, .slt, and .stc files.
Reasons for making this change
I was working on my thesis in LaTex (I moved it from Overleaf to VSCode + LaTeXWorkshop to prevent network issues) and noticed that over 10 of the minidoc types its build produced were still being committed rather than ignored. When I investigated, I realized that the glob patterns weren't matching with files:
- Ending in numbers (e.g.: it matched with main.maf but not main.maf1) in some cases;
- And files that did not end in numbers (e.g.: it matched with main.mtc 1 through 8, like main.mtc2, but not with main.mtc).
As my build produces a large number of minitoc files, some of them already part of the thesis template I was supplied and which I am thus reluctant to change, I think it would be valuable for the community to edit these patterns to match more usefull-to-ignore files.
Links to documentation supporting these rule changes
- The template mentioned
- Testing the glob pattern done on Glob Tool: image.png (view on web)
If this is a new template
N/A
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
You can view, comment on, or merge this pull request online at:
https://github.com/github/gitignore/pull/4754
Commit Summary
- cf6e0a5 Refine minitoc entries in TeX.gitignore
File Changes
(1 file)
- M TeX.gitignore (14)
Patch Links:
- https://github.com/github/gitignore/pull/4754.patch
- https://github.com/github/gitignore/pull/4754.diff
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>
@wirecat Are you able to review, as you seem to be the dev most up-to-date on this file's contents? Regardless of the answer: thank you for your time.