
패키지를 사용하고 beamer
있는데 질문이 많아 글을 남깁니다. 각 질문에 답변을 하고 있고, 각 질문이 열거되어 있어서 다른 질문을 추가할 때 번호를 수동으로 입력해야 합니다. 각 질문에는 답변이 있으며 미래의 어느 시점에는 중간 크기의 의견이 있어야 합니다. 질문의 순서에 대해 걱정하지 않고 번호를 변경하지 않고 질문을 추가하고 싶다는 점을 명심하세요. 마치 문서의 아무 곳에나 방정식을 추가하면 Latex가 문제 없이 방정식을 열거하는 것과 같습니다. 패키지 를 사용할 가치가 있는지 모르겠습니다 enumerate
(질문이 많습니다) o 트릭이 있는지 (카운터 일 수도 있습니다). 이 문제를 어떻게 해결하나요?
편집하다: 내 코드는 다음과 같습니다
\documentclass[]{beamer}
\mode<presentation>{
\usetheme{Madrid}
\setbeamertemplate{navigation symbols}{}
}
\usepackage{graphicx} % Allows including images
\usepackage{booktabs} % Allows the use of \toprule, \midrule and \bottomrule in tables
\usepackage[utf8]{inputenc}
\title[]{Actividad de la novena}
\date{Diciembre 22 de 2014} % Date, can be changed to a custom date
\begin{document}
\begin{frame}
\titlepage
\end{frame}
\begin{frame}
\begin{block}{}
1. Por primera vez en la historia de la humanidad, un módulo de aterrizaje aterriza en un cometa para estudiarlo. ¿Cuándo ocurrió este hecho?
\end{block}
\begin{enumerate}[a)]
\item El 5 de noviembre.
\item El 12 de noviembre.
\item El 29 de octubre.
\item El 25 de octubre
\end{enumerate}
\end{frame}
\begin{frame}
\begin{block}{}
2. Dicho módulo de aterrizaje no iba solo, él se desprendió de una sonda espacial que lo acompañaba. ¿Cuáles son los nombres del módulo y de la sonda?
\end{block}
\begin{enumerate}[a)]
\item Philae y Orión.
\item Orión y Rosetta.
\item Philae y Rosetta.
\item Orión y Lutecia.
\end{enumerate}
\end{frame}
\begin{frame}
\begin{block}{}
3. ¿Cuándo ocurrió la segunda vuelta presidencial?
\end{block}
\end{frame}
\begin{frame}
\begin{block}{}
4. Si solo tomamos en cuenta listas abiertas, ¿cuál fue el segundo senador con más votos en el país?
\end{block}
\begin{enumerate}[a)]
\item Musa Besaile.
\item Horacio Serpa.
\item Jorge Enrique Robledo.
\item Bernando Elías.
\end{enumerate}
\end{frame}
\end{document}
답변1
다음은 새로운 카운터를 사용한 간단한 솔루션입니다 question
.
\documentclass{beamer}
\newcounter{question}
\newcommand\question[1]{\stepcounter{question}Q.~\arabic{question} -- #1}
\begin{document}
\begin{frame}
\frametitle{Frame one}
\question{Where is my first question?}
\question{What is my second question?}
\end{frame}
\begin{frame}
\frametitle{Frame two}
\question{Who is my third question?}
\question{When is my fourth question?}
\end{frame}
\end{document}
문서에 레이블이 지정된 질문이 필요한 경우(및 를 통해 상호 참조 ) 대신 다음을 \ref
사용할 수 있습니다 .\refstepcounter
\stepcounter