Add a file template for LaTeX (patch by Herbert Voss, thanks).

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3212 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Enrico Tröger 2008-11-11 19:50:40 +00:00
parent 321b460d10
commit 023cf3f325
4 changed files with 17 additions and 2 deletions

View File

@ -17,6 +17,8 @@
* doc/Doxyfile.in, src/plugindata.h:
Remove obsolete tag in Doxyfile.in.
Fix doxygen warnings for undocumented enum in plugindata.h.
* THANKS, src/about.c, src/templates.c:
Add a file template for LaTeX (patch by Herbert Voss, thanks).
2008-11-11 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>

1
THANKS
View File

@ -52,6 +52,7 @@ Andrew Rowland <weibullguy(at)charter(dot)net> - R filetype patch
Bronisław Białek <after89(at)gmail(dot)com> - CSS parser update
Roland Baudin <roland(dot)baudin(at)thalesaleniaspace(dot)com> - Matlab filetype patch
Conrad Steenberg <gnocci-man(at)users(dot)sourceforge(dot)net> - symbol tree patch
Herbert Voss <voss(at)perce(dot)de> - LaTeX file template
Translators:
------------

View File

@ -80,9 +80,9 @@ static const gint prev_translators_len = G_N_ELEMENTS(prev_translators);
static const gchar *contributors =
"Alexander Rodin, Andrew Rowland, Anh Phạm, blackdog, Bo Lorentsen, Bob Doan, Bronisław Białek, Catalin Marinas, "
"Christoph Berg, Colomban Wendling, Conrad Steenberg, Daniel Richard G., Dave Moore, Dirk Weber, Felipe Pena, François Cami, "
"Giuseppe Torelli, Guillaume Hoffmann, Jason Oster, Jean-François Wauthy, Jeff Pohlmeyer, "
"Giuseppe Torelli, Guillaume Hoffmann, Herbert Voss, Jason Oster, Jean-François Wauthy, Jeff Pohlmeyer, "
"John Gabriele, Josef Whiter, Kevin Ellwood, Kristoffer A. Tjernås, Marko Peric, Matti Mårds, "
"Peter Strand, Pierre Joye, Rob van der Linde, Robert McGinley, S Jagannathan, Saleem Abdulrasool, "
"Peter Strand, Pierre Joye, Rob van der Linde, Robert McGinley, Roland Baudin, S Jagannathan, Saleem Abdulrasool, "
"Sebastian Kraft, Shiv, Slava Semushin, Stefan Oltmanns, Tamim, Tomás Vírseda, Yura Siamashka";

View File

@ -226,6 +226,17 @@ def main():\n\
if __name__ == '__main__': main()\n\
";
static const gchar templates_filetype_latex[] = "\
\\documentclass[a4paper]{article}\n\
\\usepackage[T1]{fontenc}\n\
\\usepackage[utf8]{inputenc}\n\
\\usepackage{lmodern}\n\
\\usepackage{babel}\n\
\\begin{document}\n\
\n\
\\end{document}\n\
";
static gchar *templates[GEANY_MAX_TEMPLATES];
static gchar *ft_templates[GEANY_MAX_BUILT_IN_FILETYPES] = {NULL};
@ -306,6 +317,7 @@ static void init_ft_templates(const gchar *year, const gchar *date, const gchar
case GEANY_FILETYPES_HTML: TEMPLATES_CREATE_FILE(fname, templates_filetype_html); break;
case GEANY_FILETYPES_RUBY: TEMPLATES_CREATE_FILE(fname, templates_filetype_ruby); break;
case GEANY_FILETYPES_PYTHON: TEMPLATES_CREATE_FILE(fname, templates_filetype_python); break;
case GEANY_FILETYPES_LATEX: TEMPLATES_CREATE_FILE(fname, templates_filetype_latex); break;
default: break;
}
TEMPLATES_READ_FILE(fname, &ft_templates[ft_id]);