pzhaonet / bookdownplus

The easiest way to use R package bookdown for writing varied types of books and documents
MIT License
255 stars 32 forks source link

Environment Shaded undefined #52

Open Gnossos opened 4 years ago

Gnossos commented 4 years ago

The issue "scrpage2.sty not found" seems to be fixed, so far as it goes.

But when I ran "bd('ubt')" LaTeX threw another error: "Environment Shaded undefined."

Also, I made the mistake of trying this in the midst of an ongoing project. It might be a good idea to warn users that when ubt runs, BookdownPlus will make many changes to the existing project. It took me over an hour to track down and change things back to what they were.

pzhaonet commented 4 years ago

Thank you for your feedback.

The "ubt" template was originated from my dissertation. Normally such a dissertation does not need the Environment Shaded. If you need it, you might simply follow this solution:

Regarding the warning you mentioned, yes it is a good idea. Technically bookdownplus is intended to create a bookdown project. When you are in the midst phase of an ongoing project, please use bookdown to build your book, or the ctrl+shift+b hotkey in RStudio.