Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

This question already has an answer here:

I have a serious problem to solve. I would like to make a function monotonicity in my latex doc and i write

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

and it shows error. Is something with any package or some setting i have to to in the doc??


example

I sent you an exact example of what i try to do

share|improve this question

marked as duplicate by Svend Tveskæg, Werner, Heiko Oberdiek, Speravir, Martin Schröder Feb 25 at 22:20

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

4  
Is it possible that you complete the code snippet to a self-contained and minimal example? –  Thorsten Donig Feb 24 at 19:51
1  
There is no package tikzpicture … What Thorsten wrote: Please add a minimal working example (MWE) that illustrates your problem. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting with \documentclass{...} and ending with \end{document}. –  Speravir Feb 24 at 20:36
1  
Welcome to TeX.SE. –  Peter Grill Feb 24 at 21:46
    
It's not a duplicate question. The problem is different. Here it's a bad use of the package. –  Alain Matthes Feb 25 at 22:40

1 Answer 1

up vote 10 down vote accepted

Firstly it's preferable to give a complete example, then you need to define \E, you need to load amsmath.

\documentclass[11pt]{scrartcl}
\usepackage{tikz,tkz-tab,amsmath}
\usetikzlibrary{arrows}

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

enter image description here

share|improve this answer
    
Thank you very much!!! –  Giannis Feb 24 at 20:18
    
How can i manage the follow example?? It would be very helpful for me. –  Giannis Feb 25 at 19:10

Not the answer you're looking for? Browse other questions tagged or ask your own question.