두 가지 방법을 시도했는데요, 하나는 minipage 환경을 이용하는 것이고, 하나는 tabular 환경을 이용한 것입니다. 그런데 둘 다 수직 align이 잘 맞지 않고(특히 tabular가 그랬습니다.), minipage는 수식과 그림 사이의 거리가 너무 넓네요. 제 머리로는 도저히 해결할 수가 없습니다 ㅠㅜㅜㅜㅜ 도와주세요
\documentclass[a4paper]{oblivoir} \usepackage[a4paper, top=2cm, bottom=2cm, left = 2cm, right = 2cm]{geometry} \usepackage[dvipsnames]{xcolor} \usepackage{tikz} \usetikzlibrary{shapes, arrows, angles, quotes} \usepackage{amsmath} \usepackage{mathtools} \usepackage{physics} \renewcommand{\v}[1]{\mathbf{#1}} \newcommand{\proj}[2]{\mathrm{proj}_\v{#1}(\v{#2})} \newcommand{\seperate}[2]{\hspace{.05\linewidth} \begin{minipage}{.45\linewidth} #1 \end{minipage} \begin{minipage}{.45\linewidth} #1 \end{minipage} \begin{minipage}{.45\linewidth} #2 \end{minipage} \begin{minipage}{.45\linewidth} #2 \end{minipage} } \begin{document} \begin{center} \seperate{\begin{tikzpicture} \coordinate (o) at (0,0); \coordinate (u) at (1,3); \coordinate (v) at (4,0); \draw[thick, ->] (o) -- (u) node[midway, above left] {$\v{u}$}; \draw[thick, ->] (o) -- (v) node[midway, below] {$\v{v}$}; \draw[ForestGreen, very thick, ->] (o) -- (1,0) node[midway, below] {$\proj{v}{u}$}; \pic [draw, ->, "$\theta$", angle eccentricity=1.5] {angle = v--o--u}; \draw[dashed] (1,0) -- (1,3); \end{tikzpicture}}{\( \begin{aligned} \proj{v}{u} &= \norm{\v{u}}\cos\theta \cdot \frac{\v{v}}{\norm{\v{v}}}\\ &= \norm{\v{u}} \cdot \frac{\v{u} \circ \v{v}}{\norm{\v{u}}\norm{\v{v}}} \cdot \frac{\v{v}}{\norm{\v{v}}} \\ &= \proj{v}{u} = \frac{\v{u}\circ\v{v}}{\v{v}\circ \v{v}} \v{v} \end{aligned} \)} \end{center} \end{document}
\documentclass[a4paper]{oblivoir} \usepackage[a4paper, top=2cm, bottom=2cm, left = 2cm, right = 2cm]{geometry} \usepackage[dvipsnames]{xcolor} \usepackage{tikz} \usetikzlibrary{arrows, angles, quotes} \usepackage{amsmath} \usepackage{mathtools} \usepackage{physics} \renewcommand{\v}[1]{\mathbf{#1}} \newcommand{\proj}[2]{\mathrm{proj}_\v{#1}(\v{#2})} \begin{document} \begin{center} \begin{tabular}{c c} \hline \begin{tikzpicture} \coordinate (o) at (0,0); \coordinate (u) at (1,3); \coordinate (v) at (4,0); \draw[thick, ->] (o) -- (u) node[midway, above left] {$\v{u}$}; \draw[thick, ->] (o) -- (v) node[midway, below] {$\v{v}$}; \draw[ForestGreen, very thick, ->] (o) -- (1,0) node[midway, below] {$\proj{v}{u}$}; \pic [draw, ->, "$\theta$", angle eccentricity=1.5] {angle = v--o--u}; \draw[dashed] (1,0) -- (1,3); \end{tikzpicture} & \( \begin{aligned} \proj{v}{u} &= \norm{\v{u}}\cos\theta \cdot \frac{\v{v}}{\norm{\v{v}}}\\ &= \norm{\v{u}} \cdot \frac{\v{u} \circ \v{v}}{\norm{\v{u}}\norm{\v{v}}} \cdot \frac{\v{v}}{\norm{\v{v}}} \\ &= \proj{v}{u} = \frac{\v{u}\circ\v{v}}{\v{v}\circ \v{v}} \v{v} \end{aligned} \) \\ \hline \end{tabular} \end{center} \end{document}
KTUG 한국 텍 사용자 그룹