强制列在LaTeX中保留在同一页面上

时间:2019-06-11 21:14:33

标签: latex pdflatex

我有一张被分开的a4纸,所以其中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

1 个答案:

答案 0 :(得分:0)

好吧,非常棘手的修复程序...但是我最终要做的是调整正在使用的纸张的大小。因此,最初我使用的是A4纸,而不是Letter纸,并使用了相应小页面的尺寸进行了调整。我调整了两者的尺寸并调整了最小页面宽度,这解决了我的问题。