latextemplates / scientific-thesis-template

LaTeX template for Master, Bachelor, Diploma, and Student Theses
http://latextemplates.github.io/scientific-thesis-template/
BSD Zero Clause License
357 stars 120 forks source link

Italics and bold do not work in body text #110

Closed datMaffin closed 4 years ago

datMaffin commented 4 years ago

Changing the body text to italic (with \textit{}) or bold (with textbf{}) does not result in an italic or bold text in the pdf.

I was able to fix it by changing the \setmainfont in https://github.com/latextemplates/scientific-thesis-template/blob/master/config.tex#L88 from

  \setmainfont{TeXGyreTermes-Regular}

to

  \setmainfont{TeXGyreTermes-Regular}[
       BoldFont       = TeXGyreTermes-Bold ,
       ItalicFont     = TeXGyreTermes-Italic ,
       BoldItalicFont = TeXGyreTermes-BoldItalic ]
koppor commented 4 years ago

Thank you for reporting and proposing a fix.

Could you please file a pull request?

datMaffin commented 4 years ago

Well, it was not my intention to already close the issue (I am going to reopen it again, if possible):

I am only able to verify the fix in the current MacTex / TexLive 2019. I do not have MikTex, which seems to be the officially supported platform for this template.

I created the pull request: https://github.com/latextemplates/scientific-thesis-template/pull/111