PageToLatexPlugin: img_re.patch
| File img_re.patch, 1.7 kB (added by tapted <tapted@it.usyd.edu.au>, 1 year ago) |
|---|
-
pagetolatexplugin/pagetolatex/wikilatex.py
old new 207 207 url = gfilter_to_url(url) 208 208 ref = totexlabel(url) 209 209 text, title = gtotex(text), gtotex(title) 210 if Formatter.img_re.search(url) and self.flavor != 'oneliner':211 return '\\url{%s} (extimage - todo: make figure float with caption %s)' % (212 url, title or text)213 210 if not url.startswith(self._local): 214 211 if same: 215 212 return '\\url{' + url + '}' … … 224 221 url = gfilter_to_url(url) 225 222 ref = totexlabel(url) 226 223 text = gtotex(text) 227 if Formatter.img_re.search(url) and self.flavor != 'oneliner':228 return '\\url{%s} (relimage - todo: make figure float with caption %s)' % (229 url, text)230 224 if not url.startswith(self._local): 231 225 if same: 232 226 return '\\url{' + url + '}' -
pagetolatexplugin/setup.py
old new 9 9 author='Trent Apted', 10 10 author_email='tapted@it.usyd.edu.au', 11 11 description='A plugin for exporting Wiki pages as LaTeX documents (.tex)', 12 url='http://trac-hacks.org/wiki/PageToLa TeXPlugin',12 url='http://trac-hacks.org/wiki/PageToLatexPlugin', 13 13 entry_points={'trac.plugins': ['pagetolatex.pagetolatex=pagetolatex.pagetolatex']})
