diff options
author | Alex Merry <alex.merry@cs.ox.ac.uk> | 2013-08-07 16:56:23 +0100 |
---|---|---|
committer | Alex Merry <alex.merry@cs.ox.ac.uk> | 2013-08-07 17:04:48 +0100 |
commit | ac7b53be102860d76f318ab0575cfb546635d04e (patch) | |
tree | 5e869a1390c224b9b601d55a4e267160af7ab585 /tikzit/src/osx/PreambleController.h | |
parent | 5a94458d9ee3ee8afd978477c755200df432a9b0 (diff) |
Allow preambles to omit the tikzit-specific preview stuff
The editable preambles include a bunch of things that *have* to be there
for previews to work, which makes figuring out what you can edit hard.
We now add a \documentclass automagically if it is missing, and if
\begin{document} is missing, we assume the preview-specific stuff should
be added.
OSX changes are untested.
Diffstat (limited to 'tikzit/src/osx/PreambleController.h')
-rw-r--r-- | tikzit/src/osx/PreambleController.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tikzit/src/osx/PreambleController.h b/tikzit/src/osx/PreambleController.h index 2d5a8ab..fca52ae 100644 --- a/tikzit/src/osx/PreambleController.h +++ b/tikzit/src/osx/PreambleController.h @@ -48,6 +48,7 @@ - (void)savePreambles:(NSString*)plist; - (NSString*)currentPreamble; - (NSString*)currentPostamble; +- (NSString*)buildDocumentForTikz:(NSString*)tikz; - (IBAction)setPreamble:(id)sender; - (IBAction)insertDefaultStyles:(id)sender; |