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}
    

結果は次のようになります(最初のページ):

ここに画像の説明を入力してください

これがあなたが探しているものですか?

関連情報