Vi que a separação padrão entre colunas em um ambiente tabular é 6pt
. Na exibição renderizada a partir do código a seguir, esse espaçamento entre colunas é um pouco apertado. Como eu usaria \hskip
ou \tabcolsep
triplicaria esse valor padrão? Como eu aumentaria o espaçamento vertical entre as linhas em 3pt
?
\documentclass{amsart}
\usepackage{mathtools,array}
\begin{document}
\noindent \textbf{8.) }Compute the following function values. \vskip1.25mm
\noindent \hphantom{\textbf{8.) }}\hspace*{1em}
\begin{tabular}{r@{\textbf{ }}lr@{\textbf{ }}l}
\textbf{a.)} & $\lfloor 1.1 \rfloor$ & \textbf{b.)} & $\lceil 1.1 \rceil$ \\
\textbf{c.)} & $\lfloor -0.1 \rfloor$ & \textbf{d.)} & $\lceil -0.1 \rceil$ \\
\textbf{e.)} & $\lceil 2.99 \rceil$ & \textbf{f.)} & $\lceil -2.99 \rceil$ \\
\textbf{g.)} & $\big\lfloor \frac{1}{2} + \lceil \frac{1}{2} \rceil \big\rfloor$
&
\textbf{h.)} & $\big\lceil \lfloor \frac{1}{2} \rfloor + \lceil \frac{1}{2} \rceil + \frac{1}{2} \big\rceil$
\end{tabular}
\end{document}
Responder1
Conforme observado em meu comentário, para a parte horizontal use \tabcolsep=3\tabcolsep
. Para o espaçamento vertical você pode usar \extrarowheight
o que vem na array
embalagem.
\documentclass{amsart}
\usepackage{mathtools,array}
\begin{document}
\noindent \textbf{8.) }Compute the following function values. \vskip1.25mm
\noindent \hphantom{\textbf{8.) }}\hspace*{1em}
\bgroup\tabcolsep=3\tabcolsep
\extrarowheight=3pt
\begin{tabular}{r@{\textbf{ }}lr@{\textbf{ }}l}
\textbf{a.)} & $\lfloor 1.1 \rfloor$ & \textbf{b.)} & $\lceil 1.1 \rceil$ \\
\textbf{c.)} & $\lfloor -0.1 \rfloor$ & \textbf{d.)} & $\lceil -0.1 \rceil$ \\
\textbf{e.)} & $\lceil 2.99 \rceil$ & \textbf{f.)} & $\lceil -2.99 \rceil$ \\
\textbf{g.)} & $\big\lfloor \frac{1}{2} + \lceil \frac{1}{2} \rceil \big\rfloor$
&
\textbf{h.)} & $\big\lceil \lfloor \frac{1}{2} \rfloor + \lceil \frac{1}{2} \rceil + \frac{1}{2} \big\rceil$
\end{tabular}
\egroup
\end{document}
Como eu criaria seu conteúdo:
\documentclass{amsart}
\usepackage{mathtools,array}
\usepackage{enumitem}
\usepackage{multicol}
\multicolsep=1.25mm
\begin{document}
\begin{enumerate}[
,label=\textbf{\arabic*.)}
,itemsep=\bigskipamount
,align=left
,labelsep=1em
,labelwidth=1em
,labelindent=0pt
,leftmargin=!
]
\item Compute the following function values.
\begin{multicols}{2}
\begin{enumerate}[label=\textbf{\alph*)},itemsep=3pt]
\item $\lfloor 1.1 \rfloor$
\item $\lfloor -0.1 \rfloor$
\item $\lceil 2.99 \rceil$
\item $\big\lfloor \frac{1}{2} + \lceil \frac{1}{2} \rceil \big\rfloor$
\item $\lceil 1.1 \rceil$
\item $\lceil -0.1 \rceil$
\item $\lceil -2.99 \rceil$
\item $\big\lceil \lfloor \frac{1}{2} \rfloor + \lceil \frac{1}{2} \rceil + \frac{1}{2} \big\rceil$
\end{enumerate}
\end{multicols}
\item Draw a circle.
\item Rethink your choice to use a \texttt{tabular} environment.
\end{enumerate}
\end{document}
Responder2
Organizar seu código deve ser um objetivo importante. A seguir, dois novos tipos de coluna são definidos: um para negrito automático e outro para modo matemático automático. O resultado é um código muito mais legível no tabular
ambiente.
\documentclass{amsart}
\usepackage{array} % for "\newcolumntype" macro
\newcolumntype{L}{>{$}l<{$}} % automatic math mode
\newcolumntype{B}{>{\bfseries}l} % automatic bold face
\begin{document}
\noindent
\textbf{8.)} Compute the following function values.
\par\smallskip\noindent%
\begingroup\renewcommand{\arraystretch}{1.33} % less cramped look
\hspace*{1cm}
\begin{tabular}{@{}BL@{\qquad}BL@{}}
a.) & \lfloor 1.1 \rfloor & b.) & \lceil 1.1 \rceil \\
c.) & \lfloor -0.1 \rfloor & d.) & \lceil -0.1 \rceil \\
e.) & \lceil 2.99 \rceil & f.) & \lceil-2.99 \rceil \\
g.) & \bigl\lfloor \frac{1}{2} + \lceil \frac{1}{2} \rceil \bigr\rfloor &
h.) & \bigl\lceil \lfloor \frac{1}{2} \rfloor + \lceil \frac{1}{2} \rceil
+ \frac{1}{2} \bigr\rceil \\
\end{tabular}
\endgroup
\end{document}
Responder3
Sugiro usar um enumerate
ambiente personalizado, com a ajuda de enumitem
e o tasks
ambiente para a lista horizontal em vez de tabular
. Desta forma, todos os rótulos serão calculados e formatados automaticamente e poderão ser consultados.
Além disso, defini comandos a \Floor
e a \Ceil
que podem adaptar seu tamanho em sua versão com estrela. Você pode vê-los trabalhando no último item.
\documentclass{amsart}
\usepackage[utf8]{inputenc}
\usepackage{showframe}
\usepackage{enumitem}
\renewcommand{\ShowFrameLinethickness}{0.3pt}
\usepackage{tasks}
\usepackage{mathtools,array}
\DeclarePairedDelimiter{\Floor}{\lfloor}{\rfloor}
\DeclarePairedDelimiter{\Ceil}{\lceil}{\rceil}
\begin{document}
\begin{enumerate}[label = \arabic*.), font = \bfseries, start = 8, wide = 0pt, widest=\textbf{0.)},leftmargin =* ]
\item Compute the following function values. \vskip1.25mm%\
\begin{tasks}[counter-format = tsk[a].), label-format = \bfseries, label-width = 1.5em](3)%{r@{\textbf{ }}lr@{\textbf{ }}l}
\task $\lfloor 1.1 \rfloor$
\task $\lceil 1.1 \rceil$
\task $\lfloor -0.1 \rfloor$
\task $\lceil -0.1 \rceil$
\task $\lceil 2.99 \rceil$
\task $\lceil -2.99 \rceil$
\task $\bigl\lfloor \frac{1}{2} + \lceil \frac{1}{2} \rceil \bigr\rfloor$
\task $\Ceil*{\Floor*{ \frac{1}{2}} + \Ceil*{\frac{1}{2}} + \frac{1}{2}}$
\end{tasks}
\end{enumerate}
\end{document}