News for hackers. Stuff that matters.
Re:High quality graphics for Latex documents: The Matlab route by amelius on Friday March 17, 2017 @08:23AM (#13893392)
Maybe it's just me, but why can't Matlab just use the Latex fonts in an EPS, and output that EPS as a single file? That sounds like a more robust and less convoluted solution.
Re:High quality graphics for Latex documents: The Matlab route by JorgeGT on Friday March 17, 2017 @08:52AM (#13893551)
I think that the goal of the poster is not just the font, is to be able to modify the size/font/color/style when compiling the document (say that you realize you want bold labels, or sans-serif instead of serif when you have a lot of figures already generated).
Re:High quality graphics for Latex documents: The Matlab route by amelius on Friday March 17, 2017 @09:03AM (#13893606)
In that case, I'd recommend structuring your scripts such that you can easily rerun them later on (e.g. using a Makefile). That has also other advantages, such as the ability to change graph colors, axes, or even data.
Re:High quality graphics for Latex documents: The Matlab route by IanCal on Friday March 17, 2017 @09:55AM (#13893968)
I'm a big fan of being able to generate a document and know that the results are all based on the same, latest data and the same code. The more different things I have to do to generate it all from scratch the more likely there's something I'll forget when I have just fixed a problem somewhere.
Re:High quality graphics for Latex documents: The Matlab route by JorgeGT on Friday March 17, 2017 @10:55AM (#13894403)
This is what I do, really. Regarding styling I have a small styling script that I put after each graph. This small script takes the active figure (gcf) whatever it is, and changes it to my liking. So if I want to change the graph styling at a later stage I modify this small script and then re-run the main file.

But everything in MATLAB, then I just symlink the pdf figures to the manuscript folder, so with an F5 in MATLAB and a build in Sublime I have the manuscript updated.

Re:High quality graphics for Latex documents: The Matlab route by tjl on Saturday March 18, 2017 @02:46AM (#13900230)
My only problem with doing everything in Matlab (which I used to do) and exporting the PDF is that you can't really match the fonts easily to the main document. I picked a set of fonts (math and normal) for my Ph.D. thesis and I wanted the fonts in the figures to match those in the main body. Using matlab2tikz did that for me.

You could probably do the same thing but do the export of the tikz file instead of the PDF. That's basically what I do.