Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Use ref in reviewimageref. Fix #67

  • Loading branch information...
commit a1f9e4eff7d77c8c4b50e6518d95fde275b1ed64 1 parent 16f7a01
Masanori Kado authored

Showing 2 changed files with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +1 1  lib/review/latexbuilder.rb
  2. +1 1  lib/review/review.tex.erb
2  lib/review/latexbuilder.rb
@@ -545,7 +545,7 @@ def inline_table(id)
545 545
546 546 def inline_img(id)
547 547 chapter, id = extract_chapter_id(id)
548   - macro('reviewimageref', "#{chapter.number}.#{chapter.image(id).number}")
  548 + macro('reviewimageref', image_label(id))
549 549 end
550 550
551 551 def footnote(id, content)
2  lib/review/review.tex.erb
@@ -102,7 +102,7 @@
102 102 \begin{center}#1\end{center}}
103 103
104 104 \newcommand{\reviewimageref}[1]{%
105   - 図 #1}
  105 + 図 \ref{#1}}
106 106 \newcommand{\reviewtableref}[1]{%
107 107 表 #1}
108 108 \newcommand{\reviewlistref}[1]{%

0 comments on commit a1f9e4e

Please sign in to comment.
Something went wrong with that request. Please try again.