QUT Beamer 模板 (Overleaf)

QUT Beamer 模板 (Overleaf)

我在 Overleaf 中找到了一款相当不错的 beamer 模板。然而,我需要用西班牙语书写,尽管我添加了包\usepackage[spanish]{babel},但书写的结果却不是我想要的:

它应该是 Modelos Atómicos

该项目有一个复杂的 .sty 文件。我试图寻找一些关于如何使用此模板的指南,但没有找到任何东西。以下是 overleaf 上该项​​目的链接:https://www.overleaf.com/read/txpdhmwvkdpp

答案1

因为该项目无法在 Overleaf 中编译。

无需修改前言或 .sty,我能够通过纠正两个框架来获得正确的结果(使用 pdflatex),因为它们包含无法识别的字符inputenc

(1)在和\footnote{If containing text in equations, use $\backslash$mathrm\{\} or $\backslash$text\{\}}}之间。(第 112 行)equationuse

埃

(2)Check definition of Equation~(\ref{eq:vsphere}) in Table~\ref{tab:number} \end{lstlisting}之后Table~\ref{tab:number}

在 Overleaf 中我们可以在第 298 行末尾看到它。

d

A

b

在此处输入图片描述

% !TeX TS-program = pdflatex

\documentclass{beamer}
\usepackage{hyperref}
\usepackage[T1]{fontenc}
\usepackage[spanish]{babel}
\usepackage[utf8]{inputenc}

% Cannot enable in Xelatex
\usepackage{pgfpages}
% \setbeameroption{hide notes} % Only slides
% \setbeameroption{show only notes} % Only notes
% \setbeameroption{show notes on second screen}

% other packages
\usepackage{latexsym,amsmath,xcolor,multicol,booktabs,calligra}
\usepackage{graphicx,listings,stackengine}

%% Enable only in Xelatex
% \usepackage{pstricks}

\author{Presenter}
\title{Modelos atómicos}
\subtitle{Presentation}
\institute [School of Information Systems, QUT] {School of Information Systems\\Queensland University of Technology}
\date{\today}
\usepackage{QUT}

% defs
\def\cmd#1{\texttt{\color{red}\footnotesize $\backslash$#1}}
\def\env#1{\texttt{\color{blue}\footnotesize #1}}
\definecolor{deepblue}{rgb}{0,0,0.5}
\definecolor{deepred}{rgb}{0.6,0,0}
\definecolor{deepgreen}{rgb}{0,0.5,0}
\definecolor{halfgray}{gray}{0.55}

\lstset{
    basicstyle=\ttfamily\small,
    keywordstyle=\bfseries\color{deepblue},
    emphstyle=\ttfamily\color{deepred},    % Custom highlighting style
    stringstyle=\color{deepgreen},
    numbers=left,
    numberstyle=\small\color{halfgray},
    rulesepcolor=\color{red!20!green!20!blue!20},
    frame=shadowbox,
}


\begin{document}
    
    \begin{frame}
        \titlepage
        \begin{figure}[htpb]
            \begin{center}
                \includegraphics[width=5cm]{pic/QUT.png}
            \end{center}
        \end{figure}
        
        \begin{note}
            {Introduce your self}
        \end{note}
        
    \end{frame}


\begin{frame}{Formatting Samples}
    \begin{exampleblock}{Equation without numbers} 
        \begin{equation*}
            J(\theta) = \mathbb{E}_{\pi_\theta}[G_t] = \sum_{s\in\mathcal{S}} d^\pi (s)V^\pi(s)=\sum_{s\in\mathcal{S}} d^\pi(s)\sum_{a\in\mathcal{A}}\pi_\theta(a|s)Q^\pi(s,a)
        \end{equation*}
    \end{exampleblock}          
      \begin{exampleblock}{Multiple equations\footnote{If containing text in equations, use $\backslash$mathrm\{\} or $\backslash$text\{\}}}       
        \begin{align}
            Q_\mathrm{target}&=r+\gamma Q^\pi(s^\prime, \pi_\theta(s^\prime)+\epsilon)\\
            \epsilon&\sim\mathrm{clip}(\mathcal{N}(0, \sigma), -c, c)\nonumber
        \end{align}
    \end{exampleblock}
\end{frame}


\begin{frame}[fragile]
    \begin{columns}
        \column{.6\textwidth}
\begin{lstlisting}[language=TeX]
\begin{table}[htbp]
  \caption{Definition}
  \label{tab:number}
  \centering
  \begin{tabular}{cl}
    \toprule
    Word & Definition \\
    \midrule
    1 & 4.0 \\
    2 & 3.7 \\
    \bottomrule
  \end{tabular}
\end{table}
Check definition of 
 Equation~(\ref{eq:vsphere})  
 in Table~\ref{tab:number}
\end{lstlisting}
        \column{.4\textwidth}
        \begin{table}[htpb]
            \centering
            \caption{Definition}
            \label{tab:number}
            \begin{tabular}{cl}\toprule
                Eq. & Def. \\\midrule
                1 & 4.0\\
                2 & 3.7\\\bottomrule
            \end{tabular}
        \end{table}
        \normalsize Please check the definition of Equation~(\ref{eq:vsphere}) in Table~\ref{tab:number}
    \end{columns}
\end{frame}

\end{document}

相关内容