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.

I am using the gnuplottex package to create plots with gnuplot from inline gnuplot code in my LaTeX documents. I am using pdflatex directly to get PDFs.

I would like to be able to use the \cite command within the gnuplottex instructions. I want to have the citations formatted the same way they are in the rest of my document.

This example illustrates what I would like to do:

plot "data.csv" using 1:2 with lines title "\citet{Papale2006}"

Any ideas how this could be achieved?

Update: I am using the pdf terminal for gnuplottex.

share|improve this question
2  
Try with two backslashes instead of a single backslash. –  Paul Gaborit Nov 4 '12 at 10:37
    
Thanks, unfortunately this does not help. Also, when using "\citet{ABC}", the single backslash is preserved in the output. It shows up exactly like this in the output .pdf –  nblumoe Nov 4 '12 at 13:13
    
My advice works with latex terminal. –  Paul Gaborit Nov 4 '12 at 13:53

1 Answer 1

I solved the issue by using the epslatex terminal mode for gnuplot:

\begin{gnuplot}[terminal=epslatex]

Works nicely with pdflatex and allows to use \citet{ABC} in the gnuplot key.

share|improve this answer

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.