# Tag Info

4

Knitr can show not only outputs from R, but also from another engines. May be this is not the ideal approach to mimic a real screenshot, but can show the true outputs of a bash shell typing only the commands. \documentclass{article} \usepackage{xcolor} %\usepackage[black]{sourcecodepro} \begin{document} \section*{Top Linux utilities:} ...

2

\documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{listings} \usepackage{listingsutf8} \def\CS#1{\texttt{\textbackslash#1}} \usepackage[most]{tcolorbox} \newtcblisting{commandshell}{colback=black,colupper=white,colframe=yellow!75!black, listing only,listing options={style=tcblatex,language=sh}, every listing ...

19

Something like this? (Actually stolen from tcolorbox manual and slightly changed ;-)) A verbatim input environment is necessary in my point of view, so a listings etc. style approach might be very convenient. The tcolorbox wrappers of listings provide nice features to improve the look of the surroundings of a listings environment. Use the every listings ...

Top 50 recent answers are included