问题:

问题:

我利用这个创建了我的 MWE问答

问题:

我认为它效果很好,唯一的问题是从页面顶部向下的长度唇形段落从第一页开始,我还想部分开始。我不知道如何展示这一点,但如果你看一下 和 之间的空间以及 和 开始 之间的空间,hrulefill就会发现存在空间差异。NullaSection

目标:

最终,我希望页面顶部“表格”之后的每一行都从同一位置开始。我不知道我是否应该继续使用,\gotohalf或者我是否应该使用不同的软件包或其他东西。

梅威瑟:

\documentclass{article}
\usepackage[left=1.25in, top=1in, right=0.85in, bottom=1in]{geometry}
\usepackage{lipsum}
\usepackage{setspace}
\linespread{1.6}

\newcommand*{\gotohalf}{%
  \par
  \begingroup
     \dimen0=\pagegoal
     \advance\dimen0 by -.9\pagetotal
     \advance\dimen0 by -.5\textheight
     \ifdim\dimen0<0pt %
      % space left is smaller than half the text height
      \newpage
       \setlength{\topskip}{0pt}%
     %   \vspace*{.5\textheight}%  
       \vspace{-\parskip}%
    \else
       \vspace{\dimen0}%
    \fi
   \endgroup
 }

\begin{document}
\begin{flushleft}
    \begin{minipage}{3in}
        \begin{tabular}{ | p{2.5in}|}
           \hline \\
           \MakeUppercase{Rachel}, \\
           \hfill\emph{Wife of Jacob}. \\ 
           \MakeUppercase{Esther}, \\
           \hfill\emph{Queen to Xerxes}. \\
           \leavevmode\\ \hline
        \end{tabular}
    \end{minipage}
    \begin{minipage}{3.3in}
        \begin{tabular}{ p{3in} }
            Question: \leavevmode\\
            \vspace{12pt} \\
            \begin{spacing}{1}\bf{\lipsum[1]}\end{spacing} \leavevmode\\
        \end{tabular}
    \end{minipage}
 \end{flushleft}

 \gotohalf
 \hrulefill
 \par \lipsum[3]

 \newpage
 \begin{flushleft}
    \begin{minipage}{3in}
        \begin{tabular}{ | p{2.5in}|}
           \hline \\
           \MakeUppercase{Rachel}, \\
           \hfill\emph{Wife of Jacob}. \\ 
           \MakeUppercase{Esther}, \\
           \hfill\emph{Queen to Xerxes}. \\
           \leavevmode\\ \hline
        \end{tabular}
    \end{minipage}
    \begin{minipage}{3.3in}
        \begin{tabular}{ p{3in} }
           Question: \leavevmode\\
            \vspace{12pt} \\
            \begin{spacing}{1}\bf{\lipsum[1]}\end{spacing} \leavevmode\\
        \end{tabular}
    \end{minipage}
\end{flushleft}
\gotohalf
\hrulefill
\section{Section}
\end{document}

输出:

在此处输入图片描述 在此处输入图片描述

答案1

我猜你想要

\noindent\hrulefill\par

所以规则不是从缩进开始的。

您需要欺骗 TeX,让它认为该部分位于页面的开头。这可以使用 来实现\nointerlineskip

\documentclass{article}
\usepackage[left=1.25in, top=1in, right=0.85in, bottom=1in]{geometry}
\usepackage{lipsum}
\usepackage{setspace}
\linespread{1.6}

\newcommand*{\gotohalf}{%
  \par
  \begingroup
     \dimen0=\pagegoal
     \advance\dimen0 by -.9\pagetotal
     \advance\dimen0 by -.5\textheight
     \ifdim\dimen0<0pt %
      % space left is smaller than half the text height
      \newpage
       \setlength{\topskip}{0pt}%
     %   \vspace*{.5\textheight}%  
       \vspace{-\parskip}%
    \else
       \vspace{\dimen0}%
    \fi
   \endgroup
 }

\begin{document}
\begin{flushleft}
    \begin{minipage}{3in}
        \begin{tabular}{ | p{2.5in}|}
           \hline \\
           \MakeUppercase{Rachel}, \\
           \hfill\emph{Wife of Jacob}. \\ 
           \MakeUppercase{Esther}, \\
           \hfill\emph{Queen to Xerxes}. \\
           \leavevmode\\ \hline
        \end{tabular}
    \end{minipage}
    \begin{minipage}{3.3in}
        \begin{tabular}{ p{3in} }
            Question: \leavevmode\\
            \vspace{12pt} \\
            \begin{spacing}{1}\bf{\lipsum[1]}\end{spacing} \leavevmode\\
        \end{tabular}
    \end{minipage}
 \end{flushleft}

 \gotohalf
\noindent\hrulefill\par

\lipsum[3]

\newpage

\begin{flushleft}
    \begin{minipage}{3in}
        \begin{tabular}{ | p{2.5in}|}
           \hline \\
           \MakeUppercase{Rachel}, \\
           \hfill\emph{Wife of Jacob}. \\ 
           \MakeUppercase{Esther}, \\
           \hfill\emph{Queen to Xerxes}. \\
           \leavevmode\\ \hline
        \end{tabular}
    \end{minipage}
    \begin{minipage}{3.3in}
        \begin{tabular}{ p{3in} }
           Question: \leavevmode\\
            \vspace{12pt} \\
            \begin{spacing}{1}\bf{\lipsum[1]}\end{spacing} \leavevmode\\
        \end{tabular}
    \end{minipage}
\end{flushleft}

\gotohalf

\noindent\hrulefill\par

\nointerlineskip % <---- added

\section{Section}

\end{document}

在此处输入图片描述

相关内容