Skip to content

Commit

Permalink
Option footnote_nr is now supported in the LaTeX converter
Browse files Browse the repository at this point in the history
  • Loading branch information
gettalong committed Sep 12, 2014
1 parent 973773b commit 2a3af53
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions data/kramdown/document.latex
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ encmap = {
<% end %>
<% end %>

\addtocounter{footnote}{<%= @converter.options[:footnote_nr] - 1 %>}

\hypersetup{colorlinks=true,urlcolor=blue}

\begin{document}
Expand Down
2 changes: 0 additions & 2 deletions lib/kramdown/converter/latex.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ class Latex < Base
# Initialize the LaTeX converter with the +root+ element and the conversion +options+.
def initialize(root, options)
super
#TODO: set the footnote counter at the beginning of the document
@options[:footnote_nr]
@data[:packages] = Set.new
end

Expand Down

0 comments on commit 2a3af53

Please sign in to comment.