我正在使用以下文档类/模板:
\documentclass[conference]{IEEEtran}
\IEEEoverridecommandlockouts
% The preceding line is only needed to identify funding in the first footnote. If that is unneeded, please comment it out.
\usepackage{cite}
\usepackage{amsmath,amssymb,amsfonts}
\usepackage{algorithmic}
\usepackage{graphicx}
\usepackage{textcomp}
\usepackage{xcolor}
\usepackage{todonotes}
\usepackage{lipsum}
\def\BibTeX{{\rm B\kern-.05em{\sc i\kern-.025em b}\kern-.08em
T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}}
\begin{document}
\lipsum[2-4]
\missingfigure[figwidth=6cm]{Testing a long text string}
\lipsum[2-2]
\missingfigure[figwidth=6cm]{Testing a long text string}
\lipsum[2-4]
\end{document}
并将其作为标准输出:
我如何旋转图形以获得以下输出(我想通过水平排列图像来使图像变大):
答案1
要获得横跨两列的图形,请使用figure*
环境。要旋转图像,请使用命令angle
中的可选参数includegraphics
。角度的正值将逆时针旋转图像,而负值将执行相反的操作。以下是示例:
\documentclass[conference]{IEEEtran}
\IEEEoverridecommandlockouts
% The preceding line is only needed to identify funding in the first footnote. If that is unneeded, please comment it out.
\usepackage{cite}
\usepackage{amsmath,amssymb,amsfonts}
\usepackage{algorithmic}
\usepackage{graphicx}
\usepackage{textcomp}
\usepackage{xcolor}
\usepackage{todonotes}
\usepackage{lipsum}
\def\BibTeX{{\rm B\kern-.05em{\sc i\kern-.025em b}\kern-.08em
T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}}
\begin{document}
\lipsum
\begin{figure*}
\centering
\includegraphics[width=0.8\textwidth, height=4cm]{example-image-duck}
\caption{Caption}
\label{fig:my_label}
\end{figure*}
\lipsum
\begin{figure*}
\centering
\includegraphics[width=6cm,height=0.8\textwidth,angle=90]{example-image-duck}
\caption{Rotated image}
\label{fig:my_label}
\end{figure*}
\lipsum
\lipsum
\end{document}
注意:IEEE 不允许在第一页出现两栏的图表。