Warning, /office/kile/src/data/help/HOWTO-update-latex-doc.txt is written in an unsupported language. File is not indexed.

0001 The source file for the "LaTeX2e unofficial reference manual" can downloaded via:
0002 
0003 svn checkout http://svn.gnu.org.ua/sources/latexrefman/trunk
0004 
0005 The Texinfo source file "latex2e.texi" is converted into multiple HTML files with:
0006 
0007 texi2any --html ../trunk/latex2e.texi --internal-links=internal-links.txt
0008 
0009 Don't forget to copy over the css files.
0010 
0011 The next step is to create an .index file for Kile, given pointers for LaTeX commands and environments into the reference manual:
0012 
0013 cat internal-links.txt  | grep "environment" > env.txt
0014 cat internal-links.txt  | grep "\\\\" > commands.txt
0015 
0016 Extract the necessary columns:
0017 
0018 awk ' { print $3 "\t" $1 } ' env.txt > env-curated.txt
0019 awk ' { print $3 "\t" $1 } ' commands.txt > commands-curated.txt
0020 
0021 and the filter the -curated files manually to exclude unwanted entries.
0022 
0023 As a last step, rename the Index.file (to avoid having a file named 'index.html' and 'Index.html' in one directory):
0024 
0025 mv Index.html IndexDocument.html
0026 sed -i 's/Index.html/IndexDocument.html/g' *
0027 
0028 
0029 (To remove all symbolic links:
0030 
0031 find . -maxdepth 1 -type l   -print0  | xargs -0 rm)