Writing Guidelines
From NMSL
Revision as of 16:17, 13 March 2008 by MediaWiki default (talk | contribs)
Notes on Latex
It is required by IEEE, ACM and many other publishers that all fonts are embedded in the document. Embedding fonts is important in order to make the document look and print in the same way the authors intended on different systems.
- Easiest Way (if you are using TeXnicCenter): Download this Output Profile and import it in your TeXnicCenter system (Build --> Define Output Profiles --> Import ...). Always compile your document with that profile.
- Or you can use the following argument line for ps2pdf post processor (in the profile editor of TeXnicCenter)
-sDEVICE=pdfwrite -q -dBATCH -dNOPAUSE -dSAFER -dPDFX -dPDFSETTINGS=/prepress -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode -dAutoFilterGrayImages=false -dGrayImageFilter=/FlateEncode -sOutputFile="%bm.pdf" -c save pop -f "%bm.ps"
- You can use the following script with Ghostscript (original source of the script is here.) Of course change the "outFile.pdf" and "inputFile.pdf" to your files.
gs -sDEVICE=pdfwrite -q -dBATCH -dNOPAUSE -dSAFER \ -dPDFX \ -dPDFSETTINGS=/prepress \ -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode \ -dAutoFilterGrayImages=false -dGrayImageFilter=/FlateEncode \ -sOutputFile=outFile.pdf \ -c `> setdistillerparams` \ -f inputFile.pdf \ -c quit
Notes on xfig
- If we use 'Pattern' to fill an object, the resulting eps fil will have Type 3 fonts, which cause problems in the PDF file and will not be accepted by many publishers. Use 'Filled' with 100% instead.
- Alternatively, a patch for xfig/transfig can be found here. With a patched xfig, we can generate Type 3 font free eps files with patterns. It is, however, reported that these eps files do not look good in ghostscript PS readers.
Notes on Matlab
- Creating EPS figures in Matlab (you may use the standard setting with font 20 instead):
- First, open the figure you would like to export and set line properties and fonts as follows:
FontSize = 16.0 FontName = Times New Roman LineWidth = 2.0 MarkerSize = 4.0
- Next, run the attached script ("fix_export.m") to fix the figure size. Note that you need to provide a parameter called 'x' to the function 'fix_export'. This parameter determines the horizontal margin on the left of y-axis. A typical value for parameter 'x' is 0.75 (inches) and the maximum value is 1.5 (inches).
% fix_export.m function fix_export(x) set(gcf, 'WindowStyle', 'normal'); set(gca, 'Unit', 'inches'); set(gca, 'Position', [x 0.6 4.5 3.375]); set(gcf, 'Unit', 'inches'); set(gcf, 'Position', [0.25 2.5 6.0 4.075]);
- After running the script, you can export the figure using "Save As ...".
- A script (based on fix_export.m) that sets labels and legend into Latex mode, and fix the figure size.
set(gca,'FontSize',16) set(gca, 'FontName', 'Times New Roman'); set(get(gca, 'xlabel'), 'interpreter', 'latex'); set(get(gca, 'xlabel'), 'FontName', 'Times New Roman'); set(get(gca, 'xlabel'), 'FontSize', 16); set(get(gca, 'ylabel'), 'interpreter', 'latex'); set(get(gca, 'ylabel'), 'FontName', 'Times New Roman'); set(get(gca, 'ylabel'), 'FontSize', 16); set(legend(), 'interpreter', 'latex'); set(legend(), 'FontName', 'Times New Roman'); set(legend(), 'FontSize', 16); set(gcf, 'WindowStyle', 'normal'); set(gca, 'Unit', 'inches'); set(gca, 'Position', [.6 .6 4.6 3.125]); set(gcf, 'Unit', 'inches'); set(gcf, 'Position', [0.25 2.5 5.5 4.05]);