Here is what I want to write in latex:
Asked
Active
Viewed 146 times
0
-
2Could you please show what your code looks like? – Someone Apr 15 '20 at 14:01
1 Answers
2
Welcome! Here's how to write your equation. I added another solution using the command \bm from the bm package, which allows to write bold italic math.
\documentclass{article}
\usepackage{amsmath}
\usepackage{bm}
\begin{document}
\begin{tabular}{ll}
With \verb|\mathbf|: & \( \mathcal{D} = \{ (\mathbf{x}_i, y_i) \}_{i=1}^N \) \\
With \verb|\bm|: & \( \mathcal{D} = \{ (\bm{x}_i, y_i) \}_{i=1}^N \)
\end{tabular}
\end{document}
Vincent
- 20,157
-
-
-
-
-
1@JohnDem Yes, it has to be written in math mode, so between
$...$or\(...\)for inline math, or between\[...\]for display math.$$...$$also works, but you should avoid using that. – Vincent Apr 15 '20 at 14:41 -
@someone - The \verb isn't really part of the answer; just a cute comment. – John Kormylo Apr 16 '20 at 00:36

