![이 수식을 변경하는 방법은 무엇입니까?](https://rvso.com/image/370308/%EC%9D%B4%20%EC%88%98%EC%8B%9D%EC%9D%84%20%EB%B3%80%EA%B2%BD%ED%95%98%EB%8A%94%20%EB%B0%A9%EB%B2%95%EC%9D%80%20%EB%AC%B4%EC%97%87%EC%9E%85%EB%8B%88%EA%B9%8C%3F.png)
아래 그림과 같이 수식 2개를 수정하고 싶습니다. 당신이 나를 도울 수?
\documentclass[a4paper,12pt]{article}[12pt]
\usepackage[italian]{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{anysize}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{mathrsfs}
\usepackage{textcomp}
\linespread{1.5}
\frenchspacing
\newcommand{\abs}[1]{\lvert#1\rvert}
\usepackage{floatflt,epsfig}
\usepackage{multicol}
\usepackage[a4paper,top=1.0cm,bottom=1.0cm,left=1.0cm,right=1.0cm]{geometry}
\begin{document}
$ a^2 = 16 \rightarrow a = \pm 4 = $
\newpage
$ x \cdot \left( x+3\right) = 0 \rightarrow $
\end{document}
답변1
pstricks
다음은 and mathtools
(명령에 대해 ) 를 사용하여 수행하는 방법입니다 \underbracket
.
관련 없음: 는 epsfig
20년 이상 사용되지 않았으므로 로 바꿔야 합니다 graphicx
. 또한 버전 3.10부터는 언어 옵션이 babel
문서 클래스와 함께 로드되어야 하므로 언어 종속 패키지는 문서의 언어를 인식합니다.
\documentclass[a4paper,12pt, italian, svgnames]{article}[12pt]
\usepackage{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{anysize}
\usepackage{graphicx}
\usepackage{amssymb}
\usepackage{mathrsfs}
\usepackage{textcomp}
\usepackage{mathtools}
\usepackage{pst-node}
\usepackage{auto-pst-pdf} %% to compile with pdflatex --enable-write18 (MiKTeX) or pdflatex --shell-escape (TeX Live, MacTeX))
\newcommand\mathpnode[1]{\pnode[0,\fontdimen22\textfont2]{#1}}
\linespread{1.5}
\frenchspacing
\DeclarePairedDelimiter{\abs}{\lvert}{\rvert}
\usepackage{floatflt}%
\usepackage{multicol}
\usepackage[a4paper, margin=1.0cm]{geometry}
\begin{document}
\begin{pspicture}
$ a^2 = 16 \rightarrow a = \pm 4 = \mathpnode{M}\qquad\begin{aligned}
\mathpnode{R1} & \mathbf{ + 4} \\[1ex]
\mathpnode{R2} & \mathbf{ - 4}
\psset{nodesep = 3pt}
\ncline{M}{R1}
\ncline{M}{R2}
\end{aligned} $
\end{pspicture}
\bigskip
$\psset{fillstyle = solid} \underbracket[0.8pt]{\,x\vphantom{)}\,}_{{\substack{\vert\\\pscirclebox[fillcolor = BlanchedAlmond]{1}}}}\! \cdot \underbracket[1pt]{( x+3) }_{\substack{\vert\\\pscirclebox[fillcolor = Aqua!40]{2}}}= 0 \rightarrow \quad\begin{aligned}
& \raisebox{-0.3\height}{\pscirclebox[fillcolor = BlanchedAlmond]{1}}\quad\mathbf{x = 0}
\\[1ex]
& \raisebox{-0.3\height}{\pscirclebox[fillcolor = Aqua!40]{2}}\quad\mathbf{x + 3\rightarrow x = -3}
\end{aligned}$
\end{document}