概括

概括

我正在尝试在我的演示文稿中使用漂亮的大引号,但是存在一些错误,我假设是包冲突,我不知道如何解决这个问题:所以我的 mwe 在这里:

%&latex
\RequirePackage[demo]{graphicx}
\documentclass[xcolor=dvipsnames,hyperref={breaklinks=true},mathserif,10pt]{beamer} 
\usecolortheme[named=RoyalPurple]{structure} 
\useoutertheme{infolines}
\usetheme[height=7mm]{Rochester}
\setbeamertemplate{items}[ball]
\setbeamertemplate{navigation symbols}{}
\usefonttheme{professionalfonts}

\usepackage{amsmath,amssymb,amsthm,amssymb}
\usepackage{mathtools}
\usepackage{bbm}
\usepackage{graphicx}
\usepackage{float}
\usepackage[croatian]{babel}
\usepackage{ucs}
\usepackage[utf8x]{inputenc}
\usepackage{txfonts}
\usepackage{subfigure}
\usepackage{listings}
\usepackage{time}
\usepackage{extarrows}

\usepackage{lmodern}
\usepackage{graphicx}
\usepackage{framed}

\newcommand*\openquote{\makebox(25,-22){\scalebox{5}{``}}}
\newcommand*\closequote{\makebox(25,-22){\scalebox{5}{''}}}

\makeatletter
\newif\if@right
\def\shadequote{\@righttrue\shadequote@i}
\def\shadequote@i{\begin{snugshade}\begin{quote}\openquote}
\def\endshadequote{%
  \if@right\hfill\fi\closequote\end{quote}\end{snugshade}}
\@namedef{shadequote*}{\@rightfalse\shadequote@i}
\@namedef{endshadequote*}{\endshadequote}
\makeatother

%\logo{\includegraphics[width=0.25\textwidth]{logo.eps}}

\title{RANDOM TITLE}
\subtitle{Random subtitle}
\author{John Doe}
\institute[Random institute at random place}
\date{\today}

\begin{document}
\maketitle

\begin{frame}
\frametitle{TOC}
\tableofcontents
\end{frame}

\section{Intro}

\begin{frame}
\frametitle{Intro}
\begin{columns}
    \begin{column}{0.5\textwidth}
        \begin{itemize}
        \item[]
        \flushleft{\includegraphics[width=0.5\textwidth]{elvish.eps}}
        \end{itemize}
    \end{column}
    \begin{column}{0.5\textwidth}
        \begin{shadequote}
        A common mistake that people make when trying to design something completely
        foolproof is to underestimate the ingenuity of complete fools.\par\emph{Douglas Adams}
        \end{shadequote}
    \end{column}
\end{columns}
\end{frame}

\end{document}

基本上,我希望在左侧放置图像,并在其旁边(右侧)放置两个引文。我按照说明进行操作这里,但我想我做错了:\ 我不想在引号下面加任何阴影,所以我省略了这colorlet部分……

所以任何帮助都是有帮助的。

答案1

概括

  • 您不能忽略该部分,因为根据我得到的错误,我认为\colorlet这在的定义中很重要:\shadequote

Package xcolor error: Undefined error 'shadecolor'\end{frame}
  • svgnames对于颜色名称来说,这很重要Azure,因此您可以使用选项xcolor={svgnames, dvipsnames}。或者,如果您不想加载svgnames,请在您的中使用更通用的颜色或它们的组合\colorlet{shadecolor}。如果您不想在引文中使用阴影,请改用\colorlet{shadecolor}{white}。在这种情况下,svgnames可能无法加载。

  • mathserif选项已弃用。请\usefonttheme[onlymath]{serif}改用。

  • 中存在范围问题\institute[Random institute at random place}。我将[其改为}
  • latex->dvips->ps2pdf顺序进行编译。

修订守则

%&latex
\RequirePackage[demo]{graphicx}
\documentclass[xcolor={dvipsnames}
,hyperref={breaklinks=true}
%,mathserif
,10pt]{beamer} 
\colorlet{shadecolor}{blue}
\usefonttheme[onlymath]{serif}
\usecolortheme[named=RoyalPurple]{structure} 
\useoutertheme{infolines}
\usetheme[height=7mm]{Rochester}
\setbeamertemplate{items}[ball]
\setbeamertemplate{navigation symbols}{}
\usefonttheme{professionalfonts}

\usepackage{amsmath,amssymb,amsthm,amssymb}
\usepackage{mathtools}
\usepackage{bbm}
\usepackage{graphicx}
\usepackage{float}
\usepackage[croatian]{babel}
\usepackage{ucs}
\usepackage[utf8x]{inputenc}
\usepackage{txfonts}
\usepackage{subfigure}
\usepackage{listings}
\usepackage{time}
\usepackage{extarrows}

\usepackage{lmodern}
\usepackage{graphicx}
\usepackage{framed}

\newcommand*\openquote{\makebox(25,-22){\scalebox{5}{``}}}
\newcommand*\closequote{\makebox(25,-22){\scalebox{5}{''}}}

\makeatletter
\newif\if@right
\def\shadequote{\@righttrue\shadequote@i}
\def\shadequote@i{\begin{snugshade}\begin{quote}\openquote}
\def\endshadequote{%
  \if@right\hfill\fi\closequote\end{quote}\end{snugshade}}
\@namedef{shadequote*}{\@rightfalse\shadequote@i}
\@namedef{endshadequote*}{\endshadequote}
\makeatother

%\logo{\includegraphics[width=0.25\textwidth]{logo.eps}}

\title{RANDOM TITLE}
\subtitle{Random subtitle}
\author{John Doe}
\institute{Random institute at random place}
\date{\today}

\begin{document}
\maketitle

\begin{frame}
\frametitle{TOC}
\tableofcontents
\end{frame}

\section{Intro}

\begin{frame}
\frametitle{Intro}
\begin{columns}
    \begin{column}{0.5\textwidth}
        \begin{itemize}
        \item[]
        \flushleft{\includegraphics[width=0.5\textwidth]{elvish.eps}}
        \end{itemize}
    \end{column}
    \begin{column}{0.5\textwidth}
        \begin{shadequote}
        A common mistake that people make when trying to design something completely
        foolproof is to underestimate the ingenuity of complete fools.\par\emph{Douglas Adams}
        \end{shadequote}
    \end{column}
\end{columns}
\end{frame}

\end{document}

输出

在此处输入图片描述 在此处输入图片描述 在此处输入图片描述

相关内容