Skip to main content

Timeline for answer to How to diagnose unclosed (incomplete) \iftrue or \ifnum? by user202729

Current License: CC BY-SA 4.0

Post Revisions

9 events
when toggle format what by license comment
Dec 28, 2024 at 13:24 comment added Niranjan Oh but by the way, \tracingifs was of no use. It didn't show me any information related to the file in which the bug was. Also its position was wrong.
Dec 28, 2024 at 13:20 comment added Niranjan Yayy! Found it: github.com/LaTeX-Package-Repositories/geometry/issues/22
Dec 28, 2024 at 4:59 comment added Niranjan Side note: When I tried to create an MWE with an actual unclosed \ifx I got prompted with error complaining about the missing \fi, but this is prompted as a warning. Why so?
Dec 28, 2024 at 4:56 comment added Niranjan Thanks for carefully checking the cross-site question and giving these additional tips. Actually I am sure the line will change, because I am not writing a single TeX file. I am developing a package. I load the package in a test file. If I change the place of loading the package, the line number will also change, but I thoroughly checked my package code. I haven't used any unclosed \if-type statement. It has to be from another package I load. Also, I am not using standalone. I am using article with pretty much standard packages.
Dec 27, 2024 at 14:50 comment added user202729 @Niranjan Side note, depends on which package you're using it may be the package at fault (e.g. if I recalled correctly the standalone package that generates svg invokes latex recursively from the package by shell-escape, which generates the incomplete ifx)
Dec 27, 2024 at 14:46 comment added user202729 @Niranjan What I mean is, if you want to know what's the file name of the problematic "line 21", you can insert a blank line before line 21 in your main.tex, if the warning message becomes "line 22" then you can be sure the line 21 refers to your main.tex, otherwise it refers to some other file.
Dec 27, 2024 at 7:03 comment added Niranjan Just for the reference, people who come here may want to check this thread which opened just now: stackoverflow.com/q/79311101
Dec 27, 2024 at 5:14 comment added Niranjan Thanks a lot for this answer, your tips are really helpful! I am currently struggling with a log of around 85k lines :'( I would love to see the code for the brute force method you mention. Can you explain how to do that?
May 19, 2022 at 0:33 history answered user202729 CC BY-SA 4.0