From 8598b2361228a352ffe54446a8fcc27a02eecd53 Mon Sep 17 00:00:00 2001 From: orangain Date: Sat, 25 Apr 2015 20:49:31 +0900 Subject: [PATCH] Fix missing listing name when using syntax highlighting MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When using syntax highlighting in review-pdfmaker, a caption of list does not have a prefix such as 'リスト' or 'List' etc. Actual caption: 1.1 Sample Code Expected caption: List 1.1 Sample Code This is because the value of lstlistingname is always empty. --- lib/review/layout.tex.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/review/layout.tex.erb b/lib/review/layout.tex.erb index 6f4086560..431673556 100644 --- a/lib/review/layout.tex.erb +++ b/lib/review/layout.tex.erb @@ -52,7 +52,7 @@ <% else %> \usepackage{listings} <% end %> -\renewcommand{\lstlistingname}{<%I18n.t("list")%>} +\renewcommand{\lstlistingname}{<%= I18n.t("list")%>} \lstset{% breaklines=true,% breakautoindent=false,%