I want to create a list like the one shown below:

Date of Birth:       14 
Contact address:     Alsaksa
permanent address:   cbsdfhkjhsdlkf....
languages known:     fjdkjflsdjfkjdghkdf
Location preference: dfjsd

How can I make the description of each label continue from the same position like for the permanent address label? I am currently using the following code:

\resheading{\textbf{PERSONAL DETAILS} }\\[\lsep]
\item Date of Birth:   14\textsuperscript{th} 
\item \noindent Permanent Address: bcbv
  • Welcome to TeX.SX! Please turn your code snippet into a complete MWE! To be honest, I don't understand what you're asking at all. Please elaborate. Also your heading should be a heading and not the complete question. Please put the rest of your question in the text block. – Skillmon Oct 6 '17 at 15:59
  • 1
    try to use a tabular: \begin{tabular}{ll} Date of Birth: & 14\\ Contact address: & Alsaksa\\ ... \end{tabular} – Zarko Oct 6 '17 at 16:06

let me elaborate my comment:




\begin{tabularx}{\linewidth}{@{}l X}
Date of birth:          &   14\textsuperscript{th}      \\
Contact address:        &   Alsaksa                     \\
Permanent address:      &   cbsdfhkjhsdlkf ... fjdhkgjh \\
Languages known:        &   fjdkjflsdjfkjdghkdf         \\
Location preference:    &   \lipsum*[11]


enter image description here

  • i used your above syntax before that i wrote a command \resheading{\textbf{PERSONAL DETAILS} }\[\lsep] it appear like the table is submerged into the heading... – Javed Iqbal Oct 7 '17 at 15:23
  • i don't know any context of use table use. therefore i cant say anything without seeing an example of use. a guessing: try encapsulate table in \begin{center} ... \end{center}. – Zarko Oct 7 '17 at 15:50

Here is a solution with a description environment and enumitem:

\usepackage{enumitem, calc}


\begin{description}[font=\normalfont, labelwidth=\widthof{Location preference:}, leftmargin=\widthof{Location preference:}+\labelsep]
    \item[Date of birth:] 14\textsuperscript{th}
    \item[Contact address:] Alsaksa
    \item[Permanent address:] cbsdfhkjhsdlkf.... fjdhkgjh cbsdfhkjhsdlkf.... fjdhkgjh fjdh kgjh cbsdfhkjhsdlkf....
    \item[Languages known:] fjdkjflsdjfkjdghkdf
    \item[Location preference:] dfjsd


enter image description here

  • Wouldn't tabularx be better in this case? Just because of the changing label width depending on the contents. – Skillmon Oct 6 '17 at 17:58
  • @Skillmon: It's a possibility. I preferred this one from a semantic point of view. Anyway, with this solution you can choose a fixed (sufficiently large) value of labelwidth. – Bernard Oct 6 '17 at 18:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.