这个问题基于是否有一个好的解决方案来获得 Latex 演示文稿的“演示者模式”?答案的作者编写了一个名为的工具osx-presentation
。
我想知道是否有人知道如何更改注释的字体大小和字体颜色?
包含注释的 LaTeX 命令是
\marginnote{\pdfcomment[icon=note]{Your notes goes here.}}
我尝试指定尺寸
\marginnote{\pdfcomment[icon=note]{\tiny Your notes goes here.}}
和
\marginnote{\pdfcomment[icon=note]{\Large Your notes goes here.}}
但尺寸似乎没有变化。我不确定我是否做错了,或者是否有特定原因osx-presentation
需要使用其他方法来更改尺寸?
编辑 1 (包括一个可运行的可编译示例)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Beamer Presentation
% LaTeX Template
% Version 1.0 (10/11/12)
%
% This template has been downloaded from:
% http://www.LaTeXTemplates.com
%
% License:
% CC BY-NC-SA 3.0 (http://creativecommons.org/licenses/by-nc-sa/3.0/)
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%----------------------------------------------------------------------------------------
% PACKAGES AND THEMES
%----------------------------------------------------------------------------------------
\documentclass{beamer}
\mode<presentation> {
% The Beamer class comes with a number of default slide themes
% which change the colors and layouts of slides. Below this is a list
% of all the themes, uncomment each in turn to see what they look like.
%\usetheme{default}
%\usetheme{AnnArbor}
%\usetheme{Antibes}
%\usetheme{Bergen}
%\usetheme{Berkeley}
\usetheme{Berlin}
%\usetheme{Boadilla}
%\usetheme{CambridgeUS}
%\usetheme{Copenhagen}
%\usetheme{Darmstadt}
%\usetheme{Dresden}
%\usetheme{Frankfurt}
%\usetheme{Goettingen}
%\usetheme{Hannover}
%\usetheme{Ilmenau}
%\usetheme{JuanLesPins}
%\usetheme{Luebeck}
%\usetheme{Madrid}
%\usetheme{Malmoe}
%\usetheme{Marburg}
%\usetheme{Montpellier}
%\usetheme{PaloAlto}
%\usetheme{Pittsburgh}
%\usetheme{Rochester}
%\usetheme{Singapore}
%\usetheme{Szeged}
%\usetheme{Warsaw}
% As well as themes, the Beamer class has a number of color themes
% for any slide theme. Uncomment each of these in turn to see how it
% changes the colors of your current slide theme.
%\usecolortheme{albatross}
%\usecolortheme{beaver}
%\usecolortheme{beetle}
%\usecolortheme{crane}
%\usecolortheme{dolphin}
%\usecolortheme{dove}
%\usecolortheme{fly}
%\usecolortheme{lily}
%\usecolortheme{orchid}
%\usecolortheme{rose}
%\usecolortheme{seagull}
%\usecolortheme{seahorse}
%\usecolortheme{whale}
%\usecolortheme{wolverine}
%\setbeamertemplate{footline} % To remove the footer line in all slides uncomment this line
%\setbeamertemplate{footline}[page number] % To replace the footer line in all slides with a simple slide count uncomment this line
%\setbeamertemplate{navigation symbols}{} % To remove the navigation symbols from the bottom of all slides uncomment this line
}
\usepackage{graphicx} % Allows including images
\usepackage{booktabs} % Allows the use of \toprule, \midrule and \bottomrule in tables
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{cancel}
\usepackage{algorithm2e}
\usepackage{float}
\usepackage{caption}
\usepackage{fancyvrb}
\usepackage[toc,page]{appendix}
\usepackage{hyperref}
\usepackage{subfig}
\usepackage{color}
\usepackage[export]{adjustbox}
\usepackage{multicol}
\usepackage{footnotebackref}
\usepackage[absolute,overlay]{textpos}
\usepackage{graphicx}
% define some useful commands
\usepackage{lmodern}
\usepackage{etoolbox}
\usepackage{etoolbox}
\usepackage{xfrac}
\usepackage[draft]{pdfcomment}
\setbeamerfont{footnote}{size=\tiny}
\AtBeginSection[]{
\begin{frame}
\vfill
\centering
\begin{beamercolorbox}[sep=8pt,center,shadow=true,rounded=true]{title}
\usebeamerfont{title}\insertsectionhead\par%
\end{beamercolorbox}
\vfill
\end{frame}
}
\begin{document}
\begin{frame}
\titlepage % Print the title page as the first slide
my slide content here
\marginnote{\pdfcomment[icon=note]{\tiny Your notes goes here.}}
\end{frame}
%also tried \marginnote{\pdfcomment[icon=note]{\Large Your notes goes here.}}
\end{frame}
\end{document}
答案1
我不确定我是否理解得正确,但看起来您想改变打印的字体大小\pdfcomment
。
您尝试使用\pdfcomment[icon=note]{\tiny Your notes goes here.}
。但这不起作用,因为显示的 pdf 注释所用的字体大小是使用fontsize=15bp
包的类选项设置的pdfcomment
。
据我所知,您不能使用\tiny
或更改字体大小\Large
,的文档pdfcomment
没有提到执行此操作的任何可能性。
您还可以测试线路
\marginnote{\pdfcomment[icon=note]{\tiny Your notes goes here. \Large Your notes goes here.}
发现你的 pdf 注释中的字体大小没有变化(也没有警告或错误消息)!
您只能使用类选项为所有 pdf 注释定义通用字体大小fontsize
:
\usepackage[fontsize=15bp]{pdfcomment}
您可以使用如下代码进行测试:
\documentclass{beamer}
\mode<presentation>{%
\usetheme{Berlin}
}
\usepackage{graphicx} % Allows including images
\usepackage{booktabs} % Allows the use of \toprule, \midrule and \bottomrule in tables
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{cancel}
\usepackage{algorithm2e}
\usepackage{float}
\usepackage{caption}
\usepackage{fancyvrb}
\usepackage[toc,page]{appendix}
\usepackage{subfig}
\usepackage{color}
\usepackage[export]{adjustbox}
\usepackage{multicol}
\usepackage{footnotebackref}
\usepackage[absolute,overlay]{textpos}
% define some useful commands
\usepackage{lmodern}
\usepackage{etoolbox}
\usepackage{xfrac}
\usepackage{hyperref}
\usepackage[fontsize=15bp]{pdfcomment}
%\usepackage[draft]{pdfcomment}
\setbeamerfont{footnote}{size=\tiny}
\AtBeginSection[]{
\begin{frame}
\vfill
\centering
\begin{beamercolorbox}[sep=8pt,center,shadow=true,rounded=true]{title}
\usebeamerfont{title}\insertsectionhead\par%
\end{beamercolorbox}
\vfill
\end{frame}
}
\begin{document}
\begin{frame}
\titlepage % Print the title page as the first slide
my slide content here
\marginnote{\pdfcomment[icon=note]{\tiny Your notes goes here. \Large Your notes goes here.}}
\end{frame}
\end{document}
\pdfcomment
如果你将以下行更改为
\marginnote{\pdfcomment[icon=note]{Your notes goes here. Your notes goes here.}}
你不会看到任何差异。所以改变字体大小在这里不起作用...
请注意,我删除了所有你调用两次或更多次的包,并且我改变了调用包的顺序......
因为我无法对生成的 PDF 注释进行截图,所以我省略了结果图像 :-(