tinycodinglm / doc /mathjax-0005.jsonl
winapiadmin's picture
Upload folder using huggingface_hub (part 15)
b27bfb3 verified
|
Raw History Blame Contribute Delete
1.33 kB
deepseek-harness 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 draw diagrams in LaTeX with TikZ

Assistant

TikZ package for creating graphics programmatically.

Basic drawing: begin tikzpicture, draw commands with coordinates.

Paths: line to, curve to, circle, rectangle, ellipse.

Nodes: begin scope, node with text labels, positioning.

Styles: define styles with tikzset, apply with square brackets.

Libraries: calc for coordinate calculations, positioning for node placement, shapes for node shapes, arrows for arrow styles, graphs for graph drawing.

Pgfplots for data-driven plots and charts.

Can create: flowcharts, UML diagrams, neural networks, geometric shapes, function plots, commutative diagrams.