Dear all,
good morning.
I have two questions, in order to save space in the article I am writing:
1- if I use the blank line (instead of \\) to start a paragraph after a period, this will have a small indentation: how can I avoid it?
2- I have to write 3 short formulas (each of them needs the number to refer to later on in the text), but I don't want to use three following rows, one for each formula. Instead, since they are short and there's room, I'd like to have them on a single line: can I do so?
Thank you very much!
Cheers,
M.
General ⇒ Indentation and different formulas in the same row
NEW: TikZ book now 40% off at Amazon.com for a short time.

Re: Indentation and different formulas in the same row
PS: concerning 1-, I sometimes have to use the blank line, specially after figures or equations. Of course, if there is a better way to do so, it's welcome!
- Stefan Kottwitz
- Site Admin
- Posts: 10345
- Joined: Mon Mar 10, 2008 9:44 pm
Indentation and different formulas in the same row
Hi iperten,
- write \noindent at the beginning of the next line or set the length \parindent to 0:
Don't use a blank line before or after equations (displayed math), it will produce additional space.
Code: Select all
\setlength{\parindent}{0pt}
- you could use a table and equations inside, for example:
Code: Select all
\documentclass[a4paper,10pt]{article} \usepackage{tabularx} \usepackage{amsmath} \begin{document} \noindent\begin{tabularx}{\textwidth}{XXX} \begin{equation} a = 1 \end{equation} & \begin{equation} b = 2 \end{equation} & \begin{equation} c = 3 \end{equation} \end{tabularx} \end{document}
LaTeX.org admin
Indentation and different formulas in the same row
Dear Stefan,
thank you!
Well, I have to short comments:
1- if I use
2- the table with equations inside works perfectly, but I can flush left with text the first equation?
Thanks again!
Cheers,
M.
thank you!
Well, I have to short comments:
1- if I use
than every paragraph won't have indentation, so probably it's better to use\setlength{\parindent}{0pt}
right before where I need no indentation;\noindent
2- the table with equations inside works perfectly, but I can flush left with text the first equation?
Thanks again!
Cheers,
M.
- Stefan Kottwitz
- Site Admin
- Posts: 10345
- Joined: Mon Mar 10, 2008 9:44 pm
Indentation and different formulas in the same row
You could do it by using $...$ instead of equation and manual tagging/numbering. I think of using flalign, but perhaps it doesn't work inside tabular. You could try something like this:
It's not completely on the left margin, but a bit to the center may be good because those are displayed equations, not inline. You can change the width of the E column or the space between them until it fits well.
It could have been done very easy by the align or alignat environment if you wouldn't need numbering of each formula in the columns.
Stefan
Code: Select all
\newcolumntype{E}{p{3cm}}
...
\noindent\begin{tabularx}{\textwidth}{@{}E@{\hspace{1cm}}E@{\hspace{1cm}}E@{}}
It could have been done very easy by the align or alignat environment if you wouldn't need numbering of each formula in the columns.
Stefan
LaTeX.org admin
Re: Indentation and different formulas in the same row
Thank you! I'll try this as well!
Cheers,
Mattia.
Cheers,
Mattia.