tinycodinglm / doc /mathjax-0002.jsonl
winapiadmin's picture
Upload folder using huggingface_hub (part 15)
b27bfb3 verified
|
Raw History Blame Contribute Delete
1.4 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 write aligned equations and matrices in LaTeX

Assistant

Align environment for multi-line equations with ampersand alignment points. Each line separated by double backslash. Numbered by default, use star form to suppress numbers.

Equation environment wraps aligned for single numbering. Aligned can be nested inside equation for grouped equations.

Cases environment for piecewise functions with brace delimiter.

Matrix variants: pmatrix for parentheses, bmatrix for brackets, vmatrix for vertical bars, Bmatrix for braces, smallmatrix for inline.

All matrices use ampersand for column separation and double backslash for row separation.

Flalign for full-width alignment. Multline for long equations that wrap.