Git Product home page Git Product logo

miczflor / latex-theme4pdf Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 1.0 3.89 MB

This set of LaTeX book templates is aimed at making automated PDFs easier. All variables regarding metadata, paper size, themes are saved in one seperate .tex file. The master LaTeX template will read this file and change the book accordingly (e.g. build a colophon based on available metadata).

License: GNU General Public License v3.0

TeX 100.00%

latex-theme4pdf's Introduction

LaTeX-Theme4PDF

This set of LaTeX book templates is aimed at making automated PDFs easier. All variables regarding metadata, paper size, themes are saved in one seperate .tex file. The master LaTeX template will read this file and change the book accordingly (e.g. build a colophon based on available metadata).

What is this repository for?

  • This set of scripts is meant to make the creation of a print PDF easy, using LaTeX without having to write LaTeX.
  • This is like a template abstraction for LaTeX, seperating business logic and presentation logis. All content comes from the outside, all the PDF design from these files.
  • The set of .tex files is structured to read one config file (also .tex) and then adjust metadata, design and front matter, table of contents, etc. accordingly.

How to use this?

  • Take a look at the existing metadata file BookConfig/variables.tex. Create this file from your application.
  • Inside folder _content/ the three files AAfrontmatter.tex, AAmainmatter.tex, AAbackmatter.tex are the content in LaTex (for details on e.g. themes and images see below).
  • run 'pdflatex book_master.tex' to create a PDF.

What do the files and folders mean?

  • book_master.tex This is the main file, like the index.html for the book. In the spirit of this project, you should NOT edit this document. Content and formatting are elsewhere to be added.
  • _content folder/ This folder is your content, your book. Dump all your content here. The main file book_master.tex expecty the following three files (they can be empty, but they must exist):
    • _content/AAfrontmatter.tex Containing content like the introduction BEFORE the actual page counting starts.
    • _content/AAmainmatter.tex This is the main content, all the chapters of the book.
    • _content/AAbackmatter.tex Here are e.g. the epilog or appendix information.
  • BookConfig/variables.tex You can change this file, in fact you should. This is the file containing all the metadata for the frontmatter and relevant information about the styling (page size, theme).
  • Assets/ Similar to a website folder structure, this folder contains all media and the like which are needed by the themes to make the book pretty. Like EPS files for the chapter styling.
  • LaTeX/ This folder contains LaTeX scripts which are used to style the book. For example:
    • LaTeX/figure_snippet.tex This file contains the LaTeX code which will include the images in the final PDF. You don't need to write that part of LaTeX in your _content files (see below for details on including images).
    • LaTeX/figure_pagestyle.tex This file contains different kinds of styling for header and footer. Which one is applied is set in the theme (more on that later).
  • LaTeX/themes/ Here are the themes. Which theme to use for the book is specified in BookConfig/variables.tex. The folder name inside the themes folder is the name of the theme that needs to be added in the file BookConfig/variables.tex.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.