## LaTeX forum ⇒ Texmaker and TeXstudio ⇒ Problem while compiling

Information and discussion about Texmaker, an integrated LaTeX environment for several platforms, and the related TeXstudio
Tolaso
Posts: 37
Joined: Tue Dec 20, 2016 12:23 am

### Problem while compiling

So,

I updated from 2015 tl version to 2016 and reinstalled the texstudio editor. Now nothing compiles. I have never used XeLaTeX in my documents yet I am receiving an error

"Fatal error Fontspec"

bla bla bla.. I don't have this package loaded in the preamble and the document compiled before updating the version of tl. What can possibly go wrong?

If you wish I can give you the entire preamble... ( although it's quite long )

Tags:

Stefan Kottwitz
Posts: 9444
Joined: Mon Mar 10, 2008 9:44 pm
You can post the preamble as .txt file attachment. Also, it would be good to post the .log file as attachment, since it contains warnings and error messages. The attachment link is below the text edit field, when writing a post.

Stefan

Tolaso
Posts: 37
Joined: Tue Dec 20, 2016 12:23 am
Hi Stefan,

sorry for not replying earlier but I was kinda busy and since it was not something urgent I delayed it a bit.

Here is the preamble


The error says:

! Fatal fontspec error: "cannot-use-pdftex"
!
! The fontspec package requires either XeTeX or LuaTeX to function.
!
! You must change your typesetting engine to, e.g., "xelatex" or "lualatex"
! instead of plain "latex" or "pdflatex".
!
! See the fontspec documentation for further information.
!
! For immediate help type H <return>.
!...............................................
l.43 }
|'''''''''''''''''''''''''''''''''''''''''''''''
| This is a fatal error: LaTeX will abort.
|...............................................
) ) )
Here is how much of TeX's memory you used:
8333 strings out of 493089
152185 string characters out of 6138425
186051 words of memory out of 5000000
11803 multiletter control sequences out of 15000+600000
3940 words of font info for 15 fonts, out of 8000000 for 9000
1141 hyphenation exceptions out of 8191
45i,1n,41p,10413b,87s stack positions out of 5000i,500n,10000p,200000b,80000s
No pages of output.
PDF statistics:
0 PDF objects out of 1000 (max. 8388607)
0 named destinations out of 1000 (max. 500000)
1 words of extra memory for PDF output out of 10000 (max. 10000000)

As you can see there is no fontspec package in the preamble and I don't know what's causing the error. I am compiling with PDF LaTeX + View PDF.

Note: In this document I am still using TeX Live 2015 but similar errors are being caused to the other documents that are run by 2016. But lets fix this one first as it is the most important project I am developing right now.

The complete log file

log_file.txt

Johannes_B
Site Moderator
Posts: 4044
Joined: Thu Nov 01, 2012 4:08 pm
Package fontawesome is only usable with XeTeX or LuaTeX with TeX Live 2015. With a modern installation, the package can be used with pdflatex as well.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

Tolaso
Posts: 37
Joined: Tue Dec 20, 2016 12:23 am
Hmm.. that is the preamble that ran before the update and everything was running properly ... I did not have any problem compiling the document ...

How would I proceed then now ?

Johannes_B
Site Moderator
Posts: 4044
Joined: Thu Nov 01, 2012 4:08 pm
Consider if you need package fontawesome. If you don't need it, put a percent sign at the very beginning of the line or remove the line completely.

If you do need it, you can manually update from CTAN -> fontawesome. But i don't know if there are other dependencies that may arise from that.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

thomasb
Posts: 132
Joined: Thu Aug 03, 2017 10:54 am
This works here :

Tolaso
Posts: 37
Joined: Tue Dec 20, 2016 12:23 am
Yeah it used to work on me too before ... what tl version do you have ?

Tolaso
Posts: 37
Joined: Tue Dec 20, 2016 12:23 am
Johannes_B wrote:Consider if you need package fontawesome. If you don't need it, put a percent sign at the very beginning of the line or remove the line completely.

If you do need it, you can manually update from CTAN -> fontawesome. But i don't know if there are other dependencies that may arise from that.

The best for me right now is to update all packages running the command line ..!!

.... and one day get away from Windows for good !!

Johannes_B
Site Moderator
Posts: 4044
Joined: Thu Nov 01, 2012 4:08 pm
Updating packages (especially by hand) can cause problems and your document might not compile anymore. This should be mentioned, especially if you are on a deadline.

Out of interest, what do you need package fontawesome for?
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.