[Solved] Blank pdf document

user183391 Asks: Blank pdf document
I entered the LaTeX gnuplot code exactly as stated in this site, which should output the sine curve on the output document using TeXworks compiler. It compiles but produces an empty document. An advice was to try -shell-escape.

I did the -shell-escape with no luck. What else should I try?

This is the code that I entered in TexWorks. Compiled with both pdfLaTex and pdflatex+makeIndex+Bibtex

Code:
documentclass{scrreprt}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage{lmodern}
usepackage[miktex]{gnuplottex} % for MiKTeX,`pdflatex -shell-escape` enabled 
%usepackage{gnuplottex} I have used this line to compile on TeXLive 2013
usepackage{graphicx}
%usepackage{epstopdf} % for MiKTeX,`pdflatex -shell-escape` enabled
begin{document}
begin{figure}[htbp]
centering
begin{gnuplot}[terminal=epslatex,terminaloptions=color]
plot [0:2*pi] sin(x) title 'Sine', cos(x) title 'Cosine'
end{gnuplot}
end{figure}
end{document}

Ten-tools.com may not be responsible for the answers or solutions given to any question asked by the users. All Answers or responses are user generated answers and we do not have proof of its validity or correctness. Please vote for the answer that helped you in order to help others find out which is the most helpful answer. Questions labeled as solved may be solved or may not be solved depending on the type of question and the date posted for some posts may be scheduled to be deleted periodically. Do not hesitate to share your response here to help other visitors like you. Thank you, Ten-tools.