Movatterモバイル変換


[0]ホーム

URL:


CTAN Comprehensive TeX Archive Network
 

listings – Typeset source code listings usingLaTeX

The package enables the user to typeset programs (programming code) withinLaTeX; the source code is read directly byTeX—no front-end processor is needed. Keywords, comments and strings can be typeset using different styles (default is bold for keywords, italic for comments and no special style for strings). Support forhyperref is provided.

To use,\usepackage{listings}, identify the language of the object to typeset, using a construct like:\lstset{language=Python}, then use environmentlstlisting for inline code. External files may be formatted using\lstinputlisting to process a given file in the form appropriate for the current language. Short (in-line) listings are also available, using either\lstinline|...| or|...| (after defining the| token with the\lstMakeShortInline command).

Sources/macros/latex/contrib/listings
Documentation
Version1.10c
LicensesTheLaTeX Project Public License 1.3c
Copyright1996–2004 Carsten Heinz
2006–2007 Brooks Moses
2013–2024 Jobst Hoffmann
MaintainerJobst Hoffmann
Carsten Heinz (inactive)
Brooks Moses (inactive)
Contained inTeX Live as listings
MiKTeX as listings
TopicsSyntax highlight
Verbatim
Macro Demonstration
Listing
See alsolisting

Download the contents of this package in one zip archive (3.4M).

Community Comments

Loading...

Announcements

Here you can see a respective diagram in newer browsers.

more

Suggestions

Maybe you are interested in the following packages as well.

more

Guest BookSitemapContactContact AuthorFeedback
 
2025-03-18 06:57 CET

[8]ページ先頭

©2009-2025 Movatter.jp