
コード:
\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\textwidth
0.5\textwidth
\hspace{\fill}
\flushright
minipage
minipage
\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}