/usr/share/pyshared/plasTeX/Packages/article.py is in python-plastex 0.9.2-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | from report import *
def ProcessOptions(options, document):
import report
report.ProcessOptions(options, document)
document.context['thesection'].format = '${section}'
document.context['theindex'].counter = 'section'
document.context['theindex'].level = Environment.SECTION_LEVEL
document.context['printindex'].counter = 'section'
document.context['printindex'].level = Command.SECTION_LEVEL
document.context['bibliography'].counter = 'section'
document.context['bibliography'].level = Command.SECTION_LEVEL
class appendix(Command):
class thesection(TheCounter):
format = '${section.Alph}'
def invoke(self, tex):
self.ownerDocument.context.counters['section'].setcounter(0)
self.ownerDocument.context['thesection'] = type(self).thesection
|