在 minipage 居中或刷新环境中禁用 \color 命令(这是一个错误吗?)

在 minipage 居中或刷新环境中禁用 \color 命令(这是一个错误吗?)

接下来是 MWE,它演示了 pdflatex 和 LaTeX 无法使用命令为 minipage 中的 center 或 flushleft/flushright 环境中的文本着色\color。XeLaTeX 工作正常,这让我认为这可能是一个错误。textcolor命令没有这个问题,但这是正常的,因为它创建了自己的“环境”。表格环境让我认为 center 或 flashleft 中的空环境可以解决问题……但事实并非如此。

\documentclass{beamer}
\usepackage{filecontents}
\usepackage[utf8]{inputenc}

\newenvironment{emptyenv}{}{}


% Usage: Run with pdflatex and with LaTeX... no color... 
% Run with XeLaTeX... color is ok...
% Test the commented colors in other places with all engines...
% Replace center environment with commented flashleft...
\begin{document}
\begin{frame}
%\color{green} % works on all
\begin{minipage}{\textwidth}
%\color{red} % Doesn't work with pdflatex or LaTex... but works with XeLaTeX
\begin{center}
%\begin{flushleft}
%%\begin{tabular}{c}
\LARGE\bfseries
%%%\begin{emptyenv}
\color{blue} % Doesn't work with pdflatex or LaTex... but works with XeLaTeX... inside tabular works on all
Test (Colored?) 
%%%\end{emptyenv}
%%\end{tabular}
%\end{flushleft}
\end{center}
\end{minipage}
\end{frame}
\end{document}

我只是问这是否是我们必须报告的错误,或者我是否丢失了一些重要信息,例如:“这就是我们拥有该\textcolor命令的原因!”如果是第二种情况,请告诉我在哪里可以找到信息。

编辑:我的版本是:pdfTeX 3.14159265-2.6-1.40.17(TeX Live 2016/Debian)

日志文件在此处(运行 pdflatex 并给出黑色文本):https://sites.google.com/site/koleygrfreelancer/home/readywork/testtitlecolor.log?attredirects=0&d=1

答案1

我的 Debian pdfTeX 3.14159265-2.6-1.40.17 (TeX Live 2016/Debian) 上仍然存在此问题

这些评论让我意识到这是 Debian 打包中的一个错误,我现在要打开一个错误并报告它。

这里添加了链接:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=894364

之后我将把这个问题标记为离题,因为它只影响 Debian 发行版,而不影响 texlive。

附言:如果 texlive-latex-recommended (包含xcolor或 texlive-latex-base )最有可能是问题根源,请告诉我更有经验的人

相关内容