aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2012-04-21 09:57:45 -0700
committerJohn MacFarlane <fiddlosopher@gmail.com>2012-04-21 09:59:21 -0700
commitc819cf2149b8e0248a133ac5e40c8d4eaca7fc76 (patch)
tree99e25919aec11cd4ee4b0133069990f56f8fae46
parentbf0b37d7eac0df9ba39fe07df18b3e37be36e3db (diff)
downloadpandoc-c819cf2149b8e0248a133ac5e40c8d4eaca7fc76.tar.gz
LaTeX and Beamer: Use fixltx2e package for \textsubscript.
-rw-r--r--default.beamer4
-rw-r--r--default.latex4
2 files changed, 2 insertions, 6 deletions
diff --git a/default.beamer b/default.beamer
index b8d1b8fe0..fffd02d39 100644
--- a/default.beamer
+++ b/default.beamer
@@ -7,6 +7,7 @@ $if(colortheme)$
$endif$
\usepackage{amssymb,amsmath}
\usepackage{ifxetex,ifluatex}
+\usepackage{fixltx2e} % provides \textsubscript
\ifxetex
\usepackage{fontspec,xltxtra,xunicode}
\defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
@@ -64,9 +65,6 @@ $if(strikeout)$
% avoid problems with \sout in headers with hyperref:
\pdfstringdefDisableCommands{\renewcommand{\sout}{}}
$endif$
-$if(subscript)$
-\newcommand{\textsubscr}[1]{\ensuremath{_{\scriptsize\textrm{#1}}}}
-$endif$
\setlength{\parindent}{0pt}
\setlength{\parskip}{6pt plus 2pt minus 1pt}
\setlength{\emergencystretch}{3em} % prevent overfull lines
diff --git a/default.latex b/default.latex
index f181ee24a..23fb95026 100644
--- a/default.latex
+++ b/default.latex
@@ -1,6 +1,7 @@
\documentclass[$if(fontsize)$$fontsize$,$endif$$if(lang)$$lang$,$endif$]{$documentclass$}
\usepackage{amssymb,amsmath}
\usepackage{ifxetex,ifluatex}
+\usepackage{fixltx2e} % provides \textsubscript
\ifxetex
\usepackage{fontspec,xltxtra,xunicode}
\defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
@@ -117,9 +118,6 @@ $if(strikeout)$
% avoid problems with \sout in headers with hyperref:
\pdfstringdefDisableCommands{\renewcommand{\sout}{}}
$endif$
-$if(subscript)$
-\newcommand{\textsubscr}[1]{\ensuremath{_{\scriptsize\textrm{#1}}}}
-$endif$
\setlength{\parindent}{0pt}
\setlength{\parskip}{6pt plus 2pt minus 1pt}
\setlength{\emergencystretch}{3em} % prevent overfull lines