/usr/share/pyshared/plasTeX/Packages/beamer.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 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 | from plasTeX import Command, Environment
from plasTeX.Base import textbf, textit, textsl, textrm, textsf
from plasTeX.Base import List, label, newcommand, newenvironment
from plasTeX.Base import renewcommand, renewenvironment
from plasTeX.Base import itemize, enumerate_, description
from plasTeX.Base import part, section, subsection, subsubsection
from plasTeX.Base import tableofcontents, thebibliography, appendix
from plasTeX.Base import abstract, verse, quotation, quote, footnote
from plasTeX.Packages.color import color
from plasTeX.Packages.graphicx import includegraphics
from plasTeX.Packages.alltt import alltt as semiverbatim
from plasTeX.Packages.hyperref import hypertarget, hyperlink
from plasTeX.Packages.article import *
class frame(Command):
args = '< overlay > self'
subtitle = None
def invoke(self, tex):
# This macro can be an environment or a command each
# with different arguments.
if self.macroMode == Command.MODE_BEGIN or \
self.macroMode == Command.MODE_END:
f = self.ownerDocument.createElement('frameenv')
f.parentNode = self.parentNode
f.macroMode = self.macroMode
f.invoke(tex)
# Add to frames collection
if self.macroMode == Command.MODE_BEGIN:
f.addToFrames()
return [f]
# Add to frames collection
self.addToFrames()
return Command.invoke(self, tex)
def addToFrames(self):
""" Add this frame to the frame collection """
u = self.ownerDocument.userdata
frames = u.get('frames')
if frames is None:
frames = []
u['frames'] = frames
frames.append(self)
class frameenv(Environment):
args = '< overlay > < defaultoverlay > [ options:dict ] { title } { subtitle }'
subtitle = None
forcePars = True
def addToFrames(self):
""" Add this frame to the frame collection """
u = self.ownerDocument.userdata
frames = u.get('frames')
if frames is None:
frames = []
u['frames'] = frames
frames.append(self)
class frametitle(Command):
args = '< overlay > [ shorttitle ] self'
def invoke(self, tex):
Command.invoke(self, tex)
self.ownerDocument.userdata['frames'][-1].title = self
class framesubtitle(Command):
args = '< overlay > self'
def invoke(self, tex):
Command.invoke(self, tex)
self.ownerDocument.userdata['frames'][-1].subtitle = self
class setbeamertemplate(Command):
args = '< overlay > theme [ options ] [ suboptions ]'
class setbeamersize(Command):
args = 'options:dict'
class logo(Command):
args = '< overlay > self'
class setbeamercolor(Command):
args = 'mode color'
class pause(Command):
args = '[ number:int ]'
class onslide(Command):
args = '*+ < overlay > { self }'
class only(Command):
args = '< overlay > self < overlay2 >'
class onlyenv(Environment):
args = '< overlay >'
class uncover(Command):
args = '< overlay > self'
class uncoverenv(Environment):
args = uncover.args
class visible(Command):
args = '< overlay > self'
class visibleenv(Environment):
args = visible.args
class invisible(Command):
args = '< overlay > self'
class invisibleenv(Environment):
args = invisible.args
class alt(Command):
args = '< overlay > default alternative < overlay2 >'
class altenv(Environment):
args = '< overlay > begin end alternatebegin alternate end < overlay2 >'
class temporal(Command):
args = '< overlay > before default after'
class alert(Command):
args = '< overlay > self'
class overlayarea(Environment):
args = 'width height'
class overprint(Environment):
args = 'width'
List.item.args = '< alert >' + List.item.args + '< alert2 >'
textbf.args = '< overlay >' + textbf.args
textit.args = '< overlay >' + textit.args
textsl.args = '< overlay >' + textsl.args
textrm.args = '< overlay >' + textrm.args
textsf.args = '< overlay >' + textsf.args
color.args = '< overlay >' + color.args
label.args = '< overlay >' + label.args
includegraphics.args = '< overlay >' + includegraphics.args
newcommand.args = '< overlay >' + newcommand.args
renewcommand.args = '< overlay >' + renewcommand.args
newenvironment.args = '< overlay >' + newenvironment.args
renewenvironment.args = '< overlay >' + renewenvironment.args
itemize.args = '[ overlay ]'
enumerate_.args = '[ overlay ] [ template ]'
description.args = '[ overlay ] [ longtext ]'
section.args = '< overlay >' + section.args
subsection.args = '< overlay >' + subsection.args
subsubsection.args = '< overlay >' + subsubsection.args
part.args = '< overlay >' + part.args
thebibliography.bibitem.args = '< overlay >' + thebibliography.bibitem.args
appendix.args = '< overlay >' + appendix.args
hypertarget.args = '< overlay >' + hypertarget.args
hyperlink.args = '< overlay >' + hyperlink.args + '< overlay2 >'
tableofcontents.args = '[ options:dict ]' + tableofcontents.args
abstract.args = '< overlay >' + abstract.args
verse.args = '< overlay >' + verse.args
quotation.args = '< overlay >' + quotation.args
quote.args = '< overlay >' + quote.args
footnote.args = '< overlay > [ options:dict ]' + footnote.args
class resetcounteronoverlays(Command):
args = 'counter'
class resetcountonoverlays(Command):
args = 'count'
class action(Command):
args = '< action > self'
class actionenv(Environment):
args = '< action >'
class beamerdefaultoverlayspecification(Command):
args = 'overlay'
class AtBeginSection(Command):
args = '[ special ] text'
class AtBeginSubsection(AtBeginSection):
pass
class AtBeginSubsubsection(AtBeginSection):
pass
class partpage(Command):
pass
class AtBeginPart(Command):
args = 'text'
class lecture(Command):
args = '[ shorttitle ] title { label }'
class includeonlylecture(Command):
args = 'label'
class AtBeginLecture(Command):
args = 'text'
class beamerbutton(Command):
args = 'self'
class beamergotobutton(Command):
args = 'self'
class beamerskipbutton(Command):
args = 'self'
class beamerreturnbutton(Command):
args = 'self'
class HyperlinkCommand(Command):
args = '< overlay > self < overlay2 >'
class hyperlinkslideprev(HyperlinkCommand):
pass
class hyperlinkslidenext(HyperlinkCommand):
pass
class hyperlinkframestart(HyperlinkCommand):
pass
class hyperlinkframeend(HyperlinkCommand):
pass
class hyperlinkframestartnext(HyperlinkCommand):
pass
class hyperlinkframeendprev(HyperlinkCommand):
pass
class hyperlinkpresentationstart(HyperlinkCommand):
pass
class hyperlinkpresentationend(HyperlinkCommand):
pass
class hyperlinkappendixstart(HyperlinkCommand):
pass
class hyperlinkappendixend(HyperlinkCommand):
pass
class hyperlinkdocumentstart(HyperlinkCommand):
pass
class hyperlinkdocumentend(HyperlinkCommand):
pass
class againframe(Command):
args = '< overlay > [ default ] [ options:dict ] name'
class framezoom(Command):
args = '< buttonoverlay > < zoomedoverlay > [ options:dict ] ( pos:list ) ( zoom:list )'
class structure(Command):
args = '< overlay > self'
class structureenv(Environment):
args = '< overlay >'
class block(Environment):
args = '< action > title < action2 >'
class alertblock(Environment):
args = '< action > title < action2 >'
class exampleblock(Environment):
args = '< action > title < action2 >'
#
# Theorems
#
# theorem.args = '< action > [ text ] < action2 >'
# corollary.args = '< action > [ text ] < action2 >'
# definition.args = '< action > [ text ] < action2 >'
# definitions.args = '< action > [ text ] < action2 >'
# fact.args = '< action > [ text ] < action2 >'
# example.args = '< action > [ text ] < action2 >'
# examples.args = '< action > [ text ] < action2 >'
class beamercolorbox(Environment):
args = '[ options:dict ] color'
class beamerboxesrounded(Environment):
args = '[ options:dict ] title'
class columns(Environment):
args = '[ options:dict ]'
class column(Command):
args = '[ placement ] width'
def invoke(self, tex):
# This macro can be an environment or a command each
# with different arguments.
if self.macroMode == Command.MODE_BEGIN or \
self.macroMode == Command.MODE_END:
f = self.ownerDocument.createElement('columnenv')
f.parentNode = self.parentNode
f.macroMode = self.macroMode
res = f.invoke(tex)
if res is None:
res = [f]
return res
return Command.invoke(self, tex)
class columnenv(Environment):
args = column.args
class movie(Command):
args = '[ options:dict ] text filename:str'
class hyperlinkmovie(Command):
args = '[ options:dict ] label text'
class animate(Command):
args = '< overlay >'
class animatevalue(Command):
args = '< interval > name start end'
class multiinclude(Command):
args = '[ overlay ] [ options:dict ] filename:str'
class sound(Command):
args = '[ options:dict ] text filename:str'
class hyperlinksound(Command):
args = '[ options:dict ] label text'
class hyperlinkmute(Command):
args = 'text'
#
# Transitions
#
class TransitionCommand(Command):
args = '< overlay > [ options:dict ]'
class transblindshorizontal(TransitionCommand):
pass
class transblindsvertical(TransitionCommand):
pass
class transboxin(TransitionCommand):
pass
class transboxout(TransitionCommand):
pass
class transdissolve(TransitionCommand):
pass
class transglitter(TransitionCommand):
pass
class transsplitverticalout(TransitionCommand):
pass
class transsplitverticalin(TransitionCommand):
pass
class transsplithorizontalin(TransitionCommand):
pass
class transsplithorizontalout(TransitionCommand):
pass
class transwipe(TransitionCommand):
pass
class transduration(Command):
args = '< overlay > seconds:int'
#
# Themes
#
class usetheme(Command):
args = '[ options:dict ] name:list:str'
class usecolortheme(Command):
args = '[ options:dict ] name:list:str'
class usefonttheme(Command):
args = '[ options:dict ] name:list:str'
class useinnertheme(Command):
args = '[ options:dict ] name:list:str'
class useoutertheme(Command):
args = '[ options:dict ] name:list:str'
class addheadbox(Command):
args = 'color template'
class addfootbox(Command):
args = 'color template'
|