如何在长表中分割文本

如何在长表中分割文本

为什么下表中的文本没有自动拆分?我使用了环境longtable,但文本没有分成两页,但我得到了下面的图片。

\documentclass[10pt,a6paper]{book}
%46paper
\usepackage[utf8]{inputenc}
\usepackage[main=slovak,english]{babel}
\usepackage[cm]{fullpage}
\usepackage[a6paper, top=15mm, left=10mm, right=10mm, bottom=10mm,foot=5mm,marginparsep=0mm]{geometry}
%showframe
\usepackage{tipa}
\usepackage{tabularx,booktabs}  %\toprule
\usepackage{listings}
\usepackage{multirow}
\usepackage{longtable}
\usepackage{lscape}
\usepackage{ wasysym } % symbols
\usepackage{ amssymb } % symbols
\usepackage{pdflscape}
\usepackage{lscape}
\usepackage{hyperref}
\usepackage{ marvosym }
\usepackage{ textcomp }

%----
\newcommand*{\fone}{\fontfamily{qag}\selectfont} % Eng word
\newcommand*{\ftwo}{\fontfamily{phv}\selectfont} % pronunciation
\newcommand*{\fthree}{\fontfamily{ccr}\selectfont} %
\newcommand*{\ffour}{\fontfamily{pag}\selectfont} % 

\newcommand*{\UK}{{\small (UK) }}
\newcommand*{\sth}{\textit{\footnotesize sth }}
\newcommand*{\stb}{\textit{\footnotesize sb }}
\newcommand*{\frm}{\textit{\small (formal)} }
\newcommand*{\spee}{\textit{\small [+speech]} } 
\newcommand*{\frrm}{\textit{\small (rather formal)} }
\newcommand*{\ifrm}{\textit{\small (informal)} }
\newcommand*{\diss}{\textit{\small (disapproving)} }
\newcommand*{\odi}{\textit{\small (often disapproving)} }

\newcommand*{\tm}{\small \fontfamily{ccr}\selectfont} % komentar
\newcommand*{\tl}{\footnotesize \fontfamily{ccr}\selectfont} % str
\newcommand*{\slv}{\small \fontfamily{pbk}\selectfont} %pcr

%----

\newcommand*{\knihaB}{\fontfamily{bch}\selectfont}
\newcommand*{\knihaA}{\fontfamily{phv}\selectfont}
\newcommand*{\knihaC}{\fontfamily{ccr}\selectfont}
\newcommand*{\knihaM}{\fontfamily{cmr}\selectfont}

\newcommand*{\knihaEa}{\fontfamily{qag}\selectfont}
\newcommand*{\knihaEb}{\fontfamily{phv}\selectfont}

\newcommand*{\knihacc}{\fontfamily{pag}\selectfont}
\newcommand*{\knihaaa}{\fontfamily{ccr}\selectfont}
\newcommand*{\knihabb}{\fontfamily{ccr}\selectfont}


\begin{document}
\catcode`\-=12
\sloppy
\clearpage


{\large

\begin{longtable}{ccc}
  {\knihaA to kneel} & {\knihaA knelt} & {\knihaA knelt} \\
  {\knihaB [\textipa{ni:l}]} & {\knihaB [\textipa{nelt}]} & {\knihaB 
  [\textipa{nelt}]} \\ 
  \hline
  \multicolumn{3}{p{6cm}}{kľačať, pokľaknúť $\ataribox$ pokľaknúť (si),  kľaknúť si \textit{\small ({\knihaA down})}
  }\\
\end{longtable}

\begin{longtable}{ccc}
  {\knihaA to know} & {\knihaA  knew} & {\knihaA known} \\
  {\knihaB [\textipa{n@U}]} & {\knihaB [\textipa{nju:}]} & {\knihaB [\textipa{n@Un}]} \\  
  \hline
  \multicolumn{3}{p{6cm}}{vedieť, poznať \textit{\small čo (naučené, vypočuté)} $\ataribox$ vedieť \textit{\small ({\knihaA of/about}) o čom}
  $\ataribox$ {\small {\knihaA get to know \textit{sb}} spoznať \textit{koho}} 
  $\ataribox$ vedieť, ovládať \textit{\small (jazyk)}; {\small {\knihaA I know how to speak \textit{language}}}
  }\\
\end{longtable}

\begin{longtable}{ccc}
  {\knihaA to lay} & {\knihaA laid} & {\knihaA laid} \\
  {\knihaB [\textipa{leI}]} & {\knihaB [\textipa{leId}]} & {\knihaB [\textipa{leId}]} \\  
  \hline
  \multicolumn{3}{p{6cm}}{položiť, uložiť, klásť {\small (jemne, opatrne)} 
  $\ataribox$ klásť, položiť {\small \textit{({\knihaA down})}} 
  \textit{\small (koberec, potrubie ap. - na podlahu)} $\ataribox$ 
  rozprestrieť, rozložiť {\small \textit{čo ({\knihaA on/ over}) kde/ kam 
  (na podlahu ap.)}}; pokryť, zakriť {\small \textit{čo ({\knihaA with}) čím 
  (podlahu novinami ap.)}} $\ataribox$ zniesť, znášať \textit{\small 
  (vajcia)}$\ataribox$ {\small {\knihaA lay the table} \UK pripraviť stôl} 
  $\ataribox$\textit{\small (slang)} kefovať, trtkať \textit{\small koho 
  (súložiť)} $\ataribox$ {\small {\knihaA laying} {\knihaB 
  [\textipa{\textprimstress leIIN}]}} \newline $\ataribox$ 
  {\small {\knihaA to lie} {\knihaB [\textipa{laI}]} {\knihaA lay} {\knihaB 
  [\textipa{leI}]} {\knihaA lain} {\knihaB [\textipa{leIn}]} } {\small ležať 
  \textit{(zviera, človek, vec - v horozontálnej polohe)}; ležať, nachádzať 
  sa\textit{kde (mesto ap.)}; spočívať \textit{({\knihaA in}) v čom (problém 
  ap.)} }
  }\\
\end{longtable}

}

\end{document}

在此处输入图片描述

答案1

如果您希望“长表”的宽度小于文档其余部分的正常文本行,则可以使用adjustwidthchangepagetabularx带有范例的行:

\documentclass[10pt,a6paper]{book}
%46paper
\usepackage[utf8]{inputenc}
\usepackage[main=slovak,english]{babel}
\usepackage[cm]{fullpage}
\usepackage[a6paper, top=15mm, left=10mm, right=10mm, bottom=10mm,foot=5mm,marginparsep=0mm]{geometry}

\usepackage{changepage}
\usepackage{tipa}
\usepackage{array}  
\usepackage{tabularx,booktabs}  %\toprule
\newcolumntype{C}{>{\centering\arraybackslash}X}
\usepackage{listings}
\usepackage{multirow}
\usepackage{longtable}
\usepackage{lscape}
\usepackage{ wasysym } % symbols
\usepackage{ amssymb } % symbols
\usepackage{pdflscape}
\usepackage{lscape}
\usepackage{hyperref}
\usepackage{ marvosym }
\usepackage{ textcomp }

%----
\newcommand*{\fone}{\fontfamily{qag}\selectfont} % Eng word
\newcommand*{\ftwo}{\fontfamily{phv}\selectfont} % pronunciation
\newcommand*{\fthree}{\fontfamily{ccr}\selectfont} %
\newcommand*{\ffour}{\fontfamily{pag}\selectfont} % 

\newcommand*{\UK}{{\small (UK) }}
\newcommand*{\sth}{\textit{\footnotesize sth }}
\newcommand*{\stb}{\textit{\footnotesize sb }}
\newcommand*{\frm}{\textit{\small (formal)} }
\newcommand*{\spee}{\textit{\small [+speech]} } 
\newcommand*{\frrm}{\textit{\small (rather formal)} }
\newcommand*{\ifrm}{\textit{\small (informal)} }
\newcommand*{\diss}{\textit{\small (disapproving)} }
\newcommand*{\odi}{\textit{\small (often disapproving)} }

\newcommand*{\tm}{\small \fontfamily{ccr}\selectfont} % komentar
\newcommand*{\tl}{\footnotesize \fontfamily{ccr}\selectfont} % str
\newcommand*{\slv}{\small \fontfamily{pbk}\selectfont} %pcr

%----

\newcommand*{\knihaB}{\fontfamily{bch}\selectfont}
\newcommand*{\knihaA}{\fontfamily{phv}\selectfont}
\newcommand*{\knihaC}{\fontfamily{ccr}\selectfont}
\newcommand*{\knihaM}{\fontfamily{cmr}\selectfont}

\newcommand*{\knihaEa}{\fontfamily{qag}\selectfont}
\newcommand*{\knihaEb}{\fontfamily{phv}\selectfont}

\newcommand*{\knihacc}{\fontfamily{pag}\selectfont}
\newcommand*{\knihaaa}{\fontfamily{ccr}\selectfont}
\newcommand*{\knihabb}{\fontfamily{ccr}\selectfont}


\begin{document}
    \catcode`\-=12
    \sloppy
    \clearpage

    {\large\noindent
        \begin{adjustwidth}{1.2cm}{1.2cm}
            \begin{tabularx}{\linewidth}{CCC}
                {\knihaA to kneel} & {\knihaA knelt} & {\knihaA knelt} \\
                {\knihaB [\textipa{ni:l}]} & {\knihaB [\textipa{nelt}]} & {\knihaB 
                    [\textipa{nelt}]} \\ 
                \hline
            \end{tabularx}

            \noindent kľačať, pokľaknúť $\ataribox$ pokľaknúť (si),  kľaknúť si \textit{\small ({\knihaA down})}

            \noindent\newline
            \begin{tabularx}{\linewidth}{CCC}
                {\knihaA to know} & {\knihaA  knew} & {\knihaA known} \\
                {\knihaB [\textipa{n@U}]} & {\knihaB [\textipa{nju:}]} & {\knihaB [\textipa{n@Un}]} \\  
                \hline
            \end{tabularx}

            \noindent vedieť, poznať \textit{\small čo (naučené, vypočuté)} $\ataribox$ vedieť \textit{\small ({\knihaA of/about}) o čom}
            $\ataribox$ {\small {\knihaA get to know \textit{sb}} spoznať \textit{koho}} 
            $\ataribox$ vedieť, ovládať \textit{\small (jazyk)}; {\small {\knihaA I know how to speak \textit{language}}}   

            \noindent\newline
            \begin{tabularx}{\linewidth}{CCC}
                {\knihaA to lay} & {\knihaA laid} & {\knihaA laid} \\
                {\knihaB [\textipa{leI}]} & {\knihaB [\textipa{leId}]} & {\knihaB [\textipa{leId}]} \\  
                \hline
            \end{tabularx}

            \noindent položiť, uložiť, klásť {\small (jemne, opatrne)} 
            $\ataribox$ klásť, položiť {\small \textit{({\knihaA down})}} 
            \textit{\small (koberec, potrubie ap. - na podlahu)} $\ataribox$ 
            rozprestrieť, rozložiť {\small \textit{čo ({\knihaA on/ over}) kde/ kam 
                    (na podlahu ap.)}}; pokryť, zakriť {\small \textit{čo ({\knihaA with}) čím 
                    (podlahu novinami ap.)}} $\ataribox$ zniesť, znášať \textit{\small 
                (vajcia)}$\ataribox$ {\small {\knihaA lay the table} \UK pripraviť stôl} 
            $\ataribox$\textit{\small (slang)} kefovať, trtkať \textit{\small koho 
                (súložiť)} $\ataribox$ {\small {\knihaA laying} {\knihaB 
                    [\textipa{\textprimstress leIIN}]}} \newline $\ataribox$ 
            {\small {\knihaA to lie} {\knihaB [\textipa{laI}]} {\knihaA lay} {\knihaB 
                    [\textipa{leI}]} {\knihaA lain} {\knihaB [\textipa{leIn}]} } {\small ležať 
                \textit{(zviera, človek, vec - v horozontálnej polohe)}; ležať, nachádzať 
                sa\textit{kde (mesto ap.)}; spočívať \textit{({\knihaA in}) v čom (problém 
                    ap.)}}
        \end{adjustwidth}
    }
\end{document}

第一页: 在此处输入图片描述

第二页: 在此处输入图片描述

相关内容