Uploading papers to ArXiV
Quick overview
- Make sure
arxiv_latex_cleaneris installed (see section 2) - Copy all the relevant files into a folder, say
public_relevant_files- Rerun the latex to make sure the new set of files produce the same pdf.
- Run
python -m arxiv_latex_cleaner /path/to/public_relevant_filesto generate a folder/path/to/public_relevant_files_arXiv. This folder will contain the comments stripped tex files and a filtering of the files relevant for arXiv upload. - Rerun the latex in the folder
public_relevant_filesto make sure the new set of files produce the same pdf as inpublic_relevant_files.- You may have to copy over all the figures again,
since
arxiv_latex_cleanermay do some unnecessary image manipulation.
- You may have to copy over all the figures again,
since
- Make arXiv-specific edits (see section 3)
- Produce the arXiv-ready PDF
- Check the arXiv-ready PDF (see section 4)
- Perform
latexmk -Cin the new folder to remove irrelevant figures. - Zip the folder
arxiv_generic_arXivand upload. - Delete the
public_relevant_filesfolder if needed
Setup
- Clone the git repository
https://github.com/google-research/arxiv-latex-cleaner - Do
python setup.py installto make it like a command line`
arXiv-specific edits in public_relevant_files_arXiv folder
- Get the generic template for arxiv from
https://github.com/kourgeorge/arxiv-style.
- Note that you can get the
styfile directly by using the link https://github.com/kourgeorge/arxiv-style/raw/master/arxiv.sty. - Copy over the
arxiv.styinto thepublic_relevant_files_arXivfolder.
- Note that you can get the
- Preamble: Instead of the conference/journal specific
commands, use the following preamble
\documentclass{article} % \usepackage{arxiv} \usepackage{bookmark} - Document heading
\title{TITLE OF THE PAPER\thanks{Funding blurb}} \author{ Author 1\thanks{Author 1 info} , % Spacing helps the symbol Author 2\thanks{Author 2 info} , and Author 3\thanks{Author 3 info} } \date{} \chead{SHORT TITLE} % Otherwise thanks will ruin it \renewcommand{\headeright}{} % To remove the Preprint \renewcommand{\undertitle}{} % To remove the Preprint \begin{document} \maketitle - Keyword
\keywords{KEYWORD1 \and KEYWORD2 \and KEYWORD3} - Bibliography
- Copy over
original_tex_file.bblinto thepublic_relevant_files_arXivfolder asarxiv.bbl. - Add
\input{arxiv.bbl}to the end of the file instead of the bibliography commands. - We avoid using the same file name as the
original_tex_file.bblto avoidlatexmkfrom overwriting it.
- Copy over
Checks
- Make sure linebreaks that were built-in for two-column format are now removed
- Make sure equations are single lined, when possible, to reduce the page length.
- Figures:
- Tikz-based figures might have to replaced with screenshots of the original paper.
- Make sure figures are placed correctly. Sometimes figures that were forced to below each other can now be placed side-by-side.
- Remove all
.figand.svgfiles - Remove any extraneous files.
- Use
\adjustbox{width=DESIRED_WIDTH}{BLAHBLAH}to resize tables to the desired shape.
Creating a diff pdf
Use
latexdiff --type=BOLD initial_subm.tex revised_subm.tex > diff.tex
to create a diff file that only highlights the new changes, and ignores deletion.
To change from bold to color, use
\providecommand{\DIFadd}[1]{{\protect\color{blue}#1}}
%instead of
%\providecommand{\DIFadd}[1]{{\bf #1}} %DIF PREAMBLE
instead of the generated \DIFadd command in the
diff.tex.
Similarly, to see the removed parts, use
\providecommand{\DIFdel}[1]{{\protect\color{red}#1}} %DIF PREAMBLE
%instead of
%\providecommand{\DIFdel}[1]{} %DIF PREAMBLE
Biography photos
Using GIMP 2.8 to satisfy IEEE photos
- Image > Mode > Grayscale
- Image > Scale image (Correct for dpi and photo size)
- Image > Canvas size (Crop and reposition)