当前位置:   article > 正文

latex 表格“tabular”跨多行笔记_latex tabular package

latex tabular package
\documentclass[]{article}
\usepackage{multirow}
\begin{document}
\renewcommand{\multirowsetup}{\centering}  
    \begin{tabular}{|l|l|l|l|} 
       	\hline  
       	\multirow{4}{2cm}{This is a demo table}  & a & \multirow{4}{2cm}{This is another one} & \\ 
       	& b &  & \\ 
       	& c &  & \\ 
       	& d & & \\ 
       	\hline 
     \end{tabular} 
\end{document}
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13

显示:

另外方法:

\documentclass{article}
\usepackage{amsmath,varwidth,array,ragged2e}
\newcolumntype{L}{>{\varwidth[c]{\linewidth}}l<{\endvarwidth}}
\newcolumntype{M}{>{$}l<{$}}
\def\ds{\mathrm{d}s}%  don't know what your \ds should be ....
\begin{document}

\def\arraystretch{1.7}
\begin{tabular}{rMrL}
(A) & \ds u=\sqrt{x^2+y^2} &(B) & $\ds u=\sqrt{x^4+y^4}$\tabularnewline
(C) & \ds u=\sqrt[3]{xy}   &(D) & $\ds u=\sqrt[3]{x^2+y^2}$\tabularnewline
(E) & \ds u=\sqrt[3]{x^4+y^4} & (F) & 
  \[ u=\begin{cases}e^{\frac{-1}{x^2+y^2}}; &x^2+y^2\neq 0\\ 0; &x^2+y^2=0\end{cases} \] \tabularnewline
(G) & \ds u=\sqrt[3]{x}\sin y & (H) & $\ds u=\sqrt[3]{y}\tan x$
\end{tabular}

\end{document}
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17

显示:

另外一种:

\documentclass[oneside]{article}
\usepackage{chngpage}
\usepackage{array}
\begin{document}
\begin{adjustwidth}{-1cm}{-1cm}
 \begin{tabular}{|p{.2\textwidth}| p{.2\textwidth}| m{.7\textwidth}|}
 \hline
  new & old &   all boring, all boring, all boring, all boring, all boring, all boring, all boring, all boring, all boring, all boring, all boring, all boring, all boring, all boring, \\ \hline
 \end{tabular}
\end{adjustwidth}
\end{document}
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/很楠不爱3/article/detail/237943
推荐阅读
相关标签
  

闽ICP备14008679号