외부 모서리가 있는 정사각형의 두 대각선 꼭지점을 결합하시겠습니까?

외부 모서리가 있는 정사각형의 두 대각선 꼭지점을 결합하시겠습니까?

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

이런 경우인데 사진이 초안이라 죄송합니다

답변1

TikZ를 사용하여 사진을 만들 수 있습니다. scale필요한 사이즈로 제작 가능합니다 . 아래 코드를 참조하세요.

\documentclass[border=10pt]{standalone}
\usepackage{tikz}

\begin{document}
    \begin{tikzpicture}[scale=1.0]

    \draw [thick] rectangle (1,1);
    \draw [thick] (0,1) -- (1,0);
    \draw [thick] (0,1) .. controls (1,2) and (2,1) .. (1,0);

    \end{tikzpicture}
\end{document}

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

답변2

또 다른 TikZ 예:

\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
  \newcommand*{\OutAngle}{60}
  \newcommand*{\ArcMax}{1.2}
  \draw
    (0, 0) rectangle (1, 1)
    (0, 1) to[out=\OutAngle, in=135]
    (\ArcMax, \ArcMax) to[out=-45, in=90-\OutAngle]
    (1, 0) -- cycle
  ;
\end{tikzpicture}
\end{document}

결과

상단의 출구 각도는 매크로를 통해 구성할 수 있습니다 \OutAngle. 원점으로부터 호의 최대 거리는 다음 \ArcMax과 같이 사용되는 매크로를 통해 지정할 수 있습니다.엑스그리고와이가장 먼 지점에 대한 좌표.

답변3

Pstricks또한 쉽게 좋은 결과를 얻을 수 있습니다.

\documentclass[border=3pt, x11names]{standalone}

\usepackage{pst-poly, pst-eucl, pstricks-add}
\usepackage{auto-pst-pdf}

\begin{document}

\psset{unit = 2cm, dimen = m}
\begin{pspicture*}
\providecommand{\PstPolygonNode}{%
\psdots[dotstyle = o, dotsize=4pt, linecolor=LightSteelBlue3, fillstyle=solid, fillcolor=LightSteelBlue3](1;\INode)}
\PstSquare[PolyName=A]
\uput[ul](A2){A} \uput[ur](A1){B}
\uput[dr](A4){C} \uput[dl](A3){D}
\ncline[nodesep=2pt]{A2}{A4}
\pnode[0.25,0.25](A0){O}
\pstArcOAB[linecolor=LightSteelBlue3]{O}{A4}{A2}
 \end{pspicture*}

 \end{document} 

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

답변4

메타포스트또 다른 대안을 제공합니다. 여기에서는 사용했지만 lualatex아직 사용하지 않았다면 대신 luamplib일반을 사용할 수 있습니다 .mpostlualatex

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

나는 정점 사이에 곡선을 그리는 네 가지 방법을 보여주었습니다.

\documentclass[border=5mm]{standalone}
\usepackage{luamplib}
\begin{document}
\begin{mplibcode}
beginfig(1);
u := 3cm;
path B; B = unitsquare scaled u;
draw B;
draw point 3 of B -- point 1 of B;
draw point 3 of B .. controls (u,2u) and (2u,u) .. point 1 of B withcolor .6 red;
draw point 3 of B .. controls point 2 of B      .. point 1 of B withcolor .6 blue;
draw point 3 of B {dir 60}                      .. point 1 of B withcolor .6 green;
draw point 3 of B {dir -20}                     .. point 1 of B dashed withdots;
endfig;
\end{mplibcode}
\end{document}

관련 정보