Commit d7fb3c58 authored by Filippo Leonardi's avatar Filippo Leonardi

Use os path join

parent cc4c8e19
......@@ -62,12 +62,29 @@
% Define appearance of C++ code
\lstdefinestyle{CPP}{
stepnumber=1,
language=C++,
mathescape=false,
alsoletter={\\,/,*},
morekeywords={\\brief,\\return,\\param, Dune, Eigen, MatrixXd, VectorXd, assert, Zero},
literate={\\f}{}0,
basicstyle={\ttfamily \small },
breaklines=true,
stepnumber=1,
keywordstyle=\bfseries,
numbers=left,
numberstyle=\color{gray},
postbreak=\mbox{{\color{gray}$\cdots$}},
postbreak=\mbox{{\color{gray}$\cdots$}},
prebreak=\mbox{\tiny$\searrow$},
prebreak=\mbox{\tiny$\searrow$},
showstringspaces=false,
stringstyle=\color{gray},
stepnumber=1,
stepnumber=1,
tabsize=2,
xleftmargin=4.2pt,
stepnumber=1,
}
\lstdefinestyle{MATLAB}{
......
......@@ -68,7 +68,7 @@ style_names = {'Python script': 'PY',
invalid_filenames = [
lambda x: bool(x.endswith('~')), # Autosaved junk
lambda x: x.find('#') != -1, # ???
lambda x: bool(x.endswith('.autosave')), # Eclipse autosave file ignored
#lambda x: bool(x.endswith('.autosave')), # Eclipse autosave file ignored
lambda x: bool(x.startswith('.')), # Hidden files 8blame Eclipse)
lambda x: bool('CMake' in x), # CMake junk
lambda x: bool('cmake_install' in x), # CMake junk
......@@ -161,7 +161,8 @@ def tex_figure(dd, dirname):
return texstr
def modified_lines_option(filename, template_dir):
template = template_dir + "/" + filename
template = os.path.join(template_dir, filename)
#print(template)
cmd = ['diff', '--unchanged-line-format=',
'--old-line-format=',
"--new-line-format=%dn ",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment