LaTeX Subfigure 中间加入垂直线
近期论文用到这个效果。 先实现下, 嘿嘿。
\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}
效果:
watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQveGlhb2ppZGFuMjAxMQ==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast" alt="">
大家学习吧。
可是我自己用在论文中有个bug。 大家測试下, 有什么改进的方法哟。 欢迎指出来哟。
LaTeX Subfigure 中间加入垂直线的更多相关文章
- LaTeX多图合并代码示例(subfigure)
\usepakage{subfig} \begin{figure*}[!htb] \centering \subfigure[Derm101 data distribution]{\includegr ...
- SCI英文论文写作- Latex 进阶
SCI英文论文写作- Latex 进阶 1.设置行间距的方法: %\setlength{\baselineskip}{15pt} \renewcommand{\baselinestretch}{1 ...
- Windows下LATEX排版论文攻略—CTeX、JabRef使用介绍
Windows下LATEX排版论文攻略—CTeX.JabRef使用介绍 一.工具介绍 TeX是一个很好排版工具,在学术界十分流行,特别是数学.物理学和计算机科学界. CTeX是TeX中的一个版本,指的 ...
- latex 竖排子图的生成
latex命令如下: 需要的包为: \usepackage{graphicx} \usepackage{subfigure} \begin{figure*}%加*的作用是跨栏(双栏和单栏latex的区 ...
- latex中页面距离的设置
1.页面设置 a4 会给你一个较小的页面,为了使用更多的控制,可用 geometry宏包和命令 \layout . 2.改变长度 在latex里改变长度的命令是 \addtolength 和 \set ...
- 【转】LaTeX 符号命令大全
函数.符号及特殊字符 声调 语法 效果 语法 效果 语法 效果 \bar{x} \acute{\eta} \check{\alpha} \grave{\eta} \breve{a} \ddot{y} ...
- Latex插入图片 分类: LaTex 2014-11-18 20:07 261人阅读 评论(0) 收藏
在Latex中插入图片的方式很多,我这里只介绍自己常用的一种方式,欢迎大家指导. 我习惯于使用graphicx宏包来插入图片,有时候会配合上subfigure宏包来同时插入多幅图片组合. 首先,需要在 ...
- latex 模版
texlive2012 通过 \documentclass[a4paper]{article} %\documentclass[twocolumn]{article} %\usepackage{g ...
- latex 固定图片位置
1,插入并列的子图 \usepackage{subfigure} \begin{figure}[H] \centering \subfigure[SubfigureCaption]{ \label{F ...
随机推荐
- Tuples as return values
Strictly speaking, a function can only return one value, but if the value is a tuple, the effect is ...
- Android框架-Volley(四)
经过前三篇文章的学习,Volley的用法我们已经掌握的差不多了,但是对于Volley的工作原理,恐怕有很多朋友还不是很清楚.因此,本篇文章中我们就来一起阅读一下Volley的源码,将它的工作流程整体地 ...
- ASP.NET Core学习日志1
1.ASP.NET进行了结构化的优化,使框架更为精简,模块化更加明显. 2.ASP.NET Core不再基于System.Web.dll,而是基于细粒度.分解的NuGet包. 3.基础特性: 1.We ...
- PostgreSQL 批量生成数据
create table user_info(userid int,name text,birthday date,crt_time timestamp without time zone,); in ...
- Python实现文件阅读功能(Python学习笔记)
#!/usr/bin/python# Filename: filereader.pyimport sys def readfile(filename): '''Print a file to the ...
- ES6学习4 变量的解构赋值
变量的解构赋值 一.数组结构赋值 1.数组结构赋值 let [a, b, c] = [1, 2, 3]; ES6 可以从数组中提取值,按照对应位置,对变量赋值. 1) 本质上,这种写法属于“模式匹配 ...
- 在ubuntu上编译rasbian kernel(for raspberry pi 1)
raspberry pi官网的编译手册写的简洁有力,照着操作即可 https://www.raspberrypi.org/documentation/linux/kernel/building.md ...
- Object-C,文件路径API
犀利吐槽 1.同样都是"文件和目录操作",java中,就用java.util.File一个类,就封装了很多API,而Object-C搞了这么多类和函数.具体原因,有待分析啊. 2. ...
- HNU 12933 Random Walks Catalan数 阶乘求逆元新技能
一个Catalan数的题,打表对每个数都求一次逆元会T,于是问到了一种求阶乘逆元的打表新方法. 比如打一个1~n的阶乘的逆元的表,假如叫inv[n],可以先用费马小定理什么的求出inv[n],再用递推 ...
- HttpService解析
HttpServlet容器响应Web客户请求流程如下: 1)Web客户向Servlet容器发出Http请求: 2)Servlet容器解析Web客户的Http请求: 3)Servlet容器创建一个Htt ...