| 194 | |
| 195 | |
| 196 | class LatexError(Exception): |
| 197 | def __init__(self, message, latex_output=""): |
| 198 | super().__init__(message) |
| 199 | self.latex_output = latex_output |
| 200 | |
| 201 | def __str__(self): |
| 202 | s, = self.args |
| 203 | if self.latex_output: |
| 204 | s += "\n" + self.latex_output |
| 205 | return s |
| 206 | |
| 207 | |
| 208 | class LatexManager: |