lib/softcover/book_template/latex_styles/softcover.sty in softcover-1.5.4 vs lib/softcover/book_template/latex_styles/softcover.sty in softcover-1.5.5
- old
+ new
@@ -163,12 +163,12 @@
\newunicodechar{↓}{\ensuremath{\downarrow}}
\newunicodechar{⇥}{\tabkey}
\newunicodechar{↵}{\returnkey}
\newunicodechar{⌫}{\delkey}
\newunicodechar{␣}{\textvisiblespace}
-\newunicodechar{—}{---}
-\newunicodechar{–}{--}
+\newunicodechar{—}{\textemdash}
+\newunicodechar{–}{\textendash}
\newunicodechar{™}{\texttrademark}
\newunicodechar{©}{\copyright}
\newunicodechar{®}{\textregistered}
\newunicodechar{…}{\ldots}
\newunicodechar{£}{\pounds}
@@ -188,10 +188,12 @@
\newunicodechar{Ā}{\={A}}
\newunicodechar{Ē}{\={E}}
\newunicodechar{Ī}{\={I}}
\newunicodechar{Ō}{\={O}}
\newunicodechar{Ū}{\={U}}
+\newunicodechar{«}{\guillemotleft}
+\newunicodechar{»}{\guillemotright}
\usepackage{latex_styles/language_customization}
% Fix quotes in code environments.
% Provides "upquote.sty" functionality compatible with the latest Pygments.
@@ -202,9 +204,18 @@
\g@addto@macro\@noligs
{\let`\textasciigrave
\let'\textquotesingle
\let\PYZsq\textquotesingle}
\endgroup
+
+% Add smallcaps
+\usepackage{fontspec}
+\setmainfont[ItalicFont = Times Italic,
+ BoldFont = Times Bold,
+ BoldItalicFont = Times Bold Italic,
+ SmallCapsFont=Bodoni 72 Smallcaps]
+ {Times}
+\setmonofont{Courier}
% Include custom commands.
\usepackage{latex_styles/custom}
\usepackage{latex_styles/custom_pdf}