2

I'm about to deposit my thesis. The grad school administrators set out formatting requirements and someone from years past wrote some tex files (a document class?) that I'm using to make sure my thesis complies with the formatting requirements. The only problem is that whatever this person wrote indents every theorem, definition, lemma etc. So that no matter what I do (actually \noindent is the only thing I know to try), every new theorem looks like this:

enter image description here

obtained from

\documentclass{brandiss}
\newtheorem*{main}{Theorem}
\newtheorem{thm}{Theorem}[section]
\begin{document}
\noindent Here's a non-indented line of text.
\begin{thm}
Here's a Theorem
\end{thm}
\end{document}

which looks really dumb. Especially when I state a theorem right after the first sentence of a new paragraph. Maybe this is impossible to answer without seeing the code for the document class (Actually its right here: http://www.brandeis.edu/departments/mathematics/graduate/current/brandiss.html )

but I was wondering if anyone knows how to fix this. I recall a few weeks ago I was able to do something that unindented everything, but if I did that I'd have to manually indent every paragraph and its a pretty long document.

7
  • \parindent=0pt? But then also the normal paragraph start will be unindented (ok in some part of the world, don't know over there). Anyway, the class seems just a slight overload over amsbook, so if you add a MWE with that class it would be useful to help us help you.
    – Rmano
    Apr 19 '17 at 7:34
  • Could you post a minimal example code?
    – Bernard
    Apr 19 '17 at 9:06
  • @Bernard Thanks, I've added a small bit of example code. the "brandiss" thing is a file available at the link to Brandeis.edu I gave. Apr 19 '17 at 9:23
  • @Rmano Thanks for your comment. Is this what you mean by MWE? Apr 19 '17 at 9:25
  • Yes. @Bernard, you can just change the class to amsbook and it shows the same thing. I think that tex.stackexchange.com/questions/35215/using-the-amsbook-class is related.
    – Rmano
    Apr 19 '17 at 9:34
3

You can try this (from this other question):

\documentclass{amsbook}

%%% added in the preamble 
\usepackage{etoolbox}
\makeatletter
\patchcmd\@thm
  {\let\thm@indent\indent}{\let\thm@indent\noindent}%
  {}{}
\makeatother
%%% end added code 

\newtheorem*{main}{Theorem}
\newtheorem{thm}{Theorem}[section]
\begin{document}
\noindent Here's a non-indented line of text.
\begin{thm}
Here's a Theorem
\end{thm}
\end{document}

I checked with amsbook but should work for your document class.

enter image description here

2
  • Do you have any ideas about how to un-indent proofs? (I use \begin{proof} \end{proof}). I did the dumbest thing possible and replaced "thm" in your code with "proof", but it didn't work. Apr 19 '17 at 10:01
  • 1
    nm. I worked something out from the post you linked to in the comments. Thanks again. Apr 19 '17 at 10:46

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.