I am writing a long exact sequence like this and this
in a latex document. But it is going beyond the rest of the text's width. I have written these in math mode. How can I make it small enough so that it fits in the same width as the rest of the text on the same page?
Thank you.
Edit- Here's the code (for a different long exact sequence than the one above):
\documentclass[12pt,a4paper]{report}
\makeatletter
% these two slashes-commands for continuous chapter numbering in parts of the document
\makeatother
\usepackage{titlesec}
\titleformat{\chapter}{\normalfont\huge}{\thechapter.}{20pt}{\huge\bf} %for chapter headings
\RequirePackage{etoolbox}
\usepackage{tikz-cd} % and in the above line to use commutative diagrams
\usepackage{amsfonts}
\usepackage[utf8]{inputenc}
\usepackage{amsthm}
% below four lines to just one or two cyrillic letter
\DeclareFontFamily{U}{wncy}{}
\DeclareFontShape{U}{wncy}{m}{n}{<->wncyr10}{}
\DeclareSymbolFont{mcy}{U}{wncy}{m}{n}
\DeclareMathSymbol{\Sh}{\mathord}{mcy}{"58}
%Cyrillic letter command over
\usepackage{sagetex}
\usepackage[toc]{appendix} % to make appendi appear in the table of contents
\usepackage{amssymb} %to use direct sum symbol
\usepackage{graphicx} %toinsert images
\usepackage{amsmath} %to use matrices
\usepackage{hyperref}
\usepackage{bm} % to use bold font in math mode use \bm{ insert math mode text}
\usepackage{mathrsfs} %for scripted english characters
\usepackage{mathtools}
\usepackage{tikz-cd} % to draw commutative diagrams
\usepackage{enumitem}
Then there is a long exact sequence of cohomological groups
\[
0 \longrightarrow H^0(G_K,P) \longrightarrow H^0(G_K,M) \longrightarrow H^0(G_K,N) \\
H^1(G_K,P) \longrightarrow H^1(G_K,M) \longrightarrow H^1(G_K,N),
\]
\[
\begin{tikzcd}
0 \arrow{r} &
\frac{E'(K)}{\phi(E(K))} \arrow{r}{\delta} \arrow{d} &
H^{1}(G_K, E[\phi]) \arrow{r} \arrow{d}{Res_v} &
WC(E/K)[\phi] \arrow{r} \arrow{d} & 0 \\
0 \arrow{r} &
\frac{E'(K_v)}{\phi(E(K_v))} \arrow{r}{\delta_{v}} \arrow{d} &
H^{1}(G_{v}, E[\phi]) \arrow{r} \arrow{d} &
WC(E/K_{v})[\phi] \arrow{r} \arrow{d} & 0 \\
0 \arrow{r} &
\prod\limits_{v \in M_K} \frac{E'(K_v)}{\phi(E(K_v))} \arrow{r}{\prod\limits_{v \in M_K}\delta_{v}} &
\prod\limits_{v \in M_K} H^{1}(G_{v}, E[\phi]) \arrow{r} &
\prod\limits_{v \in M_K} WC(E/K_{v})[\phi] \arrow{r} & 0
\tag{$**$}
\label{starstar}
\end{tikzcd}
\]
\end{document}