• latex:画图


    以前一直用word写论文,其实word没什么不好,现在很多的期刊会议也都提供word模板。但是,根据这两次惨痛的word写论文经验可以得出结论:最好不要用word来写论文。用word我遇到了两个令人抓狂令人抓狂的问题:1,word中公式排版很难用,如果公式较多,用word绝对会后悔 2,word版本过多,2003,2007,2010,现在还有2013,并且把一个版本中排好版的文档用另一个版本的word打开,基本上肯定会变,有的变得让你很shock,而且没有专门研究过这个word的人,很难了解这是如何发生的以及如何改正,如果你的论文可能多人会参与,你可能在多个电脑上编辑,最好别用word。

    所以,虽然我要毕业了,虽然我可能以后不会写论文了,但是这次,我坚决放弃word,用latex。可能latex也有它的缺点,那就遇到在说吧。

    这篇文章就总结了我这个刚刚开始使用Latex的童鞋的一点点关于latex图片的排版的总结,我想实现一种效果,网上找了很多,竟然没找到,所以我觉得还是有必要总结一下。

    style 1:四个子图,两排

    代码:

    \documentclass{article}
    \usepackage{subfigure}
    \usepackage{graphicx}
    \begin{document}
    \begin{figure}
        \centering
        \subfigure[]{
            \begin{minipage}{0.45\textwidth}
                \includegraphics[width=1\textwidth]{assets/images/1.eps}
            \end{minipage}
        }
        \subfigure[]{
             \begin{minipage}{0.45\textwidth}
                \includegraphics[width=1\textwidth]{assets/images/2.eps}
            \end{minipage}
        }
        \subfigure[]{
             \begin{minipage}{0.45\textwidth}
                \includegraphics[width=1\textwidth]{assets/images/3.eps}
            \end{minipage}
        }
        \subfigure[]{
             \begin{minipage}{0.45\textwidth}
                \includegraphics[width=1\textwidth]{assets/images/4.eps}
            \end{minipage}
        }
        \caption{style 1}
    \end{figure}
    \end{document}

    style 2: 三个子图

    我觉得这种排版应该挺常见的,不过我在网上找了好久都没找到教程,可能是我水平太低了,下面给出我的代码。

    \begin{figure}
        \subfigure[]{
            \includegraphics[width=0.5\textwidth]{assets/images/a.eps}
        }%
        \quad
        \begin{tabular}[b]{c}%
            \subfigure[]{%
                \includegraphics[width=0.48\textwidth]{assets/images/b.eps}
            }\\
            \subfigure[]{%
                \includegraphics[width=0.48\textwidth]{assets/images/c.eps}
            }
        \end{tabular}%
    \caption{style2}
    \end{figure}
  • 相关阅读:
    聊聊ES6中的generator
    generator-yield到底是个啥
    jquery 常用方法中那些我不知道的事
    jquery 获取textarea文本值详解
    数组去重
    五指棋人机大战之ai篇
    五指棋人机大战之ui篇
    css控制背景图像不随滚动条的滚动而滚动
    用canvas画会旋转的伞
    CSS3 实现太极图案
  • 原文地址:https://www.cnblogs.com/naniJser/p/3075599.html
Copyright © 2020-2023  润新知