html怎么将四张照片合在一起的软件,LaTeX技巧880:如何画这种下图所示4个图拼接起来的图?...

本文探讨了在 LaTeX 中如何精确控制图像布局,包括设置图片间距、裁剪白边、减小文件大小以及添加图注。作者提到了使用TikZ库进行图形定位,并询问了关于在Linux下自动裁剪PDF白边的软件推荐。同时,讨论了如何在图上添加序号,考虑使用Tikz或overpic实现。
摘要由CSDN通过智能技术生成

19255033d47815853320741de7305c8d.png我的思路是先在一个tex文件里做出这么一个pdf图,并且在图中标好1234,然后对pdf裁掉白边,最后直接插入论文里。ba5d0711f53ed91757322830a81c9e12.png代码:\documentclass{article}

\usepackage{graphicx}

\usepackage[paperwidth=81mm, paperheight=80mm, scale={1,1}]{geometry}

\pagestyle{empty}

\begin{document}

\begin{center}

\begin{figure*}

\includegraphics[width=40mm]{1}

\includegraphics[width=40mm]{2}

\end{figure*}

\vspace{-10mm}

\begin{figure*}

\includegraphics[width=40mm]{3}

\includegraphics[width=40mm]{4-}

\end{figure*}

\end{center}

\end{document}

然后问题来了:我需要的是控制每幅图之间的距离为0.5mm,上下两图之间的距离明显太大,该怎么调整?

可以看到我设置的页边距81mm,其实我想要的是80.5mm,但是换成80.5,左右两个40mm的图就换行了,为什么?

如何手动设置图片的分辨率以减小文件尺寸?我这四幅图生成的pdf和四张图片总大小几乎一样大,5.5M;

在Linux下有什么软件可以自动裁剪pdf白边?求推荐

怎么往图上加字?(如下图,图来自ELSEVIER的Author Guidance)比如每张图的左上角插入序号,个人觉得可以用Tikz或者overpic。我从没用过Tikz或者overpic也还没查这方面的资料,如果有大神推荐一下用什么方法的话也是极好的。

d5c0df43f6667d983f37e0c9864ca852.png刘海洋:熟悉 tikz 推荐用画图的方式做,灵活一些,否则文字的定位也挺考验你 TeX 技术的。一个绘图定位的例子如下:\documentclass{article}

\usepackage{tikz}

\usetikzlibrary{positioning}

\begin{document}

\begin{tikzpicture}

\scope[nodes={inner sep=0,outer sep=0}]

\node[anchor=south east] (a)

{\includegraphics[width=4cm]{example-grid-100x100bp.png}};

\node[anchor=south west] (b)

{\includegraphics[width=4cm]{example-image-1x1}};

\node[anchor=north east] (c)

{\includegraphics[width=4cm]{example-image-1x1}};

\node[anchor=north west] (d)

{\includegraphics[width=4cm]{example-grid-100x100bp.png}};

\node[right=1mm of b] (e)

{\includegraphics[height=4cm]{example-image-4x3}};

\node[below=2mm of c.south west,anchor=north west] (f)

{\includegraphics[width=8cm]{example-image-16x9}};

\endscope

\foreach \n in {a,b,c,d} {

\node[anchor=north west,fill=yellow] at (\n.north west) {(\n)};

}

\node[anchor=north east,fill=green] at (e.south east) {(e)};

\node[anchor=south west,fill=green] at (f.south east) {(f)};

\end{tikzpicture}

\end{document}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值