我想通过以下代码将论文中的图像水平居中。
\documentclass[12pt,twocolumn,oneside,a4paper]{article}
...
...
...
\begin{figure*}[]
HK1706 (in 2017)
\centering
\includegraphics[width = 1.15\textwidth]{materials/aaa.jpg}
\caption{Map of the study area showing sampling stations and station numbers. }
\label{Figure 3}
\end{figure*}
但导出的 PDF 中的图像像附图一样偏向右侧。它似乎是左对齐的。我该如何修复这个问题并使图像居中?
答案1
只需用以下方式欺骗 LaTeX \makebox[\linewidth]
:
\documentclass[12pt,twocolumn,oneside,a4paper]{article}
\usepackage[demo]{graphicx}
\begin{document}
\begin{figure*}[]
HK1706 (in 2017)
\centering
\makebox[\linewidth]{\includegraphics[width = 1.15\textwidth]{materials/aaa.jpg}}
\caption{Map of the study area showing sampling stations and station numbers. }
\label{Figure 3}
\end{figure*}
\end{document}