This is the Bitcoin Lightning Network paper.
Paper PDF: http://lightning.network/lightning-network-paper.pdf
#Compiling/Editing
Paper is in LaTeX format. Diagrams are in dia, but may remake the diagrams in inkscape for cleanliness.
If you're not familiar with latex, updating bibliography requires running:
pdflatex new.tex
bibtex new
pdflatex new.tex
pdflatex new.tex
requires dia
cd figures
python dia2pdf.py
By default, there is a text width of 80 characters unless there is an explicit need to go longer.
If you want to do formatting of paragraphs, the vim settings are:
:set tw=80
If you want to reflow text, it's
<ESC>gqj
If you want to reflow an entire paragraph, it's
<ESC>gq}
There are a couple places where reflowing will break (primarily in figures where it's sensitive to linebreaks).