Math & Science ⇒ How to code this relation formula?
How to code this relation formula?
- Attachments
-
- 1.png (4.26 KiB) Viewed 1841 times
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
How to code this relation formula?
Code: Select all
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\[
R = \left(
\begin{array}{@{}ccccc@{}}
1 & 1 & 2 & 3 & 7 \\
3 & 1 & 4 & 4 & 0 \\
\end{array}
\right) ;
\]
\end{document}
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
How to code this relation formula?
Code: Select all
\documentclass[11pt,a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\begin{document}
\[
R=
\begin{pmatrix}
1 & 1 & 2 & 3 & 7 \\
3 & 1 & 4 & 4 & 0
\end{pmatrix};
\]
The in-line version looks like
\(
R=\bigl(
\begin{smallmatrix}
1 & 1 & 2 & 3 & 7 \\
3 & 1 & 4 & 4 & 0
\end{smallmatrix}
\bigr)
\).
\end{document}
By the way, the array environment comes from vanilla LaTeX.
Best regards and welcome to the board
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10