【问题标题】:Forcing columns to remain on the same page in LaTeX强制列在 LaTeX 中保持在同一页面上
【发布时间】:2019-10-26 08:25:43
【问题描述】:

我有一张 a4paper,它已经被分割成 2/3s 是左边的一列,1/3 是右边的另一列。我还有一些东西要添加到两者中,然后我就完成了,但是当我现在将数据添加到右侧列时,它会自动与右侧列分离并转到下一页。我需要强迫他们在一起,我该怎么做?

注意:我在 Overleaf 上使用 Jan Kuster 的“Sidebar CV”模板

\documentclass[10pt,a4]{article}    

\usepackage[utf8]{inputenc}     

\usepackage{xifthen}
\usepackage[light,math]{iwona}

\usepackage{array}

\usepackage[a4paper]{geometry}      

\geometry{top=1cm, bottom=-.6cm, left=0.4cm, right=1cm}     

\setlength{\headheight}{-5pt}       

\setlength{\parindent}{0mm}

\usepackage{multicol}           
\usepackage{multirow}


\usepackage{array}

\newcolumntype{x}[1]{%
>{\raggedleft\hspace{0pt}}p{#1}}%

\usepackage{graphicx}

\usepackage{wrapfig}
\usepackage{float}

\newcommand{\mpwidth}{\linewidth-\fboxsep-\fboxsep}

% This begins the first section
\fcolorbox{white}{white}{\begin{minipage}[c][0.95\textheight][t]{0.69\linewidth}

The columns in the two photos should be on the same page, with the smaller column on the right This should be to the right of the other column in the previous photo

【问题讨论】:

  • 你能加个minimal working example (MWE)吗?
  • 你必须意识到没有例子没有人可以回答你的问题。在latex中布局多列的方式有很多种:minipages、classes article的twocolumm选项、非常流行的multicol包、paracol包等等。我们如何知道您使用了什么以及您做了什么?

标签: latex pdflatex


【解决方案1】:

好吧,这是非常老套的解决方法……但我最终做的是调整我正在使用的纸张的大小。所以最初我使用的是 A4 纸而不是 Letter,并为使用的各个 minipages 调整了尺寸。我调整了两者的大小并修剪了 minipage 宽度,这解决了我的问题。

【讨论】:

    猜你喜欢
    • 2010-12-19
    • 1970-01-01
    • 2022-10-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-01-22
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多