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.

Please what's the error in this code, it didn't work:

\documentclass[11pt]{article} 
\usepackage[T1]{fontenc} 
\usepackage{graphicx} 
\usepackage{pst-eps} 
\usepackage[french]{babel} 
\usepackage[xcas]{tablor} 
\begin{document} 
\begin{TV} TV([-1,1],[],"f","x",x^2,1,n,\tv) \end{TV} 
\end{document} 

i have this error:

./essai tblor.tex:8: FancyVerb Error: Extraneous input ` TV([-1,1],[],"f","x",x^2,1,n,\tv ) \end {TV}' between \beg in{TV}[<key=value>] and line end . \FV@Error ... {FancyVerb Error: \space \space #1 } l.8 ... TV([-1,1],[],"f","x",x^2,1,n,\tv) \end{TV} ? Process aborted –
share|improve this question
    
I can't run it because I don't have XCAS; however \begin{TV} and \end{TV} should be on lines by themselves. –  egreg Oct 13 '12 at 22:20
2  
Which error message do you receive? "Does not work" is not very clear ... BTW: the description of package tablor is only in french. It would be a great advantage to have it in English too ... –  Kurt Oct 13 '12 at 23:14

1 Answer 1

up vote 1 down vote accepted

Have you tried rewriting the line as

\begin{TV}
TV([-1,1],[],"f","x",x^2,1,n,\tv)
\end{TV}

and rerunning? From looking at the code of tablor it appears to use the fancyvrb package, wrapping the parameters in a verbatim environment. Since verbatim environments can't have text following their \begin declaration, this should cause your error.

I'm afraid I can't do the actual testing, since I, too, don't have XCAS.

share|improve this answer
    
Thank you. it works :) –  researcher Oct 16 '12 at 11:28
    
just a question: why it works with you solution and don't work with \begin{TV} TV([-1,1],[],"f","x",x^2,1,n,\tv) \end{TV} ? –  researcher Oct 17 '12 at 18:41

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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