Here are my codes.
\documentclass[12pt]{article}
\usepackage{amsmath,amsthm,amssymb,mathrsfs,lineno}
\usepackage{tikz}
\newtheorem{theorem}{Theorem}
\linenumbers
\begin{document}
In the mathematical discipline of graph theory the Tutte-
Berge formula is a characterization of the size of a maximum matching in a
graph. It is a generalization of Tutte theorem on perfect matchings, and is
named after W. T. Tutte (who proved Tutte's theorem) and Claude Berge (who
proved its generalization).
{\color{red}
\begin{theorem}
The size of a maximum matching of a graph $G=(V, E)$ equals
$$
\frac{1}{2} \min _{U \subseteq V}(|U|-\operatorname{odd}(G-U)+|V|),
$$
where odd $(H)$ counts how many of the connected components of the graph $H$
have an odd number of vertices.
\end{theorem}
}
\end{document}
My first question :
- why is there a significant gap in line numbers between 5 and 6 without any markings line numbers?
My second question:
- why are line numbers 5 and 6 also marked in red? I would like them to remain black.
Although I can adjust the position of {\color{red}}
, but Theorem 1 in red becomes black. I wish it was red.
\begin{theorem}
{\color{red} The size of a maximum matching of a graph $G=(V, E)$ equals
$$
\frac{1}{2} \min _{U \subseteq V}(|U|-\operatorname{odd}(G-U)+|V|),
$$
where odd $(H)$ counts how many of the connected components of the graph $H$
have an odd number of vertices.}
\end{theorem}