Text FormattingRemove Text Indentation

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
Lalitp
Posts: 6
Joined: Sat Apr 06, 2013 8:25 am

Remove Text Indentation

Post by Lalitp »

Hi,

this is my code I have posted here.

Code: Select all

\documentclass[12pt]{article}

\begin{document}

\tableofcontents

\section{Advantages}
Innovative

This project uses ...

Easy

Camera sensor...

Fast

3D data acquisition...

Accurate

Delivering excellent...
\end{document}
There are four main headings, "Innovative", "Easy", "Fast", "Accurate". Here In this you can see that "Innovative" position and other three positions are different. I want to make all positions same as "Innovative". And after each heading I want space of one line. So, how to do in script.

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

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

Remove Text Indentation

Post by localghost »

Lalitp wrote:[…] There are four main headings, "Innovative", "Easy", "Fast", "Accurate". […]
But you did not tag them as headings. So you should use the corresponding markup commands like shown below to do so.

Code: Select all

\documentclass[12pt]{article}

\begin{document}
  \tableofcontents

  \section{Advantages}

  \subsection*{Innovative}
    This project uses ...

  \subsection*{Easy}
    Camera sensor...

  \subsection*{Fast}
    3D data acquisition...

  \subsection*{Accurate}
    Delivering excellent...
\end{document}
Click on "Open in writeLaTeX" in the head of the above code box to see the rendered output.
Lalitp wrote:[…] Here In this you can see that "Innovative" position and other three positions are different. I want to make all positions same as "Innovative". […]
What you see here is paragraph indentation. New paragraphs in LaTeX are introduced with a blank line in the source. And the first line of a paragraph is indented by the length \parindent. You can avoid this indentation locally once with \noindent.
Lalitp wrote:[…] And after each heading I want space of one line. So, how to do in script.
See above code. If you want to customize this, feel free to ask further questions.

It looks like you are a complete novice so it is recommendable to do some basic reading.


Best regards and welcome to the board
Thorsten
Post Reply