## LaTeX forum ⇒ Text Formatting ⇒ Why 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?

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

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

itemize.png (69.93 KiB) Viewed 315 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

Stefan Kottwitz
Posts: 8453
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:
You could use the enumitem package for customizing lists, such as:

\documentclass{article}\usepackage{enumitem}\setlist[itemize]{align=left,leftmargin=*,itemindent=!}\begin{document}\noindent text\begin{itemize}  \item[MRQ] How to publish personal data in a way that             preserves privacy?  \item[RQ1] What are the risks of publishing personal data and             what methods can be used to mitigate these risks?  \item[RQ2] What anonymization operations implement             privacy-preserving methods?  \item[RQ3] What is the prototype for learning these             privacy-preserving methods?  \item[RQ4] What is usability of the prototype?\end{itemize}\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:

\documentclass{article}\begin{document}\noindent text\begin{description}  \item[MRQ] How to publish personal data in a way that             preserves privacy?  \item[RQ1] What are the risks of publishing personal data and             what methods can be used to mitigate these risks?  \item[RQ2] What anonymization operations implement             privacy-preserving methods?  \item[RQ3] What is the prototype for learning these             privacy-preserving methods?  \item[RQ4] What is usability of the prototype?\end{description}\end{document}

Stefan