Search found 1 match

by Roboticist
Tue Oct 18, 2016 8:58 pm
Forum: Text Formatting
Topic: ! Paragraph ended before \lst@next was complete: Using lstli
Replies: 1
Views: 7639

! Paragraph ended before \lst@next was complete: Using lstli

I want to print a piece of verbatim within an item of an itemize environment, as below:

\documentclass[letter, 11pt]{article}
\usepackage{enumitem}
\usepackage{pifont}
\usepackage{listings}

\newcommand{\Question}[1]{{\bfseries?: #1\par\vspace{5pt}}}
\newcommand{\Answer}[1]{\noindent\ding{51}: #1 ...