1 Sep 2004 23:48
Re: Generating LaTeX for Python manual
Felix Wiemann <Felix.Wiemann <at> gmx.net>
2004-09-01 21:48:01 GMT
2004-09-01 21:48:01 GMT
David Goodger wrote: > You can also implement them as custom roles by adding this to your > documents: > > .. role:: method(literal) > .. role:: class(literal) > .. role:: func(literal) > .. role:: var(literal) > .. role:: module(literal) > .. role:: code(literal) I just tried that, and it causes Docutils to crash (error with NestedStateMachine). -------------------------------- .. role:: method(literal) .. role:: class(literal) .. role:: func(literal) .. role:: var(literal) .. role:: module(literal) .. role:: code(literal) -------------------------------- It works when putting some text between the role definitions: -------------------------------- .. role:: method(literal) test(Continue reading)
RSS Feed