Is there a hook that will allow me to change the document style and/or add packages to the latex file produced by the publish(...,'latex') command?
13 ビュー (過去 30 日間)
古いコメントを表示
I'm preparing notes for a class on numerical analysis. I would like to use the publish command to create a latex file that includes markup more sophisticated than matlab's embedded tex processor can handle, which I can then run through latex directly to produce class notes and handouts. Is there a hook that will allow me to change the document style and/or add packages to the latex file produced by the publish(...,'latex') command (and, so, save me the manual step of adding these by hand after the publish command produces the .tex file)?
0 件のコメント
採用された回答
François
2016 年 3 月 19 日
Hi,
You have just to put your own XSL file.
For instance:
publish('General.m','format','latex','stylesheet','/FullPath/mydom2latex.tex') where mydom2latex.tex is my own mxdom2latex.xsl, the default file using by matlab.
I add \usepackage{listings} and colours, some package and encoding for UTF8 french and it works...
So I attach files.
0 件のコメント
その他の回答 (1 件)
Walter Roberson
2015 年 8 月 2 日
I am not sure if the following will help you: http://www.mathworks.com/matlabcentral/answers/88491-latex-support-to-publish-in-html-format
If not then see http://www.mathworks.com/matlabcentral/answers/52340-why-do-deep-paths-in-usepackage-cause-texmex-to-crash-segmentation-violation. Or perhaps easier: http://www.mathworks.com/matlabcentral/newsreader/view_thread/283068
See also http://www.mathworks.com/matlabcentral/answers/170464-importing-matlab-figures-into-latex for a caution.
2 件のコメント
Walter Roberson
2015 年 8 月 2 日
The second and third links show you how to augment the MATLAB latex processing to recognize additional packages.
参考
カテゴリ
Help Center および File Exchange で MATLAB Report Generator についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!