我无法让setspace
软件包正常工作:
\documentclass[a5paper, 11pt]{memoir}
\usepackage[utf8]{inputenc}
\usepackage[spanish,es-tabla]{babel}
\usepackage{setspace}
\begin{document}
\begin{spacing}{1.5}
Texto
\end{spacing}
\end{document}
当我pdflatex
这样做时,我得到:
! LaTeX Error: Environment spacing undefined.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.8 \begin{spacing}
{1.5}
但我已经安装了它:
我尝试卸载并重新安装它(以防万一),但 TeX Live Manager 不允许这样做:
tlmgr: not removing setspace, needed by collection-latexrecommended
tlmgr: no packages removed.
tlmgr: action remove returned an error; continuing.
Completado.
我检查过setspace 包在 TeX Live 中不起作用,但这没有帮助。
答案1
memoir
隐藏该setspace
软件包并有其自己的版本:
\documentclass[a5paper, 11pt]{memoir}
\usepackage[utf8]{inputenc}
\usepackage[spanish,es-tabla]{babel}
%%\usepackage{setspace}
\begin{document}
\begin{Spacing}{1.5}
Texto
\end{Spacing}
\end{document}