I have tried to troubleshoot a problem for several days and cannot solve it.
I have a LaTeX document that compiles on two computers but not on a third computer. (Other documents have compiled fine on the third computer, which is relatively new.) All three computers have the MikTeX 2.9 distribution that are all up to date, all use emacs 24.3.1, AUCTeX 11.86, and Windows 7. I have set MikTeX to download packages on the fly so I believe that I have identical packages downloaded. My master document brings in three files via \include. I am reading the files from a portable HD into all three computers. EDIT: Put differently, I am compiling the files on all three computers from files that reside on a single portable HD that I am moving to each computer.
I cannot figure why the document does not compile on the third computer. I believe the problem relates to either the table of contents or section headings of the document because the .toc file is empty (size = 0) after compiling on this computer.
The error message is:
ERROR: Missing control sequence inserted. --- TeX said --- <inserted text> \inaccessible l.1 ...m \z@ {[1][-]}\futurelet \@let@token \let [ -]{chapter.14}{Economic Da... --- HELP --- This is probably caused by a \newcommand, \renewcommand, \newlength, or \newsavebox > command whose first argument is not a command name.
The reference to Chapter 14 in the error message is one of the three files brought in via \include.
I tried going through the log file and see some potential problems but I cannot interpret them. Attached is the log file and the issues I observe begin around line 1295. EDIT: This portion of the log is at the bottom.
I believe the issue is probably some kind of TeX installation problem. I hope someone can point me in the right direction because I am stuck.
Portion of Log:
(r:\writing_other\aicpa_forensicaccounting\book_fa_content\fa_wrap.aux
(r:\writing_other\aicpa_forensicaccounting\book_fa_content\fa_damages_content.a
ux
! Extra }, or forgotten \endgroup.
l.11 ... wrong--perhaps a missing \protect \let }}
} } } } }
I've deleted a group-closing symbol because it seems to be
spurious, as in `$x}$'. But perhaps the } is legitimate and
you forgot something else, as in `\hbox{$x}'. In such cases
the way to recover is to insert both the forgotten and the
deleted material, e.g., by typing `I$}'.
! Extra }, or forgotten \endgroup.
l.11 ...rong--perhaps a missing \protect \let }} }
} } } }
I've deleted a group-closing symbol because it seems to be
spurious, as in `$x}$'. But perhaps the } is legitimate and
you forgot something else, as in `\hbox{$x}'. In such cases
the way to recover is to insert both the forgotten and the
deleted material, e.g., by typing `I$}'.
! Extra }, or forgotten \endgroup.
l.11 ...ng--perhaps a missing \protect \let }} } }
} } }
I've deleted a group-closing symbol because it seems to be
spurious, as in `$x}$'. But perhaps the } is legitimate and
you forgot something else, as in `\hbox{$x}'. In such cases
the way to recover is to insert both the forgotten and the
deleted material, e.g., by typing `I$}'.
! Extra }, or forgotten \endgroup.
l.11 ...--perhaps a missing \protect \let }} } } }
} }
I've deleted a group-closing symbol because it seems to be
spurious, as in `$x}$'. But perhaps the } is legitimate and
you forgot something else, as in `\hbox{$x}'. In such cases
the way to recover is to insert both the forgotten and the
deleted material, e.g., by typing `I$}'.
! Extra }, or forgotten \endgroup.
l.11 ...perhaps a missing \protect \let }} } } } }
}
I've deleted a group-closing symbol because it seems to be
spurious, as in `$x}$'. But perhaps the } is legitimate and
you forgot something else, as in `\hbox{$x}'. In such cases
the way to recover is to insert both the forgotten and the
deleted material, e.g., by typing `I$}'.
! Extra }, or forgotten \endgroup.
l.11 ...rhaps a missing \protect \let }} } } } } }
I've deleted a group-closing symbol because it seems to be
spurious, as in `$x}$'. But perhaps the } is legitimate and
you forgot something else, as in `\hbox{$x}'. In such cases
the way to recover is to insert both the forgotten and the
deleted material, e.g., by typing `I$}'.
! Extra }, or forgotten \endgroup.
l.14 ...rong--perhaps a missing \protect \let } }
}
I've deleted a group-closing symbol because it seems to be
spurious, as in `$x}$'. But perhaps the } is legitimate and
you forgot something else, as in `\hbox{$x}'. In such cases
the way to recover is to insert both the forgotten and the
deleted material, e.g., by typing `I$}'.
! Extra }, or forgotten \endgroup.
l.14 ...ng--perhaps a missing \protect \let } } }
I've deleted a group-closing symbol because it seems to be
spurious, as in `$x}$'. But perhaps the } is legitimate and
you forgot something else, as in `\hbox{$x}'. In such cases
the way to recover is to insert both the forgotten and the
deleted material, e.g., by typing `I$}'.
! Extra }, or forgotten \endgroup.
l.17 ...rong--perhaps a missing \protect \let } }
}
I've deleted a group-closing symbol because it seems to be
spurious, as in `$x}$'. But perhaps the } is legitimate and
you forgot something else, as in `\hbox{$x}'. In such cases
the way to recover is to insert both the forgotten and the
deleted material, e.g., by typing `I$}'.
! Extra }, or forgotten \endgroup.
l.17 ...ng--perhaps a missing \protect \let } } }
I've deleted a group-closing symbol because it seems to be
spurious, as in `$x}$'. But perhaps the } is legitimate and
you forgot something else, as in `\hbox{$x}'. In such cases
the way to recover is to insert both the forgotten and the
deleted material, e.g., by typing `I$}'.
))
\listfilesat the end of your header, which causes the versions of your used packages to get output to the log. You could compare those, maybe you use an old package on one. – Juri Robl Mar 11 '14 at 20:42\documentclass{...}and ending with\end{document}. There's surely a much smaller version document you can attach that shows the same problem. For our purposes, both emacs and AucTeX are irrelevant, only your file content and the MiKTeX files matter. – Mike Renfro Mar 11 '14 at 20:46\end{document}until the error goes away then you can find the offending part. – percusse Mar 11 '14 at 20:59\endinput. Compile and move this line step by step to top. Hopefully at some point everything works. Then you must look, what is the causing error. – Speravir Mar 12 '14 at 00:17\listfiles) using the option-file-line-error; this often helps pin down which line on which file is causing trouble. (I assume this option exists on Windows, but I'm not sure.) And bear in mind that even if it is an 'install' problem, it is a (sort of) coding problem because something is calling some bit of the installation that isn't working properly. You need to find the line that is causing this. Also, part of the MWE methodology is to keep narrowing down your file, ideally by halfing the amount included after each unsuccessful attempt. (This shouldn't take many days.) – jon Mar 12 '14 at 00:34-halt-on-error, what stops on first occurring error. – Speravir Mar 12 '14 at 01:22-file-line-errorhas come in handy for me for a few large projects with (many) included files... – jon Mar 12 '14 at 01:47.logat exactly the same place. More importantly, from the terminal, the default is not to run in non-interactive mode, which means it halts on error and exactly at that error. Anyway, the advantage of-file-line-erroris that when you have\include-ed or\input-ed files, it notes the error for the line in the actual included file rather than the masterfile. – jon Mar 12 '14 at 05:46\listfilesto your document and add\end{document}directly after\begin{document}. Delete the .aux-files. Then you will probably be able to compile and get the file list. Also Speravir wrote about an user update (with the update manager) not simply a FNDB refresh (which is quite senseless as all files are found). – Ulrike Fischer Mar 12 '14 at 08:10\listfileson both computers allowed me to identify MikTeX packages on each computer and then I diffed the two listings. My problem ended up being the pgf files. I ended up rolling back to the older pgf files that were on the computer that compiled the document successfully. – Mike C Mar 12 '14 at 21:47