MrModd / Document-Template

LaTeX template for a generic document

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Generic LaTeX template for a document


Copyright (C) 2015 Federico "MrModd" Cosentino (http://mrmodd.it/)

Front cover based on template by Peter Wilson (herries.press@earthlink.net) released under the CC BY-NC-SA 3.0

Original header template by Ted Pavlic (http://www.tedpavlic.com) and downloaded from http://www.latextemplates.com

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 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.


Where you can find what you're looking for

  • index.tex is the first file parsed. Here you can define the language, the packages to include and the document sections.
  • header.tex contains the definitions for authors names, document title and so on. You can also find directives for page margins, header and footer.
  • front.tex build the front page of the document. You can leave it as it is or you can delete some lines. Moreover you should replace the logo image with your own.
  • lang_header.tex you don't need to modify this. It explains how to print code. You can use following commands: \perlcode{source_file}{caption}, \ccode{source_file}{caption}, \cppcode{source_file}{caption}, \javacode{source_file}{caption}, \pythoncode{source_file}{caption}, \bashcode{source_file}{caption}, \xmlcode{source_file}{caption}, \htmlcode{source_file}{caption}.
  • section1.tex to section3.tex are examples of sections. You can remove them, but remember to remove them from inclusion in index.tex too.

How to include images

You should put all images in images folder. All images must be in .png format. You can include an image with command \includegraphics[dimension]{name} where name is the file name without extension. You can change the folder editing \graphicspath{ {images/} } command in index.tex file.

How to include codes

All pieces of codes should be in sources folder. You can recall a source file with commands explained before. When writing file name you should specify its extension. You can change the folder editing \newcommand{\sourcepath}{sources/} command in index.tex file.

How to compile

To produce the .pdf file just use the Makefile: open a terminal and navigate into the document directory, then type make.

Modify at your needs

About

LaTeX template for a generic document

License:GNU General Public License v3.0


Languages

Language:TeX 95.2%Language:Makefile 2.1%Language:Perl 1.2%Language:C 0.9%Language:Shell 0.6%