LaTeXer
LaTeXer
这家伙很懒,什么也没写!

注册于 5年前

回答
499
文章
338
关注者
239

画两根线就好了。
看看宏包 hhline 即可。

在 beamer 列表都是被重定义过的,不要直接用宏包操作了,一般修改都是这样改的:

\setbeamertemplate{enumerate item}{(\alph{enumi})}
\setbeamertemplate{enumerate subitem}{(\roman{enumii})}

如果非要用自己加一下定义:

\def\labelenumi{\theenumi}

把这个注释掉就好了:

%texcl=true,

不理解的话看看 listings 的说明,这个参数是让注释里的命令变成了 LaTeX 的命令了,这样你的注释里下划线就异常了。
image.png

说明文档里都给出了示例了,看不懂英文说法,看例子是最好的办法:
image.png

你说的是默认样式,宏包给了详细的参数设置说明了,自己加加参数就好了。

\documentclass[12pt]{article}
\usepackage[english]{babel}
\usepackage{graphicx, type1cm, lettrine, blindtext}
\begin{document}
\lettrine[lines=3,slope=-4pt,nindent=-4pt]{W}{ho} are so beguiled and demoralized by the charms of pleasure of the moment, so blinded by desire, that they cannot foresee the pain and trouble that are bound to ensue; and equal blame belongs to those who fail in their duty through weakness of will, which is the same as saying through shrinking from toil and pain. These cases are perfectly simple and easy to distinguish
\end{document}

看listing 的说明,都很详细了,关于 frame 部分。

最好确定下你的系统有几个 TeX 系统,如果只有一个,不会少这个地方的。

最好提供下日志信息。

参考下面的代码:

\documentclass[10pt, compress, aspectratio=1610]{beamer}
\usepackage{color}
\definecolor{light-gray}{gray}{0.8}
\newcommand{\itemcolor}[1]{% Update list item colour
  \renewcommand{\makelabel}[1]{\color{#1}\hfil ##1}}

\begin{document}
     \begin{frame}
         \begin{center}
             \only<2>{\setbeamercolor*{item}{fg=light-gray}}
             \begin{itemize}
                 \color<2->{light-gray} 
                 \item Item1
                 \item Item2
                 \item Item3
                 \item Item4
             \end{itemize}
         \end{center}
     \end{frame}
\end{document}

选自这里:https://tex.stackexchange.com/questions/251099/change-the-color-of-bullets-in-a-frame-using-pause

实现的话 简单就是定义两个命令,一个放在上面,一个放在下面,这样方便很多。自己这样调整太麻烦了。

发布
问题