Cuando agrego un \cmidrule a una tabla y luego intento recompilar en XeLatex, se rompe.
Se detiene en el \begin{document}:
File ended while scanning definition of \LT@xxxix. \begin{document}
Illegal parameter number in definition of \LT@xxxix. \begin{document}
Illegal parameter number in definition of \LT@xxxix. \begin{document}
File ended while scanning definition of \LT@xxxix.
Lo soluciono eliminando el archivo .aux y vuelve a funcionar siempre que no agregue un \cmidrule.
Soy un novato en LaTeX, por lo que se agradece cualquier ayuda.
Aquí es donde se detiene:
...
Chapter 7.
! Extra alignment tab has been changed to \cr.
<template> \endtemplate
l.1204 ^^I\cmidrule(r){3-8}
?
Underfull \vbox (badness 10000) has occurred while \output is active [29]
[30]
Appendix A.
Este es mi preámbulo:
\documentclass{book}
\usepackage[letterpaper,inner=0.75in,outer=1in]{geometry}
\usepackage{color}
\usepackage[english]{babel}
\usepackage[T1]{fontenc}
\usepackage{longtable,booktabs}
\usepackage{multirow}
\usepackage{parskip} %removes firstline indent
\usepackage{makeidx}
\usepackage{titling}
\usepackage{fontspec}
\setmainfont{Linux Libertine O}
Ejemplo de tabla:
\begin{longtable}[]{@{}llll@{}}
\toprule
centeral & personal & &\tabularnewline
\cmidrule(r){3-8}
\endhead
& reflexive & &\tabularnewline
& possessive & &\tabularnewline
reciprocal & each other, one another & &\tabularnewline
relative & & &\tabularnewline
interrogative & & &\tabularnewline
demonstrative & this, that, these, those & &\tabularnewline
Indefinite & positive & universal & All, both\tabularnewline
& & & Each, every\tabularnewline
& & assertive & some\tabularnewline
& & & Multal, paucal\tabularnewline
& & & One\tabularnewline
& & & Half, several, enough\tabularnewline
& & & Other, another\tabularnewline
& & nonassertive & Any, either\tabularnewline
& negative & & No, neither\tabularnewline
\bottomrule
\end{longtable}
Respuesta1
Su tabla tiene cuatro columnas, pero le pidió que \cmidrule
abarcara las columnas 3 a 8. Eso no funciona. No sé exactamente qué columnas pretendías que abarcara, pero, \cmidrule(r){3-4}
por ejemplo, funciona.
Quizás quieras simplemente \midrule
:
\documentclass{book}
\usepackage[letterpaper,inner=0.75in,outer=1in]{geometry}
\usepackage{longtable,booktabs}
\begin{document}
\begin{longtable}[]{@{}llll@{}}
\toprule
centeral & personal & &\tabularnewline
\midrule
\endhead
& reflexive & &\tabularnewline
& possessive & &\tabularnewline
reciprocal & each other, one another & &\tabularnewline
relative & & &\tabularnewline
interrogative & & &\tabularnewline
demonstrative & this, that, these, those & &\tabularnewline
Indefinite & positive & universal & All, both\tabularnewline
& & & Each, every\tabularnewline
& & assertive & some\tabularnewline
& & & Multal, paucal\tabularnewline
& & & One\tabularnewline
& & & Half, several, enough\tabularnewline
& & & Other, another\tabularnewline
& & nonassertive & Any, either\tabularnewline
& negative & & No, neither\tabularnewline
\bottomrule
\end{longtable}
\end{document}