숫자에 대한 질문 둘러싸기

숫자에 대한 질문 둘러싸기

나는 이 모든 것에 대해 상당히 새로운 것입니다. 저는 물리학 교사이고 학생들을 위해 보기 좋은 문제지를 만들려고 노력하고 있습니다.

나는 현재 텍스트 옆에 그림을 배치하는 데 어려움을 겪고 있습니다. 미니페이지 명령이 있다는 건 알지만 좀 더 쉬운 명령이 있는지 궁금합니다.

내 코드는 다음과 같습니다.

\documentclass[10pt, a4paper, oneside, notitlepage]{article}
\usepackage{graphicx,wrapfig}
\usepackage{geometry, rotating, sidecap}
 \geometry{
 a4paper,
 total={180mm,267mm},
 left=10mm,
 top=15mm,
 }

\begin{document}
\thispagestyle{empty}
{\large\bf{Car Stopping Distances}}

\begin{enumerate}
\item The UK {\emph {Highway Code}} has a table of "Typical Stopping Distances" on straight roads in dry conditions. The diagram is based on this information.
                                %\begin{wrapfigure}{h}{0.3\textwidth}
                                %\centering
                                %\includegraphics[width=0.25\textwidth]{highwaycode}
                                %\end{wrapfigure}
\begin{figure}[h]
\centerline{\includegraphics[width=0.8\textwidth]{highwaycode}}
\end{figure}
\\The shaded arrows represent the "thinking distance", the unshaded part the "braking distance", and the whole arrow the "stopping distance".
\begin{enumerate}
\item Make a table of the thinking distances d$_{think}$ and sketch a graph of d$_{think}$ against speed v, from v = 0 to v = 70 mph
\item Deduce a relation between these two variables
\item Predict the thinking distance for a police car travelling at 90 mph
\item How would the driver's consumption of alcohol/illegal substances affect the stopping distances? Explain your answer
\end{enumerate}
\item
\begin{enumerate}
\item Using the {\emph {Highway Code}} data from the previous question, make a table of the braking distances d$_{brake}$ and sketch a graph of d$_{brake}$ against v, from v = 0 to v = 70 mph.
\item The relationship here is that d$_{brake}$ = $k$v$^{2}$, where $k$ is a constant. Test this statement by calculating $k$ for three numerical values of d$_{brake}$ and v.
\item Use the data to calculate the acceleration when braking from {\bf(i)} 50 mph, {\bf(ii)} 70 mph
\end{enumerate}
\item In France the motorways have different speed limits depending on the road condition.
They are:
\begin{itemize}
\item when dry 130 kmh$^{-1}$
\item when wet 110 kmh$^{-1}$
\end{itemize}
Using the $\frac{5}{8}$ ratio, translate these into mph, and comment on the French system.\\
%   \begin{minipage}[]{0.55\linewidth}
\item A person who is properly held by a seat belt has a good chance of surviving a car collision if the deceleration does not exceed 30g. Assuming uniform deceleration at this rate, calculate the distance that the front section of the car must crumple if a crash occurs at 65 kmh$^{-1}$ 
                                %\begin{wrapfigure}{h}{0.6\textwidth}
                                %\centering
                                %\includegraphics[width=0.25\textwidth]{crumple}
                                %\end{wrapfigure}
\begin{figure}[h]
\centerline{\includegraphics[width=0.35\textwidth]{crumple}}
\end{figure}
\end{enumerate}
\end{document}

어떤 조언이라도 대단히 감사하겠습니다. 감사합니다!

답변1

이 솔루션은 textbox이미지를 인수(또는 필요한 경우 \parbox또는 minipage)로 사용하는 환경(끔찍한 이름)을 만듭니다. 그것은 WrapFigure와 다르다는 점에서~ 할 것이다목록으로 작업하지만 단락을 형성하지는 않습니다. 각각은 \item별도의 단락이므로 문제가 되지 않습니다.

모든 환경을 적절하게 중첩된 상태로 유지하세요. [resume*]enumitem 패키지의 기능을 사용하여 외부에 더 많은 항목을 추가할 수 있습니다 textbox.

\documentclass[10pt, a4paper, oneside, notitlepage]{article}
\usepackage{graphicx,wrapfig}
\usepackage{geometry, rotating, sidecap}
 \geometry{
 a4paper,
 total={180mm,267mm},
 left=10mm,
 top=15mm,
 }

\newsavebox{\tempbox}% reserve global name

\makeatletter
\newenvironment{textbox}[1]% #1 = image (possibley parbox or minipage with \caption)
{\savebox\tempbox{\def\@captype{figure}#1}% measure image (also preserve for \endtextbox)
  \minipage[t]{\dimexpr \linewidth-\columnsep-\wd\tempbox}}%
{\endminipage\hfill\raisebox{\dimexpr \ht\strutbox-\ht\tempbox}{\usebox\tempbox}}
\makeatother

\begin{document}
\thispagestyle{empty}
{\large\bf{Car Stopping Distances}}

\begin{enumerate}
\item The UK {\emph {Highway Code}} has a table of "Typical Stopping Distances" on straight roads in dry conditions. The diagram is based on this information.

\begin{textbox}{\includegraphics[width=0.3\textwidth]{example-image-a}}
The shaded arrows represent the "thinking distance", the unshaded part the "braking distance", and the whole arrow the "stopping distance".
\begin{enumerate}% second layer
\item Make a table of the thinking distances d$_{think}$ and sketch a graph of d$_{think}$ against speed v, from v = 0 to v = 70 mph
\item Deduce a relation between these two variables
\item Predict the thinking distance for a police car travelling at 90 mph
\item How would the driver's consumption of alcohol/illegal substances affect the stopping distances? Explain your answer
\end{enumerate}
\end{textbox}

\item
\begin{enumerate}
\item Using the {\emph {Highway Code}} data from the previous question, make a table of the braking distances d$_{brake}$ and sketch a graph of d$_{brake}$ against v, from v = 0 to v = 70 mph.
\item The relationship here is that d$_{brake}$ = $k$v$^{2}$, where $k$ is a constant. Test this statement by calculating $k$ for three numerical values of d$_{brake}$ and v.
\item Use the data to calculate the acceleration when braking from {\bf(i)} 50 mph, {\bf(ii)} 70 mph
\end{enumerate}
\item In France the motorways have different speed limits depending on the road condition.
They are:
\begin{itemize}
\item when dry 130 kmh$^{-1}$
\item when wet 110 kmh$^{-1}$
\end{itemize}
Using the $\frac{5}{8}$ ratio, translate these into mph, and comment on the French system.\\

\begin{textbox}{\includegraphics[width=0.35\textwidth]{example-image-b}}
\item A person who is properly held by a seat belt has a good chance of surviving a car collision if the deceleration does not exceed 30g. Assuming uniform deceleration at this rate, calculate the distance that the front section of the car must crumple if a crash occurs at 65 kmh$^{-1}$
\end{textbox}

\end{enumerate}
\end{document}

관련 정보