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}
    

(첫 번째 페이지):

여기에 이미지 설명을 입력하세요

이것이 당신이 찾고 있는 것인가요?

관련 정보