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