quotation symbol font
This commit is contained in:
parent
8681affc34
commit
dbb2bbef0b
@ -538,13 +538,13 @@
|
||||
% font selection
|
||||
% https://tex.stackexchange.com/questions/25249/how-do-i-use-a-particular-font-for-a-small-section-of-text-in-my-document
|
||||
% pbk , phv, pnc, qcs
|
||||
\newcommand{\openquote}[1][4]{\tikz[baseline]{%
|
||||
\newcommand{\openquote}[2]{\tikz[baseline]{%
|
||||
\useasboundingbox (0, 0) rectangle (1ex, 1.7ex);
|
||||
\node[scale=#1, xshift=-0.45ex, yshift=-0.75ex] at (current bounding box.north east) {\fontfamily{pbk}\selectfont\textquotedblleft};
|
||||
\node[scale=#2, xshift=-0.45ex, yshift=-0.75ex] at (current bounding box.north east) {\usebeamerfont*{#1 symbol}\textquotedblleft};
|
||||
}}
|
||||
\newcommand{\closequote}[1][4]{\tikz[baseline]{%
|
||||
\newcommand{\closequote}[2]{\tikz[baseline]{%
|
||||
\useasboundingbox (0, 0) rectangle (1ex, 1.7ex);
|
||||
\node[scale=#1, xshift=-0.45ex, yshift=-0.75ex] at (current bounding box.north east) {\fontfamily{pbk}\selectfont\textquotedblright};
|
||||
\node[scale=#2, xshift=-0.45ex, yshift=-0.75ex] at (current bounding box.north east) {\usebeamerfont*{#1 symbol}\textquotedblright};
|
||||
}}
|
||||
|
||||
\def\insertquotesource{}
|
||||
@ -578,8 +578,8 @@
|
||||
% quotation environment
|
||||
|
||||
\defbeamertemplate{quotation symbol}{default}{}
|
||||
\defbeamertemplate{quotation symbol}{openquote}[1][4]{\usebeamercolor[fg]{quotation symbol}\openquote[#1]}
|
||||
\defbeamertemplate{quotation symbol}{closequote}[1][4]{\usebeamercolor[fg]{quotation symbol}\closequote[#1]}
|
||||
\defbeamertemplate{quotation symbol}{openquote}[1][4]{\usebeamercolor[fg]{quotation symbol}\openquote{quotation}{#1}}
|
||||
\defbeamertemplate{quotation symbol}{closequote}[1][4]{\usebeamercolor[fg]{quotation symbol}\closequote{quotation}{#1}}
|
||||
|
||||
\setbeamertemplate{quotation symbol}[openquote][4] % default, openquote, closequote
|
||||
|
||||
@ -652,8 +652,8 @@
|
||||
% quote environment:
|
||||
|
||||
\defbeamertemplate{quote symbol}{default}{}
|
||||
\defbeamertemplate{quote symbol}{openquote}[1][4]{{\usebeamercolor[fg]{quote symbol}\openquote[#1]}}
|
||||
\defbeamertemplate{quote symbol}{closequote}[1][4]{{\usebeamercolor[fg]{quote symbol}\closequote[#1]}}
|
||||
\defbeamertemplate{quote symbol}{openquote}[1][4]{{\usebeamercolor[fg]{quote symbol}\openquote{quote}{#1}}}
|
||||
\defbeamertemplate{quote symbol}{closequote}[1][4]{{\usebeamercolor[fg]{quote symbol}\closequote{quote}{#1}}}
|
||||
|
||||
\setbeamertemplate{quote symbol}[openquote][4] % default, openquote, closequote
|
||||
|
||||
@ -968,9 +968,11 @@
|
||||
\setbeamerfont{message item}{parent={normal text}, size=\large}
|
||||
|
||||
\setbeamerfont{quotation}{shape=\slshape}
|
||||
\setbeamerfont{quotation symbol}{family*=pbk} % pbk , phv, pnc, qcs
|
||||
\setbeamerfont{quotation source}{parent={normal text}, size=\small, shape=\upshape}
|
||||
|
||||
\setbeamerfont{quote}{shape=\slshape}
|
||||
\setbeamerfont{quote symbol}{family*=pbk} % pbk , phv, pnc, qcs
|
||||
\setbeamerfont{quote source}{parent={normal text}, size=\small, shape=\upshape}
|
||||
|
||||
\setbeamerfont{verse}{shape=\itshape}
|
||||
|
@ -100,6 +100,8 @@
|
||||
\setbeamerfont{footline}{size=\tiny}
|
||||
\setbeamerfont{message}{size=\normalsize, series=\bfseries}
|
||||
\setbeamerfont{message item}{parent={normal text}, size=\normalsize, series=\bfseries}
|
||||
\setbeamerfont{quotation symbol}{family*=pbk} % pbk , phv, pnc, qcs
|
||||
\setbeamerfont{quote symbol}{family*=pbk} % pbk , phv, pnc, qcs
|
||||
|
||||
\usecolortheme{ut}
|
||||
|
||||
|
@ -386,17 +386,25 @@
|
||||
\texttt{\textbackslash setbeamertemplate\{quote symbol\}[#1]}
|
||||
\end{small}
|
||||
\quotedemo
|
||||
\setbeamertemplate{quote symbol}[closequote]
|
||||
}
|
||||
|
||||
\newcommand{\quotesymbolfontdemo}[1]{
|
||||
\setbeamerfont{quote symbol}{family*=#1}
|
||||
\begin{small}
|
||||
\texttt{\textbackslash setbeamerfont\{quote symbol\}\{family*=#1\}}
|
||||
\end{small}
|
||||
\quotedemo
|
||||
\setbeamerfont{quote symbol}{family*=pbk}
|
||||
}
|
||||
|
||||
\begin{frame}[fragile]{Quote symbol settings}
|
||||
\quotesymboldemo{default}
|
||||
\quotesymboldemo{openquote}
|
||||
\quotesymboldemo{closequote}
|
||||
\begin{alertblock}{}
|
||||
In the template names, replace \texttt{quote} by
|
||||
\texttt{quotation} to apply the same changes to the
|
||||
\texttt{quotation} environment.
|
||||
\end{alertblock}
|
||||
\quotesymbolfontdemo{phv}
|
||||
\quotesymbolfontdemo{pnc}
|
||||
\quotesymbolfontdemo{qcs}
|
||||
\end{frame}
|
||||
|
||||
\newcommand{\quotesourcedemo}[1]{
|
||||
|
Loading…
Reference in New Issue
Block a user