examples/rails-latex-demo/app/views/layouts/application.pdf.erbtex in rails-latex-1.0.14 vs examples/rails-latex-demo/app/views/layouts/application.pdf.erbtex in rails-latex-2.0.0
- old
+ new
@@ -1,11 +1,11 @@
\documentclass[12pt,a4paper,sloppy]{article}
-<% @latex_config={:command => 'pdflatex',:parse_twice => true} # you can override the defaults if you wish; see LatexToPdf#config %>
+<% @latex_config={:command => 'pdflatex',:parse_runs => 2} # you can override the defaults if you wish; see LatexToPdf#config %>
\usepackage{lastpage}
\usepackage{graphics}
\begin{document}
-This document uses \verb|parse_twice| to calculate the last page.
+This document uses \verb|parse_runs = 2| to calculate the last page.
Other defaults can be overridden using \verb|LatexToPdf#config| and \verb|@latex_config|.
<%= yield %>