将两个相同的图像放在单独的平行列中

将两个相同的图像放在单独的平行列中

在此处输入图片描述我用texlive+vscode/xe->bib->xe->xe写了一个双语pdf,想在平行的列中插入两张一模一样的图片,用下面的代码实现了,但是很不幸,图片的位置总是往右边偏移,试了好几次\centering \raggedleft \flushleft都失败了,有谁能教教我怎么修改代码吗?在此处输入图片描述

//recipes
      "latex-workshop.latex.recipes": [
        {
          "name": "xelatex",
          "tools": [
            "xelatex"
          ],


//tex
% paper layout
\documentclass[a4paper, 12pt]{article}
% margin
\usepackage[margin=2.54cm]{geometry}
% font
\usepackage{fontspec}
% graphicx
\usepackage{graphicx}
% line spacing
\usepackage{setspace}
% parallel text
\usepackage{parallel}
% Times New Roman
\setmainfont{Times New Roman}

\begin{document}
  \begin{Parallel}{75mm}{75mm}
    \singlespacing
    \Large\section{April 2017}
    \ParallelLText
    {
        \includegraphics[width=0.70\columnwidth]{E:/1.jpg}
    }
    \ParallelRText
    {
        \includegraphics[width=0.70\columnwidth]{E:/1.jpg}
    }
    \ParallelPar
  \end{Parallel}
\end{document}

答案1

额外的空白在原始图片的两端,只需将其剪切并删除空白,然后按适当的比例缩放即可解决您的问题。我已经编辑了图片并删除了空白,如下所示。

在此处输入图片描述

你可能想看看paracol包。加载后,您可以执行以下命令,例如

\documentclass[UTF8, a4paper, 11pt]{article}

\usepackage{ctex}
\usepackage[margin=15mm]{geometry}
\usepackage{paracol}
\usepackage{graphicx}

\begin{document}

\begin{paracol}{2}[\section{Introduction}]
  The world's population is likely to peak at 9.7 billion in 2064, and then decline to about 8.8 billion by the end of the century, as women get better access to education and contraception, a new study has found.
    
  \switchcolumn
    一项新研究发现,随着女性有更多机会接受教育和采取避孕措施,世界人口可能会在 2064 年达到 97 亿的峰值,然后会在本世纪末降到约 88 亿。
    
  \switchcolumn*
    By 2100, 183 of 195 countries will not have fertility rates required to maintain the current population, with a projected 2.1 births per woman, researchers from the Institute for Health Metrics and Evaluation at the University of Washington's School of Medicine said.
    
  \switchcolumn
    华盛顿大学医学院健康指标与评估研究所的研究人员称,到 2100 年,195 个国家中有 183 个国家的生育率将不足以维持现有人口,预计平均每位女性生育 2.1 个孩子。
    
  \switchcolumn*
  \begin{center}
    \includegraphics[scale=0.5]{example-image-a}
  \end{center}

  \switchcolumn
  \begin{center}
    \includegraphics[scale=0.5]{example-image-b}
  \end{center}
\end{paracol}
\end{document}

在此处输入图片描述

相关内容