![Recuo indesejado](https://rvso.com/image/286349/Recuo%20indesejado.png)
Com o código a seguir, tudo desde "Cenário contendo 3 piratas.." e abaixo foi recuado em relação ao texto acima.
\documentclass{article}
\title{Assignment \#1}
\author{Giri}
\date{March 20, 2014}
\begin{document}
\maketitle
\section*{Question 1}
\textit{Scenario containing 2 pirates :} \\*\\*
Regardless of how the gold is split, the 2nd pirate will vote against the 1st pirate and take all the gold. \\*\\*
\textit{Scenario containing 3 pirates:}
\begin{table}[ht]
\caption{3 Pirates}
\centering
\begin{tabular}{c c c}
\hline\hline
Pirate\#1 & Pirate\#2 & Pirate\#3 \\
\hline
x & x & x \\
\hline
\end{tabular}
\end{table}
In this...
\end{document}
Alguém poderia me dizer por que isso está acontecendo?
Responder1
Se você não quer nada recuado, é melhor carregar parskip
. Isso define o recuo do parágrafo como zero e marca os parágrafos com maior salto vertical, mantendo a formatação adequada dos ambientes que usam \parindent
, \parskip
etc.
\documentclass{article}
\usepackage{parskip}% if you don't want paragraphs indented but would prefer to mark them by increased vertical spacing
\title{Assignment \#1}
\author{Giri}
\date{March 20, 2014}
\begin{document}
\maketitle
\section*{Question 1}
\textit{Scenario containing 2 pirates :} \\*\\*
Regardless of how the gold is split, the 2nd pirate will vote against the 1st pirate and take all the gold. \\*\\*
\textit{Scenario containing 3 pirates:}
\begin{table}[ht]
\caption{3 Pirates}
\centering
\begin{tabular}{c c c}
\hline\hline
Pirate\#1 & Pirate\#2 & Pirate\#3 \\
\hline
x & x & x \\
\hline
\end{tabular}
\end{table}
In this...
\end{document}
Alternativamente, você pode achar mais fácil usar um ambiente de lista para manter a formatação consistente. Por exemplo:
\documentclass{article}
\usepackage{enumitem}
\newlist{pirates}{description}{1}
\setlist[pirates,1]{font=\normalfont\itshape,style=nextline,labelindent=0pt,leftmargin=0pt,itemsep=1.5em}
\title{Assignment \#1}
\author{Giri}
\date{March 20, 2014}
\begin{document}
\maketitle
\section*{Question 1}
\begin{pirates}
\item[Scenario containing 2 pirates:] \mbox{}\\
Regardless of how the gold is split, the 2nd pirate will vote against the 1st pirate and take all the gold.
\item[Scenario containing 3 pirates:] \mbox{}\\
\begin{table}[ht]
\caption{3 Pirates}
\centering
\begin{tabular}{c c c}
\hline\hline
Pirate\#1 & Pirate\#2 & Pirate\#3 \\
\hline
x & x & x \\
\hline
\end{tabular}
\end{table}
\end{pirates}
In this...
\end{document}
Basicamente, isso configura uma pirates
lista nova e especializada, formatada de uma maneira específica. O exemplo é assim:
Responder2
Você precisa adicionar \noindent
antes de qualquer novo parágrafo. O padrão é que o primeiro parágrafo não seja recuado e todos os subsequentes sejam. Após a \section
é óbvio que este é o início de um novo parágrafo. Mas para distinguir os parágrafos subsequentes, o método usual é indentá-los.
Isso fica mais claro se você tiver um texto mais longo:
Notas:
O parágrafo seguinte à tabela é um bom exemplo do motivo pelo qual os parágrafos subsequentes são recuados. Se este parágrafo não fosse recuado, o leitor não teria como saber se este era o início de um parágrafo subsequente ou não.
Se você não quiser que seus parágrafos sejam recuados, você pode usar:
\usepackage[parfill]{parskip}
Código:
\documentclass{article}
\title{Assignment \#1}
\author{Giri}
\date{March 20, 2014}
\begin{document}
\maketitle
\section*{Question 1}
\textit{Scenario containing 2 pirates :} \\*\\*
Regardless of how the gold is split, the 2nd pirate will vote against the 1st pirate and take all the gold. \\*\\*
Here is some longer text to show that only the start of that paragraph is indented.
\textit{Scenario containing 3 pirates:}
\begin{table}[ht]
\caption{3 Pirates}
\centering
\begin{tabular}{c c c}
\hline\hline
Pirate\#1 & Pirate\#2 & Pirate\#3 \\
\hline
x & x & x \\
\hline
\end{tabular}
\end{table}
In this, and some more text here again to show that only the start of the paragraph is indented.
\end{document}