![如何将这个渐近线图形向右移动?](https://linux22.com/image/417490/%E5%A6%82%E4%BD%95%E5%B0%86%E8%BF%99%E4%B8%AA%E6%B8%90%E8%BF%91%E7%BA%BF%E5%9B%BE%E5%BD%A2%E5%90%91%E5%8F%B3%E7%A7%BB%E5%8A%A8%EF%BC%9F.png)
我对 LaTeX 还不太熟悉,如果可能的话,我需要一些帮助将我用渐近线绘制的三角形向右移动。以下是我的代码:
\documentclass[letterpaper, 12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[inline]{asymptote}
\usepackage{float}
\usepackage{fullpage}
\usepackage{wrapfig}
\begin{document}
\section{Center}
A triangle has many centers, and in this lesson, we will mainly focus on three of them: \underline{centroid}, \underline{incenter}, and \underline{circumcenter}.
\textbf{Centroid}
\bigskip
\begin{minipage}{0.6\textwidth}
\begin{flushleft}
A centroid is the intersection of the three medians \linebreak of a triangle, which is usually denoted by $G$.
\end{flushleft}
\begin{asy}
pair A, B, C, D, E, F;
A = (80,80);
B = (0,0);
C = (120,0);
D = (60,0);
E = (100,40);
F = (40,40);
draw((0,0)--(80,80)--(120,0)--cycle);
draw((0,0)--(100,40));
draw((80,80)--(60,0));
draw((120,0)--(40,40));
label("$A$", A, N);
label("$C$", C, SE);
label("$B$", B, SW);
label("$D$", D, S);
label("$E$", E, NE);
label("$F$", F, NW);
\end{asy}
\end{minipage}
\end{document}
如果可能的话,我想将三角形移动到突出显示的位置......
抱歉,我是个新手,很多东西都不懂。如果我有问题,请耐心等待,提前感谢你的帮助!!!
PS 我也看到有人说要用“float”?但我真的不知道怎么用它……
答案1
这是一种方法。
\documentclass{article}
\usepackage[inline]{asymptote}
\begin{document}
\section{Center}
A triangle has many centers, and in this lesson, we will mainly focus on three of them: \underline{centroid}, \underline{incenter}, and \underline{circumcenter}.
\noindent
\begin{minipage}{0.49\textwidth}
\begin{flushleft}
\textbf{Centroid}
A centroid is the intersection of the three medians \linebreak of a triangle, which is usually denoted by $G$.
\end{flushleft}
\end{minipage}% no blank line after
\begin{minipage}{0.49\textwidth}
\begin{flushright}
\begin{asy}
pair A, B, C, D, E, F;
A = (80,80);
B = (0,0);
C = (120,0);
D = (60,0);
E = (100,40);
F = (40,40);
draw((0,0)--(80,80)--(120,0)--cycle);
draw((0,0)--(100,40));
draw((80,80)--(60,0));
draw((120,0)--(40,40));
label("$A$", A, N);
label("$C$", C, SE);
label("$B$", B, SW);
label("$D$", D, S);
label("$E$", E, NE);
label("$F$", F, NW);
\end{asy}
\end{flushright}
\end{minipage}
\end{document}
注意:这是使用 TexMaker 中的 F1 进行编译的