zoukankan      html  css  js  c++  java
  • LaTeX 中使两张表格并排

    在使用 LaTeX写论文或者画海报的时候,希望两张较小的表格可以并排,(一般情况的LaTeX插入两张图片是上下布局的)

    查找了一下,相关的例子如下:

    egin{minipage}{	extwidth}
     egin{minipage}[t]{0.45	extwidth}
      centering
         makeatletterdef@captype{table}makeatothercaption{表格标题1}
           egin{tabular}{cccc} 
        表格内容
        end{tabular}
      end{minipage}
      egin{minipage}[t]{0.45	extwidth}
       centering
            makeatletterdef@captype{table}makeatothercaption{表格标题2}
             egin{tabular}{cccc}        
              表格内容
          end{tabular}
       end{minipage}
    end{minipage}
    egin{minipage}{	extwidth}
            egin{minipage}[t]{0.45	extwidth}
                centering
                makeatletterdef@captype{table}makeatothercaption{title1}
                egin{tabular}{ccc}
    hline
    n  & L  & $L+n$ \ hline
    0  & 1  & 1 \
    1  & 3  & 4 \
    2  & 5  & 7 \
    3  & 7  & 10\
    4  & 9  & 13 \
    5  & 11 & 16 \
    6  & 13 & 19\
    7  & 15 & 22 \
    8  & 17 & 25 \
    9  & 19 & 28\
    10 & 21 & 31 \
    11 & 23 & 34\
    12 & 25 & 37 \
    13 & 27 & 40  \
    14 & 29 & 43  \
    15 & 31 & 46  \
    16 & 33 & 49  \
    17 & 35 & 52\
    hline
    end{tabular}
            end{minipage}
            egin{minipage}[t]{0.45	extwidth}
            centering
            makeatletterdef@captype{table}makeatothercaption{title2}
                egin{tabular}{ccc}
    hline
    n  & L  & $L+n$ \ hline
    0  & 1  & 1 \
    1  & 3  & 4 \
    2  & 5  & 7 \
    3  & 7  & 10\
    4  & 9  & 13 \
    5  & 11 & 16 \
    6  & 13 & 19\
    7  & 15 & 22 \
    8  & 17 & 25 \
    9  & 19 & 28\
    10 & 21 & 31 \
    11 & 23 & 34\
    12 & 25 & 37 \
    13 & 27 & 40  \
    14 & 29 & 43  \
    15 & 31 & 46  \
    16 & 33 & 49  \
    17 & 35 & 52\
    hline
    end{tabular}
            end{minipage}
        end{minipage}

    【Reference】

    1、关于Latex并排两张表格的解决方案

  • 相关阅读:
    VirtualBox安装及使用说明和虚拟机安装XP系统图文教程
    jbpm入门样例
    39个让你受益的HTML5教程
    JAVA反射机制
    怎样学好C语言,一个成功人士的心得!
    golang使用pprof检查goroutine泄露
    GridView编辑删除操作
    初识Servlet
    严苛模式(StrictMode)
    严苛模式(StrictMode)
  • 原文地址:https://www.cnblogs.com/shenxiaolin/p/10323731.html
Copyright © 2011-2022 走看看