Extension:Wiki2LaTeX/Development/w2lDefaultConfig.php

<?php /* * Created on 15.03.2007 * This file contains defaultsettins of W2L, which should not be * changed here. Change them by copying the config-line into * w2lConfig.php andset them there. */ // Do not edit this File! // If you need to make changes, please change them in w2lConfig.php!!! if ( !defined('MEDIAWIKI') ) die;

$w2l_config    = array; $w2l_tags      = array; $w2l_pFunctions = array; $w2l_events    = array;

// Register ParserTagFunctions $w2l_tags['ref']        = array('w2l_mwext_support', "ref"); $w2l_tags['pre']        = array('w2l_mwext_support', "pre"); $w2l_tags['references'] = array('w2l_mwext_support', "references"); $w2l_tags['subpages']   = array('w2l_mwext_support', "subpages"); $w2l_tags['math']       = array('w2l_mwext_support', "math");

$w2l_tags['noindent']   = array('w2l_extensions', "NoIndent"); $w2l_tags['newpage']    = array('w2l_extensions', "NewPage"); $w2l_tags['label']      = array('w2l_extensions', "Label"); $w2l_tags['pageref']    = array('w2l_extensions', "PageRef"); $w2l_tags['chapref']    = array('w2l_extensions', "ChapRef"); $w2l_tags['rawtex']     = array('w2l_extensions', "RawTex"); $w2l_tags['source']     = array('w2l_mwext_support', "sourcecode");

// These Tags shouldn't occur in w2l-parser, so just in case make them return nothing: $w2l_tags['templatevar'] = array('w2l_extensions', "EmptyTag"); $w2l_tags['latex']      = array('w2l_extensions', "EmptyTag"); $w2l_tags['latexfile']  = array('w2l_extensions', "EmptyTag"); $w2l_tags['latexpage']  = array('w2l_extensions', "EmptyTag");

// Some configurationvariables // To call pdflatex, w2l needs to know the plattform. // Possible values: 'win', 'linux' $w2l_config['plattform']  = 'win';

// Caution: pdfexport only works by using templates. These are described on the website. // Be sure, that your template actually compiles without any human // interaction (like package installation etc.), because otherwise // pdflatex will remain as a dead process and can only be stopped by // Taskmanagers. PDF-Export is used on your own risk. $w2l_config['pdfexport']  = true;

// This command should work. Before your try to enable pdfexport, please try this // command on your local commandshell. It is only tested under Windows XP with Miktex 2.5 // %1 is replaced with pathinformation. $w2l_config['command'] = 'pdflatex -interaction=nonstopmode Main.tex'; $w2l_config['repeat'] = 3; $w2l_config['output_format'] = 'pdf'; // or dvi or ps. Beware that the LaTeX-command needs to output the file accordingly. // Which Namespaces should show the LaTeX-tab? Add them by their number and seperate them with commas. $w2l_config['allowed_ns'] = array(NS_MAIN);

// Is an anonymous user allowed, to view the 'LaTeX-Tab'? $w2l_config['allow_anonymous'] = false;

// Options for parsing:

// Quotes: // it is suggested, that you use html-entities for writing quotes. These four configvalues // take the name of the corresponding LaTeX-command. $w2l_config['sq_open'] = '\glq{}';  // &sbquo; $w2l_config['sq_close'] = '\grq{}'; // &lsquo; $w2l_config['dq_open'] = '\glqq{}'; // &bdquo; $w2l_config['dq_close'] = '\grqq{}'; // &ldquo;

$w2l_config['lang'] = 'de';

// This controls, wether included pages should be cached... // primitive and untested... $w2l_config['use_cache'] = false; $w2l_config['debug']    = false;

$w2l_config['default_action'] = 'w2ltextarea'; $w2l_config['default_template'] = '';

$w2l_config['enable_geshi'] = true;