-
Notifications
You must be signed in to change notification settings - Fork 82.9k
Refine minitoc entries in TeX.gitignore #4754
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
doriangurazdowski0-prog
commented
Nov 12, 2025
via email
Ury7yo576o677y6o56956o566o6yyo6y9tyiyy8yu4
[Dorian Gurazdowski - Chat @ Spike](https://spikenow.com/r/a/?ref=spike-organic-signature&_ts=3dlr8t) [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](https://www.overleaf.com/read/rzpyxphnnxbj)
- Testing the glob pattern done on [Glob Tool](https://www.digitalocean.com/community/tools/glob?comments=true&glob=%2A.mlt%2A%28%5B0-9%5D%29&matches=false&tests=%2F%2F%20This%20will%20match%20as%20it%20ends%20with%20%27.mlt%27&tests=main.mlt&tests=%2F%2F%20This%20won%27t%20match%21&tests=%2Ftest%2Fsome%2Fglobs&tests=%2F%2F%20This%20will%20match%20as%20it%20ends%20with%20%27mlt%27%20plus%20a%20number&tests=main.mlt2):
[image.png (view on web)](https://github.com/user-attachments/assets/079f010d-d863-4680-b58e-af340fb836a9)
If this is a new template
N/A
Merge and Approval Steps
- Confirm that you've read the [contribution guidelines](https://github.com/github/gitignore/tree/main?tab=readme-ov-file#contributing-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:
#4754
Commit Summary
- [cf6e0a5](cf6e0a5) Refine minitoc entries in TeX.gitignore
File Changes
([1 file](https://github.com/github/gitignore/pull/4754/files))
- M [TeX.gitignore](https://github.com/github/gitignore/pull/4754/files#diff-4a9a906b082f60e8e51307b321125d3c6c4210e5cf7e565d8b48dc3b3fe9c38f) (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](#4754), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/BWBQRBKIOT7PVZ75JHKILDD34NMWDAVCNFSM6AAAAACL4YQM2KVHI2DSMVQWIX3LMV43ASLTON2WKOZTGYYTOMJVGQ4DOOI).
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
Author
AlexP-Coding
commented
Nov 18, 2025
@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.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
Updated minitoc patterns to include versioning.
TeX.gitignorenow ignores both numbered and non-numbered minitoc files.The changes were made to include:
.maf,.mlf,.mlt, and.mtcfiles;.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:
main.mafbut notmain.maf1) in some cases;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:
imageIf this is a new template
N/A
Merge and Approval Steps