I recently write a lot of tables in my tex documents. I would like to hide the table block when I am editing otherwise it will be messy.
here is the documents:
\documentclass{article}
\begin{document}
\begin{table}[htbp]
\centering
\begin{tabular}{c|c|c}
\hline
My & Name & is \\
What's & your & name\\
\hline
\end{tabular}
\caption{My table}
\end{table}
\end{document}
Since I am using Emacs with AucTeX (under windows7), I would like to hide table block as below:
\begin{table}...\end{table}
I am try to define
(add-to-list 'hs-special-modes-alist
'(LaTeX-mode
"\\\\begin" ;; regexp for start block
"\\\\end" ;; regexp for end block
"%" ;; regexp for comment start
nil
nil))
But I didn't get what I want. Can anyone help here? thanks a lot!