\AtBeginLecture를 수정하는 방법은 무엇입니까?

\AtBeginLecture를 수정하는 방법은 무엇입니까?

저는 강의를 하기 위해 비머를 사용하고 있습니다.

\AtBeginLecture{\frame{some text... \insertlecture}}강의 시작 부분에 타일을 삽입하는 명령을 사용하고 있습니다 .

이렇게 하면 원하는 텍스트가 시작 부분에 배치됩니다.모든강의. 첫 번째 강의가 아닌 두 번째 강의부터 본문을 시작하고 싶습니다. 어떻게 할 수 있나요?

답변1

새로운 카운터를 정의하고 그것이 맞는지 확인할 수 있습니다 1. 이 방법의 좋은 부작용은 이제 를 통해 강의 번호에 액세스할 수 있다는 것입니다 \the\lecturecount.

\documentclass{beamer}
\newcount\lecturecount
\lecturecount=0
\AtBeginLecture{%
    \advance\lecturecount by 1
    \ifnum\lecturecount=1
        % nothing to do here
    \else
        \frame{Lecture No.\ \the\lecturecount: \insertlecture}
    \fi
}
\begin{document}
\lecture{Vector Spaces}{week 1}
\frame{First frame}
\lecture{Scalar Products}{week 2}
\frame{Second frame}
\lecture{Outer Products}{week 3}
\frame{Third frame}
\end{document}

관련 정보