LaTeX Confused about how to insert fractions into matrices

Click For Summary
The discussion centers on a LaTeX matrix representation of derivatives for a function mapping from R² to R². The initial concern is about an issue in the first line of the matrix, specifically regarding the notation "c'". It is clarified that "c'" does not serve as a comment and its purpose is not immediately clear. The conversation emphasizes the importance of formatting in LaTeX, noting that blank lines are not permitted in math mode. Instead, users are advised to use single-line comments to create space in the code. This highlights the need for proper syntax to avoid errors in LaTeX documents.
Eclair_de_XII
Messages
1,082
Reaction score
91
TL;DR
I keep trying to type in the code in the body of this message out, but the console returns this error message:

"! Missing \endgroup inserted.
<inserted text>
\endgroup
l.115 \frac
{\partial f^1}{\partial u} & \frac{\partial f^1}{\partial v} \\"
[CODE highlight="10"]$$c'\begin{pmatrix}u \\ v \end{pmatrix}=\begin{pmatrix}\frac{\partial f^1}{\partial u} & \frac{\partial f^1}{\partial v} \\\frac{\partial f^2}{\partial u} & \frac{\partial f^2}{\partial v}\end{pmatrix}

$$[/CODE]

There is a problem with the first line of the matrix, but I am not too sure what it is.
 
Physics news on Phys.org
I don't see what the problem is. Here is almost identical LaTeX code, with the only differences being I used inline delimiters rather than the standalone $ delimiters, and I didn't include what you have at the start of your first line -- i.e., c'\begin{…}. What's the purpose of c'? I thought at first it might be a comment, but that doesn't seem to be the case.

##\begin{pmatrix}u \\ v \end{pmatrix}=\begin{pmatrix} \frac{\partial f^1}{\partial u} & \frac{\partial f^1}{\partial v} \\ \frac{\partial f^2}{\partial u} & \frac{\partial f^2}{\partial v} \end{pmatrix}##
 
It's the derivative of a function mapping ##\mathbb{R}^2## to ##\mathbb{R}^2##.
 
Remove the blank lines, they are not allowed in math mode. If you really want to create space in your code like this, use lines with a single comment (%).
 
Okay, thanks for the tip.
 

Similar threads

  • · Replies 10 ·
Replies
10
Views
578
  • · Replies 8 ·
Replies
8
Views
895
Replies
9
Views
2K
  • · Replies 6 ·
Replies
6
Views
7K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 8 ·
Replies
8
Views
4K
  • · Replies 0 ·
Replies
0
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 14 ·
Replies
14
Views
2K