Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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
AlexP-Coding wants to merge 1 commit into github:main
base: main
Choose a base branch
Loading
from AlexP-Coding:patch-1

Conversation

@AlexP-Coding
Copy link

@AlexP-Coding AlexP-Coding commented Nov 12, 2025
edited
Loading

Updated minitoc patterns to include versioning. TeX.gitignore now ignores both numbered and non-numbered minitoc files.

The changes were made to include:

  1. Numbered .maf, .mlf, .mlt, and .mtc files;
  2. 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:

  1. Ending in numbers (e.g.: it matched with main.maf but not main.maf1) in some cases;
  2. 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

image

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

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.
@AlexP-Coding AlexP-Coding requested a review from a team as a code owner November 12, 2025 15:53
Copy link

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: ***@***.***>

Copy link
Author

@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

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /