49 views

### Framing and colorizing a LaTeX command [duplicate]

I normally use \verb|\LaTeXe| to typeset the command \LaTeXe in my document. But now I want to frame or/and colorize the command \LaTeXe. How can we do that? \documentclass{article} \usepackage{...
11k views

### Verbatim inside a command

I have a question about a Verbatim, I want to write a word inside of the subsubsection title. I got an error. How can I fix it?: \subsubsection{The \verb+@interface+ Section}
2k views

### Why doesn't \makeatletter work inside \newcommand?

After hours of banging my brain against my skull, I narrowed down an issue I'm having to the fact that \makeatletter doesn't work inside \newcommand. Commands that I call after \makeatletter are ...
7k views

### Verbatim Environment in Figure Caption

verbatim environment is not working in figure caption. Checked How to put \verb command inside of \textbf{} block? and Verbatim inside a command is not working. \documentclass[11pt, double space]{...
1k views

### Newcommand: What cannot be done?

It is not the first time I tried to create a new command unsuccessfully. Some things I found out did not work (getting "undefined control sequence" or other errors). Use a quote-endquote argument. \...
2k views

### How do i put verbatim text as the body of a link?

Is there a way i can have verbatim text inside a link? \href{www.numpy.org}{\verb|numpy|} does not work. I tried using cprotect; \cprotect\href{www.numpy.org}{\verb|numpy|}, but then I end up with !...
4k views

### ! Paragraph ended before \lst@next was complete: Using lstlisting in itemize

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} \...
540 views

### How reuse latex code for later expansion?

2k views

### How to use \verb|…| in the main \title of a beamer presentation?

I know that to use \verb|...| in a beamer presentation you have to add the fragile option to the frame environment. But if I use \verb|...| in the main \title of \titlepage it gives me the error: ...
1k views

### \verb illegal in command argument in task

Following this: Make two-columned list start at same line as its section, I did: \documentclass{article} \usepackage{cprotect} \usepackage{tasks} \begin{document} \section{Languages} \...
792 views

### Why does verb throw an error using in multicolumn command?

I encounter an error when using the \verb command within the multicolumn command. I reduced the problem to the example below: \documentclass{article} \begin{document} \begin{table}[htb] \begin{...