When I use the following code,


  \rlap{\thepage}\hfil \leftmark{}{}}%
  \rightmark{}{}\hfil \llap{\thepage}}%
  \thm@headfont{\bfseries}% heading font bold face
  \let\thmhead\thmhead@plain \let\swappedhead\swappedhead@plain




\chapter{A test chapter}
\section{A test section}
$\\$Beginning Text.
Some Text
Ending Text.

I get the following output, enter image description here

but I want to have an output in which the followings hold,

  1. The "E" "Ending Text" should be along the same vertical line as "B" of "Beginning Text".
  2. The space between "Theorem 1" and "Beginning Text" should be equal to that of "Theorem 1" and "Ending Text".

How can I modify the above code (or produce a different code) to meet this criteria?



\def\@endtheorem{\endtrivlist\@endpetrue }

before \makeatother would suffice, it automatically suppresses paragraph indentation. Alternatively, you can simply add \noindent after every \end{theo}.

The vertical space (between baseline) before and after Theorem 1. should already be equal, since you have set


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.