File size: 1,401 Bytes
b27bfb3 | 1 2 3 4 5 | {"type": "session", "harness": "opencode", "id": "mathjax-0002", "name": "LaTeX aligned equations and matrices"}
{"type": "message", "message": {"role": "system", "content": "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."}}
{"type": "message", "message": {"role": "user", "content": "How to write aligned equations and matrices in LaTeX"}}
{"type": "message", "message": {"role": "assistant", "content": "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.\n\nEquation environment wraps aligned for single numbering. Aligned can be nested inside equation for grouped equations.\n\nCases environment for piecewise functions with brace delimiter.\n\nMatrix variants: pmatrix for parentheses, bmatrix for brackets, vmatrix for vertical bars, Bmatrix for braces, smallmatrix for inline.\n\nAll matrices use ampersand for column separation and double backslash for row separation.\n\nFlalign for full-width alignment. Multline for long equations that wrap."}}
|