From: Lele G. <le...@na...> - 2004-02-15 22:52:48
|
>>>>> "David" =3D=3D David Goodger <go...@py...> writes: David> A style-based approach seems good to me, but I'll leave it David> to the TeXnicians around here. What about this, then? Considering myself more a TeXuser, could some TeXnicians step up and say if the solution below is acceptable? thanks&bye, lele. Index: latex2e.py =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /cvsroot/docutils/docutils/docutils/writers/latex2e.py,v retrieving revision 1.65 diff -u -u -r1.65 latex2e.py --- latex2e.py 16 Jan 2004 02:39:42 -0000 1.65 +++ latex2e.py 15 Feb 2004 22:34:31 -0000 @@ -244,7 +244,8 @@ 'some_commands' : [ '% some commands, that could be overwritten in the style file.= \n' '\\newcommand{\\rubric}[1]' - '{\\subsection*{~\\hfill {\\it #1} \\hfill ~}}\n' + '{\\subsection*{~\\hfill {\\it #1} \\hfill ~}}\n', + '\\newcommand{\cite}[1]{\textsl{#1}}', '% end of "some commands"\n', ] } @@ -623,11 +624,10 @@ self.depart_footnote(node) =20=20 def visit_title_reference(self, node): - # BUG title-references are what? - pass + self.body.append( '\\cite{' ) =20=20 def depart_title_reference(self, node): - pass + self.body.append( '}' ) =20=20 def visit_citation_reference(self, node): href =3D '' --=20 nickname: Lele Gaifax | Quando vivr=F2 di quello che ho pensato ieri real: Emanuele Gaifas | comincer=F2 ad aver paura di chi mi copia. email: le...@se... | -- Fortunato Depero, 1929. |