Latex

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)
posted @ 2013-01-02 07:33  stonestone  阅读(80)  评论(0编辑  收藏  举报