[gnome-latex: 134/205] Templates: create a few default templates



commit 7e75d799e9ec48adfd005ab839cb8d2a45392530
Author: Sébastien Wilmet <sebastien wilmet gmail com>
Date:   Thu Dec 10 18:10:18 2009 +0100

    Templates: create a few default templates
    
    The templates are stored in the templates directory. Here there are only
    templates for the English language, but later there will be
    article-fr.tex, etc for the French language and so on.

 TODO                     |  4 ++--
 templates/article-en.tex | 19 +++++++++++++++++++
 templates/book-en.tex    | 16 ++++++++++++++++
 templates/letter-en.tex  | 24 ++++++++++++++++++++++++
 templates/report-en.tex  | 19 +++++++++++++++++++
 5 files changed, 80 insertions(+), 2 deletions(-)
---
diff --git a/TODO b/TODO
index e25cdf2..63991ab 100644
--- a/TODO
+++ b/TODO
@@ -1,11 +1,11 @@
 TODO LaTeXila
 
 [-] Templates
-       - create a few default templates
+       x create a few default templates
        - on the action "new file", possibility to select a template
        - possibility to create new templates
        - possibility to delete templates (not the defaults)
 
 [-] BibTeX support
 
-[x] search and replace like the Goto Line (under the source view)
+[-] toolbars: possibility to put the edit toolbar on the right of the first toolbar instead of bottom
diff --git a/templates/article-en.tex b/templates/article-en.tex
new file mode 100644
index 0000000..8c60b83
--- /dev/null
+++ b/templates/article-en.tex
@@ -0,0 +1,19 @@
+\documentclass[a4paper,11pt]{article}
+\usepackage[T1]{fontenc}
+\usepackage[utf8]{inputenc}
+\usepackage{lmodern}
+
+\title{}
+\author{}
+
+\begin{document}
+
+\maketitle
+\tableofcontents
+
+\begin{abstract}
+\end{abstract}
+
+\section{}
+
+\end{document}
\ No newline at end of file
diff --git a/templates/book-en.tex b/templates/book-en.tex
new file mode 100644
index 0000000..782fec0
--- /dev/null
+++ b/templates/book-en.tex
@@ -0,0 +1,16 @@
+\documentclass[a4paper,11pt]{book}
+\usepackage[T1]{fontenc}
+\usepackage[utf8]{inputenc}
+\usepackage{lmodern}
+
+\title{}
+\author{}
+
+\begin{document}
+
+\maketitle
+\tableofcontents
+
+\chapter{}
+
+\end{document}
\ No newline at end of file
diff --git a/templates/letter-en.tex b/templates/letter-en.tex
new file mode 100644
index 0000000..f68d50b
--- /dev/null
+++ b/templates/letter-en.tex
@@ -0,0 +1,24 @@
+\documentclass[a4paper,11pt]{letter}
+\usepackage[T1]{fontenc}
+\usepackage[utf8]{inputenc}
+\usepackage{lmodern}
+
+\address{Your name\\Your address\\Your phone number}
+\signature{Your name}
+
+\begin{document}
+
+\begin{letter}{Destination\\Address of the destination\\Phone number of the destination}
+       
+\opening{Dear Sir,}
+
+% corps of the letter
+
+\closing{Yours sincerely,}
+
+%\cc{Other destination}
+%\ps{PS: PostScriptum}
+%\encl{Enclosures}
+
+\end{letter}
+\end{document}
\ No newline at end of file
diff --git a/templates/report-en.tex b/templates/report-en.tex
new file mode 100644
index 0000000..0416b79
--- /dev/null
+++ b/templates/report-en.tex
@@ -0,0 +1,19 @@
+\documentclass[a4paper,11pt]{report}
+\usepackage[T1]{fontenc}
+\usepackage[utf8]{inputenc}
+\usepackage{lmodern}
+
+\title{}
+\author{}
+
+\begin{document}
+
+\maketitle
+\tableofcontents
+
+\begin{abstract}
+\end{abstract}
+
+\chapter{}
+
+\end{document}
\ No newline at end of file


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]