-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathw2lDefaultConfig.php
executable file
·75 lines (59 loc) · 2.3 KB
/
w2lDefaultConfig.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<?php
/*
* File: w2lDefaultConfig.php
*
* Purpose:
* Contains default settings. All settings can be changed in w2lConfig.php
* Do NOT edit this file. Changes in this file get overwritten at any update.
* Any custom settings should go into w2lConfig.php (or rename w2lConfig.sample.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 );
}
// Caution: pdfexport only works by using templates. These are described on the website.
// PDF-Export is used on your own risk.
$w2lConfig['pdfexport'] = true;
// 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;
// Adding some default extension-tags:
include_once('contrib/math.php');
include_once('contrib/pre.php');
// Default Values used by form:
$w2lConfig['default_template'] = 'auto';
$w2lConfig['docclass'] = 'article';
/**
* $w2lConfig['process_curly_braces'] values:
*
*'0': remove everything between curly braces
*'1': do nothing
*'2': process them ((Wiki2LaTeXParser))
*/
$w2lConfig['process_curly_braces'] = '2';
// This command should work. Before your try to enable pdfexport, please try this
// command on your local shell.
$w2lConfig['ltx_command'] = 'pdflatex --shell-escape -interaction=batchmode %file%';
$w2lConfig['ltx_sort'] = 'makeindex %file%'; // unused (?)
$w2lConfig['ltx_bibtex'] = 'bibtex %file%'; // unused
/**
* $w2lConfig['ltx_repeat'] sets how many times the compilation of the LaTeX file is repeated.
*/
$w2lConfig['ltx_repeat'] = 3;
$w2lConfig['auto_clear_tempfolder'] = false;
/**
* Location of default templates.
*/
$w2lConfig['magic_template'] = 'w2lMagicTemplate.php';
$w2lConfig['kindle_template'] = 'w2lKindleTemplate.php';
$w2lConfig['div'] = array ( );
$w2lConfig['span'] = array ( );