How to Align Sentences at a Certain Place

by Nanoputian   Last Updated January 15, 2018 04:23 AM

How can you align certain lines at a certain place. For example when I write it up normally in latex is displays the following:

enter image description here

But I want it to display it like this instead:

enter image description here

So in other words, I want to find a way to make sure that each question lines up with each other. I know you can do this using the \align command for equations, but not sure what the command is for normal sentences.

Thanks for any help!



Answers 1


A \parbox directive will generate the "look" of the second screenshot you provided.

enter image description here

\documentclass{article}
\begin{document}
\noindent
Eg 1.\ 
\parbox[t]{0.8\textwidth}{%
  a) What is the rate of decrease of its radius \dots\par
  b) Find the time taken to reduce the radius of \dots\par
  c) Find the time taken to reduce the radius of \dots}
\end{document}

However, using a tabularx environment should provide better alignment of the (implicit) columns.

enter image description here

\documentclass{article}
\usepackage{tabularx}
\begin{document}
\noindent
\setlength\tabcolsep{3pt} % default value is 6pt
\begin{tabularx}{\textwidth}{@{}llX@{}}
Eg 1. 
  & a) & What is the rate of decrease of its radius \dots \\
  & b) & Find the time taken to reduce the radius of \dots\\
  & c) & Find the time taken to reduce the radius of \dots \\
\end{tabularx}
\end{document}
Mico
Mico
January 15, 2018 03:36 AM

Related Questions


Auto-indent the second line of a paragraph

Updated February 29, 2016 01:10 AM

Formal proof formatting in Latex

Updated April 24, 2015 04:10 AM


Indent all lines but first and have raggedright

Updated July 31, 2017 13:23 PM