Extension:Wiki2LaTeX/Development/w2lDefaultConfig.php

From MediaWiki.org
Jump to: navigation, search
<?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:<br/>';
        $msg .= '<tt>require_once( $IP."/extensions/path_to_Wiki2LaTeX_files/wiki2latex.php" );</tt>';
        echo $msg;
        exit( 1 );
}

// These tell w2l about the path to tmp and archive folders from Mediawiki-root (not necessarily a public html-root-folder)
$w2lConfig['path-tmp']       = '/extensions/w2l/tmp/';     // ==> http://example.com/path_to_mw/extensions/w2l/tmp/
$w2lConfig['path-archive']   = '/extensions/w2l/archive/'; // ==> http://example.com/path_to_mw/extensions/w2l/archive/

$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['autotemplate_docclass'] = 'scrartcl';
Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox