Skip to content

Commit

Permalink
Fixed some errors in PDF export:
Browse files Browse the repository at this point in the history
* Added dimensions to let trine package in @first_eagle
* Removed superfluous \makebox command. We already have \mbox
  • Loading branch information
jhund committed Jun 25, 2016
1 parent 083e4d2 commit 858073b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/kramdown/converter/latex_repositext/document_mixin.rb
Expand Up @@ -111,7 +111,7 @@ def wrap_body_in_template(latex_body, document_title_plain_text, document_title_
@additional_footer_text = escape_latex_text(@options[:additional_footer_text])
@body = latex_body
@date_code = date_code.capitalize
@first_eagle = @options[:first_eagle_override] || "{\\lettrine[lines=2,lraise=0.355,findent=8.3,nindent=0]{\\textscale{0.465}}\\rtmainfont}"
@first_eagle = @options[:first_eagle_override] || "{\\lettrine[lines=2,lraise=0.355,findent=8.3pt,nindent=0pt]{\\textscale{0.465}}\\rtmainfont}"
@font_leading = @options[:font_leading_override] || 11.8
@font_name = @options[:font_name_override] || (@options[:is_primary_repo] ? 'V-Calisto-St' : 'V-Excelsior LT Std')
@font_size = @options[:font_size_override] || 11
Expand Down
2 changes: 1 addition & 1 deletion templates/latex_for_pdf.erb
Expand Up @@ -156,7 +156,7 @@
{\textscale{0.7}{#1}}
% command to render last eagle
\newcommand{\RtLastEagle}
{\hspace*{\fill}~\mbox\makebox{\raisebox{-0.5ex}}\penalty -9999}
{\hspace*{\fill}~\mbox{\raisebox{-0.5ex}}\penalty -9999}

% enviroment to render first eagle
\newenvironment{RtFirstEagle}
Expand Down

0 comments on commit 858073b

Please sign in to comment.