将长表放入页面

将长表放入页面

我有一张很长的表格,无法将其放入页面中。我尝试将页面横向显示,这有点帮助,但问题仍然是,当文本长度超过列宽时,我无法换行。有人知道如何修复它吗?这是代码

    \pagestyle{plain}
\begin{landscape}
\begin{table}[]
\centering
\caption{Additive manufacturing technologies.}
\label{tab:am_processes}
    \begin{tabulary}{1\linewidth}{| L | L | L | L | L | L |}
    \hline
    Process & Build size & Tolerance & Materials & Layer thickness & Build rate\\
    \hline
    FDM & 914x610x914mm \cite{fdm_spec} & \pm 0.0015 up to 0.241mm & ABS, PC, PA, PS, thermoplastics & 127-330 \mu m & 7.62-43.18mm/h \cite{sculpteo_speed}\cite{fdm_info} \\
    SLA  & 650x750x550 mm  & 0.025-0.5mm &  Thermoplastics (elastomers) & 50-125\mu m & 0.635-9.52m/s \cite{pham2012rapid}\\
    Polyjet & 294x192x148.6mm \cite{polyjet_info} & \pm 0.1mm \cite{polyjet_info} & 0.015-0.030mm \cite{SLS_Polyjet} & Acrylic plastics and elastomers \cite{Fischer2014} & Fast \cite{Fischer2014}\\
    LOM & 813x559x508mm & \pm 0.127mm & 0.076-0.254mm & Thermoplastics, paper, composites (ferrous/non-ferrous metals, ceramics) & - \\
    SLS & 550x550x750 mm & \pm 0.3mm &  polyamide based compounds (nylon) & 120-150 \mu m & 0.6 to 2.5 cm\textsuperscript{3}/h\\
    EBM & 200x200x350mm &\pm 0.2mm & Metals (cobalt, nickel, titanium) & 50 \mu m & 45-66mm\textsuperscript{3}/s\\
    LENS & 900x1500x900mm & \pm 0.125mm & metals (titanium, nickel-base superalloys, stainless steels and tool steels) & 120 \mu m & 5-60 mm\textsuperscript{3}/s\\
    3DP & 254x381x203mm & \pm 0.2mm &  Ferrous/non-ferrous metals, elastomeric, composites, ceramics & 90-100 \mu m & 25-50 mm\textsuperscript{3}/h\\
    Prometal & 1800x1000x700mm (sand) 750x400x400 (metal) & \pm 0.125 & Sand, glass, metal & 280-500 \mu m & 2000(metal) to 30000(sand) mm\textsuperscript{3}/s\\
    \end{tabulary}
    \caption*{Data was obtained by \cite{Aliakbari2012} unless otherwise indicated}
\end{table}
\end{landscape}

答案1

这有效,已用 latex + dvipdf 和 pdflatex 测试过。xelatex 可能需要一些调整。

\documentclass{article}
\usepackage{tabulary,rotating}
\begin{document}
\pagestyle{plain}

\begin{sidewaystable}[]
  \centering
  \caption{Additive manufacturing technologies.}
  \label{tab:am_processes}
  \begin{tabulary}{\linewidth}{| L | L | L | L | L | L |}
hline
    Process & Build size & Tolerance & Materials & Layer thickness & Build rate\\
    \hline
    FDM & 914 $\times$ 610 $\times$ 914 mm \cite{fdm_spec} & $\pm$ 0.0015 up to 0.241 mm & ABS, PC, PA, PS, thermoplastics & 127-330 $\mu$ m & 7.62-43.18 mm/h \cite{sculpteo_speed}\cite{fdm_info} \\
    SLA  & 650 $\times$ 750 $\times$ 550  mm  & 0.025-0.5 mm &  Thermoplastics (elastomers) & 50-125$\mu$ m & 0.635-9.52m/s \cite{pham2012rapid}\\
    Polyjet & 294 $\times$ 192 $\times$ 148.6 mm \cite{polyjet_info} & $\pm$ 0.1 mm \cite{polyjet_info} & 0.015-0.030 mm \cite{SLS_Polyjet} & Acrylic plastics and elastomers \cite{Fischer2014} & Fast \cite{Fischer2014}\\
    LOM & 813 $\times$ 559 $\times$ 508 mm & $\pm$ 0.127 mm & 0.076-0.254 mm & Thermoplastics, paper, composites (ferrous/non-ferrous metals, ceramics) & - \\
    SLS & 550 $\times$ 550 $\times$ 750  mm & $\pm$ 0.3 mm &  polyamide based compounds (nylon) & 120-150 $\mu$ m & 0.6 to 2.5 cm\textsuperscript{3}/h\\
    EBM & 200 $\times$ 200 $\times$ 350 mm &$\pm$ 0.2 mm & Metals (cobalt, nickel, titanium) & 50 $\mu$ m & 45-66 mm\textsuperscript{3}/s\\
    LENS & 900 $\times$ 1500 $\times$ 900 mm & $\pm$ 0.125 mm & metals (titanium, nickel-base superalloys, stainless steels and tool steels) & 120 $\mu$ m & 5-60  mm\textsuperscript{3}/s\\
    3DP & 254 $\times$ 381 $\times$ 203 mm & $\pm$ 0.2 mm &  Ferrous/non-ferrous metals, elastomeric, composites, ceramics & 90-100 $\mu$ m & 25-50  mm\textsuperscript{3}/h\\
    Prometal & 1800 $\times$ 1000 $\times$ 700 mm (sand) 750 $\times$ 400 $\times$ 400 (metal) & $\pm$ 0.125 & Sand, glass, metal & 280-500 $\mu$ m & 2000(metal) to 30000(sand)  mm\textsuperscript{3}/s\\
  \end{tabulary}


    \caption*{Data was obtained by \cite{Aliakbari2012} unless otherwise indicated}
\end{sidewaystable}
\end{document}

答案2

我也会这样做sidewaystable,但使用tabularx,threeparttable andsiunitx . If the table has to break across pages, you can loadltablex , which brings the functionalities oflongtable totabularx`:

\documentclass{article}
\usepackage{amsmath, amssymb, graphicx, array}
\usepackage[showframe]{geometry}
 \usepackage{rotating, caption, threeparttable, tabularx, makecell, ragged2e}
\usepackage{siunitx}
\let\nl\newline

\begin{document}

\pagestyle{plain}
\begin{sidewaystable}
  \centering
  \setlength\tabcolsep{3pt}\small
  \sisetup{range-phrase=--,range-units =single}
  \setcellgapes{3pt}\makegapedcells
  \begin{threeparttable}
    \caption{Additive manufacturing technologies.}
    \label{tab:am_processes}
    \begin{tabularx}{\linewidth}{| p{1.4cm}| l| l |>{\hsize=1.12\hsize\RaggedRight\arraybackslash} X| >{\hsize=1.12\hsize\RaggedRight\arraybackslash}X|>{\hsize=0.76\hsize\RaggedRight\arraybackslash}X |}
      \hline
      Process & \makecell{Build size (mm)} \\
      \hline
      FDM & $ 914 × 610 × 914 $ \cite{fdm_spec} \\ to \SI{0.241}{mm}} & ABS, PC, PA, PS, thermoplastics & \SIrange{127}{330}{\um} & \SIrange{7.62}{43.18}{mm/h} \cite{sculpteo_speed}\cite{fdm_info} \\
      SLA & $ 650 × 750 × 550 $ \\
      Polyjet & $ 294 × 192 × 148.6 $ \cite{polyjet_info} \\
      LOM & $ 813 × 559 × 508 $ \\
      SLS & $ 550 × 550 × 750 $ \\
      EBM & $ 200 × 200 × 350 $ \\
      LENS & $ 900 × 1500 × 900 $ \\
      3DP & $ 254 × 381 × 203 $ \\
      Prometal & \makecell[tl]{$ 1800 × 1000 × 700 $ \\ (sand)\\l $ 750 × 400 × 400 $\\ (metal)} & $±0.125$ & Sand, glass, metal & \SIrange{280}{500}{\um} & 2000 (metal) to 30000 (sand) \si{mm³/s}\\
      \hline
    \end{tabularx}
    \medskip
    \begin{tablenotes}[flushleft]\footnotesize
      \item[]Data was obtained by \cite{Aliakbari2012} unless otherwise indicated. \end{tablenotes}
      \end{threeparttable}
      \end{sidewaystable}

\end{document} 

在此处输入图片描述

相关内容