0

how can i make the number 1 and 0 lie on the line at f(x) row

enter image description here

enter image description here

2
  • 4
    Welcome to SE. Please don't use screenshots for code, and provide a Minimal Working Example.
    – Miyase
    Commented Aug 1, 2022 at 10:10
  • FYI, the CTAN entry for this package states "This package has been taken temporarily out of circulation to give the author time to investigate some problems." Commented Aug 3, 2022 at 13:06

1 Answer 1

1

Like this?
enter image description here

\documentclass[border=5mm]{standalone}
\usepackage{tkz-tab}
\begin{document}
\begin{tikzpicture}
\tkzTabInit
[lgt=2, espcl=0.009\linewidth] % tuy chon
{$x$/1, $f'(x)$/1, $f(x)$/2}{$-\infty$,1,2,$+\infty$}% hang 1 côt 2
\tkzTabLine{,+,5,-,7,-}% hang 2 côt 2
\tkzTabVar{- / $-\infty$, R/, R/, +/$-\infty$} % häng 3 côt 2
\tkzTabIma{1}{4}{2}{1}
\tkzTabIma{1}{4}{3}{0}
\end{tikzpicture}
\end{document}

The \tkzTabIma lines need {start}{end}{position}{value}. So in your case you have defined the arrow across four cells (from left to right), so you need {1}{4} at the start of each label. Then {1}{4}{2}{1} gives you a "1" in cell 2, while {1}{4}{3}{0} gives you a "0" in cell 3.

Doing texdoc tkz-tab brings up the documentation, but it is in French (on my system).

1
  • tks u so much it worked! Commented Aug 4, 2022 at 6:50

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .