kks32 / phd-thesis-template

A LaTeX / XeLaTeX / LuaLaTeX PhD thesis template for Cambridge University Engineering Department (CUED)
http://www-h.eng.cam.ac.uk/help/tpl/textprocessing/ThesisStyle/
MIT License
833 stars 400 forks source link

Too many }'s. \color@endbox ->\color@endgroup \egroup #195

Open ZuyuanZhu opened 5 years ago

ZuyuanZhu commented 5 years ago

Hi,

I met the error as below:

<Chapter2/Figs/Vector/WallE.eps> ! Too many }'s. \color@endbox ->\color@endgroup \egroup

I googled the error, most of the solutions related to the 'xfloat' definition, while in the PhDThesisPSnPDF.cls that used in the 'thesis.tex', 'xfloat' is not defined. Any thoughts would be appreciated.

Here is the thesis.log thesis.log

kks32 commented 5 years ago

Hi! Are you getting this error when you download the template and compile it?

Have you modified the template? This error usually means, you have accidentally opened an extra { and forgot to close it. Comment out sections in Chapter 2 to find out where this might be the case, looks like it's near the figure definition for WallE

ZuyuanZhu commented 5 years ago

Hi! Are you getting this error when you download the template and compile it?

Have you modified the template? This error usually means, you have accidentally opened an extra { and forgot to close it. Comment out sections in Chapter 2 to find out where this might be the case, looks like it's near the figure definition for WallE

Hi, Krishna Thank you for your reply. I just download the source pkg again and run the 'latexmk -xelatex thesis.tex' command. The same error repeats:

<Chapter2/Figs/Vector/minion.eps> ! Too many }'s. \color@endbox ->\color@endgroup \egroup
l.30 \end{figure}
?

In the initial post, I tried to replace the original figure name, but unluckily, the error persists.

The problem is related to the figure displaying, I am considering to use another graphics package now.

BTW, I installed the texlive-full package:

sudo apt update && sudo apt install texlive-full

Many thanks! Zuyuan

Here is the thesis.log thesis.log

kks32 commented 5 years ago

Hi @ZuyuanZhu I'm unable to reproduce the error on a fresh build. Please try again by cloning this repo again from scratch and see if you have the same problem. As I mentioned previously, I think an accidental change may have caused this with an extra {. So please try a fresh clone and build

ZuyuanZhu commented 5 years ago

Hi @ZuyuanZhu I'm unable to reproduce the error on a fresh build. Please try again by cloning this repo again from scratch and see if you have the same problem. As I mentioned previously, I think an accidental change may have caused this with an extra {. So please try a fresh clone and build

Thank you! I have tried just as you said. It's still not working. I even cleaned the texlive and reinstalled it many times from different sources. I am sure it's the Ubuntu system's problem. Maybe some essential dependencies are not installed. All the figures and tables are not displaying.

Screenshot from 2019-05-15 17:41:23

The Ubuntu texlive drives me crazy! Just switched to the latest versions of Windows MikTeX and TeXstudio. Now everything works!

kks32 commented 5 years ago

Hi @ZuyuanZhu Not the TeXLive, but the thesis template repository. Could you comment out chapter2.tex in thesis.tex file and see if it compiles without any issues?

ZuyuanZhu commented 5 years ago

Hi @ZuyuanZhu Not the TeXLive, but the thesis template repository. Could you comment out chapter2.tex in thesis.tex file and see if it compiles without any issues?

I tried before with the 'chapter' mode one chapter by one chapter. Only chapter 1 compiles well, as the other two chapters have either figures or tables. I also tested my previous latex project which works well under windows, but it's still not working with Ubuntu. It's definitely Ubuntu's problem. Unfortunately, the texlive does not give meaningful error feedback.