Lines Matching refs:this

161         $this->_initializeStore();
217 if(is_null($this->store)) {
218 $this->_initializeStore();
223 $this->list_opened = FALSE;
224 $this->recursive = FALSE;
225 $this->in_table = FALSE;
226 $this->last_level_increase = 0;
227 $this->rowspan_handler = new RowspanHandler();
228 $this->media = FALSE;
229 $this->bibliography = FALSE;
231 $this->bib_handler = BibHandler::getInstance();
233 $this->bib_handler = NULL;
235 $this->label_handler = LabelHandler::getInstance();
236 $this->recursion_handler = RecursionHandler::getInstance();
240 $this->recursion_level = 0;
242 $this->recursion_level = $latexit_level;
245 $this->headers_level = 0;
247 $this->headers_level = $latexit_headers;
251 if (!$this->_immersed()) {
253 $this->recursion_handler->insert(wikifn($ID));
257 $this->_prepareZIP();
260 $document_lang = $this->getConf('document_lang');
263 $this->store->addPackage($pckg);
268 $this->store->addPackage($pckg);
271 … $this->store->addPreamble(array('date', '\today')); // FIXME use the document's date instead
272 $this->store->addPreamble(array('title', $this->getConf('title')));
273 $this->store->addPreamble(array('author', $this->getConf('author')));
277 $this->_c('begin', 'document', 2);
280 … if ($this->getConf('date') || $this->getConf('title') != "" || $this->getConf('author') != "") {
281 $this->_c('maketitle');
284 if ($this->getConf('table_of_content')) {
285 $this->_c('tableofcontents', NULL, 2);
295 $doc = $this->doc;
296 $this->doc = '';
300 $this->getConf('paper_size'),
301 $this->getConf('output_format'),
302 $this->getConf('font_size') . 'pt',);
303 if ($this->getConf('landscape')) {
306 if ($this->getConf('draft')) {
311 $this->_c('documentclass', $this->getConf('document_class'), 1, $params);
314 $packages = $this->store->getPackages();
317 $this->doc .= $package->printUsePackage();
321 $preamble = $this->store->getPreamble();
324 $this->_c($command[0], $command[1], $command[2], $command[3]);
326 $this->doc .= $command;
331 $this->doc .= $this->getConf('document_header');
334 $this->doc .= $doc;
347 $this->_checkMedia();
350 if (!$this->_immersed()) {
351 $this->_n(2);
353 if ($this->_useBibliography() && !$this->bib_handler->isEmpty()) {
354 $this->_c('bibliographystyle', $this->getConf('bibliography_style'));
355 $this->_c('bibliography', $this->getConf('bibliography_name'), 2);
358 $this->doc .= $this->getConf('document_footer');
359 $this->_c('end', 'document');
362 $this->document_prefix();
364 $this->_deleteMediaSyntax();
366 $this->_highlightFixme();
367 $this->_removeEntities();
368 $this->_fixImageRef();
374 if ($this->media || ($this->_useBibliography() && !$this->bib_handler->isEmpty())) {
376 if ($this->_useBibliography() && !$this->bib_handler->isEmpty()) {
377 …$zip->addFromString($this->getConf('bibliography_name') . '.bib', $this->bib_handler->getBibtex());
379 $zip->addFromString($output, $this->doc);
403 if ($this->media) {
404 $this->doc .= '%///MEDIA///';
420 $this->store->addPackage($package);
424 if ($this->getConf('header_title')) {
427 if ($this->getConf('header_part')) {
430 if ($this->getConf('header_chapter') && $this->getConf('document_class') != 'article') {
435 if ($this->_immersed()) {
437 $level += $this->headers_level;
439 $this->_n(2);
446 $this->_header($levels[$level], $text);
451 $this->doc .= '~';
452 $this->_c('newline');
453 $this->_c('textbf', $this->_latexSpecialChars($text));
456 $label = $this->label_handler->newLabel($this->_createLabel($text));
457 $this->_c('label', 'sec:' . $label);
467 $this->doc .= $this->_latexSpecialChars($text);
475 $this->_n(2);
483 if ($this->in_table) {
485 $this->doc .= "\\newline ";
487 $this->doc .= "\\\\";
496 $this->_n(2);
497 $this->_c('begin', 'center');
498 $this->doc .= "\line(1,0){250}\n";
499 $this->_c('end', 'center', 2);
507 $this->_open('textbf');
514 $this->_close();
522 $this->_open('emph');
529 $this->_close();
537 $this->_open('underline');
544 $this->_close();
553 $this->_open('texttt');
561 $this->_close();
570 $this->store->addPackage($package);
571 $this->_open('textsubscript');
578 $this->_close();
587 $this->store->addPackage($package);
588 $this->_open('textsuperscript');
595 $this->_close();
605 $this->store->addPackage($package);
606 $this->_open('sout');
613 $this->_close();
621 $this->_open('footnote');
628 $this->_close();
636 $this->_list_open("itemize");
644 $this->_list_close("itemize");
652 $this->_list_open("enumerate");
660 $this->_list_close("enumerate");
669 $this->last_level = $level;
670 $this->_indent_list();
671 $this->doc .= " ";
672 $this->_c('item', NULL, 0);
680 $this->_n();
689 $this->doc .= $this->_latexSpecialChars($text);
697 $this->code($text, "PHP");
705 $this->code($text, "PHP");
713 $this->code($text, "HTML");
721 $this->code($text, "HTML");
729 $this->_n();
730 $this->_c('begin', 'verbatim');
731 $this->doc .= $text;
732 $this->_n();
733 $this->_c('end', 'verbatim');
740 $this->_n();
741 $this->_c('begin', 'quote');
748 $this->_n();
749 $this->_c('end', 'quote');
761 $this->code($text, $lang, $file);
773 $this->store->addPackage($pckg);
776 $this->_open('lstset');
777 $this->doc .= 'frame=single';
780 $this->doc .= ', language=';
781 $this->doc .= $this->_latexSpecialChars($lang);
785 $this->doc .= ', title=';
786 $this->doc .= $this->_latexSpecialChars($file);
788 $this->_close();
789 $this->_n();
791 $this->_c('begin', 'lstlisting');
796 $this->doc .= $text;
798 $this->_c('end', 'lstlisting', 2);
809 $this->doc .= $this->_latexSpecialChars($acronym);
821 $this->store->addPackage($pckg);
822 $this->doc .= $smiley;
824 $this->doc .= $this->_latexSpecialChars($smiley);
836 $this->doc .= '///ENTITYSTART///';
839 $this->doc .= '$\rightarrow$';
842 $this->doc .= '$\leftarrow$';
845 $this->doc .= '$\leftrightarrow$';
848 $this->doc .= '$\Rightarrow$';
851 $this->doc .= '$\Leftarrow$';
854 $this->doc .= '$\Leftrightarrow$';
857 $this->doc .= '\copyright ';
860 $this->doc .= '\texttrademark ';
863 $this->doc .= '\textregistered ';
866 $this->doc .= $this->_latexSpecialChars($entity);
869 $this->doc .= '///ENTITYEND///';
878 $this->doc .= '///ENTITYSTART///';
879 $this->doc .= '$';
880 $this->doc .= $this->_latexSpecialChars($x);
881 $this->doc .= ' \times ';
882 $this->doc .= $this->_latexSpecialChars($y);
883 $this->doc .= '$';
884 $this->doc .= '///ENTITYEND///';
891 $this->doc .= '`';
898 $this->doc .= '\'';
905 $this->doc .= '\'';
913 switch ($this->getConf('document_lang')) {
919 $this->doc .= ',,';
929 switch ($this->getConf('document_lang')) {
935 $this->doc .= '"';
946 $this->internallink($link, $link);
956 $this->_insertLinkPackages();
958 $this->doc .= $this->_latexSpecialChars($name);
960 $this->doc .= $this->_latexSpecialChars($hash);
962 $this->doc .= ' (';
963 $this->_c('autoref', "sec:" . $hash, 0);
964 $this->doc .= ')';
988 $title = $this->_latexSpecialChars($title);
1000 $this->doc .= $title;
1008 $url = $this->_secureLink($url);
1009 if ($this->recursive) {
1011 if ($this->recursion_handler->disallow(wikifn($link))) {
1012 $this->_n(2);
1014 $this->doc .= "%!!! RECURSION LOOP HAS BEEN PREVENTED !!!";
1015 $this->_n(2);
1018 $this->recursion_handler->insert(wikifn($link));
1020 $latexit_level = $this->recursion_level + 1;
1021 $latexit_headers = $this->headers_level;
1026 $this->_n(2);
1028 $this->doc .= "%RECURSIVELY INSERTED FILE START";
1029 $this->_n(2);
1031 $this->doc .= $data;
1032 $this->_n(2);
1034 $this->doc .= "%RECURSIVELY INSERTED FILE END";
1035 $this->_n(2);
1037 $this->headers_level -= $this->last_level_increase;
1039 $this->recursion_handler->remove(wikifn($link));
1044 $this->_insertLink($url, $title, "internal", $link_original);
1046 $this->recursive = FALSE;
1057 $title = $this->_latexSpecialChars($title);
1059 $link = $this->_secureLink($link);
1060 $this->_insertLink($link, $title, "external");
1072 $url = $this->_resolveInterWiki($wikiName, $wikiUri);
1078 $this->externallink($url, $name);
1088 $this->externallink($link, $title);
1098 $this->externallink($link, $title);
1109 $name = $this->_latexSpecialChars($name);
1111 $this->_insertLink($address, $name, "email");
1131 $media_folder = $this->getConf('media_folder');
1152 $this->media = TRUE;
1159 $this->_insertImage($path, $align, $media_folder);
1161 $this->_insertFile($path, $title, $media_folder);
1183 $this->media = TRUE;
1184 $media_folder = $this->getConf('media_folder');
1198 $this->_insertImage($filename, $align, $media_folder);
1200 $this->_insertFile($filename, $title, $media_folder);
1212 $this->table_cols = $maxcols;
1215 $this->in_table = true;
1217 $this->store->addPackage($pckg);
1220 $this->_c('begin', 'longtable', 0);
1221 $this->doc .= "{|";
1223 $this->doc .= $this->getConf('default_table_align') . "|";
1225 $this->_close();
1226 $this->_n();
1227 $this->_c('hline');
1237 $this->in_table = false;
1239 $this->_c('end', 'longtable', 2);
1247 $this->cells_count = 0;
1255 $this->doc .= " \\\\ ";
1256 $this->_n();
1258 $this->_c('hline');
1259 $this->doc .= " ";
1260 $this->_n();
1272 $this->tablecell_open($colspan, $align, $rowspan);
1273 $this->_open('textbf');
1280 $this->_close();
1281 $this->tablecell_close();
1292 $align = $this->getConf('default_table_align');
1298 $this->last_colspan = $colspan;
1299 $this->last_rowspan = $rowspan;
1300 $this->last_align = $align;
1303 if ($this->rowspan_handler->getRowspan($this->cells_count) != 0) {
1304 $this->doc .= ' & ';
1305 $this->rowspan_handler->decreaseRowspan($this->cells_count);
1306 $this->cells_count++;
1310 if ($colspan != 1 || $align != $this->getConf('default_table_align')) {
1311 $this->doc .= "\\multicolumn{" . $colspan . "}{|$align|}{";
1316 $this->store->addPackage($pckg);
1317 $this->rowspan_handler->insertRowspan($rowspan - 1, $this->cells_count);
1318 $this->doc .= "\\multirow{" . $rowspan . "}{*}{";
1327 … if ($this->last_colspan != 1 || $this->last_align != $this->getConf('default_table_align')) {
1328 $this->doc .= "}";
1331 if ($this->last_rowspan != 1) {
1332 $this->doc .= "}";
1336 $this->cells_count += $this->last_colspan;
1337 if ($this->table_cols != $this->cells_count) {
1338 $this->doc .= " & ";
1349 $this->doc .= "\\" . $command;
1352 $this->doc .= '[';
1356 $this->doc .= ', ';
1358 $this->doc .= $p;
1360 $this->doc .= ']';
1363 $this->doc .= "{";
1372 $this->doc .= '}';
1390 $this->_open($command, $params, $brackets);
1393 $this->doc .= $text;
1394 $this->_close();
1396 $this->_n($newlines);
1405 $this->doc .= "\n";
1414 if (preg_match('#%///MEDIA///#si', $this->doc)) {
1415 $this->media = TRUE;
1418 $this->_deleteMediaSyntax();
1425 str_replace('%///MEDIA///', '', $this->doc);
1435 $this->store->addPackage($package);
1443 $this->_n();
1444 if ($this->list_opened) {
1445 for ($i = 1; $i < $this->last_level + 1; $i++) {
1447 $this->doc .= ' ';
1450 $this->list_opened = TRUE;
1452 $this->_indent_list();
1453 $this->_c('begin', $command);
1461 if ($this->last_level == 1) {
1462 $this->list_opened = FALSE;
1464 $this->_indent_list();
1465 $this->_c('end', $command);
1472 for ($i = 1; $i < $this->last_level; $i++) {
1473 $this->doc .= ' ';
1485 $this->doc = str_replace('FIXME', '\hl{FIXME}', $this->doc);
1486 $this->doc = str_replace('DELETEME', '\hl{DELETEME}', $this->doc);
1487 …$this->doc = preg_replace_callback('#{FIXME}\[(.*?)\]\((.*?)\)#si', array(&$this, '_highlightFixme…
1497 $matches[1] = $this->_stripDiacritics($matches[1]);
1498 $matches[2] = $this->_stripDiacritics($matches[2]);
1508 $this->_open($level);
1511 $this->_open('texorpdfstring');
1513 $this->doc .= $this->_latexSpecialChars($text);
1514 $this->_close();
1515 $this->doc .= '{';
1516 $this->doc .= $this->_pdfString($text);
1517 $this->_close();
1518 $this->_close();
1519 $this->_n();
1527 if ($this->recursion_level > 0) {
1547 $this->doc = preg_replace('#///ENTITYSTART///(.*?)///ENTITYEND///#si', '$1', $this->doc);
1554 $this->doc = str_replace('[h!]{\centering}', '[!ht]{\centering}', $this->doc);
1555 $this->doc = str_replace('\\ref{', '\autoref{', $this->doc);
1563 $this->recursive = $recursive;
1571 $this->last_level_increase = $level;
1572 $this->headers_level += $level;
1589 $this->doc .= $data;
1599 $text = $this->_stripDiacritics($text);
1602 $text = $this->_removeMathAndSymbols($text);
1646 $this->store->addPackage($pckg);
1656 $this->_c('centering', NULL, 0);
1659 $this->_c('raggedleft', NULL, 0);
1662 $this->_c('raggedright', NULL, 0);
1669 $this->_c('includegraphics', $path, 1, array($this->getConf('image_params')));
1680 $this->filelink($path, $title);
1691 $this->_insertLinkPackages();
1703 $this->doc .= '\\href{' . $mailto . $url . '}{' . $link_original . '}';
1707 $this->doc .= '\\href{' . $mailto . $url . '}{' . $url . '}';
1711 $this->doc .= '\\url{' . $mailto . $url . '}';
1716 $this->doc .= '\\href{' . $mailto . $url . '}{';
1718 $this->internalmedia($title["src"], $title["title"], $title["align"]);
1720 $this->externalmedia($title["src"], $title["title"], $title["align"]);
1722 $this->doc .= '}';
1724 $this->doc .= '\\href{' . $mailto . $url . '}{' . $title . '}';
1734 if ($this->_useBibliography()) {
1735 $this->bib_handler->insert($entry);
1745 $text = $this->_stripDiacritics($this->_latexSpecialChars($text));
1746 $text = $this->_removeMathAndSymbols($text);
1764 if (is_null($this->bib_handler)) {
1775 $this->store = $this->loadHelper('latexit', true);