將 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}
    

其中給出(第一頁):

在此輸入影像描述

這是您要找的嗎?

相關內容