zoukankan      html  css  js  c++  java
  • LaTeX Subfigure 中间加入垂直线

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

    documentclass{article}
    usepackage{tikz,lscape,amsmath}
    usepackage[margin=1cm]{geometry}
    usetikzlibrary{matrix}
    
    
    egin{document}
    
    defarraystretch{0.5}
    	ikzset{ 
    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
      }
    }
    egin{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}


    效果:

    大家学习吧。

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




  • 相关阅读:
    AngularJS---核心特性
    前后端分离原理
    吴军 见识 读后感
    CSS 颜色名称和CSS 颜色十六进制值
    springmvc+jsp引用本地图片文件
    Eclipse 构建Maven项目--普通web项目 复制另外一个项目的配置文件导致的问题
    html input type=date 赋值问题 必须yyyy-mm-dd格式
    解决eclipse中运行web项目时弹出的"Port 8080 required by Tomcat 9.0 Server at localhost is already in use...
    解决 Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile)
    SpringMVC HelloWorld实例开发及部署
  • 原文地址:https://www.cnblogs.com/jzssuanfa/p/6950843.html
Copyright © 2011-2022 走看看