[Tex/LaTex] Create Table of variation of log function and draw its graph using Tikz

document-classesgraphicstables

Really i have tried with the below code using share latex publisher for creating the table of variation of log function and it's graph using Tikz but i failed to get both of the graph and the table of variation in my page in the same time , i'm only got one of them , My question here is :

What is the problem in My code or my usepackage which forbid me to get the the two in my page?.

Note: Only i think in share latex using two documents class is not supported and is not allowed

\documentclass[11pt,a4paper]{report}
\documentclass[border=3pt]{standalone}
\documentclass[11pt]{scrartcl}
\usepackage{arabtex}
\usepackage[arabic]{babel}
\usepackage[margin=0.5in]{geometry}
\usepackage{pgfplots}
\pgfplotsset{width=10cm,compat=1.9}
\usepgfplotslibrary{external} 
\usepackage{tikz,tkz-tab,amsmath}
\usetikzlibrary{arrows}
%\usepgfplotslibrary{external}
%\tikzexternalize

\textLR{
\begin{document}
%
\begin{tikzpicture}
\coordinate (OR) at (0.00, 0.00);
\coordinate (LX) at (-1.00, 0.00); % left x
\coordinate (RX) at (8.00, 0.00); % right x
\coordinate (BY) at (0.00, -5.00); % bottom y
\coordinate (TY) at (0.00, 3.00); % top y
%
% axa 0x
%
\draw[->][line width=1.00pt] (LX) -- (RX);
\node[blue] at (7.8,-0.4) {\textbf{\textit{x}}};
%
% axa 0y
%
\draw[->][line width=1.00pt] (BY) -- (TY);
\node[right,blue] at (0.2, 2.8) {\textbf{\textit{ln x}}};
%
% ORIGIN
% 
\filldraw [red] (OR) circle(2pt);
\node[red] at (0.2,-0.3) {\textbf{\textit{0}}};
%
\draw[red,dotted,line width=0.75pt] (0.5, 0.0) -- (0.5, -1.0);
\draw[red,dotted,line width=0.75pt] (0.6, 0.0) -- (0.6, -1.0);
% graphic for LOGARITHM function
\draw[blue, line width=1.75pt, domain=0.005:7.00] plot[smooth](\x, {ln(\x)});
%\draw[blue, line width=1.75pt, domain=0.01:7.00] plot[smooth](\x, {ln(\x)});
%
\end{tikzpicture}
\end{document}}
\textLR{
\begin{document}
\textLR{
\begin{document}
\begin{tikzpicture}
\tikzset{arrow style/.style = {blue,->,> = latex',
shorten > = 6pt,
shorten < = 6pt}}
\tkzTabInit[espcl=5]{$x$ /1, $\ln x $ /1.5, $ \frac{1}{x}$ /2}{$0$ ,$1/\E$ , $+\infty$}%
\tkzTabLine{d,+,z,+,}
\tkzTabVar%
{ D-/ / $-\infty$ ,%
+/ \colorbox{black}{\textcolor{white}{$0$}}/ ,+/ $+\infty$ / }%
\end{tikzpicture}
\end{document}}

Best Answer

All you have to do in oder to get the two graphs on one page is to remove the LaTeX errors.

enter image description here

\documentclass{article}
\usepackage{pgfplots}
\pgfplotsset{width=10cm,compat=1.9}
\usepgfplotslibrary{external} 
\usepackage{tikz,tkz-tab,amsmath}
\usetikzlibrary{arrows}
\newcommand\E{e}
\begin{document}
%
\begin{tikzpicture}
\coordinate (OR) at (0.00, 0.00);
\coordinate (LX) at (-1.00, 0.00); % left x
\coordinate (RX) at (8.00, 0.00); % right x
\coordinate (BY) at (0.00, -5.00); % bottom y
\coordinate (TY) at (0.00, 3.00); % top y
%
% axa 0x
%
\draw[->][line width=1.00pt] (LX) -- (RX);
\node[blue] at (7.8,-0.4) {{\boldmath$x$}};
%
% axa 0y
%
\draw[->][line width=1.00pt] (BY) -- (TY);
\node[right,blue] at (0.2, 2.8) {{\boldmath$y$}};
%
% ORIGIN
% 
\filldraw [red] (OR) circle(2pt);
\node[red] at (0.2,-0.3) {\textbf{\textit{0}}};
%
\draw[red,dotted,line width=0.75pt] (0.5, 0.0) -- (0.5, -1.0);
\draw[red,dotted,line width=0.75pt] (0.6, 0.0) -- (0.6, -1.0);
% graphic for LOGARITHM function
\draw[blue, line width=1.75pt, domain=0.005:7.00,samples=100] plot[smooth](\x, {ln(\x)}) node[right]{$\ln x$};
\end{tikzpicture}

\begin{tikzpicture}
\tikzset{arrow style/.style = {blue,->,> = latex',
shorten > = 6pt,
shorten < = 6pt}}
\tkzTabInit[espcl=4]{$x$ /1, $\ln x $ /1.5, $ \frac{1}{x}$ /2}{$0$ ,$1/\E$ , $+\infty$}%
\tkzTabLine{d,+,z,+,}
\tkzTabVar%
{ D-/ / $-\infty$ ,%
+/ \colorbox{black}{\textcolor{white}{$0$}}/ ,+/ $+\infty$ / }%
\end{tikzpicture}
\end{document}
Related Question