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 ...
随机推荐
- CURRENMONTH TAG in Automation Framework
/** * @param input * <CURRENTMONTH><CURRENTMONTH+1> * @return Month "MM" */ pr ...
- php session目录无法写进数据的问题
打算开启php的session功能,并将session信息存到文件里. 修改php.ini,开启session功能: #将session信息存到文件中session.save_handler = fi ...
- UI Framework-1: Browser Window
Browser Window The Chromium browser window is represented by several objects, some of which are incl ...
- MySQL服务正在启动或停止中,请稍候片刻后再试一次【解决方案】
相信有些小伙伴在使用数据库的过程中会经常频繁的启动和停止MySQL服务,有时候会出现“服务正在启动或停止中,请稍候片刻后再试一次.”这样的提示,如下图所示. 于是乎想办法去解决这个问题,但是发现连强制 ...
- php重新编译,gd扩展支持jpeg文件
晚上写东西的时候,报了一个错误: Call to undefined function imagecreatefromjpeg() 没有开启 jpeg 支持?原来是默认安装的 gd 扩展默认不支持 j ...
- 使用 validate 进行输入验证
validate 官方教程网址: http://www.runoob.com/jquery/jquery-plugin-validate.html 在表单页面引入两个核心 js 文件 #官方的两个文件 ...
- Delayer 基于 Redis 的延迟消息队列中间件
Delayer 基于 Redis 的延迟消息队列中间件,采用 Golang 开发,支持 PHP.Golang 等多种语言客户端. 参考 有赞延迟队列设计 中的部分设计,优化后实现. 项目链接:http ...
- Ubuntu上使用过的命令,Linux常用命令,mount 硬盘挂载, ls 列表list命令,cp 复制copy命令,mkdir 创建文件夹 ,nano 编辑器,cat 文档合并,chmod 文件权限,ssh win10连接ubuntu服务器的步骤
man 帮助 > man ls # ubuntu的帮助 tar.gz 压缩解压 > tar -zcvf yzn.tar.gz /home/yzn # 压缩 > tar -zxvf y ...
- 安卓Gallery配合ImageSwitcher不显示图片
Gallary装的是缩略图(thumb),ImageSwitcher装的是大图. 不显示图片的一个可能原因是gallery没设置代理器,另一个原因是没使用相对布局. GalleryActivity.j ...
- Azure 配置高可用的准备系列工作-建立不同区域的存储账户和建立网络!
我们谈到我们的业务,常常谈到一个词.三层架构,就是我们的UI层.数据訪问层和数据存储层的分离,通常情况下我们的业务高可用必须满足这三层的所有高可用的情况下才干达到最高级别的高可用. 那么谈到Az ...