------------------------
Hi !
I am trying to build a kind of cheatsheet for the mathematics subject I am learning again and I have some trouble with the
\LaTeX
part !Basically, my problem comes from the graphics (picture taken from wolfram alpha representing function like x^2, x^3, sqrt(x), sin(x), etc... which are sometimes too big for my table cell (table of 2 columns, left column for the graph and right column for some informations about the function like domain, range, ...).
The whole project can be found here but I just started with algebra for the moment :
https://github.com/gillouche/Notes/tree ... hs/algebra
As a MWE, I can provide this :
Code: Select all
\documentclass[10pt,onecolumn]{article}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{multicol}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{mathrsfs}
\usepackage{float}
\usepackage[section]{placeins}
\usepackage{graphbox}
\usepackage{pbox}
\usepackage{longtable}
\usepackage[margin=1.5cm]{geometry}
\DeclareMathSizes{10}{10}{10}{10}
\begin{document}
{\setlength{\parindent}{0pt}
\section{Main/Common functions}
\begin{center}
\begin{longtable}{c|c}
\hline
\multicolumn{1}{|c|}{Graph} & \multicolumn{1}{c|}{Information about f(x)} \\
\hline
\includegraphics[align=c]{graph_x_2.png}
&
\pbox{15cm}
{
$f(x) = x^2 $ \\
Domain : $= \mathbb{R}$ \\
Range : $\{y \in \mathbb{R} \colon y \ge 0 \} $ \\
Parity : even\\
Root at x = 0
} \\
\hline
\includegraphics[align=c]{graph_x_3.png}
&
\pbox{15cm}
{
$f(x) = x^3 $ \\
Domain : $\mathbb{R}$ \\
Range : $\mathbb{R}$ \\
Parity : odd \\
Root at x = 0
} \\
\hline
\includegraphics[align=c]{graph_sqrt_x.png}
&
\pbox{15cm}
{
$f(x) = \sqrt(x) $\\
Domain : $x \in \mathbb{R} \colon x \ge 0 $ \\
Range : $y \in \mathbb{R} \colon y \ge 0 $ \\
Root at x = 0
} \\
\hline
\includegraphics[align=c]{graph_ln.png}
&
\pbox{15cm}
{
$f(x) = \ln(x) $\\
Domain : $x \in \mathbb{R} \colon x > 0 $ \\
Range : $ \mathbb{R} $ \\
Root at x = 1
} \\
\hline
\includegraphics[align=c]{graph_e_x.png}
&
\pbox{15cm}
{
$f(x) = e^x $\\
Domain : $\mathbb{R}$ \\
Range : $y \in \mathbb{R} \colon y > 0 $ \\
Root : none
} \\
\hline
\includegraphics[align=c]{graph_sin.png}
&
\pbox{15cm}
{
$f(x) = sin(x) $\\
Domain : $\mathbb{R}$ \\
Range : $y \in \mathbb{R} \colon -1 \le y \le 1 $ \\
Root : $x = \pi n, n \in \mathbb{Z}$\\
Periodicity : in x with period $2\pi$ \\
Parity : odd
} \\
\hline
\includegraphics[align=c]{graph_cos.png}
&
\pbox{15cm}
{
$f(x) = cos(x)$\\
Domain : $\mathbb{R}$ \\
Range : $y \in \mathbb{R} \colon -1 \le y \le 1 $ \\
Root : $x = \pi n - \frac{\pi}{2}, n \in \mathbb{Z}$\\
Periodicity : in x with period $2\pi$ \\
Parity : even
} \\
\hline
\includegraphics[align=c]{graph_tan.png}
&
\pbox{15cm}
{
$f(x) = tan(x)$\\
Domain : $x \in \mathbb{R} : \pi(n + \frac{1}{2}) < x < \pi(n + \frac{3}{2})$ \\
and $n \in \mathbb{Z}$ \\
Range : $\mathbb{R}$ \\
Root : $x = \pi n, n \in \mathbb{Z}$\\
Periodicity : in x with period $\pi$ \\
Parity : even
} \\
\hline
\includegraphics[align=c]{graph_1_over_x.png}
&
\pbox{15cm}
{
$\frac{1}{x}$\\
Domain : $x \in \mathbb{R} : x \ne 0$ \\
Range : $y \in \mathbb{R} : y \ne 0$ \\
Root : none\\
Parity : odd
} \\
\hline
\includegraphics[align=c]{graph_abs_x.png}
&
\pbox{15cm}
{
$\left|x\right|$\\
Domain : $\mathbb{R}$ \\
Range : $y \in \mathbb{R} : y \ge 0$ \\
Root at x = 0
} \\
\hline
\end{longtable}
\end{center}
\end{document}


Fyi, I am new to this (I really just started 2 days ago to build things with
\LaTeX
so I probably made obvious mistakes.I am open to any suggestions, I never created image of function until now and taking pictures from wolfram alpha seemed like a good idea but that causes a lot of problems. If it is easier to create the image of functions I need with
\LaTeX
... I would be happy to hear about it.Thanks a lot !