这没有使用flashcards
类,因为这样打印卡片的方式不符合我的要求。这就是为什么它是一个经过修改的文章类。我最近尝试使用 进行设置beamer
,它给了我同样的问题,但使用 更容易配置字体大小beamer
。
我添加了float
包,但我不知道如何实现它来解决这个问题,而且 texdocfloat
就像另一种语言。它阻止我打印长问题,因此非常受限。欢迎提出任何建议。
documentclass{article}
\usepackage[paperwidth=.47\paperwidth,paperheight=.25\paperheight]{geometry}
\usepackage{pgfpages}
\usepackage[english]{babel}
\usepackage{amsfonts}
\usepackage{amsmath}
\pagestyle{empty}
\thispagestyle{empty}
\pgfpagesuselayout{8 on 1}[a4paper]
\makeatletter
\@tempcnta=1\relax
\loop\ifnum\@tempcnta<9\relax
\pgf@pset{\the\@tempcnta}{bordercode}{\pgfusepath{stroke}}
\advance\@tempcnta by 1\relax
\repeat
\makeatother
\newenvironment{flashcard}[2][]{%
\noindent \textsc{#1}
\vfill
\centerline{{\noindent \Large{#2}}}
\vfill
\newpage
\noindent
}
{\newpage}
\begin{document}
\begin{flashcard}[Statistical Mechanics]{What is the equilibrium entropy of an isolated system of N constituents with energy E? }
What is the equilibrium entropy of an isolated system of N constituents with energy E?
\vspace*{\stretch{1}}
$$S(N, E) = k ln \Omega(N, E, {\alpha*})$$
\vspace*{\stretch{1}}
\end{flashcard}
\end{document}
问题如下:
答案1
您正在使用\centerline
哪个按钮来制作一个不能跨行断开的框。
\documentclass{article}
\usepackage[a4paper,
paperwidth=.47\paperwidth,
paperheight=.25\paperheight
]{geometry}
\usepackage{pgfpages}
\usepackage[english]{babel}
\usepackage{amsfonts}
\usepackage{amsmath}
\pagestyle{empty}
\pgfpagesuselayout{8 on 1}[a4paper]
\makeatletter
\@tempcnta=1\relax
\loop\ifnum\@tempcnta<9\relax
\pgf@pset{\the\@tempcnta}{bordercode}{\pgfusepath{stroke}}
\advance\@tempcnta by 1\relax
\repeat
\makeatother
\newenvironment{flashcard}[2][]
{\noindent\textsc{#1}\par\vfill
{\centering\Large#2\par}
\vfill
\newpage\noindent\ignorespaces
}
{\newpage}
\begin{document}
\begin{flashcard}[Statistical Mechanics]
{What is the equilibrium entropy of an isolated system of
$N$~constituents with energy~$E$?}
What is the equilibrium entropy of an isolated system of
$N$~constituents with energy~$E$?
\vfill
\[
S(N, E) = k \ln \Omega(N, E, {\alpha*})
\]
\vfill
\end{flashcard}
\end{document}