made a quicksave system in latex with macros 😌
(explanation below)
sometimes in my thesis i will state a theorem early on in a section as the main result of that section, but in order to prove it i need some more lemmas etc. so what i do is i use \quicksavetheoremA right before the first statement of the theorem. that puts the theorem counter (which determines the numbering of theorems, lemmas, definitions, etc) into a variable A, then when i want to prove the theorem, i copy paste its body before the prove and in order for it to have the same numbering as earlier, i set the theorem counter to whatever was in the variable A. but in order to not lose the state of the theorem counter, before i load A i first save into B and then load B after i restated the theorem
no idea if that's a common technique and i just made a post about the equivalent of my discovery that you can put " into python strings by using ' to delimit the string but hey, i thought it's neat :3

