We’re rewarding the question askers & reputations are being recalculated! Read more.
18

The blank line you see is a misfeature of your code and hyperref making a PDF destination (when you use \refstepcounter) at that exact point. The workaround of adding a \par after the text works because the paragraph is built and then the PDF destination is inserted at the beginning of the next line and everything goes well. Adding the PDF destination at ...


7

You're mis-using the description environment. You should be using an itemize environment instead. E.g., \documentclass[ngerman]{article} \usepackage{enumitem,xcolor,babel} \begin{document} \begin{itemize}[before=\scshape\color{red!50!black}] \item In Zeile 1 habe ich mir ein Curses Bibliothek geholt. Curses ist der name verschiedener ...


5

As pointed out by @egreg, the problem is enumerate*, and it's the result of two (IMO) misfeatures. The first one is the way TeX treats discretionaries when boxing text; the second one is enumitem sets mode=boxed by default. Two solutions, then. Either use luatex, which fixes how discretionaries behave in boxes. Or set mode=unboxed: \setlist[MyList*,1]{% ...


4

If you can do without the rounded corners, here is a simple solution: \documentclass[12pt]{article} \usepackage{mathtools} \usepackage{enumitem} \usepackage[svgnames]{xcolor} \begin{document} \begin{enumerate}[label=\colorbox{LightGoldenrod}{\color{white}\alph*}, font=\sffamily\bfseries, before={\fboxsep=5pt}] \item First item. \item Second item. \item ...


4

All I did was to combine Jasper's link (which has a friendly reminder that one should use \protect here) with the second of your links to get \documentclass[12pt]{article} \usepackage{enumitem} \usepackage{tikz} \newcommand{\SebastianoBox}[1]{\tikz[baseline={(B.base)}]{% \node[fill=green!80!black,text=white,font=\bfseries\sffamily\large,rounded corners=0....


4

You must made the counter known to enumitem. I remove your font (that I don't have) as the actual content of your counter is not relevant: \documentclass{article} \usepackage{enumitem} \makeatletter \def\bngl#1{\expandafter\@bngl\csname c@#1\endcsname} \def\@bngl#1{% \ifcase#1\or AA\or %adapt to your liking BB\or CC\or DD\or EE\or FF\or GG\...


3

Short answer: Add \noindent just before each minipage. The minipage start a second paragraph, so it will be indented (not the list, but the whole minipage) as any character, or any other box starting the horizontal mode. Solution: Use \noindent if you want avoid indentation only in the paragraph with the minipage, or set \parindent to 0pt (i.e., \...


2

Redefine \H@item instead of \item. That should work even if hyperref is loaded too early: \documentclass[12pt]{article} \errorcontextlines 10000 \usepackage{hyperref} \usepackage[shortlabels]{enumitem} \makeatletter \def\renewenumerateoptionalitem{% \let\itemenumerateoptional\H@item \renewcommand{\H@item}[1][]{% \refstepcounter{...


2

You can simplify the code in the OP by using tools from the enumitem package to create a customised enumerate environment. If you do this then you can change the labels in the enumerate in standard way provided by the enumitem package: \begin{enumerateoptional}[label=\alph*] \item[Some first] item one \item[Some second] item two \item[Some third] ...


2

You can let enumitem calculate the labelwidth with labelwidth=*: \documentclass{article} % without this, there is no warning: \usepackage[paperwidth=20in,paperheight=10in]{geometry} \usepackage{scrextend} \changefontsizes[64pt]{50pt} \makeatletter \usepackage{enumitem} \newlist{mylist}{itemize}{4} \setlist[mylist]{label=\textbullet,leftmargin=1.8em,% ...


2

A version without TikZ, but with enumitem, amssymb and xcolor: \documentclass[]{article} \usepackage{enumitem} \usepackage{amssymb} \usepackage{xcolor} \newcommand*\myarrow {% \leavevmode \rlap{\kern.1em\textcolor{gray}{$\blacktriangleright$}}% \raise.1em\hbox{\textcolor{orange}{$\blacktriangleright$}}% \kern.1em } \begin{document} \...


2

Load the enumitem and calc packages. For paragraph 1: use \begin{enumerate}[wide, labelwidth=2em, labelindent=0pt] as explained in this answer. For paragraph 1a: use \begin{enumerate}[leftmargin=\leftmargin+2em] to make your labels align with the indentation of paragraph 1. \documentclass[11pt]{report} \usepackage[ height=8in, % height ...


2

\documentclass[a4paper, 10pt]{report} \usepackage{enumitem} \newlist{funcreq}{enumerate}{2} \setlist[funcreq, 1]{label = \textbf{FR\arabic*:},} \setlist[funcreq, 2]{label = FR\arabic{funcreqi}.\arabic*} \begin{document} \begin{funcreq} \item a \item b \begin{funcreq} \item b \end{funcreq} \end{funcreq} \end{document}


1

The formatarg key is imho unneeded. The same can be achieved with the standard format key: \documentclass[10pt]{article} \usepackage[shortlabels]{enumitem} \usepackage{etoolbox} \makeatletter \let\user@item\@item \patchcmd\user@item{\if@noitemarg}{\iftrue}{}{\FAILED} \newcommand\mylabelformat[1]{\textbf{#1}~\@itemlabel} \newlist{enumerateoptional}{...


1

Is it what you want? \documentclass{article} \usepackage[english]{babel} \usepackage{amsmath,amsthm} \usepackage{amsfonts} \usepackage[a4paper,layout=a4paper, bindingoffset=4cm,left=0cm,right=2cm, head=2.5cm, bmargin=2cm, showframe]{geometry} \usepackage[none]{hyphenat} \usepackage{microtype} \usepackage{verbatim} \usepackage{graphicx} \...


1

I would place an enumerate list in a minipage. enumerate* formats the list as inline. (replace 0.5\linewidth by something more useful in your full code) \documentclass[10pt,a4paper]{article} \begin{document} \textbf{\textit{Awards:}} \begin{minipage}[t]{0.5\linewidth} \begin{enumerate} \item Award A \item Award B \end{enumerate} \...


Only top voted, non community-wiki answers of a minimum length are eligible