home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 April / CMCD0404.ISO / Software / Freeware / Programare / groupoffice-com-2.01 / modules / wiki / template / latex.php < prev    next >
PHP Script  |  2004-03-08  |  1KB  |  60 lines

  1. <?php
  2. // $Id: latex.php,v 1.1 2004/01/12 22:14:05 comsubvie Exp $
  3.  
  4. //
  5. //  2002/03/18   Troy D. Straszheim  <troy@resophonic.com>
  6. //
  7.  
  8. function template_view($page, $latex)
  9. {
  10.   global $WikiName, $HomePage, $WikiLogo, $MetaKeywords, $MetaDescription;
  11.   global $FindScript, $pagestore;
  12. ?>
  13. \documentclass{article}
  14. %
  15. % Latex generating code contributed to the wiki project by 
  16. % Troy D. Straszheim <troy@resophonic.com>
  17. %
  18. %
  19. % The latex at the top and at the very bottom of this file come from
  20. % template/latex.php verbatim.
  21. %
  22.  
  23. %
  24. % uncomment these selectively to use various latex packages (fancyhdr,
  25. % graphicx) and/or to add an EPS graphic of your choosing
  26. %
  27. %\usepackage{fancyhdr}
  28. %\pagestyle{fancy}
  29.  
  30. %\usepackage{graphicx}
  31. %\lhead{\large{\texttt{<?php print $HomePage . ":". $page; ?>}}}
  32. % \rhead{\resizebox{2.5in}{!}{\includegraphics[trim=0 10 160 0, clip]{cb.eps}}}
  33. %
  34. %\chead{}
  35. %\lfoot{\today}
  36. %\cfoot{}
  37. %\rfoot{}
  38. %\renewcommand{\headrulewidth}{0.4pt}
  39. %\renewcommand{\footrulewidth}{0.4pt}
  40.  
  41. \setlength{\parskip}{0.25cm}
  42. \begin{document}
  43.  
  44. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  45. % here starts the latex generated by parse/latex.php %
  46. % and action/latex.php                     %
  47. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  48.  
  49. <?php print $latex; ?>
  50.  
  51. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  52. % here resumes template/latex.php generated latex.   %
  53. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  54.  
  55. \end{document}
  56.  
  57. <?php
  58. }
  59. ?>
  60.