설명 목록의 pmatrix가 문서 흐름을 중단시키는 이유는 무엇입니까?

설명 목록의 pmatrix가 문서 흐름을 중단시키는 이유는 무엇입니까?

MWE를 제공하는 코드

\documentclass{article}

\usepackage{amsmath}

\usepackage[brazil]{babel}   
%\usepackage[latin1]{inputenc}  
\usepackage[utf8]{inputenc}  
% UTF-8 encoding is recommended by ShareLaTex

\title{MWE}

\begin{document} 

\maketitle

\section{Grande Resumo de Álgebra}

\begin{description}

\item[Igualdade de Matrizes] \hfill \\Duas matrizes são iguais se tem a mesma dimensão e elementos iguais.

\item[Matriz Transposta] \hfill \\Troca de posição as linhas e as colunas.\\
A = \begin{pmatrix} 3 & -2 & 4 \\ 1 & 3 & 7 \end{pmatrix}
\Rightarrow 
A' = \begin{pmatrix} 3 & 1 \\ -2 & 3 \\ 4 & 7 \end{pmatrix} 

A transposta da transposta é a matriz original.\\
(A^{t})^{t} = A

\item[Matriz Simétrica] \hfill \\Quando a transposta da matriz é a mesma matriz original, dizemos que a matriz é simétrica. A^{t} = A\\
A = \begin{pmatrix} 3 & 2 & 6 \\ 2& 10 & -7 \\ 6 & -7 & 9 \end{pmatrix} 

Toda Matriz Simétrica é quadrada.

\item[Matriz Diagonal] \hfill \\É uma matriz que contém zeros em todas as posições fora da diagonal.\\
A = \begin{pmatrix} 2 & 0 & 0 \\ 0 & 3 & 0 \\ 0 & 0 & 11 \end{pmatrix}

\end{description}

\end{document}

설명 목록의 문서 흐름이 중단된 이유를 생각했는데, 첫 번째 매트릭스가 나타난 후 문서 흐름이 중단되었음을 알았습니다.

이 문제를 해결하거나 방지하는 방법을 알고 계셨나요? 일부 수학 과목을 요약하기 위해 목록을 작성하고 싶지만 목록 안에 몇 가지 예를 작성하고 싶습니다. 목록 없이도 그렇게 할 수 있지만 더 많은 작업이 필요합니다.

어떤 아이디어가 있나요?

도와주셔서 감사합니다, 건배!!

pmatrix 내부 설명

답변1

문제는 인라인 방정식과 표시된 방정식에 $...$수학 을 포함해야 한다는 것입니다. 이 작업을 수행하지 않았으므로 코드가 컴파일되지 않으며(오류가 있습니다!) 이로 인해 설명 환경이 손상됩니다.\(...\)\[...\]

스타일 측면에서 \\명시적인 줄바꿈을 삽입하는 것보다 해당 방정식을 표시 모드로 설정하는 것이 더 나을 것입니다. 이렇게 하면 다음이 제공됩니다.

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

편집하다\\\hfil설명을 새 줄에 강제로 적용하는 대신 다음을 사용하는 것이 좋습니다.열거 항목패키지. 이 패키지를 로드한 다음 다음으로 설명 환경을 시작하면

\begin{description}[labelwidth=\textwidth]

이 일이 자동으로 이루어지도록 할 것입니다. 수정된 코드는 다음과 같습니다.

\documentclass{article}
\usepackage{amsmath}
\usepackage{enumitem}
\usepackage[brazil]{babel}
%\usepackage[latin1]{inputenc}
\usepackage[utf8]{inputenc}
% UTF-8 encoding is recommended by ShareLaTex

\begin{document}
\begin{description}[labelwidth=\textwidth]
  \item[Igualdade de Matrizes]
  Duas matrizes são iguais se tem a mesma dimensão e elementos iguais.

  \item[Matriz Transposta]
  Troca de posição as linhas e as colunas.
  \[ A = \begin{pmatrix} 3 & -2 & 4 \\ 1 & 3 & 7 \end{pmatrix}
  \Rightarrow
  A' = \begin{pmatrix} 3 & 1 \\ -2 & 3 \\ 4 & 7 \end{pmatrix}
  \]
  A transposta da transposta é a matriz original.
  \[(A^{t})^{t} = A\]

  \item[Matriz Simétrica]
  Quando a transposta da matriz é a mesma matriz original, dizemos que a matriz é simétrica. $A^{t} = A$
  \[A = \begin{pmatrix} 3 & 2 & 6 \\ 2& 10 & -7 \\ 6 & -7 & 9
  \end{pmatrix}\]

  Toda Matriz Simétrica é quadrada.

  \item[Matriz Diagonal]
  É uma matriz que contém zeros em todas as posições fora da diagonal.
  \[A = \begin{pmatrix} 2 & 0 & 0 \\ 0 & 3 & 0 \\ 0 & 0 & 11 \end{pmatrix}\]
\end{description}
\end{document}

관련 정보