]> git.lyx.org Git - lyx.git/commitdiff
Add some documentation for findtexfile
authorGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Tue, 9 Jan 2007 19:10:29 +0000 (19:10 +0000)
committerGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Tue, 9 Jan 2007 19:10:29 +0000 (19:10 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16632 a592a061-630c-0410-9148-cb99ea01b6c8

src/support/filetools.h

index 7de0b67a5642385425e5b3a1ab4ed9cefca30eed..3def1d77e34ec775dbbac18dae3b19a55bb37757 100644 (file)
@@ -283,7 +283,14 @@ bool readLink(std::string const & file,
              std::string & link,
              bool resolve = false);
 
-/// Uses kpsewhich to find tex files
+/**
+ * Search a TeX file in all locations the latex compiler would search it,
+ * with the help of kpsewhich.
+ * The current working directory must be set correctly, so that relative
+ * names work.
+ * \param fil The filename to search
+ * \param format The file format as used by kpsewhich, e.g. "bib", "bst" etc.
+ */
 FileName const findtexfile(std::string const & fil,
                              std::string const & format);