From 9477a959e5e03542195bcb75bdad4b783bd1ae56 Mon Sep 17 00:00:00 2001 From: wanda4 Date: Tue, 2 Jan 2018 14:32:04 +0900 Subject: [PATCH] enhance to support multi style files --- templates/latex/layout.tex.erb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/templates/latex/layout.tex.erb b/templates/latex/layout.tex.erb index b28a9a65a..7867b3d40 100644 --- a/templates/latex/layout.tex.erb +++ b/templates/latex/layout.tex.erb @@ -249,8 +249,10 @@ } \makeatother -<%- if @config["usepackage"] -%> -<%= @config["usepackage"] %> +<%- if @config["texstyle"] -%> +<%- [@config["texstyle"]].flatten.each do |x| -%> +\usepackage{<%= x %>} +<%- end -%> <%- end -%> <%- if @config["makeindex"] -%> \usepackage{makeidx}