I made a graph with Desmos.com.
Which I want to insert in my LaTeX
code, on the right side of these equations:
\documentclass[12pt,a4paper]{article}
\usepackage[a4paper, total={6in, 8in}]{geometry}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{fourier}
\usepackage{mathtools}
\usepackage{amsmath}
\usepackage[english]{babel}
\usepackage{graphicx}
\usepackage{marginnote}
\begin{document}
\underline {Chandrashekhar EOS (1935)} : \\
\begin{align*}
\overline \rho &= K ~\Big( \sinh ~t ~- ~t\Big)\\
\overline P &= \frac {1}{3} K ~ \Big(\sinh~t -~ 8~ \sinh \frac {1}{2} t +~ 3t\Big)\\
K &= \frac {1}{4\pi}\\
\end {align*}
\end {document}
How can I label the curve on the graph as P
and T
and also insert it in my code ?
Best Answer
Sorry this didn't get an answer earlier. But anyway, here is an example using
pgfplots
and aminipage
environments.If you export the graph from Desmos as e.g. a PNG image, you can do something like this instead, where the image is called
graph.png
and is in the same folder as the.tex
file. The drawback of this method is that the image will likely require scaling, which will also scale the fonts.