1

I am very new to Latex so please be indulgent. I have a list of items, one of these items is a sentence that can go through multiple lines. I want this particular item to be justified and I can get the text to display within the same margin.

exemple of output

This is how the text should be (done manually)

enter image description here

\documentclass{report}
\usepackage[inline]{enumitem}
\begin{document}
\begin{itemize}
\item[$\bullet$]{\textbf{\u{v}}CC\textbf{\textschwa}C \ding{221} CC\textbf{\u{v}}C}
\item[$ $]{Lorem Ipsum : dolor sit amet}
\justifying
\item[$ $]{Lorem Ipsum : dolor sit amet, ius ex tollit deleniti iudicabit, id vivendum assueverit voluptatibus nec, ne feugiat dolorum vel. Dicat aeterno partiendo an cum, feugiat tibique nec te. Augue definitionem an pri.}
\item[$ $]{Lorem Ipsum :  dolor sit amet} \end{itemize}
\end{document}
  • Please make a complete MWE from your code. Using your given code in a basic document does not show your problem. (And you do not need the curly braces around the item content.) – epR8GaYuh May 15 '18 at 13:48
  • I'm sorry I don't understand what is missing in my example. Do you mean the packages ? – user163078 May 15 '18 at 14:08
  • Your document class, packages and \begin{document} and \end{document} are missing and should be included. See here for further information on what a MWE is. – epR8GaYuh May 15 '18 at 14:10
  • it's a special style sheet for a paper so I can't put all the documents here. I hope this is enough. – user163078 May 15 '18 at 14:27
3

No need to do \item[$ $] (and, by the way, \item[] would do the same). Set \parsep to zero and that's all: a blank line will do.

\documentclass{report}
\usepackage{pifont,tipa}
\usepackage{enumitem}

\begin{document}

\begin{itemize}[parsep=0pt]
\item \textbf{\u{v}}CC\textbf{\textschwa}C \ding{221} CC\textbf{\u{v}}C

      Lorem Ipsum: dolor sit amet

      Lorem Ipsum: dolor sit amet, ius ex tollit deleniti iudicabit, 
      id vivendum assueverit voluptatibus nec, ne feugiat dolorum vel. 
      Dicat aeterno partiendo an cum, feugiat tibique nec te. Augue
      definitionem an pri.

      Lorem Ipsum:  dolor sit amet
\end{itemize}
\end{document}

enter image description here

1

This code works fine, have a look at this:

\documentclass{report}
\usepackage{enumitem}

\begin{document}

\begin{itemize}
\item[$\bullet$]{Hello world}
\item[$ $]{Lorem Ipsum : dolor sit amet}
\item[$ $]{Lorem Ipsum : dolor sit amet, ius ex tollit deleniti iudicabit, id vivendum assueverit voluptatibus nec, ne feugiat dolorum vel. Dicat aeterno partiendo an cum, feugiat tibique nec te. Augue definitionem an pri.}
\item[$ $]{Lorem Ipsum :  dolor sit amet}
\end{itemize}

\end{document}

I don't think you need to use justifying at all. I have remove some of the code regarding the first item, since they were causing some errors in the example, and replaced them with "Hello world".

enter image description here

Hope that helps.

Romain

  • It doesn't work for me. I am not sayin there is a bug. But it doesn't do what I want. I'm trying to have a block of text that is aligned. I'm not sure how to explain this with the proper words but I don't want the text to be in that margin. – user163078 May 15 '18 at 16:50
  • I have updated the answer with the pdf generated by running the code above so you can see what it produces. It seems like what you did manually in your initial question? – RockyRock May 15 '18 at 17:01

Your Answer

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