Text FormattingSame Alignment for Text as for Heading

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

Same Alignment for Text as for Heading

Post by Lalitp »

Here you can see that "Quality Control/Inspection" is at left side in generated PDF, and other content is displaced by some space.

Code: Select all

\documentclass[12pt]{article}

\begin{document}
  \tableofcontents

  \section{Advantages}

  \subsubsection{Application Areas}
Quality Control / Inspection

Comparison of actual data with nominal data 

Mold and Toolmaking

Tool reconstruction

Scan data for generation of milling tool paths

Documentation of actual 3D data at tool release

\end{document}
I want all contents same as "Quality Control/Inspection" position.

So, what modification is necessary in script?
Last edited by localghost on Sun Apr 07, 2013 9:53 am, edited 2 times in total.

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

Same Alignment for Text as for Heading

Post by localghost »

An identical problem has already been discussed in one of your other questions.


Basic reading:

Thorsten
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Same Alignment for Text as for Heading

Post by Stefan Kottwitz »

It appreciate that you posted a compilable example. Also very good that you added tags, even if not perfectly matching, I changed them. Tags help to get the forum sorted.

To your problem, which is actually similar to the earlier question, perhaps the intention may be a bit different. If you want to change the alignment of those lines, which is the paragraph indentation, you can switch it off by

Code: Select all

\setlength{\parindent}{0pt}
in your preamble. Then all those lines are left aligned with the headings. However, paragraph indentation helps to see where a paragraph ended and a new one started. So, either change those lines to headings, such as with \subsection, \subsubsection or \paragraph, or insert \noindent before such pseudo-headings, or change the paragraph indentation mode to vertical paragraph skips by

Code: Select all

\usepackage{parskip}
instead.

Stefan
LaTeX.org admin
Post Reply