%3F.png)
\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}
eu quero o textoProvaé ousado. Então eu escrevo:
\renewenvironment{proof}{{\noindent\bfseries Proof.}}{\qedsymbol}
Agora, quero que o símbolo QED seja um quadrado preto, então escrevo
\renewcommand{\qedsymbol}{\rule{1ex}{1ex}}
Por que o símbolo QED aparece após o final da frase e não pode ser alinhado à direita (conforme imagem abaixo)? Como fazer isso?
Eu quero:
Responder1
Minha sugestão é usarhttps://tex.stackexchange.com/a/251251/4427com também uma redefinição de \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}
Responder2
A partir do seu MWE
, entendi que você precisa do Proof
nome na Bold
face e o qedsymbol
deve estar em quadrado preto sólido, para isso não há necessidade de redefinir o proof
ambiente, você pode modificar o \proofname
e \qedsymbol
como desejar, e o modificado MWE
é:
\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}
E a saída é:
Responder3
Você pode redefinir \proofname
e \qedsymbol
da seguinte maneira. Não é necessário criar um quadrado preto pelo comando de regra, pois existe um \blacksquare
comando no amssymb
pacote que pode produzir um quadrado preto do mesmo tamanho do quadrado (branco).
\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}
E a saída é a seguinte.
A propósito, os números dos capítulos não devem ser romanos, pois os prefixos nos números das seções são arábicos. Além disso, não é necessário adicionar pontos após os números das seções, pois não há pontos após os números dos capítulos.