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
# #+options: num:nil

#+OPTIONS: toc:2

\clearpage
\renewcommand{\thesection}{}
\renewcommand{\thesubsection}{}
\renewcommand{\thesubsubsection}{}

\input{foo.glos}
\input{foo.acro}

/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
found.

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

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

\clearpage

\printglossaries

\clearpage

\printbibliography

\clearpage