;ς )δHEc@sWdZdkZdkZdkZdklZlZdZeiei Z d„Z dS(s$ Replace pamphlet contents with embedded PDF $Id: ReplacePamphlet.py,v 0.2 2005/11/12 Bill Page $ TODO: 1) Provide a wiki folder property to override the path so that pamphlet, dvi, and pdf files can be mapped to specific directories. Currently defaults to 'imagesPath' for Zope/LatexWiki compatibility. But Apache proxy or additional Zope external files systems would allow them to be anywhere. 2) Write pamphlet file to source code archive and do a check-in Archive check-in controlled/disabled by a wiki folder property. N(s imagesPaths workingDirsŸ
Some or all expressions may not have rendered properly, because Latex returned the following error:
%s
cCsdkl}tid|tƒ}|oγdi|i ƒi dƒdƒ}t i it|ƒ} yt i| ƒWnnX|iƒ} t i i| | ƒ} y7t| ddƒ}|i|idƒƒ|iƒWndGH‚nXtid |idƒtƒ} | o| idƒ}nd }|| | |ƒ} t i idt|| ƒ}d |||||||iƒd d igi}ti!d |idƒƒD]7}|idƒdjo|d|idƒƒqšqš~ƒ|f | od| pd |idƒfSn d |fSdS(N(s renderPDFs^(\\.*?\\end{document})(.*)$s/is .pamphletswisCan't save pamphlet files0.*\\usepackage\[.*(dvips|dvipdfm).*?\]{hyperref}ss1
Download: pdf dvi ps src tex log

s s <<(.*?)>>=s*s
Some or all of this page may not have rendered properly, because of the following error:
%s
i(#spamphletWrappers renderPDFsresmatchsbodysreConstssdocsjoinspages wiki_base_urlssplitsfPathsosspaths workingDirsfDirsmakedirss title_or_idspageNamesfNamesopensfileswritesgroupsclosespdfs pdfMethodserrorss imagesPathsfUrlspage_urlsappends_[1]sfinditersm(spagesbodysfilesdocsmsfPathsfUrls_[1]s renderPDFsfNamesfDirspageNamespdfserrorss pdfMethod((sR/mnt/gmirror/ports/www/zope-zwiki/work/ZWiki/plugins/mathaction/ReplacePamphlet.pysreplacePamphlets4  " Ό( s__doc__sresossstringsutils imagesPaths workingDirs errorMessages MULTILINEsDOTALLsreConstssreplacePamphlet(sreConstssstrings errorMessages workingDirsres imagesPathsossreplacePamphlet((sR/mnt/gmirror/ports/www/zope-zwiki/work/ZWiki/plugins/mathaction/ReplacePamphlet.pys?s