LaTeX在双栏模式下插入跨栏图表
LaTeX中插入eps图片的命令是:
1 2 3 4 5 6 | \begin{figure} \centering \includegraphics[width = 8cm ]{picture.eps} \caption{This is a picture.} \label{fig:picture001} \end{figure} |
在双栏编辑模式下,图片只能在一栏中显示,而且如果图片的宽度超过单栏文本宽度,则只能显示其中一部分,剩下的部分会”溢出“。
在双栏模式下插入跨栏图,方法其实很简单,将环境
1 2 3 4 5 | \begin{figure} ...... \end{figure} |
替换为带 * 的环境即可:
1 2 3 4 5 6 | \begin{figure * } <br>...... \end{figure * } |
在上例中,插入跨栏图的命令如下:
1 2 3 4 5 6 | \begin{figure * } \centering \includegraphics[width = 8cm ]{picture.eps} \caption{This is a picture.} \label{fig:picture001} \end{figure * } |
同时纵向排列插入多个单栏图片:
1 2 3 4 5 | \begin{figure} \centering \includegraphics[width = 8cm ]{picture1.eps} <pre name = "code" class = "plain" >\includegraphics[width = 8cm ]{picture2.eps} <pre name = "code" class = "plain" ><pre name = "code" class = "plain" >\includegraphics[width = 8cm ]{picture3.eps} |
\caption{This is a picture.}
\label{fig:pictures}\end{figure}
上面的命令得到三个 纵向排列 的图,单栏图,不跨栏。三个图共享一个标题caption和编号label
横向排列多个跨栏图:
1 2 3 4 5 | \begin{figure * } \centering \includegraphics[width = 8cm ]{picture01.eps} <pre name = "code" class = "plain" >\includegraphics[width = 8cm ]{picture02.eps} <pre name = "code" class = "plain" ><pre name = "code" class = "plain" >\includegraphics[width = 8cm ]{picture03.eps} |
1 2 3 4 | <br>\caption{This is a picture.} \label{fig:pictures2} \end{figure * } |
得到三个 横向排列 的图,双栏图,三个图占两个栏,三个图共享一个标题caption和编号label
双栏模式下插入单栏表:
1 2 3 4 5 6 7 8 9 10 11 12 | \begin{table} \centering \caption{Table of students.} \begin{tabular}{|c|c|c|} \hline Name & Age & Gender \\ \hline Cat & 3 & 3.85 & Girl \\ \hline Dog & 5 & Boy \\ \hline \end{tabular} \label{table:stu} \end{table} |
在双栏模式下插入跨栏表格,方法其实也很简单,将环境
1 2 3 4 5 | \begin{table} ...... \end{table} |
替换为带*的环境即可:
1 2 3 4 5 | \begin{undefinedtalbe * } ...... \end{table * } |
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】博客园社区专享云产品让利特惠,阿里云新客6.5折上折
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步