This is my yasnippet template for use when building an org-mode file which will be exported into a'.tex' file and then you can use my 'pdfbuild' script to convert the latex file into a PDF file with no code lines to be entered, just follow the on-screen prompts.

# -*- mode: snippet -*-
# name: org2latex
# key: org2latex
# --
#+TITLE: foobar
#+LaTeX_HEADER: \usepackage[utf8]{inputenc}
#+LaTeX_HEADER: \usepackage[T1]{fontenc} 
#+LaTeX_HEADER: \usepackage{palatino}
#+LaTeX_HEADER: \usepackage{fixltx2e}
#+latex_header: \usepackage[backend=biber,style=philosophy-modern,doi=true,hyperref=true,backref=true,backrefstyle=two,date=year,maxcitenames=3]{biblatex}
#+LATEX_HEADER: \addbibresource{~/foo/foo/foo.bib}
#+LATEX_HEADER: \usepackage{makeidx}
#+latex_header: \makeindex
#+latex_header: \usepackage[acronym]{glossaries}
#+latex_header: \makeglossaries
#+latex_header: \usepackage[unhide]{todo}
#+latex_header: \usepackage{everypage}
#+latex_header: \usepackage{draftwatermark}
#+latex_header: \usepackage{hyperref}
#+latex_header: \hypersetup{colorlinks,linkcolor={red},citecolor={magenta},urlcolor={blue}}
# #+options: num:nil

#+OPTIONS: toc:2



/foo/ Your main text goes here /foo/

'glos' is your glossary file, and 'acro' is your acronyms file, and 'bib' is your biblatex references

'foo.glos' ;; needs to be a proper latex glossary file
'foo.acro' ;; needs to be a proper latex acronym file
'foo.bib' ;; needs to be a proper latex bib file, I'm using 'JabRef' for it

This file will accept a 'cite:foo' for biblatex references, and also '\gls{foo}' for glossary and
acronym entries, and '\index{foo}' for index entries.

You *must* give the complete path of your 'foo.bib' file as it sets up where every other file can be

This works with a complete setup of 'TexLive 2015'. 

\todo{This is how your 'TODO' items should appear}













comments powered by Disqus
tp://"> launchers
  • libreoffice
  • linux
  • LXDE
  • management
  • menus
  • mpd
  • music
  • obnam
  • org-mode
  • org2blog
  • passwords
  • pelican
  • productivity
  • script
  • scripts
  • series
  • software
  • squeeze
  • tex
  • todo lists
  • troubleshooting
  • truecrypt
  • tweaks
  • updated
  • user
  • wheezy
  • writing
  • yasnippet
  • Series