Lab-Handbooks

Tools for Writing Papers

This is my toolchain when I start to write a paper. You can follow the guidelines below to improve your productivity.

Toolchain to write papers

How to revise the paper

How to organize the files

\usepackage[small, compact]{titlesec}
\titlespacing*{\section}{0pt}{4pt}{3pt}
\titlespacing*{\subsection}{0pt}{3pt}{3pt}

\usepackage[subtle, lists=tight]{savetrees} % Reduce the space between words and letters.

\widowpenalty=0  % Do not penalize widow and orphan lines
\clubpenalty=0   % Allow the end of a paragraph to overflow to the next page
\brokenpenalty=0 % Allow the beginning of a paragraph to begin from the prev page

\def\UrlBreaks{\do\A\do\B\do\C\do\D\do\E\do\F\do\G\do\H\do\I\do\J
	\do\K\do\L\do\M\do\N\do\O\do\P\do\Q\do\R\do\S\do\T\do\U\do\V
	\do\W\do\X\do\Y\do\Z\do\[\do\\\do\]\do\^\do\_\do\`\do\a\do\b
	\do\c\do\d\do\e\do\f\do\g\do\h\do\i\do\j\do\k\do\l\do\m\do\n
	\do\o\do\p\do\q\do\r\do\s\do\t\do\u\do\v\do\w\do\x\do\y\do\z
	\do\.\do\@\do\\\do\/\do\!\do\_\do\|\do\;\do\>\do\]\do\)\do\,
	\do\?\do\'\do+\do\=\do\#}

\usepackage[justification=RaggedRight,labelfont=bf,font=small,textfont=normalfont,tableposition=below]{caption}

\setlength{\abovecaptionskip}{0.3em plus 0.2em minus 0.2em}
\setlength{\floatsep}{0.3em plus 0.2em minus 0.2em}
\setlength{\textfloatsep}{0.5em plus 0.2em minus 0.2em}
\setlength{\intextsep}{0.5em plus 0.2em minus 0.2em}
\setlength{\dbltextfloatsep}{0.5em plus 0.2em minus 0.2em}
\setlength{\dblfloatsep}{0.3em plus 0.2em minus 0.2em}
\setlength{\subfigcapskip}{-.5em}
\setlength{\subfigbottomskip}{0em}

\setlength{\textheight}{9in}
\setlength{\voffset}{-0.2in}

\setitemize{leftmargin=4mm}
\setenumerate{leftmargin=4mm}
\setlist{noitemsep,topsep=0pt,parsep=0pt,partopsep=0pt}

How to make plots

fig.update_layout(
    margin=dict(l=0, r=0, t=0, b=0),
    autosize=False,
    width=240,
    height=160,
)

How to make illustrations

How to write the paper without the Internet?