
我設法獲得了遮蔽標籤,但仍然存在一些問題。
- 一個黑盒子,上面有白色的問題編號。
- 在整個文件中插入 1 公分的文字縮排。
- 我們可以全域定義項目之間的間距嗎?
這是程式碼供您參考,
\documentclass{book}
\usepackage{multicol}
\setlength{\columnsep}{1cm}
\usepackage[top=0.75in, bottom=0.75in, left=0.55in, right=0.85in]{geometry}
\usepackage{color}
\definecolor{mygrey}{gray}{0.75}
\textheight=9.75in
\raggedbottom
\setlength{\tabcolsep}{0in}
\newcommand{\isep}{-2 pt}
\newcommand{\lsep}{-0.5cm}
\newcommand{\psep}{-0.6cm}
\renewcommand{\labelitemii}{$\circ$}
%-----------------------------------------------------------
%Custom commands
\newcommand{\resitem}[1]{\item #1 \vspace{-2pt}}
\newcommand{\resheading}[1]{{\small \colorbox{mygrey}{\begin{minipage}
{1\linewidth}{\textbf{#1 \vphantom{p\^{E}}}}\end{minipage}}}}
\newcommand{\ressubheading}[3]{
\begin{tabular*}{6.62in}{l @{\extracolsep{\fill}} r}
\textsc{{\textbf{#1}}} & \textsc{\textit{[#2]}} \\
\end{tabular*}\vspace{-8pt}}
%-----------------------------------------------------------
\begin{document}
\chapter{Exponents 1}
\begin{multicols}{2}
%%%% Start Question 1
\resheading{\hspace{0.5cm}\textbf{1.} }\\[\lsep]\\
$$\sqrt{9x^2}$$
If $x>0$, which of the following is equivalent to the given expression?\\
\\
\begin{enumerate}
\item[A)] 3x\\
\item[B)] $3x^2$\\
\item[C)] 18x\\
\item[D)] $18x^4$\\
\end{enumerate}
%%%% End Question 1
\end{multicols}
\end{document}