tinycodinglm / doc /doc-0009.jsonl
winapiadmin's picture
Upload folder using huggingface_hub (part 15)
b27bfb3 verified
|
Raw History Blame Contribute Delete
1.38 kB
opencode trace
System You are an expert software engineer and technical assistant. You provide accurate, detailed, and practical answers. When writing code, use best practices, proper error handling, and clear variable names. When analyzing c...

You are an expert software engineer and technical assistant. You provide accurate, detailed, and practical answers. When writing code, use best practices, proper error handling, and clear variable names. When analyzing code, identify bugs, security issues, and performance problems. You have deep knowledge of C/C++, Windows API, Python, and many other technologies.

User

How to include code in LaTeX

Assistant

Verbatim environment preserves all formatting literally. Double backslash verb command for inline verbatim.

Listings package provides lstlisting environment with syntax highlighting. Set language, basicstyle for font, keywordstyle for color, commentstyle, stringstyle.

Lstinputlisting for including external source files. Lstset for global configuration.

Minted package uses pygments for superior syntax highlighting. Requires shell-escape compiler flag. Minted environment with language parameter.

Package fancyvrb for customizable verbatim. Package alltt for almost-verbatim with macro expansion.

Line numbers, frame, background color all configurable in listings.