비머에서 선택한 슬라이드의 글꼴 크기 변경

프레젠테이션을 준비 중이며 최대 15 개의 방정식이있는 슬라이드가 있습니다. 이 슬라이드의 글꼴 크기를 어떻게 작게 만들 수 있습니까? 글꼴 크기를 6으로 변경해야합니다.

댓글

  • TeX.sx에 오신 것을 환영합니다. ! 프레젠테이션을 어떻게 만드나요? 비머?
  • 감사합니다! 예, 비머 템플릿을 사용합니다 : \ documentclass [10pt] {beamer}
  • 이렇게하면 안 될 것 같습니다. 청중 어딘가에 안경을 쓴 50 세 남자를 생각해보세요. ' 프레임을 두 개로 분할하고 앞뒤로 스크롤하는 것이 한 프레임에 모두 포함하지만 아무도 읽을 수없는 것보다 낫습니다.
  • @Schweinbacke I 6pt는 프레젠테이션에 비해 너무 작기 때문에 일반적으로 동의하지만 때로는 10pt가 너무 커서 슬라이드에 마지막 줄을 짜는 것이 ' 두 개로 나눕니다. 또한 프레젠테이션을 인쇄 할 경우 " 등식 참조 " 슬라이드를 추가하는 것이 유용 할 수 있습니다. 둘 다 슬라이드의 글꼴 크기를 변경하는 기술이 필요합니다.

답변

\fontsize :

\fontsize{<font size>}{<value for \baselineskip>}\selectfont 

예 :

\fontsize{6pt}{7.2}\selectfont 

글꼴 크기를 6 포인트로, \baselineskip를 7.2 포인트로 변경합니다. 새 명령을 정의하여 변경 사항을 적용 할 수 있습니다.

\documentclass{beamer} \usepackage{lipsum} \newcommand\Fontvi{\fontsize{6}{7.2}\selectfont} \begin{document} \begin{frame} \frametitle{Frame with reduced font size} \Fontvi \lipsum[1] \end{frame} \begin{frame} \frametitle{Frame with regular font size} \lipsum[1] \end{frame} \end{document} 

댓글

  • 이렇게하지 않습니다. ' itemize 목록에있는 하나 이상의 수준에 영향을주지 않는 것 같습니다 …
  • 항목 별 텍스트의 크기?
  • @ naught101이 맞습니다 — 항목 별 목록의 첫 번째 수준 만 변경합니다.
  • \begin{frame}[allowframebreaks] \frametitle{References} \fontsize{3}{6}\selectfont \printbibliography \end{frame}

Answer

Gonzalo의 답변은 중첩 된 항목 화에 대해 작동하지 않으므로 다음은 비머 템플릿입니다.

일반적으로 만들기 위해 environ 패키지를 사용했습니다. 일반 newenvironment에는 중괄호를 본문으로 분리하는 데 문제가 있습니다.

\documentclass{beamer} \usepackage{environ} \usepackage{lipsum} % % Custom font for a frame. % \newcommand{\customframefont}[1]{ \setbeamertemplate{itemize/enumerate body begin}{#1} \setbeamertemplate{itemize/enumerate subbody begin}{#1} } \NewEnviron{framefont}[1]{ \customframefont{#1} % for itemize/enumerate {#1 % For the text outside itemize/enumerate \BODY } \customframefont{\normalsize} } \begin{document} \begin{framefont}{\tiny} \begin{frame} \frametitle{Frame with reduced font size} \lipsum[66] \begin{itemize} \item Nunc sed pede. Praesent vitae lectus. \item Nunc sed pede. Praesent vitae lectus. \end{itemize} \end{frame} \end{framefont} \begin{frame} \frametitle{Frame with regular font size} \lipsum[66] \begin{itemize} \item Nunc sed pede. Praesent vitae lectus. \item Nunc sed pede. Praesent vitae lectus. \end{itemize} \end{frame} \end{document} 

댓글

  • 나에게 적합합니다. 간단한 구현 , 글 머리 기호 항목으로 확장됩니다.
  • 좋아 보이지만 그렇지 않습니다. 깨지기 쉬운 프레임에서는 작동하지 않습니다.

답글 남기기

이메일 주소를 발행하지 않을 것입니다. 필수 항목은 *(으)로 표시합니다