Page Layoutappendix new page problem and also indentation problem

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
jgthb
Posts: 13
Joined: Wed Feb 17, 2010 6:57 pm

appendix new page problem and also indentation problem

Post by jgthb »

Hello there

I have two problems with Latex. I have uploaded some files so you can see it.

1) I have an appendix, but my first subsection in this is put on a new page, so I have a page which says "Appendix" and nothing else and then a new page where my subsection begins. I've compared to some reports i have done earlier, but I can't find the error, though I guess it's in the preamble.

2) How do I disable indentation after an equation or math? Every time I make an equation, the following text is indented, but of course I don't want it to be.

Any help would be much appreciated :)
Jonathan
Attachments
rapport.tex
(345 Bytes) Downloaded 275 times
hellofile.tex
(92 Bytes) Downloaded 241 times
preamble.tex
(4.35 KiB) Downloaded 302 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

jgthb
Posts: 13
Joined: Wed Feb 17, 2010 6:57 pm

Re: appendix new page problem and also indentation problem

Post by jgthb »

1) the problem vanish if I don't use the include command. so now I load my matlab code from my main file.

2) have located the problem to the amsthm package. Whenever I write \begin{theorem} ... \end{theorem} it creates a new paragraph afterwards even if I don't have a line shift. Does anyone know how to prevent it?
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

appendix new page problem and also indentation problem

Post by gmedina »

Hi,
jgthb wrote:...2) have located the problem to the amsthm package. Whenever I write \begin{theorem} ... \end{theorem} it creates a new paragraph afterwards even if I don't have a line shift. Does anyone know how to prevent it?

you could use the \noindent command to manually suppress the indentation, or you could use the ntheorem package instead of amsthm. Take a look at the following example:

Code: Select all

\documentclass{article}
\usepackage{ntheorem}

\theoremstyle{plain}
\newtheorem{theo}{Theorem}

\begin{document}
text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text
\begin{theo}
The theorem body, the theorem body, the theorem body, the theorem body, the theorem body, the theorem body.
\end{theo}
text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text

\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
jgthb
Posts: 13
Joined: Wed Feb 17, 2010 6:57 pm

Re: appendix new page problem and also indentation problem

Post by jgthb »

well i'd prefere not to use \noident, but yeah, maybe the answer is to use the ntheorem package. I'll try it out. thanks
Post Reply