我无法titlesec
使用 的“简单”模式beamerarticle
。
使用以下示例:
\documentclass{extarticle}
\RequirePackage{beamerarticle}
\RequirePackage{titlesec}
\titleformat*{\section}{\normalfont\Large\bfseries\sffamily}
\begin{document}
\section{Hello}
\end{document}
我收到错误信息:
test-beamerarticle.tex:5: Package titlesec Error: Not allowed in `easy' settings.
test-beamerarticle.tex:6: Paragraph ended before \ttl@format@si was complete.
test-beamerarticle.tex:14: Missing number, treated as zero.
test-beamerarticle.tex:14: Illegal unit of measure (pt inserted).
test-beamerarticle.tex:14: Missing number, treated as zero.
test-beamerarticle.tex:14: Illegal unit of measure (pt inserted).
如果我使用不太简单的形式,则:
\documentclass{extarticle}
\RequirePackage{beamerarticle}
\RequirePackage{titlesec}
\titleformat{\section}{\Large\bfseries\sffamily}{\thesection}{1em}{}{}
\begin{document}
\section{Hello}
\end{document}
该文件编译通过,但显示以下消息:
/usr/local/texlive/2015/texmf-dist/tex/latex/titlesec/titlesec.sty: [titlesec] Non standard sectioning command detected Using default spacing and no format. (page 1)
/usr/local/texlive/2015/texmf-dist/tex/latex/titlesec/titlesec.sty: [titlesec] Non standard sectioning command detected Using default spacing and no format. (page 1)
/usr/local/texlive/2015/texmf-dist/tex/latex/titlesec/titlesec.sty: [titlesec] Non standard sectioning command detected Using default spacing and no format. (page 1)
这对我来说不是问题,因为我只想改变形状和大小,而不是格式的间距,但有没有办法解决这个冲突?