\cmidrule을 추가하면 정의에 잘못된 매개변수 번호가 표시됩니다.

\cmidrule을 추가하면 정의에 잘못된 매개변수 번호가 표시됩니다.

\cmidrule을 테이블에 추가한 다음 XeLatex에서 다시 컴파일하려고 하면 중단됩니다.

\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.

.aux 파일을 삭제하여 문제를 해결했는데 \cmidrule을 추가하지 않는 한 다시 작동합니다.

나는 LaTeX에 대한 멍청한 놈이므로 도움을 주시면 감사하겠습니다.

이것이 멈추는 곳입니다:

   ...
    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.

이것은 내 서문입니다.

    \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}

테이블의 예:

\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}

답변1

테이블에 4개의 열이 있지만 3열에서 8열까지 확장하도록 요청했습니다 \cmidrule. 작동하지 않습니다. 어떤 열을 확장하려고 했는지 정확히 알 수 없지만 \cmidrule(r){3-4}예를 들어 작동합니다.

그래도 다음을 원할 수도 있습니다 \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}

관련 정보