General ⇒ Indentation and different formulas in the same row
Indentation and different formulas in the same row
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.
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Re: Indentation and different formulas in the same row
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
Indentation and different formulas in the same row
- 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}
Indentation and different formulas in the same row
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: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
Indentation and different formulas in the same row
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
Re: Indentation and different formulas in the same row
Cheers,
Mattia.