Latex

本文介绍了使用Latex和Matlab生成无边框PDF和EPS图的方法,包括Latex的latextricks、Matlab的figure属性设置,以及将eps转为pdf并去除边框的步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1. Latex trick (using latex to generate eps figure):  http://www.fauskes.net/nb/latextips/ 2. pdfcrop to produce separated pdf without border, pdf2ps to produce eps 3. IEEEPDF express Font problem: 1. pdftops name.pdf name.ps; 2. ps2pdf14 -dCompatibilityLevel#1.4 -dPDFSETTINGS#/prepress name.ps name.pdf 4. Matlab figure without border: 1)generate eps file: print('-depsc2','-tiff','-r300','figure.eps');2) produce pdf: ps2pdf 'figure.eps' 'figure.pdf'; 3)delete border: pdfcrop 'figure.pdf','figureNoBorder.pdf'; ----------------------------------------------------------------------------------------------------------------- function printpdf(h,outfilename) set(h, 'PaperSize', [6.25 7.5]); set(h, 'PaperPositionMode', 'manual'); set(h, 'PaperPosition', [0 0 6.25 7.5]); set(h, 'PaperUnits', 'inches'); set(h, 'PaperSize', [6.25 7.5]); set(h, 'PaperPositionMode', 'manual'); set(h, 'PaperPosition', [0 0 6.25 7.5]); set(h, 'renderer', 'painters'); % print(h, '-dpdf', 'outfilename.pdf'); % print(h, '-dpng', 'my-figure.png'); % print(h, '-depsc2', 'my-figure.eps'); % print(h, '-dpdf', [outfilename '.pdf']); % print(h, '-dpng', [outfilename '.png']); print(h, '-depsc2',[outfilename '.eps']); mycmd=['ps2pdf ' outfilename '.eps ' outfilename '.pdf']; system(mycmd); mycmd=['pdfcrop ' outfilename '.pdf']; system(mycmd); % !pdfcrop [outfilename '.pdf'] [outfilename '-crop.pdf']; ------------------------------------------------------------------------------------------------------------------------ function HandleFigure=JQi_Set_Property_Without_Border(ImageSize) % set properties to save image without border %f=figure('visible','off'); f=figure; subplot('position',[0 0 1 1]); IS=ImageSize; H=IS(1);W=IS(2); rectangle('position',[100 100 10 10]); dpi=100; set(f,'paperposition',[0 0 W/dpi H/dpi]); set(f,'papersize',[W/dpi H/dpi]); HandleFigure=f; ------------------------------------------------------------------------------------------------------------------- 5. latex add in for powerpoint  http://sourceforge.net/projects/latexaddin/ 6. Latex vector graphics language Asymptote (2D,3D, movie):   http://asymptote.sourceforge.net/ 7. supplementary:  http://bytesizebio.net/2013/03/11/adding-supplementary-tables-and-figures-in-latex/

Adding supplementary tables and figures in LaTeX

A problem I encountered now, when revising a paper and adding a supplement per the editor’s request. How do I number my tables and figures as Table S1, S2 etc.? A solution was provided in Stackexchange, but the syntax was not good for my version of LaTeX, and I don’t like \makeatletter (here’s why). Here is a working solution to supplementary figure and table numbering. Place this bit in your document preamble:
\newcommand{\beginsupplement}{%
        \setcounter{table}{0}
        \renewcommand{\thetable}{S\arabic{table}}%
        \setcounter{figure}{0}
        \renewcommand{\thefigure}{S\arabic{figure}}%
     }
Then, when your supplement starts, just add the line:
\beginsupplement
Voila!  Instant “Table S1″ and “Figure S1″. Enjoy. 8. texlive2014 install on Ubuntu 14.04 http://tex.stackexchange.com/questions/1092/how-to-install-vanilla-texlive-on-debian-or-ubuntu/95373#95373 9. generate list of figure caption (without figures) and table caption with table at the end of paper:  http://speedy.ms.northwestern.edu/misc/submit-a-paper-in-latex 10. use "figcaps" to put figure and table at the end of document. To remove figure from the list, you have to put "\label" in "\caption" and the figure reference can work fine. (weird) ( https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=432745)

转载于:https://www.cnblogs.com/stoneresearch/archive/2013/01/02/4336702.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值