\documentclass{l3doc} \usepackage{expl3} \usepackage{xparse} \usepackage{float} \usepackage{ccaption} \usepackage{cleveref} \begin{document} \floatstyle{ruled} \newfloat{Program}{h}{lop}%[section] \begin{Program} \textbf{Input} \begin{verbatim} \NewDocumentCommand{\foo}{m}{Hello~#1!} \foo{World} \end{verbatim} \textbf{Output}\\ \NewDocumentCommand{\foo}{m}{Hello~#1!} \foo{World} \caption{Hello~World!}\label{code:helloworld} \end{Program} \end{document}
LaTeX forum ⇒ Graphics, Figures & Tables ⇒ Newline before verbatim envir Topic is solved
Newline before verbatim envir
How can I suppress the line between 'Input' and the verbatim environment that shows in the output?
x_86 / Linux Mint 18.3 / texlive 2015.20160320-1ubuntu0.1 / TeXworks 0.5r1361 (Debian)
Tags:
- Stefan Kottwitz
- Site Admin
- Posts: 9285
- Joined: Mon Mar 10, 2008 9:44 pm
Maybe a quick fix:
Stefa
\vspace{-\topsep} \begin{verbatim} ...
Stefa
Site admin
Return to “Graphics, Figures & Tables”
Who is online
Users browsing this forum: Baidu [Spider] and 5 guests