Comments (8)
Thanks for your report -- when I try to run your code I get
(./gnuplottex/test-gnuplottex-fig1.tex
! Undefined control sequence.
l.82 \definecolor
{tbcol}{rgb}{1,1,1}%
How exactly are you compiling this, and what's your TeX installation?
from gnuplottex.
Thank you for your quick answer. I am using texlive with texstudio and compiling with XeLatex and shell escape for gnuplottex on linux. Otherwise there is nothing special.
I don't see, where the error regarding a color is coming from.
Edit: Ah, wait a minute. Even more minimalistic:
\documentclass{scrreport}
\usepackage[siunitx, subfolder]{gnuplottex}
\begin{document}
\begin{figure}
\centering
\begin{gnuplot}[terminal=cairolatex]
plot sin(x) title "$\sin(x)$"
\end{gnuplot}
\caption{This is a simple example using the cairolatex-terminal.}
\label{pic:cairolatex}
\end{figure}
\end{document}
from gnuplottex.
Ok, it works if I include the xcolor
package and exclude the siunitx
option, which caused another error. Then everything works fine and the plot is produced.
Are you running this on Linux, Windows, Mac OS?
from gnuplottex.
If I add the xcolor
option like this usepackage[xcolor]{gnuplottex}
, it raises the error Unknown option "xcolor" for package "gnuplottex". \ProcessOptions\relax
. I didn't have an error for siunitx.
I run it under linux. Here is a picture of all three created files.
from gnuplottex.
Ah, ok, I needed to include a space in the file name. I can reproduce the bug.
It looks like the conversion of the figure actually works, just the check whether the file exists fails. There's multiple levels of quoting going on here and I'm not sure how to fix this. For now, I'd recommend to simply not have spaces in your file names.
And xcolor
is a separate package, not an option.
from gnuplottex.
xcolor
is a package and you mentioned that. I miss read that.
Yes, it is working if no spaces are used in the filename.
Edit: It is working if I rename both files with the "" in the name and remove those. So the problem seems to be, that the filename is not recognised because of the "". Do you know where they are added?
from gnuplottex.
The quotes are added automatically by TeX. And yes, the problem is just handling the quoting at different levels in the code.
from gnuplottex.
For references, I solved it in my project via this solution in my project https://github.com/leo-colisson/robust-externalize , not sure if you got the same issue: https://tex.stackexchange.com/questions/418670/avoid-quotation-marks-when-using-jobname-or-currfilename
from gnuplottex.
Related Issues (20)
- Documentation HOT 2
- Error using `do for {...}` inside gnuplot environment HOT 1
- Subfolder is ignored with shell escape disabled HOT 8
- Output to file only? +specify name? HOT 11
- tikz externalize in beamer overlays creates hundreds of files HOT 3
- vim syntax highlighting for gnuplottex environment HOT 1
- Missing support for '-output-directory' HOT 7
- File `gnuplotttex.sty' not found HOT 10
- When in \begin{gnuplot} the [terminal=...] option isn't defined, it is set to default value terminal=latex. But in recent gnuplot the latex terminal is replaced with newer ones HOT 1
- When setting a size different to 1,1, the plot itself gets too small HOT 2
- Tex capacity exceeded happens when tics font is set HOT 3
- not working for data from a file HOT 4
- tikz not working in XeLatex HOT 1
- TikZ externalize | Error handling HOT 4
- Error if gnuplottex loaded but not used HOT 2
- Gnuplottex does not work when inside frame of beamer HOT 3
- shell escape with luatex 1.0 HOT 1
- Incorrect options for lualatex in example for terminal tikz using tikzexternalize HOT 2
- Gnuplottex wont plot and cant find `rm` or `touch`. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gnuplottex.