문장 끝 뒤에 QED 기호가 표시되고 오른쪽 정렬을 표시할 수 없는 이유는 무엇입니까(아래 그림 참조)?

문장 끝 뒤에 QED 기호가 표시되고 오른쪽 정렬을 표시할 수 없는 이유는 무엇입니까(아래 그림 참조)?
\documentclass[twoside,11pt]{book}
\usepackage[left=2.5cm,right=2cm,top=2cm,bottom=2cm,papersize={15.5cm,23.5cm}]{geometry}
\renewcommand{\thechapter}{\Roman{chapter}}
\renewcommand{\thesection}{\arabic{chapter}.\arabic{section}.}
\renewcommand{\thesubsection}{\arabic{chapter}.\arabic{section}.\arabic{subsection}.}
\usepackage{amsthm}
\newtheorem{definition}{Definition}[section]
\newtheorem{theorem}{Theorem}[section]
\renewcommand{\thetheorem}{\thesection\arabic{theorem}}
\renewenvironment{proof}{{\noindent\bfseries Proof.}}{\qedsymbol}
\renewcommand{\qedsymbol}{\rule{1ex}{1ex}}

\begin{document}
    \chapter{ABC}
    blablabla
    \section{ONE}
    \begin{theorem}
        dddd
    \end{theorem}
\begin{proof}
    It is clear.
\end{proof}
\end{document}

나는 텍스트를 원한다증거대담하다. 그래서 나는 이렇게 쓴다:

\renewenvironment{proof}{{\noindent\bfseries Proof.}}{\qedsymbol}

이제 QED 기호가 검은색 사각형이길 원하므로 이렇게 씁니다.

\renewcommand{\qedsymbol}{\rule{1ex}{1ex}}

문장 끝 뒤에 QED 기호가 표시되고 오른쪽 정렬을 표시할 수 없는 이유는 무엇입니까(아래 그림 참조)? 그것을 만드는 방법?

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

나는 원해요:

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

답변1

내 제안은 다음을 사용하는 것입니다.https://tex.stackexchange.com/a/251251/4427의 재정의도 포함됩니다 \qedsymbol.

\documentclass{article}

\usepackage{amsthm}
\usepackage{xpatch}

\providecommand{\proofnamefont}{\itshape}% the default
\xpatchcmd{\proof}{\itshape}{\normalfont\proofnamefont}{}{}
\renewcommand{\proofnamefont}{\bfseries}% your preference

\renewcommand{\qedsymbol}{\rule{1ex}{1ex}}

\begin{document}

\begin{proof}
Obvious, isn't it?
\end{proof}

\end{document}

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

답변2

에서 이름이 문자 그대로 MWE필요 하고 가 검정색 정사각형 안에 있어야 한다는 것을 이해하게 되었습니다. 이를 위해 환경을 재정의할 필요가 없으므로 및 원하는 대로 수정할 수 있으며 수정된 내용은 다음 과 같습니다.ProofBoldqedsymbolproof\proofname\qedsymbolMWE

\documentclass[twoside,11pt]{book}
\usepackage[left=2.5cm,right=2cm,top=2cm,bottom=2cm,papersize={15.5cm,23.5cm}]{geometry}
\renewcommand{\thechapter}{\Roman{chapter}}
\renewcommand{\thesection}{\arabic{chapter}.\arabic{section}.}
\renewcommand{\thesubsection}{\arabic{chapter}.\arabic{section}.\arabic{subsection}.}
\usepackage{amsthm}
\newtheorem{definition}{Definition}[section]
\newtheorem{theorem}{Theorem}[section]
\renewcommand{\thetheorem}{\thesection\arabic{theorem}}
%\renewenvironment{proof}{{\noindent\bfseries Proof.}}{\qedsymbol}
\renewcommand{\proofname}{\upshape\textbf{Proof}}
\renewcommand{\qedsymbol}{\rule{1ex}{1ex}}

\begin{document}
    \chapter{ABC}
    blablabla
    \section{ONE}
    \begin{theorem}
        dddd
    \end{theorem}
\begin{proof}
    It is clear.
\end{proof}
\end{document}

출력은 다음과 같습니다.

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

답변3

\proofname및 를 다음과 같이 재정의할 수 있습니다 \qedsymbol. (흰색) 정사각형과 동일한 크기로 검은색 정사각형을 생성할 수 있는 \blacksquare명령이 패키지에 있으므로 규칙 명령으로 검은색 정사각형을 만들 필요는 없습니다 .amssymb

\documentclass[twoside,11pt]{book}
\usepackage[left=2.5cm,right=2cm,top=2cm,bottom=2cm,papersize={15.5cm,23.5cm}]{geometry}
\renewcommand{\thechapter}{\Roman{chapter}}
\renewcommand{\thesection}{\arabic{chapter}.\arabic{section}.}
\renewcommand{\thesubsection}{\arabic{chapter}.\arabic{section}.\arabic{subsection}.}
\usepackage{amsthm}
\newtheorem{definition}{Definition}[section]
\newtheorem{theorem}{Theorem}[section]
\renewcommand{\thetheorem}{\thesection\arabic{theorem}}

\renewcommand{\proofname}{\upshape\bfseries Proof}
\usepackage{amssymb}
\renewcommand{\qedsymbol}{\ensuremath\blacksquare}

\begin{document}
    \chapter{ABC}
    blablabla
    \section{ONE}
    \begin{theorem}
        dddd
    \end{theorem}
\begin{proof}
    It is clear.
\end{proof}
\end{document}

그리고 출력은 다음과 같습니다.

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


그런데 섹션 번호의 접두어는 아랍어이므로 장 번호는 로마자로 표기하면 안 됩니다. 또한 장 번호 뒤에 점이 없으므로 섹션 번호 뒤에 점을 추가할 필요가 없습니다.

관련 정보