Page LayoutLaTeX auto-tabs at the beginning of a new sentence

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
matti0006
Posts: 5
Joined: Sat Oct 10, 2009 6:24 pm

LaTeX auto-tabs at the beginning of a new sentence

Post by matti0006 »

Hi everyone,

I am currently writing an article in latex and everything is going fine, there is however one problem.

After I insert a definition, theorem, picture, anything basically, the next line of text starts with a tab (like 10 white spaces), and I have no idea how to fix this.

The packages I am using are the following:

Code: Select all

\usepackage[latin1]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{amsthm}
\usepackage{float}
\usepackage[dutch]{babel}
\usepackage{geometry}
It really looks really ugly and I would like some help on how to fix this.
The code I use for example is this:

Code: Select all

\begin{definition}
Een wandeling tussen 2 knopen $v_{1}$ en $v_{k}$ is een rij knopen $v_{2}$, $v_{3}$..., $v_{k-1}$ en $v_{k}$ met takken $v_{1}v_{2}$, $v_{2}v_{3}$,..., $v_{k-2}v_{k-1}$ en $v_{k-1}v_{k}$.
\end{definition}
Sommige wandelingen doen een knoop maximaal éen keer aan. Zo een wandeling heet een pad.
It's in Dutch, but that's not the problem, it's just a definition with after it some text, and LaTeX starts a new line, which is fine ofcourse but before "sommige wandelingen" it adds like 10 white spaces and I don't know why:).

I hope this enough information to help me with this...otherwise I will gladly supply you with more:),

cheers, matti0006

Recommended reading 2024:

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

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

User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

LaTeX auto-tabs at the beginning of a new sentence

Post by frabjous »

You could use the \noindent command at the beginning of the following paragraph to suppress the indentation.

However, someone may be able to provide guidance on automating this, though it may require you providing a complete compilable example of your use of amsthm and the theorem-type and style definitions you give there.
matti0006
Posts: 5
Joined: Sat Oct 10, 2009 6:24 pm

LaTeX auto-tabs at the beginning of a new sentence

Post by matti0006 »

Hmm, for now it would be no problem to use \noindent, however as my article grows, I am afraid I will get a lot more definitions, pictures, theorems and more.

I also use:

Code: Select all

\newtheorem{theorem}{Stelling}[section]
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{proposition}[theorem]{Proposition}
\newtheorem{corollary}[theorem]{Corollary}
\newtheorem{definition}{Definitie}
to define my theorems and definitions, however I don't think the problem lies herein.
lalop
Posts: 63
Joined: Fri Sep 11, 2009 11:25 pm

Re: LaTeX auto-tabs at the beginning of a new sentence

Post by lalop »

I'm not in a position to test this yet, but on Page 4 of ftp://ftp.ams.org/pub/tex/doc/amscls/amsthdoc.pdf

section 4.3 "New theorem styles" seems to include "indent amount".
matti0006
Posts: 5
Joined: Sat Oct 10, 2009 6:24 pm

Re: LaTeX auto-tabs at the beginning of a new sentence

Post by matti0006 »

This is not quite what I ment, I tried this and it didn't change anything, however I found out what it does. It changes the indent at the beginning of the definition line, not the line after the definition:)
Post Reply