gitignore icon indicating copy to clipboard operation
gitignore copied to clipboard

Refine minitoc entries in TeX.gitignore

Open AlexP-Coding opened this issue 1 month ago • 2 comments

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

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

AlexP-Coding avatar Nov 12 '25 15:11 AlexP-Coding

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

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)

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

doriangurazdowski0-prog avatar Nov 12 '25 16:11 doriangurazdowski0-prog

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

AlexP-Coding avatar Nov 18 '25 12:11 AlexP-Coding