Skip to content

Commit

Permalink
Embed version in LaTeX source
Browse files Browse the repository at this point in the history
This avoids bug with some LaTeX compilers which have trouble using
\input for files without extension.

Resolves #15.
  • Loading branch information
mavam committed Mar 12, 2016
1 parent 24fdba3 commit 0b30e58
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
1 change: 0 additions & 1 deletion VERSION

This file was deleted.

11 changes: 9 additions & 2 deletions stat-cookbook.tex
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,15 @@
\usepackage{url}
\usepackage{xspace}

% Define document version.
\newcommand{\version}{\input{VERSION}}
% Document version, MAJOR.MINOR.PATCH. Please change with any modification
% according to semantic versioning practices:
% - The major version changes when adding a new section or topic, or making a
% substantial content change.
% - The minor version changes for non-trivial fixes, corrections, or
% improvements.
% - The patch version changes for trivial fixes, such as typos in text or
% formulas.
\newcommand{\version}{0.2}

% Probability and Statistics LaTeX shortcuts.
\input{probstat}
Expand Down

0 comments on commit 0b30e58

Please sign in to comment.