Extension:Wiki2LaTeX/Development/w2lDefaultConfig.php

<?php

/* * File:   w2lDefaultConfig.php * Created: * Version: 0.7 * * Purpose: * Contains default settings. All settings can be changed in w2lConfig.php * * License: * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. */

if ( !defined('MEDIAWIKI') ) { $msg = 'To install Wiki2LaTeX, put the following line in LocalSettings.php: '; $msg .= 'require_once( $IP."/extensions/path_to_Wiki2LaTeX_files/wiki2latex.php" );'; echo $msg; exit( 1 ); }

$w2lConfig['localpath'] = dirname(__FILE__); // to the w2l-files... $w2lConfig['localbase'] = $IP;

$w2lConfig['url'] = str_replace($IP, '', $w2lConfig['localpath']); // gives something like \extensions\w2l $w2lConfig['url'] = str_replace('\\', '/', $w2lConfig['url']); // gives something like /extensions/w2l

$w2lConfig['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 might remain as a dead process and can only be stopped by // Taskmanagers. PDF-Export is used on your own risk. $w2lConfig['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.6 $w2lConfig['command'] = 'pdflatex -interaction=nonstopmode Main.tex'; $w2lConfig['repeat'] = 3; $w2lConfig['output_format'] = 'pdf'; // 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. $w2lConfig['allowed_ns'] = array(NS_MAIN);

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

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

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

$w2lConfig['enable_geshi'] = true; $w2lConfig['enable_archive'] = true;

$w2lConfig['temp_folder']   = $w2lConfig['url'].'/tmp/'; $w2lConfig['archive_folder'] = $w2lConfig['url'].'/archive/';

$w2lConfig['autotemplate_docclass'] = 'scrartcl';