LaTeX forum ⇒ Texmaker and TeXstudioProblem while compiling

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

Problem while compiling

Postby Tolaso » Fri Aug 25, 2017 9:11 pm

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:

User avatar
Stefan Kottwitz
Site Admin
Posts: 8534
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:

Postby Stefan Kottwitz » Fri Aug 25, 2017 9:32 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
Site admin

Tolaso
Posts: 31
Joined: Tue Dec 20, 2016 12:23 am

Postby Tolaso » Sat Aug 26, 2017 7:54 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

  1. \documentclass[11pt]{article}
  2. \usepackage{amsmath}
  3. \usepackage{amsfonts}
  4. \usepackage{amssymb}
  5. \usepackage{amsthm}
  6. \usepackage[lmargin=0.7cm, rmargin=1cm, vmargin=1.5cm]{geometry}
  7. \renewcommand{\qedsymbol}{$\blacklozenge$}
  8. \usepackage[english]{babel}
  9. \usepackage[utf8]{inputenc}
  10. \usepackage{eulervm}
  11. \usepackage{esint}
  12. \usepackage{fontawesome}
  13. \usepackage{fancyhdr}
  14. \pagestyle{fancy}
  15. \fancyhf{}
  16. \lhead{Mathematical Analysis ... }
  17. \chead{... \textit{A collection of problems}}
  18. \rhead{Version 5}
  19. \cfoot{\thepage}
  20. \lfoot{Typesetting \LaTeX }
  21. \rfoot{\textbf{Editor:} Tolaso J. Kos}
  22. \renewcommand{\headrulewidth}{2pt}
  23. \renewcommand{\footrulewidth}{0.5pt}
  24.  
  25. \usepackage{tcolorbox}
  26.  
  27.  
  28. \usepackage{tikz}
  29. \usetikzlibrary{intersections,backgrounds}
  30. \usepackage[shortlabels]{enumitem}
  31. \usepackage{bigints}
  32. \usepackage{cancel}
  33. \usepackage{multicol}
  34. \setlength{\parskip}{\baselineskip}%
  35. \setlength{\parindent}{0.5pt}%
  36. \usepackage{xcolor}
  37.  
  38. %definition of custom colours
  39.  
  40. \definecolor{DarkRed}{RGB}{139,0,0}
  41. \definecolor{DarkBlue}{RGB}{102, 153, 255}
  42. \definecolor{LightBlue}{RGB}{51, 102, 255}
  43.  
  44.  
  45. \usepackage{hyperref}
  46. \hypersetup{colorlinks=true, linkbordercolor=DarkRed,linkcolor=green}
  47.  
  48.  
  49. %tasks option
  50.  
  51. \setlist[enumerate]{wide = 0pt, leftmargin=*}
  52. \usepackage{tasks}
  53. \settasks{counter-format =(tsk[r]), label-align=right, label-width=1.75em, item-indent=-2em }
  54.  
  55. %macro definition for arcot
  56.  
  57. \DeclareMathOperator{\arccot}{{\rm arccot}}
  58.  
  59. %definition of foonote using fontawesome
  60.  
  61. \renewcommand{\thefootnote}{\faDatabase}
  62.  
  63. %change qed symbol
  64.  
  65. \renewcommand\qedsymbol{$\blacklozenge$}
  66.  
  67. %allow page break equations
  68.  
  69. \allowdisplaybreaks
  70.  
  71. %macro definition for displaying text when no solution exists.
  72.  
  73. \newcommand{\nosol}{\textit{Currently there is no solution for this exercise.}}
  74.  
  75. %macro definition for editor note.
  76.  
  77. \newcommand{\editornote}{\textit{The editor's solution is pretty ugly and is looking for a new one. Feel free to contribute by sending him one. Your solution shall be published in the very next booklet update.}}
  78.  
  79. \newcommand{\sol}[1]{\textit{The following solution is due to #1 .}}
  80.  
  81.  
  82. \usepackage{afterpage}
  83.  
  84. \makeatletter
  85. % Macro \changepagecolor has the same syntax as \pagecolor or \color
  86. % with an optional argument and a mandatory argument.
  87. \newcommand*{\changepagecolor}{%
  88. \@ifnextchar[\@changepagecolor@i\@changepagecolor@ii
  89. }
  90. % Case: \changepagecolor[...]{...}
  91. \def\@changepagecolor@i[#1]#2{%
  92. \@changepagecolor@do{[{#1}]{#2}}%
  93. }
  94. % Case: \changepagecolor{...}
  95. \newcommand*{\@changepagecolor@ii}[1]{%
  96. \@changepagecolor@do{{#1}}%
  97. }
  98. \newcommand*{\@changepagecolor@do}[1]{%
  99. % Fill the remaining space with a colored rule
  100. \begingroup
  101. \offinterlineskip
  102. \hbox to 0pt{%
  103. \kern-\paperwidth
  104. \vtop to 0pt{%
  105. \color#1%
  106. \hrule width 5\paperwidth height \paperheight
  107. \vss
  108. }%
  109. \hss
  110. }%
  111. \endgroup
  112. }
  113. \makeatother
  114.  
  115. \usepackage{pagecolor}
  116. \usepackage{atbegshi} % for '\AtBeginShipout' macro
  117. % Make page color "light red" *after* page 2
  118. \AtBeginShipout{\ifnum\value{page}=1\pagecolor{white}\fi}
  119.  
  120. %the title of this project
  121.  
  122. \newcommand{\mytitle}{\textbf{Mathematical Analysis}}
  123. \newcommand{\mydescription}{\textbf{A collection of problems}}
  124. \newcommand{\mytiny}{\textbf{Real \& Complex Analysis - General Topology - Multivariable Calculus - Integrals and Series}}
  125.  
  126. %font for name
  127.  
  128. \usepackage{pbsi}


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
(20.07 KiB) Downloaded 9 times

User avatar
Johannes_B
Site Moderator
Posts: 3584
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Sat Aug 26, 2017 8:43 am

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: 31
Joined: Tue Dec 20, 2016 12:23 am

Postby Tolaso » Sat Aug 26, 2017 9:24 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 ?

User avatar
Johannes_B
Site Moderator
Posts: 3584
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Sat Aug 26, 2017 10:43 am

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.

User avatar
thomasb
Posts: 76
Joined: Thu Aug 03, 2017 10:54 am
Location: france

Postby thomasb » Sat Aug 26, 2017 5:57 pm

This works here :
    1. \documentclass[11pt]{article}
    2. \usepackage{amsmath}
    3. \usepackage{amsfonts}
    4. \usepackage{amssymb}
    5. \usepackage{amsthm}
    6. \usepackage[lmargin=0.7cm, rmargin=1cm, vmargin=1.5cm]{geometry}
    7. \renewcommand{\qedsymbol}{$\blacklozenge$}
    8. \usepackage[english]{babel}
    9. \usepackage[utf8]{inputenc}
    10. \usepackage{eulervm}
    11. \usepackage{esint}
    12. \usepackage{fontawesome}
    13. \usepackage{fancyhdr}
    14. \pagestyle{fancy}
    15. \fancyhf{}
    16. \lhead{Mathematical Analysis ... }
    17. \chead{... \textit{A collection of problems}}
    18. \rhead{Version 5}
    19. \cfoot{\thepage}
    20. \lfoot{Typesetting \LaTeX }
    21. \rfoot{\textbf{Editor:} Tolaso J. Kos}
    22. \renewcommand{\headrulewidth}{2pt}
    23. \renewcommand{\footrulewidth}{0.5pt}
    24. \usepackage{tcolorbox}
    25. \usepackage{tikz}
    26. \usetikzlibrary{intersections,backgrounds}
    27. \usepackage[shortlabels]{enumitem}
    28. \usepackage{bigints}
    29. \usepackage{cancel}
    30. \usepackage{multicol}
    31. \setlength{\parskip}{\baselineskip}%
    32. \setlength{\parindent}{0.5pt}%
    33. \usepackage{xcolor}
    34. %definition of custom colours
    35. \definecolor{DarkRed}{RGB}{139,0,0}
    36. \definecolor{DarkBlue}{RGB}{102, 153, 255}
    37. \definecolor{LightBlue}{RGB}{51, 102, 255}
    38. \usepackage{hyperref}
    39. \hypersetup{colorlinks=true, linkbordercolor=DarkRed,linkcolor=green}
    40. %tasks option
    41. \setlist[enumerate]{wide = 0pt, leftmargin=*}
    42. \usepackage{tasks}
    43. \settasks{counter-format =(tsk[r]), label-align=right, label-width=1.75em, item-indent=-2em }
    44. %macro definition for arcot
    45. \DeclareMathOperator{\arccot}{{\rm arccot}}
    46. %definition of foonote using fontawesome
    47. \renewcommand{\thefootnote}{\faDatabase}
    48. %change qed symbol
    49. \renewcommand\qedsymbol{$\blacklozenge$}
    50. %allow page break equations
    51. \allowdisplaybreaks
    52. %macro definition for displaying text when no solution exists.
    53. \newcommand{\nosol}{\textit{Currently there is no solution for this exercise.}}
    54. %macro definition for editor note.
    55. \newcommand{\editornote}{\textit{The editor's solution is pretty ugly and is looking for a new one. Feel free to contribute by sending him one. Your solution shall be published in the very next booklet update.}}
    56. \newcommand{\sol}[1]{\textit{The following solution is due to #1 .}}
    57. \usepackage{afterpage}
    58. \makeatletter
    59. % Macro \changepagecolor has the same syntax as \pagecolor or \color
    60. % with an optional argument and a mandatory argument.
    61. \newcommand*{\changepagecolor}{%
    62. \@ifnextchar[\@changepagecolor@i\@changepagecolor@ii
    63. }
    64. % Case: \changepagecolor[...]{...}
    65. \def\@changepagecolor@i[#1]#2{%
    66. \@changepagecolor@do{[{#1}]{#2}}%
    67. }
    68. % Case: \changepagecolor{...}
    69. \newcommand*{\@changepagecolor@ii}[1]{%
    70. \@changepagecolor@do{{#1}}%
    71. }
    72. \newcommand*{\@changepagecolor@do}[1]{%
    73. % Fill the remaining space with a colored rule
    74. \begingroup
    75. \offinterlineskip
    76. \hbox to 0pt{%
    77. \kern-\paperwidth
    78. \vtop to 0pt{%
    79. \color#1%
    80. \hrule width 5\paperwidth height \paperheight
    81. \vss
    82. }%
    83. \hss
    84. }%
    85. \endgroup
    86. }
    87. \makeatother
    88. \usepackage{pagecolor}
    89. \usepackage{atbegshi} % for '\AtBeginShipout' macro
    90. % Make page color "light red" *after* page 2
    91. \AtBeginShipout{\ifnum\value{page}=1\pagecolor{white}\fi}
    92. %the title of this project
    93. \newcommand{\mytitle}{\textbf{Mathematical Analysis}}
    94. \newcommand{\mydescription}{\textbf{A collection of problems}}
    95. \newcommand{\mytiny}{\textbf{Real \& Complex Analysis - General Topology - Multivariable
    96. Calculus - Integrals and Series}}
    97. %font for name
    98. \usepackage{pbsi}
    99. \begin{document}
    100. Text
    101. \end{document}

Tolaso
Posts: 31
Joined: Tue Dec 20, 2016 12:23 am

Postby Tolaso » Sun Aug 27, 2017 1:08 pm

Yeah it used to work on me too before ... what tl version do you have ?

Tolaso
Posts: 31
Joined: Tue Dec 20, 2016 12:23 am

Postby Tolaso » Sun Aug 27, 2017 1:10 pm

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 !!

User avatar
Johannes_B
Site Moderator
Posts: 3584
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Sun Aug 27, 2017 1:14 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.


Return to “Texmaker and TeXstudio”

Who is online

Users browsing this forum: No registered users and 3 guests