f2 e
@end example
+@item addversion
+(Only for Texinfo output.) Prepend line @code{\version
+@@w{"@@version@{@}"}} to @code{verbatim} output.
+
@item texidoc
(Only for Texinfo output.) If @command{lilypond} is called with the
@option{--header=@/texidoc} option, and the file to be processed is
#
# Is this pythonic? Personally, I find this rather #define-nesque. --hwn
#
+ADDVERSION = 'addversion'
AFTER = 'after'
BEFORE = 'before'
DOCBOOK = 'docbook'
@verbatim
%(verb)s@end verbatim
''',
+
+ ADDVERSION: r'''\version @w{"@version{}"}
+%(verb)s'''
},
}
substr = ''
if VERBATIM in self.option_dict:
verb = self.verb_ly ()
+ if ADDVERSION in self.option_dict:
+ verb = output[TEXINFO][ADDVERSION] % vars ()
substr += output[TEXINFO][VERBATIM] % vars ()
if not QUOTE in self.option_dict:
substr = output[TEXINFO][NOQUOTE] % {'str':substr}