Quando adiciono um \cmidrule em uma tabela e tento recompilar no XeLatex, ele quebra.
Ele para no \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.
Eu corrijo isso excluindo o arquivo .aux e ele funciona novamente, desde que eu não adicione um \cmidrule.
Eu sou um novato em LaTeX, então qualquer ajuda será apreciada.
É aqui que para:
...
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 é o meu 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}
Exemplo de tabela:
\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}
Responder1
Sua tabela tem quatro colunas, mas você pediu para \cmidrule
abranger as colunas 3 a 8. Isso não funciona. Não sei exatamente quais colunas você pretendia abranger, mas, \cmidrule(r){3-4}
por exemplo, funciona.
Você pode querer apenas \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}