미니페이지의 공백

미니페이지의 공백

암호:

\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{makeidx}
\usepackage{tkz-euclide}
\usetkzobj{all}
\usetikzlibrary{calc,angles,positioning,intersections,quotes,decorations.markings}
\usepackage{graphicx}
\usepackage[width=0.00cm, height=0.00cm, left=0.80in, right=0.80in, top=0.80in, bottom=0.80in]{geometry}
\begin{document}
    \large
\noindent\begin{minipage}{0.5\textwidth}
In $\triangle{ABC}$ $\angle B = 90^{\circ}$,\\
By using Pythagoras Theorem,
\begin{align*}
AC^2&=AB^2+BC^2& \tag{$*$}
\end{align*}
\end{minipage}\hspace{2cm}
    \begin{minipage}{0.5\textwidth}
\begin{tikzpicture}

\tkzDefPoint(0:0){B}
\tkzDefPoint(0:5){A}
\tkzDefPoint(90:4){C}



\tkzLabelPoint[above](C){$C$}
\tkzLabelPoint[below,yshift=-0.6mm](A){$A$}
\tkzLabelPoint[below,yshift=-0.8mm](B){$B$}

\tkzDrawSegment[black!60!black](C,B)
\tkzDrawSegment[black!60!black](B,A)
\tkzDrawSegment[black!60!black](C,A)


\tkzLabelSegment[auto,swap,rotate=-38.5,xshift=-15mm,yshift=0mm](A,C){Hypotenuse}
\tkzLabelSegment[auto,rotate=0,xshift=0.3mm,yshift=-0.7mm](A,B){Adjacent Side}
\tkzLabelSegment[auto,rotate=90,xshift=15.3mm,yshift=3.8mm](B,C){Opposite Side}


%% here use the correct order. For example, BCA is inner angle and ACB is outer angle
\tkzMarkAngle[size=0cm,color=red,mark=](C,A,B)
\tkzMarkAngle[size=1cm,color=black,mark=](C,A,B)
\tkzMarkRightAngle(C,B,A)
\tkzLabelAngle[pos=1.4](C,A,B){$\theta$}
\end{tikzpicture}
\end{minipage}
\end{document}

질문: 내 작업에서 가장 큰 문제는 페이지 왼쪽에 빈 공간이 있다는 것입니다. 즉, 왼쪽에 무엇을 썼든 빨간색 기호로 표시되는 빈 공간이 생성된다는 의미입니다. 이 문제에 대한 해결책은 무엇입니까?

답변1

나는 당신이 (a) 대신에 minipage환경을 약간 덜 넓게 만들 것을 제안합니다 . (b) 그 사이에 삽입; (c) 오른쪽 시작 부분에 명령을 삽입합니다 . (기본적으로 의 항목은 완전히 정렬됩니다. 즉, 왼쪽 가장자리에서 시작됩니다.)0.45\textwidth0.5\textwidth\hspace{\fill}\flushrightminipageminipage

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

\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath,amsfonts,amssymb}
\usepackage{makeidx}
\usepackage{tkz-euclide}
\usetkzobj{all}
\usetikzlibrary{calc,angles,positioning,intersections,quotes,decorations.markings}
%\usepackage{graphicx}
\usepackage[margin=0.8in]{geometry}
\begin{document}
\large
\noindent
\begin{minipage}{0.45\textwidth}
In $\triangle{ABC}$ $\angle B = 90^{\circ}$,\\
By using Pythagoras Theorem,
\begin{align*}
AC^2&=AB^2+BC^2& \tag{$*$}
\end{align*}
\end{minipage}\hspace{\fill}%
\begin{minipage}{0.45\textwidth}
\flushright
\begin{tikzpicture}

\tkzDefPoint(0:0){B}
\tkzDefPoint(0:5){A}
\tkzDefPoint(90:4){C}

\tkzLabelPoint[above](C){$C$}
\tkzLabelPoint[below,yshift=-0.6mm](A){$A$}
\tkzLabelPoint[below,yshift=-0.8mm](B){$B$}

\tkzDrawSegment[black!60!black](C,B)
\tkzDrawSegment[black!60!black](B,A)
\tkzDrawSegment[black!60!black](C,A)

\tkzLabelSegment[auto,swap,rotate=-38.5,xshift=-15mm,yshift=0mm](A,C){Hypotenuse}
\tkzLabelSegment[auto,rotate=0,xshift=0.3mm,yshift=-0.7mm](A,B){Adjacent Side}
\tkzLabelSegment[auto,rotate=90,xshift=15.3mm,yshift=3.8mm](B,C){Opposite Side}

%% here use the correct order. For example, BCA is inner angle and ACB is outer angle
\tkzMarkAngle[size=0cm,color=red,mark=](C,A,B)
\tkzMarkAngle[size=1cm,color=black,mark=](C,A,B)
\tkzMarkRightAngle(C,B,A)
\tkzLabelAngle[pos=1.4](C,A,B){$\theta$}
\end{tikzpicture}
\end{minipage}
\end{document}

관련 정보