LaTeX forum ⇒ Text FormattingWhy does my itemize render wrong?

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
rain
Posts: 12
Joined: Thu Jan 28, 2016 9:00 pm

Why does my itemize render wrong?

Postby rain » Thu May 18, 2017 7:56 pm

Hi. Why does my itemize render the wrong way? Like MRQ is more left than others.

  1. \begin{itemize}
  2. \item[MRQ] How to publish personal data in a way that preserves privacy?
  3. \item[RQ1] What are the risks of publishing personal data and what methods can be used to mitigate these risks?
  4. \item[RQ2] What anonymization operations implement privacy-preserving methods?
  5. \item[RQ3] What is the prototype for learning these privacy-preserving methods?
  6. \item[RQ4] What is usability of the prototype?
  7. \end{itemize}


itemize.png
itemize.png (69.93 KiB) Viewed 342 times


And how I could fix it?
Last edited by cgnieder on Fri May 19, 2017 4:40 pm, edited 1 time in total.
Reason: changed code formatting from inline to block

User avatar
Stefan Kottwitz
Site Admin
Posts: 8527
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:

Postby Stefan Kottwitz » Fri May 19, 2017 11:57 am

You could use the enumitem package for customizing lists, such as:

  1. \documentclass{article}
  2. \usepackage{enumitem}
  3. \setlist[itemize]{align=left,leftmargin=*,itemindent=!}
  4. \begin{document}
  5. \noindent text
  6. \begin{itemize}
  7. \item[MRQ] How to publish personal data in a way that
  8. preserves privacy?
  9. \item[RQ1] What are the risks of publishing personal data and
  10. what methods can be used to mitigate these risks?
  11. \item[RQ2] What anonymization operations implement
  12. privacy-preserving methods?
  13. \item[RQ3] What is the prototype for learning these
  14. privacy-preserving methods?
  15. \item[RQ4] What is usability of the prototype?
  16. \end{itemize}
  17. \end{document}


Btw. it would be great if you would post code like I did: using the Code button (the LaTeX button is for inline LaTeX, code within text), and posting as small compilable example for easy testing. Code boxes are automatically linked to the online LaTeX editor Overleaf, so readers can test and improve starting with a single click. That improves the chance to get a solution. ;-)

By the way, I think a description list would be better than itemize here.

Without any package:

  1. \documentclass{article}
  2. \begin{document}
  3. \noindent text
  4. \begin{description}
  5. \item[MRQ] How to publish personal data in a way that
  6. preserves privacy?
  7. \item[RQ1] What are the risks of publishing personal data and
  8. what methods can be used to mitigate these risks?
  9. \item[RQ2] What anonymization operations implement
  10. privacy-preserving methods?
  11. \item[RQ3] What is the prototype for learning these
  12. privacy-preserving methods?
  13. \item[RQ4] What is usability of the prototype?
  14. \end{description}
  15. \end{document}


Stefan
Site admin


Return to “Text Formatting”

Who is online

Users browsing this forum: No registered users and 5 guests