10

\documentclass{article} \usepackage{bbding,enumitem} \begin{document} \begin{itemize}[label=\CheckmarkBold] \item Correct answer. \item Also correct \item[\XSolidBrush] Not correct answer. \end{itemize} \end{document} The spacing and gaps can be tuned with the enumitem options (text margin shown for clarity): \documentclass{article} \usepackage{bbding,...


3

\quad is equivalent to \hspace{1em}. However, \hspaces at the start of a line is gobbled. If you want to force it, you need to use \hspace*{1em}. Below I define \Quad to be exactly that. \documentclass{article} \newcommand{\Quad}{\hspace*{1em}} \begin{document} \begin{itemize} \item Item 1a \\ Item 1b \item Item 2 \\ \quad Subitem 2a \\ \quad Subitem ...


3

If you insist on not using itemize or enumerate, I suggest using tabular or tabularx: \noindent\begin{tabularx}{\textwidth}{p{1em}X} \mycheckmark{} & my text\\ \mycheckmark{} & more text \end{tabularx} You might want to fiddle with the width of the first column, depending on what you pick for your check mark.


3

I'd recommend Stephen's approach, but if you really wanted an alternative, some parboxes may work, too: \documentclass{article} \usepackage{bbding} % Symbols \usepackage{calc} % Arithmetic with lengths \usepackage[showframe]{geometry} % only to show the margins \usepackage{mwe} % For this example MWE \newcommand{\...


3

You can make a top aligned \parbox and fix the interline space after it, by saving the depth of the last line. \documentclass[a4paper,11pt]{article} \usepackage[fleqn]{amsmath} \usepackage{graphicx} \usepackage{subcaption} \usepackage{geometry} \newgeometry{vmargin={30mm}, hmargin={25mm,25mm}} \usepackage{algpseudocode} \usepackage{algorithm} \usepackage{...


2

You can use the definition of \brokenline below - it sets it's argument inside a [t]op-aligned \parbox of appropriate width. \struts are added to ensure that the baselines are also inline with content outside the \parbox. \documentclass{article} \usepackage{amsmath} \usepackage{algpseudocode} \usepackage{algorithm} \makeatletter \newcommand{\brokenline}[2]...


2

Beside the spacing problem, note that the # character in LaTeX has a special meaning and so needs to be escaped when used as a delimiter for listings. Your last delimiter definition should thus read moredelim=[is][\color{green}]{\#}{\#} The missing spaces occur because you are using the option columns=fullflexible. For column alignment, listings has four ...


1

Building on Steven Segletes's comment, I suggest you employ a two-column tabularx environment and bespoke enumerate and itemize environments -- named myenumerate and myitemizein the code below) in the right-hand column of the tabularx environment. Two remarks about this setup: Line-breaking is allowed in the first-level (enumerated) and second-level (...


1

Another possibility uses the linegoal package, which measures the remaining space on the line at its point of insertion: \documentclass[letterpaper,12pt,titlepage,openright,twoside,final]{book} \usepackage{hanging} \usepackage{linegoal} \begin{document} \noindent Words are here, and they form a paragraph. Words are here, and they form a paragraph. Words ...


1

You can use a description list: \begin{description}[leftmargin=!,labelwidth=\widthof{\bfseries Example:}] \item [Example:] Suppose this is an example. I would like ... \end{description} If you also want to indent the entire Example block you can use labelindent. For instance, with \begin{description}[leftmargin=!,labelwidth=\widthof{\bfseries Example:}...


1

You should never need \indent or \noindent in a document, the layout of paragraphs should be a document wide setting, not something to secify each time. Also never end a paragraph with \\ (LaTeX warns about that in the log) \documentclass[letterpaper,12pt,titlepage,openright,twoside,final]{book} \usepackage{parskip} \newenvironment{example} {%...


1

The line with \cftsubsubsecindent 0pt is the culprit: remove it. As a general rule, avoid borrowing preambles from your mates or whatever you find on the Net. Take them, maybe, as schemes, but build your own preamble, loading only the packages that are necessary for your project. It may happen to copy macro code that you don't fully understand, but that ...


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