将 Fbox 左对齐

将 Fbox 左对齐

我正在尝试为我的数学答题册设置空间。我想将框对齐到页面左侧,但当我使用\parts或时\enumerate对齐会发生变化。我想使用整个页面的宽度,而不管问题类型如何。请不要介意这个问题。我只需要格式方面的帮助。

\documentclass[12]{exam}
\usepackage{amsmath,amssymb,graphicx,amsfonts, booktabs,color, titling,tabularx,enumitem,multirow,array,ragged2e}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{colortbl}
\usepackage{tikz}
\usepackage{gensymb}
\usepackage{calc}
\usetikzlibrary{tikzmark,fit,shapes.geometric}

\usepackage[left=1.6cm, top=1.50cm, bottom=1.85cm, right=1.6cm]{geometry}
\usepackage{changepage}
\begin{document} 
\textbf{STRAND 1} \qquad\qquad\qquad\qquad\qquad\qquad\qquad \textbf{COMPLEX NUMBERS} \qquad\qquad\qquad\qquad\qquad\quad \hfill{\textbf{15 MARKS}}
\begin{itemize}
\item This strand has \textbf{$5$ Questions}
\item Show all working for \textbf{Questions 1-5}
\end{itemize}
\smallskip
\begin{questions}
\question Evaluate $\sqrt{-100}$ \hfill{(1 mark)}\\
\framebox(510,100){}
\vspace{0.1cm}
\question Two complex numbers \textit{u} and \textit{v} are given as 
\begin{center}
$u=3(\cos {90\degree} +i\sin {90\degree})$\\
$v=5(\cos {180\degree} +i\sin {180\degree})$
\end{center}
Find $uv$ \hfill{(2 marks)}
\framebox(510,140){}
\vspace{0.1cm}
\question Express $\cfrac{13}{3+2i}$ in the form $a+bi$ \hfill{($2$ marks)}
\framebox(510,240){}
\question Let $w=\sqrt{8}+\sqrt{8}i$ 
\begin{enumerate}[label=(\roman*)]
\item Find $Arg(w)$, the \textbf{Argument} of w \hfill{($1 \frac{1}{2}$ marks)}
\begin{flushleft}
\fbox{
    \parbox{\textwidth-2\fboxsep}{


        \vspace*{6cm}

        \begin{flushright}
        $\cfrac{7}{3-\sqrt{2}}= \rule{1in}{1pt}$\\
        (2 marks)
        \end{flushright}
    }
}
\end{flushleft}

\vspace{0.1cm}
\item Find $|w|$, the \textbf{modulus} of w \hfill{($1$ mark)}
\item Convert $w$ into \textbf{polar} form \hfill{($1$ mark)}
\item Use \textbf{De Movire's Theorem} to evaluate $w^{6}$ in rectangular form\hfill{($2 \frac{1}{2}$ marks)}
\end{enumerate}
\vspace{0.5cm}
\question Solve the equation $z^{2}=196i$ obtaining \textbf{two} distinct complex roots.
Leave your answers in polar form. \hfill{($4$ marks)}
\end{questions}
\pagebreak
\end{document}

答案1

我在我的列表示例集合中找到了以下解决方案。由于您没有提供姆韦(最小工作示例)我对你的文档一无所知,因此采用以下内容姆韦根据您的需要我留给您:

编辑: 现在,当了解有关您的文档的更多信息时,我将采用我对您的文档的原始答复。在此我做了以下事情:

  • 重新组织您的文档序言(您真的需要所有加载的软件包吗?)
  • 稍微改变/改善环境的定义wide
  • 采用文档主体来建议解决方案

    \documentclass[12pt]{exam}
    \usepackage[hmargin=1.6cm,
                vmargin={1.50cm,1.85cm}]{geometry}
    \usepackage{amsmath, amssymb, gensymb}
    \usepackage{calc}
    \usepackage{graphicx}
    \usepackage{booktabs, multirow, tabularx}
    \usepackage[table]{xcolor}
    \usepackage{enumitem}
    \usepackage{ragged2e}
    \usepackage{titling}
    \usepackage{tikz}
    \usetikzlibrary{arrows.meta, fit, shapes.geometric, tikzmark}
    \usepackage{changepage}
    
    \makeatletter
        \newsavebox\widebox
    \newenvironment{wide}
        {\@parboxrestore%
         \begin{adjustwidth}{}{-\leftmargin}%
                    \begin{lrbox}{\widebox}%
                    \begin{minipage}{\dimexpr\textwidth-2\fboxsep-2\fboxrule}%
         }{~\end{minipage}\end{lrbox}
           \vskip 1ex
           \fbox{\usebox\widebox}
           \end{adjustwidth}
           }
    \makeatother
    
    %---------------- show page layout. don't use in a real document!
    \usepackage{showframe}
    \renewcommand\ShowFrameLinethickness{0.15pt}
    \renewcommand*\ShowFrameColor{\color{red}}
    %---------------------------------------------------------------%
    
    \begin{document}
        \section*{STRAND 1}
    \textbf{COMPLEX NUMBERS} \hfill\textbf{15 MARKS}
        \begin{itemize}
    \item This strand has \textbf{$5$ Questions}
    \item Show all working for \textbf{Questions 1-5}
        \end{itemize}
    
    \begin{questions}
    \question Evaluate $\sqrt{-100}$ \hfill{(1 mark)}
    \begin{wide}
        \vspace{22mm}
    \end{wide}
    
    \question Two complex numbers \textit{u} and \textit{v} are given as
        \begin{align}
    u   & =3\bigl(\cos(90\degree) +i\sin(90\degree)\bigr) \\
    v   & =5\bigl(180\degree) +i\sin(180\degree)\bigr)
        \end{align}
    Find $u$ and $v$!                                           \hfill{(2 marks)}
    \begin{wide}
        \vspace{22mm}
    \end{wide}
    
    \question Express $\cfrac{13}{3+2i}$ in the form $a+bi$ \hfill{($2$ marks)}
    \begin{wide}
        \vspace{22mm}
    \end{wide}
    
    \question Let $w=\sqrt{8}+\sqrt{8}i$
        \begin{enumerate}[label=(\roman*)]
    \item Find $Arg(w)$, the \textbf{Argument} of $w$           \hfill{($1\frac{1}{2}$ marks)}
        \begin{wide}
    \vspace{48mm}
    \raggedleft
    $\dfrac{7}{3-\sqrt{2}}=\rule[-1em]{1in}{1pt}$
        \end{wide}
    \item Find $|w|$, the \textbf{modulus} of $w$               \hfill{($1$ mark)}
    \begin{wide}
        \vspace{22mm}
    \end{wide}
    \item Convert $w$ into \textbf{polar} form                  \hfill{($1$ mark)}
    \begin{wide}
        \vspace{22mm}
    \end{wide}
    \item Use \textbf{De Movire's Theorem} to evaluate $w^{6}$ in rectangular form                                                 \hfill{($2\frac{1}{2}$ marks)}
    \begin{wide}
        \vspace{22mm}
    \end{wide}
        \end{enumerate}
    
    \question Solve the equation $z^{2}=196i$ obtaining \textbf{two} distinct complex roots.
    Leave your answers in polar form.                           \hfill{($4$ marks)}
    \begin{wide}
        \vspace{22mm}
    \end{wide}
    \end{questions}
    
    \end{document}
    

得到(第一页):

enter image description here

这就是你要找的吗?

相关内容