Beamer 中的块状黑色框架

Beamer 中的块状黑色框架

我正在尝试使用 Beamer 准备演示文稿。我有两台笔记本电脑,其中一台是 2015 款 MacBook Air i7,另一台是 MacBook Air M2。我在两台笔记本电脑上使用相同版本的 TexShop,即 5.12 版。在我的旧笔记本电脑上,一切运行正常,但在新笔记本电脑上,当我尝试在块环境中写入某些内容时,块上会出现黑框,见第一张照片。我尝试了很多方法,但找不到解决办法。顺便说一下,在日志文件中,我收到以下错误消息:%%%% 警告:忽略透明度操作 - 需要使用 -dALLOWPSTRANSPARENCY。我也搜索了此错误的解决方案,但找不到适用于 TexShop 的解决方案。有人对这个问题有想法吗?提前谢谢您。

附言:如果我使用 LuaLaTeX 排版文件,则无需黑框即可工作。但在这种情况下,通用字母(在我的情况下是土耳其字母)不会出现在 dvi 中。有没有解决方案可以在 LuaLaTeX 中显示重音字母?

编辑:我使用的是 MacTeX 四月版。我检查了 TeX Live Utility,它的版本是 1.54。下面,我展示了生成我提供的第一张照片的命令。

\documentclass[xcolor={dvipsnames,table},t]{beamer}
\usetheme{Berlin}
\usecolortheme{whale}
\setbeamercolor*{palette tertiary{use=structure,fg=white,bg=black}
\setbeamercolor*{palette quaternary}{fg=white,bg=black}
\setbeamercolor{frametitle}{bg=structure!75,fg=white}
\setbeamercolor{block title}{bg=structure!75,fg=white}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[shorthands=off,turkish]{babel}
\begin{document}
\begin{frame}[t]
\begin{block}{balabal}
 blabala
\end{block}
\end{frame}
\end{document}

如果我使用 LuaLaTeX 排版相同的代码,我会得到第二张照片。

有趣的是,现在只有一些土耳其语字符,ı、ş 等没有出现,而一些字符,ü、ç 等出现了。
[1]:https://i.stack.imgur.com/4DCuR.png [2]:https://i.stack.imgur.com/bUYgl.png

答案1

如果您使用 进行编译lualatex,请删除该fontenc包以获取土耳其语字母。

(... 并且缺少}结尾){palette tertiary

% !TeX TS-program = lualatex

\documentclass[xcolor={dvipsnames,table},t]{beamer}
\usetheme{Berlin}
\usecolortheme{whale}
\setbeamercolor*{palette tertiary}{use=structure,fg=white,bg=black}
\setbeamercolor*{palette quaternary}{fg=white,bg=black}
\setbeamercolor{frametitle}{bg=structure!75,fg=white}
\setbeamercolor{block title}{bg=structure!75,fg=white}
%\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[shorthands=off,turkish]{babel}
\begin{document}
\begin{frame}[t]

Interestingly now only some Turkish characters, ı,ş etc., do not appear and some, ü, ç, etc, appear.

\begin{block}{balabal}
 blabala
\end{block}
\end{frame}
\end{document}

在此处输入图片描述

相关内容