Latex Escape in Data Files

View: New views
2 Messages — Rating Filter:   Alert me  

Latex Escape in Data Files

by Damian Philipp-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello Gnuplot-Gurus,

I generating graphs using the epslatex terminal. I have to use german umlaute in the labels and legend.

I managed to get umlaute working when I put them into the plot file: '\\\"a' in the plot file will give me a '\"a' in the tex file and an 'ä' in the document.

Now however I need to use umlaute in the data file as well. I'm using "t col" in my plot command to extract the key for the graph from the data file. In the datafile I'm using labels with spaces, so I enclosed them with "".

Example:

I want in the .tex: Paket verz\"ogert
I put in the data: "Paket verz\\\"ogert"
I get in the .tex: Paket verz\

How can I properly escape the " in the data file?

Regards,
Damian Philipp

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Gnuplot-info mailing list
Gnuplot-info@...
https://lists.sourceforge.net/lists/listinfo/gnuplot-info

Re: Latex Escape in Data Files

by Thomas Sefzick :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Damian Philipp <damian.philipp <at> gmx.net> writes:

>
> Hello Gnuplot-Gurus,
>
> I generating graphs using the epslatex terminal. I have to use german umlaute
in the labels and legend.
>
> I managed to get umlaute working when I put them into the plot file: '\\\"a'
in the plot file will give me a
> '\"a' in the tex file and an 'ä' in the document.
>
> Now however I need to use umlaute in the data file as well. I'm using "t col"
in my plot command to extract the
> key for the graph from the data file. In the datafile I'm using labels with
spaces, so I enclosed them with "".

>
> Example:
>
> I want in the .tex: Paket verz\"ogert
> I put in the data: "Paket verz\\\"ogert"
> I get in the .tex: Paket verz\
>
> How can I properly escape the " in the data file?
>
> Regards,
> Damian Philipp

"Paket verz\134\042ogert"
should work





------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Gnuplot-info mailing list
Gnuplot-info@...
https://lists.sourceforge.net/lists/listinfo/gnuplot-info