📄 bare_adv.tex
字号:
%% bare_adv.tex%% V1.3%% 2007/01/11%% by Michael Shell%% See: %% http://www.michaelshell.org/%% for current contact information.%%%% This is a skeleton file demonstrating the advanced use of IEEEtran.cls%% (requires IEEEtran.cls version 1.7 or later) with an IEEE Computer%% Society journal paper.%%%% Support sites:%% http://www.michaelshell.org/tex/ieeetran/%% http://www.ctan.org/tex-archive/macros/latex/contrib/IEEEtran/%% and%% http://www.ieee.org/%%*************************************************************************%% Legal Notice:%% This code is offered as-is without any warranty either expressed or%% implied; without even the implied warranty of MERCHANTABILITY or%% FITNESS FOR A PARTICULAR PURPOSE! %% User assumes all risk.%% In no event shall IEEE or any contributor to this code be liable for%% any damages or losses, including, but not limited to, incidental,%% consequential, or any other damages, resulting from the use or misuse%% of any information contained here.%%%% All comments are the opinions of their respective authors and are not%% necessarily endorsed by the IEEE.%%%% This work is distributed under the LaTeX Project Public License (LPPL)%% ( http://www.latex-project.org/ ) version 1.3, and may be freely used,%% distributed and modified. A copy of the LPPL, version 1.3, is included%% in the base LaTeX documentation of all distributions of LaTeX released%% 2003/12/01 or later.%% Retain all contribution notices and credits.%% ** Modified files should be clearly indicated as such, including **%% ** renaming them and changing author support contact information. **%%%% File list of work: IEEEtran.cls, IEEEtran_HOWTO.pdf, bare_adv.tex,%% bare_conf.tex, bare_jrnl.tex, bare_jrnl_compsoc.tex%%*************************************************************************% *** Authors should verify (and, if needed, correct) their LaTeX system ***% *** with the testflow diagnostic prior to trusting their LaTeX platform ***% *** with production work. IEEE's font choices can trigger bugs that do ***% *** not appear when using other class files. ***% The testflow support page is at:% http://www.michaelshell.org/tex/testflow/% IEEEtran V1.7 and later provides for these CLASSINPUT macros to allow the% user to reprogram some IEEEtran.cls defaults if needed. These settings% override the internal defaults of IEEEtran.cls regardless of which class% options are used. Do not use these unless you have good reason to do so as% they can result in nonIEEE compliant documents. User beware. ;)%%\newcommand{\CLASSINPUTbaselinestretch}{1.0} % baselinestretch%\newcommand{\CLASSINPUTinnersidemargin}{1in} % inner side margin%\newcommand{\CLASSINPUToutersidemargin}{1in} % outer side margin%\newcommand{\CLASSINPUTtoptextmargin}{1in} % top text margin%\newcommand{\CLASSINPUTbottomtextmargin}{1in}% bottom text margin% Note that the a4paper option is mainly intended so that authors in% countries using A4 can easily print to A4 and see how their papers will% look in print - the typesetting of the document will not typically be% affected with changes in paper size (but the bottom and side margins will).% Use the testflow package mentioned above to verify correct handling of% both paper sizes by the user's LaTeX system.%% Also note that the "draftcls" or "draftclsnofoot", not "draft", option% should be used if it is desired that the figures are to be displayed in% draft mode.%\documentclass[12pt,journal,compsoc]{IEEEtran}% The Computer Society requires 12pt.% If IEEEtran.cls has not been installed into the LaTeX system files,% manually specify the path to it like:% \documentclass[10pt,journal,compsoc]{../sty/IEEEtran}% For Computer Society journals, IEEEtran defaults to the use of % Palatino/Palladio as is done in IEEE Computer Society journals.% To go back to Times Roman, you can use this code:%\renewcommand{\rmdefault}{ptm}\selectfont% Some very useful LaTeX packages include:% (uncomment the ones you want to load)% *** MISC UTILITY PACKAGES ***%%\usepackage{ifpdf}% Heiko Oberdiek's ifpdf.sty is very useful if you need conditional% compilation based on whether the output is pdf or dvi.% usage:% \ifpdf% % pdf code% \else% % dvi code% \fi% The latest version of ifpdf.sty can be obtained from:% http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/% Also, note that IEEEtran.cls V1.7 and later provides a builtin% \ifCLASSINFOpdf conditional that works the same way.% When switching from latex to pdflatex and vice-versa, the compiler may% have to be run twice to clear warning/error messages.% *** CITATION PACKAGES ***%\ifCLASSOPTIONcompsoc % IEEE Computer Society needs nocompress option % requires cite.sty v4.0 or later (November 2003) % \usepackage[nocompress]{cite}\else % normal IEEE % \usepackage{cite}\fi% cite.sty was written by Donald Arseneau% V1.6 and later of IEEEtran pre-defines the format of the cite.sty package% \cite{} output to follow that of IEEE. Loading the cite package will% result in citation numbers being automatically sorted and properly% "compressed/ranged". e.g., [1], [9], [2], [7], [5], [6] without using% cite.sty will become [1], [2], [5]--[7], [9] using cite.sty. cite.sty's% \cite will automatically add leading space, if needed. Use cite.sty's% noadjust option (cite.sty V3.8 and later) if you want to turn this off.% cite.sty is already installed on most LaTeX systems. Be sure and use% version 4.0 (2003-05-27) and later if using hyperref.sty. cite.sty does% not currently provide for hyperlinked citations.% The latest version can be obtained at:% http://www.ctan.org/tex-archive/macros/latex/contrib/cite/% The documentation is contained in the cite.sty file itself.%% Note that some packages require special options to format as the Computer% Society requires. In particular, Computer Society papers do not use% compressed citation ranges as is done in typical IEEE papers% (e.g., [1]-[4]). Instead, they list every citation separately in order% (e.g., [1], [2], [3], [4]). To get the latter we need to load the cite% package with the nocompress option which is supported by cite.sty v4.0% and later. Note also the use of a CLASSOPTION conditional provided by% IEEEtran.cls V1.7 and later.% *** GRAPHICS RELATED PACKAGES ***%\ifCLASSINFOpdf % \usepackage[pdftex]{graphicx} % declare the path(s) where your graphic files are % \graphicspath{{../pdf/}{../jpeg/}} % and their extensions so you won't have to specify these with % every instance of \includegraphics % \DeclareGraphicsExtensions{.pdf,.jpeg,.png}\else % or other class option (dvipsone, dvipdf, if not using dvips). graphicx % will default to the driver specified in the system graphics.cfg if no % driver is specified. % \usepackage[dvips]{graphicx} % declare the path(s) where your graphic files are % \graphicspath{{../eps/}} % and their extensions so you won't have to specify these with % every instance of \includegraphics % \DeclareGraphicsExtensions{.eps}\fi% graphicx was written by David Carlisle and Sebastian Rahtz. It is% required if you want graphics, photos, etc. graphicx.sty is already% installed on most LaTeX systems. The latest version and documentation can% be obtained at: % http://www.ctan.org/tex-archive/macros/latex/required/graphics/% Another good source of documentation is "Using Imported Graphics in% LaTeX2e" by Keith Reckdahl which can be found as epslatex.ps or% epslatex.pdf at: http://www.ctan.org/tex-archive/info/%% latex, and pdflatex in dvi mode, support graphics in encapsulated% postscript (.eps) format. pdflatex in pdf mode supports graphics% in .pdf, .jpeg, .png and .mps (metapost) formats. Users should ensure% that all non-photo figures use a vector format (.eps, .pdf, .mps) and% not a bitmapped formats (.jpeg, .png). IEEE frowns on bitmapped formats% which can result in "jaggedy"/blurry rendering of lines and letters as% well as large increases in file sizes.%% You can find documentation about the pdfTeX application at:% http://www.tug.org/applications/pdftex%\usepackage{ps4pdf}% dvi->ps workflow is required to use such packages as psfrag.sty and% pstricks.sty. However, Rolf Niepraschk's ps4pdf.sty provides a way to% apply psfrag/pstricks effects to .eps figures and then get the resultant% figures in .pdf form. Thus, providing an easier way for migrating from% .eps to .pdf figures. After ps4pdf.sty loads, if:% 1. producing .dvi output: the output file will consist ONLY of the% figures (or other constructs encased within \PSforPDF commands)% 2. producing .pdf output: pdflatex will look in the filename-pics.pdf% file, where filename is the basename of the tex document, for the% graphics (or other constructs encased within \PSforPDF commands).% NOTE: If you ever change your figures, you must remember to remake% the filename-pics.pdf file.%% This way you can do a:% % latex filename% dvips -Ppdf -o filename-pics.ps filename.dvi% ps2pdf filename-pics.ps filename-pics.pdf% % to produce a filename-pics.pdf graphics container that contains% .pdf versions of the graphics with psfrag, pstricks, etc. features.% Note that you will not typically be able to view the figures in % filename-pics.ps because of an offset. However, you will be able to% view them in filename-pics.pdf. Also, note that when ps4pdf is in effect% with .dvi output, you may get harmless over/under full box warnings - % ignore them. % Then, run pdflatex:% % pdflatex filename% % to use pdflatex to make PDF output, automatically using the figures in% filename-pics.pdf. Alternatively, you could use dvips -i option to% obtain separate .pdf files for each figure:%% dvips -Ppdf -i -E -o fig filename%% then convert each figure to pdf via a command such as epstopdf and then% use pdflatex with these pdf figures and then to dispense with ps4pdf.%% Remember to rerun through latex/dvips/ps2pdf if you ever change your% figures so that filename-pics.pdf gets updated.% ps4pdf requires David Kastrup's preview-latex and a recent LaTeX system% (circa 2001 or later). The ps4pdf package and documentation can be% obtained at: http://www.ctan.org/tex-archive/macros/latex/contrib/ps4pdf/% The preview-latex package and documentation can be obtained at:% http://www.ctan.org/tex-archive/macros/latex/contrib/preview/%% provide a bogus \PSforPDF, even when not loading pd4pdf. This way we can% stop loading ps4pdf.sty if we choose to make separate .pdf versions of% each of our figures.\providecommand{\PSforPDF}[1]{#1}% Note that in order for ps4pdf to work, all commands related to psfrag,% pstricks, etc. must be called within the PSforPDF command. This applies% even when *loading* via \usepackage psfrag.sty, etc.%\PSforPDF{\usepackage{psfrag}}% psfrag.sty was written by Craig Barratt, Michael C. Grant, and% David Carlisle. It allows you to substitute LaTeX commands for text in% imported EPS graphic files. In this way, LaTeX symbols can be placed into% graphics that have been generated by other applications. You must use% latex->dvips->ps2pdf workflow (not direct pdf output from pdflatex) if% you wish to use this capability because it works via some PostScript% tricks. Alternatively, the graphics could be processed as separate files% via psfrag and dvips, then converted to PDF for inclusion in the main file% which uses pdflatex. ps4pdf.sty (above) provides a way of doing this all% at once within the main file.% Docs are in "The PSfrag System" by Michael C. Grant and David Carlisle.% There is also some information about using psfrag in "Using Imported% Graphics in LaTeX2e" by Keith Reckdahl which documents the graphicx% package (see above). The psfrag package and documentation can be obtained
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -