30 请问这种图形怎么在Latex画出来

发布于 2023-03-04 17:35:34
关注者
1
被浏览
1.9k
3 个回答
寄存器
寄存器 2023-03-05
这家伙很懒,什么也没写!

试试tkz-euclide宏包

想养只胖橘
想养只胖橘 2023-03-21
这家伙很懒,什么也没写!

转化成eps

Sagittarius Rover
Sagittarius Rover 2026-03-13
这家伙很懒,什么也没写!

使用需要lualatextkz-elements包(v5.13c)在处理椭圆切线等问题会方便很多:

\documentclass[border=5pt]{standalone}
\usepackage[mini]{tkz-euclide}
\usepackage{tkz-elements}
\directlua{
    init_elements()
    z.O = point(0.15, 0.6) 
    C.OW = circle(through(z.O, 0.5))
    z.W = C.OW.through
    z.M = point(-0.25, -1)
    z.N = point(1,4)
    z.C = tkz.midpoint(z.M, z.N)
    L.MN = line(z.M, z.N)
    z.T = L.MN:orthogonal_at(z.C, {length = 1.5})
    CO.EL = conic(EL_points(z.C, z.N, z.T))
    PA.curve = CO.EL:points(0, 1, 100)
    z.P = point(4,-1)
    L.tan, _ = CO.EL:tangent_from(z.P)
    z.Q = L.tan.pb
    L.normal = L.tan:ortho_from(z.Q)
    z.dir = L.normal:report(-1.5, z.Q)
    z.H = line(z.P, z.Q):projection(z.O)
    z.v, _ = intersection(line(z.O,z.Q), C.OW)
    z.u, _ = intersection(line(z.O,z.H), C.OW)
}
\begin{document}

\begin{tikzpicture}
    \tkzGetNodes
    \tkzDrawCoordinates[smooth,thick](PA.curve)  \tkzDrawCircle[black,thick](O,W)
    \tkzDrawSegments[thick,-latex](Q,dir)
    \tkzDrawSegments[thick,add=0 and 0.5](P,Q)
    \tkzDrawSegments[thick,dashed,green](O,Q)
    \tkzDrawSegments[thick,green,-latex](O,v)
    \tkzDrawSegments[thick,dash dot,blue](O,H)
    \tkzDrawSegments[thick,blue,-latex](O,u)
    \tkzMarkRightAngle[size=.25,thick](O,H,Q)
    \tkzMarkRightAngle[size=.25,thick](P,Q,dir)
    \draw [magenta,decorate,decoration={brace,mirror,amplitude=10pt}] (O) -- (H) node[midway,below right,xshift=-.15cm,yshift=-.25cm,black] {$h(K,u)$};
    % labels left is your time~
\end{tikzpicture}

\end{document}

image.png

撰写答案

请登录后再发布答案,点击登录

发布
问题

分享
好友

手机
浏览

扫码手机浏览