I am making a test. Some of the problems have choices, and the choices are mathematical expressions. I have included the code for the first two problems; 1.) has six choices, and 2.) has eight choices. The choices are labeled as "i.)", "ii.)", ... "viii.)". I want the first right parenthesis in each row to be aligned vertically. So, I want the ")" in "i.)" and "iv.)" from 1.) to be aligned with the ")" in "i.)" and "v.)" from 2.).
The code that I provide does have the ")" aligned vertically within each problem. Now I would like to add one extra feature - the first ")" in all the rows to be the same distance from the left margin. (I guess that a distance of "4em" would be appropriate.)
\documentclass[10pt]{amsart}
\usepackage{tikz}
\usetikzlibrary{calc,angles,positioning,intersections,quotes,decorations.markings}
\usepackage{tkz-euclide}
\usetkzobj{all}
\usepackage{pgfplots}
\pgfplotsset{compat=1.11}
\setlength{\oddsidemargin}{0.0in}
\setlength{\evensidemargin}{0.0in} \setlength{\textwidth}{6.1in}
\setlength{\topmargin}{0.0in} \setlength{\textheight}{9in}
\begin{document}
\noindent {\bf 1.)} Which of the following functions is graphed?
\begin{alignat*}{6}
{\mathrm{i.})} \ &y = (x + 5)^{2}
\qquad \quad
&{\mathrm{ii.})} \ &y = \sqrt{x + 5}
\qquad \quad
&{\mathrm{iii.})} \ &x = y^{2} + 5
\\
{\mathrm{iv.})} \ &y = \frac{\sqrt{x^{2} - 25}}{\sqrt{x - 5}}
\qquad \quad
&{\mathrm{v.})} \ &y = \frac{1}{\sqrt{x + 5}}
\qquad \quad
&{\mathrm{vi.})} \ &\vert x \vert = y^{2} + 5
\end{alignat*}
\vskip0.25in
\hspace*{\fill}
\begin{tikzpicture}
\begin{axis}[width=4in,axis equal image,
xmax=26,ymax=7,
axis lines=middle,
restrict y to domain=-3:6.5,
enlargelimits={abs=1cm},
axis line style={latex-latex},
ticklabel style={fill=white},
ytick=\empty,
xtick={-5,5}
]
\addplot[domain=5:26,mark=none,samples=201] {sqrt(x + 5)};
\addplot[domain=-6:5,dashed,thin,mark=none,samples=201] {sqrt(x + 5)};
\draw [densely dashed] (5,3.16227766) -- (5,0);
\draw [fill=white] (5,3.16227766) circle [radius=1.5pt];
\end{axis}
\end{tikzpicture}
\hspace{\fill}
\vskip0.25in
\noindent {\bf 2.)} Which of the following products is equal to an integral power of 10?
\begin{alignat*}{8}
{\mathrm{i.})} \ &1
\qquad \quad
&{\mathrm{ii.})} \ &5^{-3}\left(\frac{1}{8}\right)
\qquad \quad
&{\mathrm{iii.})} \ &5^{-3}\left(\frac{1}{80}\right)
\qquad \quad
&{\mathrm{iv.})} \ &5^{-3}\left(\frac{1}{800}\right) \\
{\mathrm{v.})} \ &\left(\frac{4}{9}\right)^{3}15^{6}
\qquad \quad
&{\mathrm{vi.})} \ &2^{-6}25^{-3}
\qquad \quad
&{\mathrm{vii.})} \ &\left(\frac{1}{2}\right)^{6}\left(\frac{1}{25}\right)^{3}
\qquad \quad
&{\mathrm{viii.})} \ &\left(\frac{7}{4}\right)^{6}\left(\frac{1}{5^{4}49}\right)^{3}
\end{alignat*}
\vskip0.25in
\end{document}
enumitem
for control over enumerations if you just want something simple. Don't use commands such as\bf
, though, they are deprecated (from LaTeX 2.09!). Use e.g.\bfseries
(or\textbf{}
) instead.makebox
have to be in an align environment. How do I use your command in an align environment so that the ")" in "i.)" and "iv.)" are 3em from the left margin?enumitem
?