[5f391e]: mat2doc / mat2docconf.py  Maximize  Restore  History

Download this file

163 lines (107 with data), 3.5 kB

  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
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
# -------------------------------------------
# Global configuration of the mat2doc system
# -------------------------------------------
import localconf
conf=ConfType()
conf.octexec=localconf.octexec
conf.matexec=localconf.matexec
conf.plotengine=localconf.plotengine
conf.root=localconf.userdir+'nw/ltfat/'
conf.bibfile=conf.root+'mat2doc/project'
conf.workdir=localconf.userdir+'publish/'
conf.ignorepars=['a','order','noise']
conf.copyrightplate=conf.root+'mat2doc/copyrightplate'
def mycopyrightfun(self):
vf=file(self.root+'ltfat_version');
v=vf.readline()
vf.close
f=file(self.copyrightplate)
buf=f.readlines()
f.close
copyright=['Copyright (C) 2005-2012 Peter L. Soendergaard.\n','This file is part of LTFAT version '+v]
copyright.extend(buf)
return copyright
conf.copyright=mycopyrightfun
contentsfiles=['Contents','gabor/Contents','fourier/Contents',
'filterbank/Contents','nonstatgab/Contents',
'sigproc/Contents','sparsereg/Contents','auditory/Contents',
'demos/Contents','signals/Contents']
# ------------------------------------------
# Configuration of PHP for Sourceforge
# ------------------------------------------
php=HTMLConf()
php.basetype='html'
php.subdir='ltfathtml/'
php.indexfiles=contentsfiles
# This is the full path, used for php-including files.
php.docroot='/home/groups/l/lt/ltfat/htdocs/doc/'
# This is the usual web-server root for "<a href=" ... > tags.
php.htmlroot='/doc/'
php.hb='<H2>'
php.he='</H2>'
php.fext='.php'
php.head="""<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>The Linear Time-Frequency Analysis Toolbox</title>
<link rel="stylesheet" href="/ltfat.css" type="text/css">
<script type="text/javascript"
src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>
</head>
<body>
<?php ini_set("include_path",".:/home/groups/l/lt/ltfat/htdocs/"); ?>
<?php require("topnav.php");?>
"""
php.foot="""<?php require("footer.php");?>
</body>
</html>"""
php.dryrun=1;
# ------------------------------------------
# Configuration of LaTeX
# ------------------------------------------
tex=TexConf()
tex.basetype='tex'
tex.subdir='toolboxref/'
tex.texfile='toolboxref'
tex.indexfiles=contentsfiles
tex.head="""\documentclass{amsart}
\usepackage{ae}
\usepackage{aecompl}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{graphicx}
\usepackage{hyperref}
\setlength\parskip{\medskipamount}
\setlength\parindent{0pt}
\makeatletter
%\usepackage{babel}
\usepackage{amssymb}
\makeatother
\\begin{document}
\\title{LTFAT Reference manual}
\\author{Peter L. S{\\o}ndergaard}
\\maketitle
\\tableofcontents{}
"""
tex.foot='\\bibliographystyle{abbrv}\n'+ \
'\\bibliography{'+conf.bibfile+'}\n'+ \
"""\end{document}
"""
tex.dryrun=1
tex.dooutput=0
# ------------------------------------------
# Configuration of Matlab
# ------------------------------------------
mat=ConfType()
mat.basetype='mat'
mat.subdir='ltfat/'
mat.checkout='distrib'
# ------------------------------------------
# Configuration of Verification system
# ------------------------------------------
verify=ConfType()
verify.basetype='verify'
verify.targets=['AUTHOR','TESTING','REFERENCE']
verify.notappears=['FIXME','BUG','XXL','XXX']
verify.ignore=["demo_","comp_","assert_","Contents.m","init.m"]

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks