Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Possible Duplicate:
Typesetting LaTeX Source Code

Hi all, i would like to know suggestions on how can I write an explicative text of LaTeX using LaTeX. Till now I use \verb!SomeLatexinstruction! when i need to write an instruction. There are other solutions, that looks more elegantly?

share|improve this question

marked as duplicate by TH., Hendrik Vogt, lockstep, Joseph Wright Dec 23 '10 at 20:26

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Duplicate of Typesetting LaTeX Source Code‌​. –  TH. Dec 23 '10 at 8:22

4 Answers 4

up vote 5 down vote accepted

see package listings=> run texdoc listings

share|improve this answer

Take a look at the shortvrb package, too. For example \MakeShortVerb{|} will offer the notation |SomeLaTeXinstruction|.

share|improve this answer

The minted package.

share|improve this answer

If you want to show some LaTeX code side by side with its output, the showexpl package may be of some use here.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.