Permalink
Browse files

Merge pull request #315 from progit/fix_texttt

Set the typewrite text font size in latex template
  • Loading branch information...
jnavila committed Nov 30, 2012
2 parents a176e7c + ebcbd2a commit 60028bee90692faa4093293576c3fa226ba163ef
Showing with 2 additions and 8 deletions.
  1. +1 −7 latex/makepdf
  2. +1 −1 latex/template.tex
View
@@ -101,13 +101,7 @@ def post_pandoc(string, config)
s /\sx\s10\\\^\{\}(\d+)/, '\e{\1}'
# Convert inline-verbatims into \texttt (which is able to wrap)
- s /\\verb(\W)(.*?)\1/ do
- "{\\texttt{#{verbatim_sanitize($2)}}}"
- end
-
- # Ensure monospaced stuff is in a smaller font
- s /(\\verb(\W).*?\2)/, '{\footnotesize\1}'
- s /(\\begin\{verbatim\}.*?\\end\{verbatim\})/m, '{\footnotesize\1}'
+ s /\\verb(\W)(.*?)\1/ ,'\\texttt{\2}'
# Make Tables 2-1..2-3 actual tables
s /\\begin\{verbatim\}\n(([^\t\n]+\t.*?\n)+)(([^\t\n]*)\n)?\\end\{verbatim\}/ do
View
@@ -17,7 +17,7 @@
\definecolor{shadecolor}{gray}{0.90}
\setromanfont[Mapping=tex-text,BoldFont=<%= config['bold'] %>]{<%= config['font'] %>}
-\setmonofont{<%= config['mono'] %>}
+\setmonofont[Scale=.85]{<%= config['mono'] %>}
\XeTeXlinebreaklocale{<%= lang %>}
<%= config['langrule'] %>

0 comments on commit 60028be

Please sign in to comment.