码迷,mamicode.com
首页 > 其他好文 > 详细

LaTeX Subfigure 中间添加垂直线

时间:2014-06-18 07:53:54      阅读:482      评论:0      收藏:0      [点我收藏+]

标签:des   style   class   blog   code   http   

最近论文用到这个效果, 先实现下, 嘿嘿。

\documentclass{article}
\usepackage{tikz,lscape,amsmath}
\usepackage[margin=1cm]{geometry}
\usetikzlibrary{matrix}


\begin{document}

\def\arraystretch{0.5}
\tikzset{ 
table/.style={
  matrix of nodes,
  row sep=-\pgflinewidth,  % <-- This adjusts the row separation
  column sep=\pgflinewidth,% <-- This adjusts the column separation
  nodes={rectangle,draw=none, text width=2cm, align=center,inner sep=2pt,outer sep=0pt},
%  nodes in empty cells
  }
}
\begin{tikzpicture}

\matrix (mat) [table]
{
\includegraphics[width=2cm]{example-image-A} & \includegraphics[width=2cm]{example-image-A} & \includegraphics[width=2cm]{example-image-A} & \includegraphics[width=2cm]{example-image-A} & \includegraphics[width=2cm]{example-image-B}  
& \includegraphics[width=2cm]{example-image-B} &  \includegraphics[width=2cm]{example-image-B} &  \includegraphics[width=2cm]{example-image-B}\\includegraphics[width=2cm]{example-image-A} & \includegraphics[width=2cm]{example-image-A}  &\includegraphics[width=2cm]{example-image-A}&\includegraphics[width=2cm]{example-image-A}  &\includegraphics[width=2cm]{example-image-B}  & \includegraphics[width=2cm]{example-image-B} &  \includegraphics[width=2cm]{example-image-B}&  \includegraphics[width=2cm]{example-image-B}\\includegraphics[width=2cm]{example-image-A} & \includegraphics[width=2cm]{example-image-A}  &\includegraphics[width=2cm]{example-image-A}&\includegraphics[width=2cm]{example-image-A}  &\includegraphics[width=2cm]{example-image-B}  & \includegraphics[width=2cm]{example-image-B} &  \includegraphics[width=2cm]{example-image-B}&  \includegraphics[width=2cm]{example-image-B}\\includegraphics[width=2cm,height=2.3cm]{example-image-A} & \includegraphics[width=2cm,height=2.3cm]{example-image-A}  &\includegraphics[width=2cm,height=2.3cm]{example-image-A}&\includegraphics[width=2cm,height=2.3cm]{example-image-A}  &\includegraphics[width=2cm,height=2.3cm]{example-image-B}& \includegraphics[width=2cm,height=2.3cm]{example-image-B} &  \includegraphics[width=2cm,height=2.3cm]{example-image-B} &  \includegraphics[width=2cm,height=2.3cm]{example-image-B}\};
\draw[red,dashed,very thick](mat-1-4.north east)--(mat-4-4.south east);  %<-- This is for the red line in the middle
\end{tikzpicture}


\end{document}


效果:

bubuko.com,布布扣

大家学习吧。 但是我自己用在论文中有个bug。 大家测试下, 有什么改进的方法哟, 欢迎指出来哟。




LaTeX Subfigure 中间添加垂直线,布布扣,bubuko.com

LaTeX Subfigure 中间添加垂直线

标签:des   style   class   blog   code   http   

原文地址:http://blog.csdn.net/xiaojidan2011/article/details/31816227

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!