크기를 조정하는 표준을 작성하는 방법은 무엇입니까?

크기를 조정하는 표준을 작성하는 방법은 무엇입니까?

합의 노름을 써야 하는데 합 기호가 노름 기호(||)보다 커서 보기에 좋지 않습니다. 크기를 조정하는 표준 기호가 있습니까?

\documentclass[12pt,a4paper]{article} 
   \begin{document}  
    \begin{equation}
     ||\left(\sum_{n=1}^N \bf P_{\rm n}\rm\right) ||^2 = \left(\sum_n \frac{E_n}{c}\right)^2 - \left(\sum_n \bf p_{\rm n}\rm \right)^2   
    \end{equation}
   \end{document}  

답변1

다음 방법 중 하나가 작동합니다.

  • 다음과 같이 패키지 를 로드 amsmath하고 매크로를 정의할 수 있습니다.\norm

    \newcommand{\norm}[1]{\left\lVert#1\right\rVert}
    

    그리고 나서 쓰세요

    \norm{ \biggl(\sum_{n=1}^N \mathbf{P}_{n}\biggr) }
    

    관심 방정식에서. \left(and \right); 라고 쓰면 둥근 괄호가 너무 커집니다. 대신 \biggl(에 글을 쓰는 것이 좋습니다 \biggr).

    따라서 예제 코드는 다음과 같이 작성될 수 있습니다.

    \documentclass[12pt,a4paper]{article} 
    \usepackage{amsmath}
    \newcommand\norm[1]{\left\lVert#1\right\rVert}
    \begin{document}  
      \begin{equation}
        \norm{ \biggl(\sum_{n=1}^N \mathbf{P}_{n}\biggr) }^2 = 
               \biggl(\sum_n \frac{E_n}{c}\biggr)^2 - 
               \biggl(\sum_n \mathbf{p}_{n} \biggr)^2   
      \end{equation}
    \end{document} 
    

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

  • 어떤 사람들은 위의 예에서 결과적인 표준 "울타리"가 너무 커서 수학의 나머지 부분을 시각적으로 지배할 위험이 있다고 말할 수도 있습니다. (물론 매크로가 펜스 크기를 지정하기 위해 \left및 지시어를 사용하기 때문에 이런 일이 발생합니다.) 이 문제를 해결하려면 패키지를 로드하고 프리앰블에 다음 명령을 삽입할 수 있습니다.\rightmathtools

    \DeclarePairedDelimiterX{\norm}[1]{\lVert}{\rVert}{#1}
    

    \norm명시적인 크기 명령과 함께 매크로를 사용합니다 (여기서는 \bigg, 즉 괄호와 동일한 크기).

    \documentclass[12pt,a4paper]{article} 
    \usepackage{mathtools}
    \DeclarePairedDelimiterX{\norm}[1]{\lVert}{\rVert}{#1}
    \begin{document} 
      \begin{equation}
        \norm[\bigg]{\biggl(\sum_{n=1}^N \mathbf{P}_{n}\biggr) }^2 = 
                     \biggl(\sum_n \frac{E_n}{c}\biggr)^2 - 
                     \biggl(\sum_n \mathbf{p}_{n} \biggr)^2   
      \end{equation}
    \end{document}
    

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

답변2

\Vert대신 사용하십시오 ||. , , , .. \Vert와 같은 중괄호 크기 조정 명령을 앞에 붙일 수 있습니다.\left\right\big

\documentclass[12pt,a4paper]{article} 
\begin{document}  
    \begin{equation}
        \left\Vert\left(\sum_{n=1}^N \bf P_{\rm n}\rm\right) \right\Vert^2 = \left(\sum_n \frac{E_n}{c}\right)^2 - \left(\sum_n \bf p_{\rm n}\rm \right)^2   
    \end{equation}
\end{document}  

스크린샷

관련 정보