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
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis