@item addversion
(Only for Texinfo output.) Prepend line @code{\version
-@@w{"@@version@{@}"}} to @code{verbatim} output.
+@@w@{"@@version@{@}"@}} to @code{verbatim} output.
@item texidoc
(Only for Texinfo output.) If @command{lilypond} is called with the
VERBATIM,
FONTLOAD,
FILENAME,
- ALT
+ ALT,
+ ADDVERSION
]
ly_options = {
''',
VERBATIM: r'''@exampleindent 0
-@verbatim
+%(version)s@verbatim
%(verb)s@end verbatim
''',
- ADDVERSION: r'''\version @w{"@version{}"}
-%(verb)s'''
+ ADDVERSION: r'''@example
+\version @w{"@version{}"}
+@end example
+'''
},
}
substr = ''
if VERBATIM in self.option_dict:
- verb = self.verb_ly ()
+ version = ''
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}
+ version = output[TEXINFO][ADDVERSION]
+ verb = self.verb_ly ()
+ substr = output[TEXINFO][VERBATIM] % vars ()
substr += self.output_info ()
if LILYQUOTE in self.option_dict:
substr = output[TEXINFO][QUOTE] % {'str':substr}