LaTeX forum ⇒ Text FormattingAlign itemized text Topic is solved

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
bstex
Posts: 65
Joined: Mon Oct 23, 2017 10:22 am

Align itemized text

Postby bstex » Thu Jan 18, 2018 4:16 pm

Hi.
Is there any way to left-align the itemized text?
My MWE
  1. \documentclass[a4paper]{book}
  2. \usepackage{enumitem}
  3. \usepackage[Greek,Latin]{ucharclasses}
  4. \usepackage{xltxtra}
  5. \usepackage{polyglossia}
  6. \setmainlanguage{greek}
  7. \setotherlanguages{english}
  8. \setTransitionsForGreek{\selectlanguage{greek}}{\selectlanguage{english}}
  9. \setmainfont[Kerning=On,Mapping=tex-text]{Times New Roman}
  10.  
  11. \begin{document}
  12.  
  13. \begin{itemize}[label={}]
  14. \item \textbf{α.} Text 1
  15. \item \textbf{β.} Text 2
  16. \item \textbf{γ.} Text 3
  17. \item \textbf{δ.} Text 4
  18. \item \textbf{ε.} Text 5
  19. \item \textbf{στ.} Text 6
  20. \end{itemize}
  21.  
  22. \end{document}

exports this:
Screen Shot 2018-01-18 at 16.12.30.png
Screen Shot 2018-01-18 at 16.12.30.png (13.11 KiB) Viewed 510 times

but I need this:
Screen Shot 2018-01-18 at 16.10.22a.png
Screen Shot 2018-01-18 at 16.10.22a.png (12.67 KiB) Viewed 510 times

Please notice that I need the greek letters in item labels.
Thank you.

User avatar
Johannes_B
Site Moderator
Posts: 3795
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Thu Jan 18, 2018 5:04 pm

  1. \documentclass[a4paper]{book}
  2. \usepackage{enumitem}
  3. \usepackage[Greek,Latin]{ucharclasses}
  4. \usepackage{xltxtra}
  5. \usepackage{polyglossia}
  6. \setmainlanguage{greek}
  7. \setotherlanguages{english}
  8. \setTransitionsForGreek{\selectlanguage{greek}}{\selectlanguage{english}}
  9. %\setmainfont[Kerning=On,Mapping=tex-text]{Linux Libertine O}
  10. \usepackage{libertine}
  11.  
  12. \begin{document}
  13.  
  14. \begin{itemize}[labelwidth={1em},font=\bfseries,align=left]
  15. \item [α.] Text 1
  16. \item [β.] Text 2
  17. \item [γ.] Text 3
  18. \item [δ.] Text 4
  19. \item [ε.] Text 5
  20. \item [στ.] Text 6
  21. \end{itemize}
  22.  
  23. \end{document}

Found at https://en.wikibooks.org/w/index.php?ti ... s&stable=0
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.


Return to “Text Formatting”

Who is online

Users browsing this forum: No registered users and 5 guests