
내 코드는
\documentclass{book}
\usepackage{wrapfigure}
\newtheorem{problem}{P}[chapter]
\begin{document}
A circle is drawn in a sector of a larger circle
\begin{problem}
\begin{wrapfigure}{r}{0.5\textwidth}
\centering
\includegraphics[width=0.38\textwidth]{TrigFig23.pdf}
\end{wrapfigure}
\noindent
of radius $r$, as shown in the adjacent figure.
The smaller circle is tangent to the two bounding radii and the arc of the sector. Find the radius of the smaller circle.
\end{problem}
\end{document}
이 코드는 그림을 전혀 생성하지 않습니다(오류도 표시하지 않음). 저도 wrapfig
패키지로 이용했어요 . 도와주세요!!
답변1
다음 대신 두 개의 미니페이지를 사용합니다 wrapfig
.
\documentclass{book}
\usepackage{graphicx}
\usepackage[export]{adjustbox}
\newtheorem{problem}{P}[chapter]
\begin{document}
\begin{problem}
\begin{minipage}[t]{0.5\textwidth}
A circle is drawn in a sector of a larger circle of radius $r$, as shown in the adjacent figure.
The smaller circle is tangent to the two bounding radii and the arc of the sector. Find the radius of the smaller circle.
\end{minipage}%
\begin{minipage}[t]{0.5\textwidth}
\centering
\includegraphics[width=0.38\textwidth,valign=t]{example-image}
\end{minipage}
\end{problem}
\end{document}
답변2
나는 insbox
일반 TeX 매크로 패키지 세트를 사용하여 이 변형 레이아웃을 제안합니다.
\documentclass{book}
\usepackage{graphicx}
\input{insbox}
\newtheorem{problem}{P}[chapter]
\begin{document}
\begin{problem}\leavevmode%
\InsertBoxR{-1}{\includegraphics[width=0.38\textwidth]{example-image}}\par\noindent
A circle is drawn in a sector of a larger circle of radius $r$, as shown in the adjacent figure.
The smaller circle is tangent to the two bounding radii and the arc of the sector. Find the radius of the smaller circle.
\end{problem}
\end{document}
답변3
"문제"는 그림 배치를 방해하는 충돌 환경이고 "wrapFigure"는 단락 시작 부분에 배치되므로 다음과 같은 가짜 단락을 제공할 수 있습니다.~~\vspace*{-\baselineskip}
\documentclass{book}
\usepackage{wrapfig}
\usepackage{graphicx}
\newtheorem{problem}{P}[chapter]
\begin{document}
A circle is drawn in a sector of a larger circle
\begin{wrapfigure}{r}{0.5\textwidth}
\centering
\includegraphics[width=0.38\textwidth]{example-image-a.pdf}
\end{wrapfigure}
~~\vspace*{-\baselineskip}
\begin{problem}
\noindent
of radius $r$, as shown in the adjacent figure.
The smaller circle is tangent to the two bounding radii and the
arc of the sector. Find the radius of the smaller circle.
\end{problem}
\end{document}