4

Pertaining exactly to the topic of this question which asks about the various auxiliary files produced by tex and friends, I'd like to ask specifically about the .fof file extension. If the main file is main.tex, a main.fof is created.

I am asking here because I thought that this was a side-effect file that shall be automatically created and therefore ignored this in my VCS. However, after cloning the repository in another computer, luatex complained that this fof file was missing.

What is an fof file, and what information does it convey to the compiler?

1 Answers1

10

If you suspect a package is generating a file name (or any other fixed string) you can search the tex input tree:

grep '\bfof\b' /usr/local/texlive/2018/texmf-dist/tex/latex/*/*.sty

produces

/usr/local/texlive/2018/texmf-dist/tex/latex/chkfloat/chkfloat.sty:% make \@caption write to a file .fof the information about final page, original page and float caption
/usr/local/texlive/2018/texmf-dist/tex/latex/chkfloat/chkfloat.sty:  \addtocontents{fof}{\protect\chkfloat@{\thepage}{\chkfloat@page}{\csname fnum@#1\endcsname: #2}}%
/usr/local/texlive/2018/texmf-dist/tex/latex/chkfloat/chkfloat.sty:% process the file .fof
/usr/local/texlive/2018/texmf-dist/tex/latex/chkfloat/chkfloat.sty:\@starttoc{fof}

which shows that this is float data used by the checking package.

(grep is a unix/linux tool but any search program would work here)

The regex keyword \b is used above to indicate word boundaries, which helps to narrow down the search output considerably to a smaller list that is easily parsable by the human eye.

David Carlisle
  • 757,742