0

I am new to LaTeX, and I want to vertically align some text.

I have used a template, and so far I have written this:

\section{\mysidestyle My\\Skills}
- How do I manage to get this line to align with the first word of the second line of text? It doesn't seem to align up? \\
- So that all of these lines sit flush\\
- And look presentable\\

The output is this: enter image description here

How does one get the following output:

enter image description here Notice the H of How and the s of seem align vertically ie the indentation. How could I do this?


Addendum I:

I already have previous itemize'd lists where the output is •. And I would like to keep them as is (ie: •). I want to have another itemize function where this would work for dashes (ie: -).


Addendum II: I would like the first line to be on the same line with My in "My Skills": enter image description here And not: enter image description here

The red line is for reference - and should be disregarded.

1 Answer 1

2

You can easily do this with an itemize environment and changing the first level label (\labelitemi) inside the itemize environment you want:

\documentclass[margin,line]{resume}
\usepackage[hidelinks]{hyperref}

\begin{document}

%\renewcommand\labelitemi{--}% < Setting the bullet as an en-dash GLOBALLY

\begin{resume}
 \section{\mysidestyle My\\Skills}

 \begin{itemize}
  \vspace{0mm}% < Aligns the first line of the "section" with the first "item"
  \renewcommand\labelitemi{--}% < Setting the bullet as an en-dash LOCALLY
  \item How do I manage to get this line to align with the first word of the second line of text? It doesn't seem to align up?
  \item So that all of these lines sit flush
  \item And look presentable
 \end{itemize}

 \begin{itemize}
  \item How do I manage to get this line to align with the first word of the second line of text? It doesn't seem to align up?
  \item So that all of these lines sit flush
  \item And look presentable
 \end{itemize}

\end{resume}
\end{document}

And the result is:

enter image description here

9
  • using the \renewcommand\labelitemi{--}% < Setting the bullet as an en-dash changes all other "itemized" dot points into dashes as well. I want 2 "itemized" lists - one as is - which is dots, and one for just dashes? how can I have two "itemize"s
    – 3kstc
    Dec 27, 2017 at 1:58
  • In that case you just move the \renewcommand\labelitemi{--} inside the itemize environment you want to change. The effect of this change will hold until the \end{itemize}. I updated my answer to suit your needs. Dec 27, 2017 at 2:08
  • How would I align the line of "- How do..." with the word "MY" of "MY SKILLS" , it seems to start off on the second line ie, "SKILLS - How do I.. " please have a look at Amendment II
    – 3kstc
    Dec 27, 2017 at 2:58
  • I have added \vspace{0mm} which has aligned the section with the first item, do you mind reprinting the output,
    – 3kstc
    Dec 27, 2017 at 4:00
  • If that suits your needs, then there it goes... Dec 27, 2017 at 12:31

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.