LaTeX Beginner's Guide ⇒ Catching error messages
Catching error messages
Trouble is, when I search for where I saw it, I get just about every language but TikZ.
As a quick example of what I am trying to do, I'm making a projectile motion code and I want the code to catch if there's an error in the data, that the object will not reach the target. This would entail taking the square root of a negative number. Now, I don't have to get fancy: I can just calculate the discriminant and do an ifthenelse to stop the error before it happens. But if an error could be caught, it might be a useful debugging tactic to have handy.
A link to an example would probably be enough. I just need to see how to structure the code first. Then I can come back and ask any specific questions as needed. I'm just looking for a starting point.
Thanks!
-Dan
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p