如何使用网格包在双倍行距文档中制作单倍行距引文

如何使用网格包在双倍行距文档中制作单倍行距引文

我是新用户,正在学习。我对使用网格布局很感兴趣grid.sty,想尝试制作一个简单的两列、双倍行距的文档,并带有单倍行距的引文。

我执行了 baselinefontsize=12ptbaseline=28.8pt(grid 包中给定选项的两倍),但这导致引用显示为双倍行距。我尝试使用 quoting 包重置环境引用,但找不到 for 的选项singlespacing

我尝试了grid 手册中的fontsize=12pt和,在前言中使用和,然后在每个环境(如引文和)之前和之后交替给出。这显然可以解决问题,但肯定不是使用带有单倍行距引文的包来实现双倍行距文档的正确方法。我对这种行为没有意见,但我真的希望引文是单倍行距的。如何正确实现这一点?baseline=14.4ptsetspace\doublespacing\par\singlespacinggridenv\par\doublespacinggridgridenv

反复试验的工作示例。

\documentclass[twocolumn]{article}
\usepackage[fontsize=12pt,baseline=14.4pt]{grid}
\usepackage[top=25mm, bottom=25mm,left=40mm, right=25mm]{geometry}
\setlength{\columnsep}{20pt}
\usepackage{ragged2e}
\usepackage{blindtext}
\usepackage{setspace}

\doublespacing

\begin{document}
\section{Blah! Blah!}
\blindtext
\par\singlespacing
\begin{quotation}
\noindent This is direct, displayed quotation or verbatim word-to-word copy from referenced material, when I am too lazy to paraphrase. This is done when the words exceed 40 words or so, but \bfseries{I want this to be singlespaced}.
\end{quotation}
\par\doublespacing
\blindtext
\section{Another Blurb}
\blindtext
\par\singlespacing
\begin{gridenv}
\begin{eqnarray}
\frac{\sum^X_Y}{\prod'_C} = x'' + y^{2} + z_{i}^{n}\label{eq1}\\
\frac{\int^\sum}{\int_prod'} = x'' + y^{2} + z_{i}^{n}\label{eq2}
\end{eqnarray}
\end{gridenv}
\par\doublespacing
\blindtext
\end{document}

请帮忙。谢谢。

答案1

在评论中,我向 OP 指出,我认为按照他/她在 MWE 中提供的方式做并没有错。OP 指出需要经常使用该构造。我建议可以将提供的构造封装在其自己的环境中,如下面我在环境中所示myquote

\documentclass[twocolumn]{article}
\usepackage[fontsize=12pt,baseline=14.4pt]{grid}
\usepackage[top=25mm, bottom=25mm,left=40mm, right=25mm]{geometry}
\setlength{\columnsep}{20pt}
\usepackage{ragged2e}
\usepackage{blindtext}
\usepackage{setspace}
\newenvironment{myquote}
{\par\singlespacing\begin{quotation}}
{\end{quotation}\par\doublespacing}
\doublespacing

\begin{document}
\section{Blah! Blah!}
\blindtext
\begin{myquote}
\noindent This is direct, displayed quotation or verbatim word-to-word copy from referenced material, when I am too lazy to paraphrase. This is done when the words exceed 40 words or so, but \bfseries{I want this to be singlespaced}.
\end{myquote}
\blindtext
\section{Another Blurb}
\blindtext
\par\singlespacing
\begin{gridenv}
\begin{eqnarray}
\frac{\sum^X_Y}{\prod'_C} = x'' + y^{2} + z_{i}^{n}\label{eq1}\\
\frac{\int^\sum}{\int_prod'} = x'' + y^{2} + z_{i}^{n}\label{eq2}
\end{eqnarray}
\end{gridenv}
\par\doublespacing
\blindtext
\end{document}

在此处输入图片描述

相关内容