latexindent はTeX ファイルを視覚的に綺麗に整形するためのツールである. &
による整列などを視覚的に綺麗にすることが出来る.
例えば,以下のようなtabular 環境に対してlatexindent を使用して整形することが出来る.
tabular.tex (before)
\begin{tabular}{ccc} \hline
# -*- coding: utf-8 -*- | |
import numpy as np | |
from scipy.sparse.linalg import cg | |
import tensorflow as tf | |
import time | |
def conjugate_grad(A, b, x=None): | |
""" |