Changeset 2622 for trunk/manual/new/lib
- Timestamp:
- 09/23/07 22:38:11 (16 months ago)
- Location:
- trunk/manual/new/lib/Text/Wiki
- Files:
-
- 1 added
- 2 modified
-
Parse/Doc/Doclink.php (modified) (1 diff)
-
Render/Latex/Doclink.php (added)
-
Render/Latex/Heading.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/manual/new/lib/Text/Wiki/Parse/Doc/Doclink.php
r2308 r2622 33 33 if (isset($matches[2])) { 34 34 $options['text'] = $matches[2]; 35 $options['text'] = str_replace(':index', $section->getIndex(), $options['text']); 36 $options['text'] = str_replace(':name', $section->getName(), $options['text']); 37 $options['text'] = str_replace(':fullname', $section->getName(true), $options['text']); 35 38 } else { 36 $options['text'] = $section->getIndex() . ' ' . $section->getName(true);39 $options['text'] = $section->getIndex(); 37 40 } 38 41 -
trunk/manual/new/lib/Text/Wiki/Render/Latex/Heading.php
r2308 r2622 5 5 function token($options) 6 6 { 7 static $label = array(); 8 7 9 // get nice variable names (type, level) 8 10 extract($options); 9 11 10 12 if ($type == 'start') { 11 switch ($level) 12 { 13 14 while (count($label) >= $level) { 15 array_pop($label); 16 } 17 $label[] = Sensei_Doc_Section::convertNameToPath($text); 18 19 switch ($level) { 13 20 case '1': 14 21 return '\chapter{'; … … 23 30 case '6': 24 31 return '\subparagraph{'; 25 }32 } 26 33 } 27 34 35 28 36 if ($type == 'end') { 29 return "}\n ";37 return "}\n\label{" . implode(':', $label) . "}\n"; 30 38 } 31 39 }