[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
escaping backslash when printing a plot using -dpslatex
From: |
Josua Stingelin |
Subject: |
escaping backslash when printing a plot using -dpslatex |
Date: |
Thu, 2 Apr 2020 13:15:12 +0200 |
Dear Octave developers,
Thank you very much for your amazing work on GNU Octave! I'm using it for most
tasks the university expects me to do in MATLAB.
I've noticed that printing plots for further use in latex using the '-dpslatex'
option
print (fig, file, '-pslatex')
requires escaping backslashes in labels
xlabel ("$t [\\si{ms}]$");
is this expected behavior?
I don't think it's entirely clear from the documentation [1]
> The text that is written to the LaTeX file contains the strings exactly as
> they were specified in the plot. If any special characters of the TeX mode
> interpreter were used, the file must be edited before LaTeX processing.
> Specifically, the special characters must be enclosed with dollar signs ($ …
> $), and other characters that are recognized by LaTeX may also need editing
> (.e.g., braces). The ‘pdflatex’ device, and any of the ‘standalone’ formats,
> are not available with the Gnuplot toolkit.
[1]: https://octave.org/doc/v4.2.0/Printing-and-Saving-Plots.html
signature.asc
Description: PGP signature
- escaping backslash when printing a plot using -dpslatex,
Josua Stingelin <=