Changeset 1452 for trunk/buildscripts
- Timestamp:
- 09/30/2006 01:40:40 PM (2 years ago)
- Files:
-
- 1 modified
-
trunk/buildscripts/texbuilder/Page2Tex.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/buildscripts/texbuilder/Page2Tex.php
r1411 r1452 8 8 private $_dir; 9 9 10 private $_verb_find = array('\$','\%', '\{', '\}', "\t",'``' );11 private $_verb_replace = array('$', '%', '{','}', " ",'"' );10 private $_verb_find = array('\$','\%', '\{', '\}', "\t",'``','`'); 11 private $_verb_replace = array('$', '%', '{','}', " ",'"','\''); 12 12 13 13 function __construct($base, $dir, $current='') … … 88 88 function texttt($matches) 89 89 { 90 return '\texttt{'.str_replace(array('#','_' ),array('\#','\_'), $matches[1]).'}';90 return '\texttt{'.str_replace(array('#','_','&'),array('\#','\_','\&'), $matches[1]).'}'; 91 91 } 92 92 … … 131 131 132 132 $html = preg_replace('/(\s+|\(+|\[+)"/', '$1``', $html); 133 $html = preg_replace('/(\s+|\(+|\[+)\'/', '$1`', $html); 133 134 134 135 //escape { and }
