%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}
quiero el textoPruebaes atrevido. Entonces escribo:
\renewenvironment{proof}{{\noindent\bfseries Proof.}}{\qedsymbol}
Ahora, quiero que el símbolo QED sea un cuadrado negro, así que escribo
\renewcommand{\qedsymbol}{\rule{1ex}{1ex}}
¿Por qué el símbolo QED se muestra después del final de la oración y no se puede mostrar alineado a la derecha (como se muestra en la imagen a continuación)? ¿Como hacerlo?
Deseo:
Respuesta1
Mi sugerencia es utilizarhttps://tex.stackexchange.com/a/251251/4427con también una redefinición 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}
Respuesta2
Desde su MWE
, entendí que necesita el Proof
nombre en Bold
la cara y qedsymbol
debe estar en un cuadrado negro sólido, para eso no es necesario redefinir el proof
entorno, puede modificar \proofname
y \qedsymbol
como desee, y lo modificado MWE
es:
\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}
Y la salida es:
Respuesta3
Puede redefinir \proofname
y \qedsymbol
de la siguiente manera. No es necesario crear un cuadrado negro con el comando de regla ya que hay un \blacksquare
comando en el amssymb
paquete que podría producir un cuadrado negro del mismo tamaño que el cuadrado (blanco).
\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}
Y el resultado es el siguiente.
Por cierto, los números de los capítulos no deben ser romanos ya que los prefijos en los números de las secciones son árabes. Además, no es necesario agregar puntos después de los números de las secciones, ya que no hay puntos después de los números de los capítulos.