我正在尝试用 LaTeX 重现 1980 年的旧考试文件。但是,我无法获得所需的结果。
这是我目前得到的代码;
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{tabularx}
\usepackage{framed}
\usepackage{tikz,graphicx}
\usepackage{geometry}
\usepackage{changepage}
\pagenumbering{gobble}
\setlength{\parindent}{0pt}
\geometry{
letterpaper,
total={7.5in,9.5in},
left=0.5in,
top=1in,}
\newcommand*\circled[1]{\tikz[baseline=(char.base)]{
\node[shape=circle,draw,inner sep=1pt] (char) {#1};}}
\newcommand*\circlef[1]{\tikz[baseline=(char.base)]{
\node[shape=circle,draw,inner sep=1pt, fill=black] (char) {#1};}}
\begin{document}
\begin{table*}[t]
\centering
\begin{tabular}{|>{\centering}m{0.7in} >{\centering}m{0.2in} >{\centering}m{1.25in} >{\centering}m{4.5in}|}
\hline
{\large SECTION} & {\Huge \textbf{1}} & {\large Time--30 minutes\\45 Questions} & For each question in this section, choose the best answer and fill in the corresponding oval on the answer sheet.\\
\bottomrule
\end{tabular}
\end{table*}
\twocolumn
\begin{framed}
Each question below consists of a word in capital letters, followed by five lettered words or phrases. Choose the word or phrase that is most nearly \underline{opposite} in meaning to the word in capital letters. Since some of the questions require you to distinguish fine shades of meaning, consider all the choices before deciding which is best.
\vspace{5pt}
Example:
\vspace{5pt}
\begin{adjustwidth}{0.35cm}{}
GOOD:\quad (A) sour\quad (B) bad\quad (C) red\\
(D) hot\quad (E) ugly
\end{adjustwidth}
\begin{flushright}
\vspace{-15pt}
{\tiny \circled{A} \circlef{B} \circled{C} \circled{D} \circled{E}}\end{flushright}
\vspace{-10pt}
\end{framed}
\break
\begin{framed}
Each sentence below has one or two blanks, each blakc indicating that something has been ommited. Beneath the sentence are five lettered words or sets of words. Choose the word or set of words that, when inserted into the sentence, \underline{best} fits the meaning of the sentence as a whole.
\vspace{5pt}
Example:
\vspace{5pt}
\begin{adjustwidth}{0.35cm}{}
Although its publicity has been -{}-{}-{}-, the film itself is intelligent, well-acted, handsomely produced and altogether -{}-{}-{}-.
\vspace{5pt}
(A) tasteless. .respectable\quad (B) extensive. .moderate\\
(C) sophisticated. .amateur\quad (D) risqué. .crude\\
(E) perfect. .spectacular
\end{adjustwidth}
\begin{flushright}
\vspace{-15pt}
{\tiny \circlef{A} \circled{B} \circled{C} \circled{D} \circled{E}}\end{flushright}
\vspace{-10pt}
\end{framed}
\end{document}
我想知道我的方法有什么问题以及如何优化它。
我想将页面宽度的表格放在框架框的顶部,并且也放在同一页上。显然,我还想修复最右侧单元格的文本对齐方式以及表格边框。
如果要求不过分的话,我想知道如何将这些小圆圈变成椭圆,就像参考照片上的那样。
感谢您的帮助!
答案1
使用 tikz:
- 第一帧的第一个节点包含 3 个小页面
- 第二个节点位于前一个节点的西南方向第二个节点
- 东南方向第三
对于椭圆,yscale 或 \usepgflibrary{shapes.geometric} 我没有修改 adjustwidth,我不知道包
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{tabularx}
\usepackage{framed}
\usepackage{tikz,graphicx}
\usepackage{geometry}
\usepackage{changepage}
%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{tikz}
\pagenumbering{gobble}
\setlength{\parindent}{0pt}
\geometry{
letterpaper,
total={7.5in,9.5in},
left=0.5in,
top=1in,}
\newcommand*\circled[1]{\tikz[baseline=(char.base)]{
\node[shape=circle,draw,inner sep=1pt,yscale=0.8] (char) {#1};}}
\newcommand*\circlef[1]{\tikz[baseline=(char.base)]{
\node[shape=circle,draw,inner sep=1pt, fill=black,yscale=0.8] (char) {#1};}}
\begin{document}
%% first frame referenced by A in the node
\begin{tikzpicture}
\node[draw](A)at(0,0){%
\begin{minipage}{0.8in}
\centering
\large SECTION
\end{minipage}%
\hfill
\begin{minipage}{0.2in}
\centering
\Huge \textbf{1}
\end{minipage}%
\hfill
\begin{minipage}{1.5in}
\centering
Time --- $30$~minutes
$45$~questions
\end{minipage}%
\hfill
\begin{minipage}{4.5in}
For each question in this section, choose the best answer and fill in the corresponding oval on the answer sheet.
\end{minipage}%
};
%% second frame frame offset by 2ex
\node [draw,below right,yshift=-2ex]at(A.south west){
\begin{minipage}{0.45\linewidth}
Each question below consists of a word in capital letters, followed by five lettered words or phrases. Choose the word or phrase that is most nearly \underline{opposite} in meaning to the word in capital letters. Since some of the questions require you to distinguish fine shades of meaning, consider all the choices before deciding which is best.
\vspace{5pt}
Example:
\vspace{5pt}
\begin{adjustwidth}{0.35cm}{}
GOOD:\quad (A) sour\quad (B) bad\quad (C) red\\
(D) hot\quad (E) ugly
\end{adjustwidth}
\begin{flushright}
\vspace{-15pt}
{\tiny \circled{A} \circlef{B} \circled{C} \circled{D} \circled{E}}\end{flushright}
\end{minipage}%
};
%% third frame frame offset by 2ex
\node [draw,below left,yshift=-2ex](C)at(A.south east){
\begin{minipage}{0.45\linewidth}
Each sentence below has one or two blanks, each blakc indicating that something has been ommited. Beneath the sentence are five lettered words or sets of words. Choose the word or set of words that, when inserted into the sentence, \underline{best} fits the meaning of the sentence as a whole.
\vspace{5pt}
Example:
\vspace{5pt}
\begin{adjustwidth}{0.35cm}{}
Although its publicity has been -{}-{}-{}-, the film itself is intelligent, well-acted, handsomely produced and altogether -{}-{}-{}-.
\vspace{5pt}
(A) tasteless. .respectable\quad (B) extensive. .moderate\\
(C) sophisticated. .amateur\quad (D) risqué. .crude\\
(E) perfect. .spectacular
\end{adjustwidth}
\begin{flushright}
\vspace{-15pt}
{\tiny \circlef{A} \circled{B} \circled{C} \circled{D} \circled{E}}\end{flushright}
\end{minipage}%
};
\end{tikzpicture}\hfill\null
\end{document}