![我怎样才能使图像居中?](https://linux22.com/image/388232/%E6%88%91%E6%80%8E%E6%A0%B7%E6%89%8D%E8%83%BD%E4%BD%BF%E5%9B%BE%E5%83%8F%E5%B1%85%E4%B8%AD%EF%BC%9F.png)
我想通过以下代码将论文中的图像水平居中。
\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}