GeneralIndent problem!

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Grinvon
Posts: 6
Joined: Mon Sep 01, 2008 1:31 pm

Indent problem!

Post by Grinvon »

Hi!

Im new in LaTeX programming, so Im trying to make the text well formatted, but every text I type after a breakline it miss indent. I don´t know how to fix it, the best maner to make every paragraph inside to keep well formatted indent. I posted a picture to ilustrate,

At Picture:

Image

At number 1 and 2, the start position is different, I don´t know why tex make it different.

At the big vertical line, you can see inside "0.1.2 Classificação" the indent is missing your position.

The following code show the exactaly part referenced.

Code: Select all

\subsection{Classificação}

As P.A. podem ser classificadas em

\begin{enumerate}
	\item Positiva, onde $r$ é maior do que zero $(r>0)$;
	\item Constante, onde $r$ é igual a zero $(r=0)$;
	\item Negativa, onde $r$ é menor do que zero $(r<0)$;
\end{enumerate}

Os exemplos abaixo elucidam:

\begin{quotation}
$P.A. (-100, -99, -98, ..., 0, 1, 2, ..., 100)\mbox{ Positiva pois, } r>0$

$P.A. (230, 210, 190)\mbox{ Negativa pois, } r<0$

$P.A. (7, 7, 7, 7, 7, ..., 7)\mbox{ Constante pois, }r=0$
\end{quotation}

adasdasd

\end{document} 

Thanks for all and sorry about my bad english.

Recommended reading 2024:

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

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

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Indent problem!

Post by localghost »

Grinvon wrote:[...] Im new in LaTeX programming, so Im trying to make the text well formatted, but every text I type after a breakline it miss indent. I don´t know how to fix it, the best maner to make every paragraph inside to keep well formatted indent. I posted a picture to ilustrate,

[...]

At number 1 and 2, the start position is different, I don´t know why tex make it different. [...]
I guess that you are typesetting the line "P.A.(7,14,21)" also with the quotation environment. The paragraph that comes after is not indented because you seem to be missing a blank line in the source.

Code: Select all

... seguinte P.A. abaixo:

\begin{quatation}
  P.A.(7,14,21)
\end{quotation}

Temus em sua ...
Grinvon wrote:[...] At the big vertical line, you can see inside "0.1.2 Classificação" the indent is missing your position.

The following code show the exactaly part referenced. [...]
The first line of the first paragraph after a structuring command (\chapter, \section, ...) is not indented by default. That's not necessary because there is no preceding paragraph from which it has to be distinguished.

If all these hints don't help, you have to provide a minimal working example (MWE) that exactly reproduces the undesired effects. Follow the advices on the linked page when creating this MWE.


Best regards and welcome to the board
Thorsten¹
User avatar
Juanjo
Posts: 657
Joined: Sat Jan 27, 2007 12:46 am

Indent problem!

Post by Juanjo »

It seems that you are typesetting displayed maths following this scheme:

Code: Select all

\begin{quotation}
  $mathematical expression$
\end{quotation}
I guess that you don't like (or are not allowed) to center formulae, so you use quotation. If this were the case, I suggest you to add to \documentclass the option fleqn and follow the conventional LaTeX way to display equations, that is, mainly, through \[...\] or the environments defined in the amsmath package (equation, equation*, align...). The following code exemplifies this and, in my opinion, enhances your text a little bit:

Code: Select all

\documentclass[fleqn]{book}

\usepackage[applemac]{inputenx}

\begin{document}

Numa P.A. a razão é sempre calculada pela subtraçao
de dois termos, sendo de um termo posterior pelo seu
anterior. Se observamos a P.A.
\[
  P.A.(7,14,21),
\]
temos em sua razão: $r=14-7\Leftarrow 14-7=7$. Toda P.A.
é uma (\ldots)
deveremos igualar os termos:
\[
  P.A.(7,14,21), \mbox{ onde } 14-7=21-14.
\]

\subsection{Classificação}

As P.A. podem ser classificadas em:
\begin{enumerate}
   \item positiva, onde $r$ é maior do que zero $(r>0)$;
   \item constante, onde $r$ é igual a zero $(r=0)$;
   \item negativa, onde $r$ é menor do que zero $(r<0)$.
\end{enumerate}
Os exemplos abaixo elucidam:
\begin{itemize}
 \item $P.A. (-100, -99, -98,\ldots, 0, 1, 2, \ldots, 100)$ é positiva, pois $r>0$;
  \item $P.A. (230, 210, 190)$ é negativa, pois $r<0$;
  \item $P.A. (7, 7, 7, 7, 7,\ldots, 7)$ é constante, pois $r=0$.
\end{itemize}

\end{document} 
Probably, for loading inputenx, you are using latin1 or utf instead, depending on your operating system. Please note that mathematical expressions need to be punctuated in whatever language being used. Sentences following formulae consequently start with upper or lowercase depending on the puntuation sign ending the formula. Also note more details: \ldots instead of ..., removal of unnecessary \mbox, etc.
Last edited by Juanjo on Mon Sep 01, 2008 9:55 pm, edited 1 time in total.
The CTAN lion is an artwork by Duane Bibby. Courtesy of www.ctan.org.
Grinvon
Posts: 6
Joined: Mon Sep 01, 2008 1:31 pm

Indent problem!

Post by Grinvon »

Thanks all for patience!

localghost, thanks, I will check out minimal working example.

Juanjo, thanks, I have not see before "fleqn" documentclass option, I have used quotationg because I just saw it.
Probably, for loading inputenx, you are using latin1 or utf instead, depending on your operating system. Please note that mathematical expressions need to be punctuated in whatever language being used. Sentences following formulae consequently start with upper or lowercase depending on the puntuation sign ending the formula. Also note more details: \ldots instead of ..., removal of unnecessary \mbox, etc.
Good tips.

----------

So I will try to reconfigure again to stand all patterns. Ant doubt I post here.
Grinvon
Posts: 6
Joined: Mon Sep 01, 2008 1:31 pm

Re: Indent problem!

Post by Grinvon »

The text formatting are flying well now. I think I won´t take no more issues for while. I have done few steps:

:arrow: Dropped out the quotation sign.
:arrow: Cleaned all blank line.

I will try to get more resources to make a good pattern for my texts.

Again, thanks!
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Indent problem!

Post by localghost »

You can prevent indentation of paragraphs globally by setting the according length to Zero.

Code: Select all

\setlength{\parindent}{0pt}
In your first request it wasn't really clear to me whether you want paragraph indentation or not.
Grinvon
Posts: 6
Joined: Mon Sep 01, 2008 1:31 pm

Re: Indent problem!

Post by Grinvon »

Thank you again ghost, it works here.
Post Reply