James-Yu / LaTeX-Workshop

Boost LaTeX typesetting efficiency with preview, compile, autocomplete, colorize, and more.
MIT License
10.72k stars 534 forks source link

Xelatex Not renderingcertain things. Error much change to xelatex but %!TEX TS-program = xelatex at top #1436

Closed NicTanghe closed 5 years ago

NicTanghe commented 5 years ago

Disable all the other extensions except for LaTeX Workshop, and check that you still see this issue. [Required]

You still see this issue?: Yes

Describe the bug [Required] Title not rendering.

C:\Program Files\MiKTeX 2.9\tex/latex/fontspec\fontspec.sty:45: Fatal Package fontspec Error: The fontspec package requires either XeTeX or
(fontspec)                      LuaTeX.
(fontspec)                      
(fontspec)                      You must change your typesetting engine to,
(fontspec)                      e.g., "xelatex" or "lualatex"instead of
(fontspec)                      "latex" or "pdflatex"

l.45 \msg_fatal:nn {fontspec} {cannot-use-pdftex}

This is a fatal error: LaTeX will abort.

To Reproduce Steps to reproduce the behavior: Try and render the cv repo in my repo's

Expected behavior Evrything renders correctly

Logs [Required]

his is pdfTeX, Version 3.14159265-2.6-1.40.20 (MiKTeX 2.9.7050 64-bit) (preloaded format=pdflatex 2019.6.14)  15 JUN 2019 02:28
entering extended mode
**c:/Users/nicta/Documents/Markdown/FrigiTry/cv.tex
(c:/Users/nicta/Documents/Markdown/FrigiTry/cv.tex
LaTeX2e <2018-12-01>
(c:/Users\nicta\Documents\Markdown\FrigiTry\friggeri-cv.cls
Document Class: friggeri-cv 2012/04/30 CV class
("C:\Program Files\MiKTeX 2.9\tex/latex/base\article.cls"
Document Class: article 2018/09/03 v1.4i Standard LaTeX document class
("C:\Program Files\MiKTeX 2.9\tex/latex/base\size10.clo"
File: size10.clo 2018/09/03 v1.4i Standard LaTeX file (size option)
)
\c@part=\count80
\c@section=\count81
\c@subsection=\count82
\c@subsubsection=\count83
\c@paragraph=\count84
\c@subparagraph=\count85
\c@figure=\count86
\c@table=\count87
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
) (C:\Users\nicta\AppData\Roaming\MiKTeX\2.9\tex/latex/xcolor\xcolor.sty
Package: xcolor 2016/05/11 v2.12 LaTeX color extensions (UK)
 ("C:\Program Files\MiKTeX 2.9\tex/latex/graphics-cfg\color.cfg"
File: color.cfg 2016/01/02 v1.6 sample color configuration
)
Package xcolor Info: Driver file: pdftex.def on input line 225.
 ("C:\Program Files\MiKTeX 2.9\tex/latex/graphics-def\pdftex.def"
File: pdftex.def 2018/01/08 v1.0l Graphics/color driver for pdftex
)
Package xcolor Info: Model `cmy' substituted by `cmy0' on input line 1348.
Package xcolor Info: Model `hsb' substituted by `rgb' on input line 1352.
Package xcolor Info: Model `RGB' extended on input line 1364.
Package xcolor Info: Model `HTML' substituted by `rgb' on input line 1366.
Package xcolor Info: Model `Hsb' substituted by `hsb' on input line 1367.
Package xcolor Info: Model `tHsb' substituted by `hsb' on input line 1368.
Package xcolor Info: Model `HSB' substituted by `hsb' on input line 1369.
Package xcolor Info: Model `Gray' substituted by `gray' on input line 1370.
Package xcolor Info: Model `wave' substituted by `hsb' on input line 1371.
) ("C:\Program Files\MiKTeX 2.9\tex/latex/fontspec\fontspec.sty" (C:\Users\nicta\AppData\Roaming\MiKTeX\2.9\tex/latex/l3packages/xparse\xparse.sty (C:\Users\nicta\AppData\Roaming\MiKTeX\2.9\tex/latex/l3kernel\expl3.sty
Package: expl3 2019-05-28 L3 programming layer (loader) 
 (C:\Users\nicta\AppData\Roaming\MiKTeX\2.9\tex/latex/l3kernel\expl3-code.tex
Package: expl3 2019-05-28 L3 programming layer (code)
\c_max_int=\count88
\l_tmpa_int=\count89
\l_tmpb_int=\count90
\g_tmpa_int=\count91
\g_tmpb_int=\count92
\g__kernel_prg_map_int=\count93
\c__ior_term_ior=\count94
\c_log_iow=\count95
\l_iow_line_count_int=\count96
\l__iow_line_target_int=\count97
\l__iow_one_indent_int=\count98
\l__iow_indent_int=\count99
\c_zero_dim=\dimen103
\c_max_dim=\dimen104
\l_tmpa_dim=\dimen105
\l_tmpb_dim=\dimen106
\g_tmpa_dim=\dimen107
\g_tmpb_dim=\dimen108
\c_zero_skip=\skip43
\c_max_skip=\skip44
\l_tmpa_skip=\skip45
\l_tmpb_skip=\skip46
\g_tmpa_skip=\skip47
\g_tmpb_skip=\skip48
\c_zero_muskip=\muskip10
\c_max_muskip=\muskip11
\l_tmpa_muskip=\muskip12
\l_tmpb_muskip=\muskip13
\g_tmpa_muskip=\muskip14
\g_tmpb_muskip=\muskip15
\l_keys_choice_int=\count100
\l__intarray_loop_int=\count101
\c__intarray_sp_dim=\dimen109
\g__intarray_font_int=\count102
\c__fp_leading_shift_int=\count103
\c__fp_middle_shift_int=\count104
\c__fp_trailing_shift_int=\count105
\c__fp_big_leading_shift_int=\count106
\c__fp_big_middle_shift_int=\count107
\c__fp_big_trailing_shift_int=\count108
\c__fp_Bigg_leading_shift_int=\count109
\c__fp_Bigg_middle_shift_int=\count110
\c__fp_Bigg_trailing_shift_int=\count111
\c__kernel_randint_max_int=\count112
\g__fp_array_int=\count113
\l__fp_array_loop_int=\count114
\l__sort_length_int=\count115
\l__sort_min_int=\count116
\l__sort_top_int=\count117
\l__sort_max_int=\count118
\l__sort_true_max_int=\count119
\l__sort_block_int=\count120
\l__sort_begin_int=\count121
\l__sort_end_int=\count122
\l__sort_A_int=\count123
\l__sort_B_int=\count124
\l__sort_C_int=\count125
\l__tl_analysis_normal_int=\count126
\l__tl_analysis_index_int=\count127
\l__tl_analysis_nesting_int=\count128
\l__tl_analysis_type_int=\count129
\l__regex_internal_a_int=\count130
\l__regex_internal_b_int=\count131
\l__regex_internal_c_int=\count132
\l__regex_balance_int=\count133
\l__regex_group_level_int=\count134
\l__regex_mode_int=\count135
\c__regex_cs_in_class_mode_int=\count136
\c__regex_cs_mode_int=\count137
\l__regex_catcodes_int=\count138
\l__regex_default_catcodes_int=\count139
\c__regex_catcode_D_int=\count140
\c__regex_catcode_S_int=\count141
\c__regex_catcode_L_int=\count142
\c__regex_catcode_O_int=\count143
\c__regex_catcode_A_int=\count144
\c__regex_all_catcodes_int=\count145
\l__regex_show_lines_int=\count146
\l__regex_min_state_int=\count147
\l__regex_max_state_int=\count148
\l__regex_left_state_int=\count149
\l__regex_right_state_int=\count150
\l__regex_capturing_group_int=\count151
\l__regex_min_pos_int=\count152
\l__regex_max_pos_int=\count153
\l__regex_curr_pos_int=\count154
\l__regex_start_pos_int=\count155
\l__regex_success_pos_int=\count156
\l__regex_curr_char_int=\count157
\l__regex_curr_catcode_int=\count158
\l__regex_last_char_int=\count159
\l__regex_case_changed_char_int=\count160
\l__regex_curr_state_int=\count161
\l__regex_step_int=\count162
\l__regex_min_active_int=\count163
\l__regex_max_active_int=\count164
\l__regex_replacement_csnames_int=\count165
\l__regex_match_count_int=\count166
\l__regex_min_submatch_int=\count167
\l__regex_submatch_int=\count168
\l__regex_zeroth_submatch_int=\count169
\g__regex_trace_regex_int=\count170
\c_empty_box=\box27
\l_tmpa_box=\box28
\l_tmpb_box=\box29
\g_tmpa_box=\box30
\g_tmpb_box=\box31
\l__box_top_dim=\dimen110
\l__box_bottom_dim=\dimen111
\l__box_left_dim=\dimen112
\l__box_right_dim=\dimen113
\l__box_top_new_dim=\dimen114
\l__box_bottom_new_dim=\dimen115
\l__box_left_new_dim=\dimen116
\l__box_right_new_dim=\dimen117
\l__box_internal_box=\box32
\l__coffin_internal_box=\box33
\l__coffin_internal_dim=\dimen118
\l__coffin_offset_x_dim=\dimen119
\l__coffin_offset_y_dim=\dimen120
\l__coffin_x_dim=\dimen121
\l__coffin_y_dim=\dimen122
\l__coffin_x_prime_dim=\dimen123
\l__coffin_y_prime_dim=\dimen124
\c_empty_coffin=\box34
\l__coffin_aligned_coffin=\box35
\l__coffin_aligned_internal_coffin=\box36
\l_tmpa_coffin=\box37
\l_tmpb_coffin=\box38
\g_tmpa_coffin=\box39
\g_tmpb_coffin=\box40
\l__coffin_bounding_shift_dim=\dimen125
\l__coffin_left_corner_dim=\dimen126
\l__coffin_right_corner_dim=\dimen127
\l__coffin_bottom_corner_dim=\dimen128
\l__coffin_top_corner_dim=\dimen129
\l__coffin_scaled_total_height_dim=\dimen130
\l__coffin_scaled_width_dim=\dimen131
\c__coffin_empty_coffin=\box41
\l__coffin_display_coffin=\box42
\l__coffin_display_coord_coffin=\box43
\l__coffin_display_pole_coffin=\box44
\l__coffin_display_offset_dim=\dimen132
\l__coffin_display_x_dim=\dimen133
\l__coffin_display_y_dim=\dimen134
\g__file_internal_ior=\read1
\l__seq_internal_a_int=\count171
\l__seq_internal_b_int=\count172
\c__deprecation_minus_one=\count173
) (C:\Users\nicta\AppData\Roaming\MiKTeX\2.9\tex/latex/l3kernel\l3pdfmode.def
File: l3pdfmode.def 2019-04-06 v L3 Experimental driver: PDF mode
\l__driver_internal_box=\box45
\l__driver_color_stack_int=\count174
))
Package: xparse 2019-05-28 L3 Experimental document command parser
\l__xparse_current_arg_int=\count175
\g__xparse_grabber_int=\count176
\l__xparse_m_args_int=\count177
\l__xparse_v_nesting_int=\count178
)
Package: fontspec 2019/03/15 v2.7c Font selection for XeLaTeX and LuaLaTeX

C:\Program Files\MiKTeX 2.9\tex/latex/fontspec\fontspec.sty:45: Fatal Package fontspec Error: The fontspec package requires either XeTeX or
(fontspec)                      LuaTeX.
(fontspec)                      
(fontspec)                      You must change your typesetting engine to,
(fontspec)                      e.g., "xelatex" or "lualatex"instead of
(fontspec)                      "latex" or "pdflatex".

For immediate help type H <return>.
 ...                                              

l.45 \msg_fatal:nn {fontspec} {cannot-use-pdftex}

This is a fatal error: LaTeX will abort.

 ) ) ) 
Here is how much of TeX's memory you used:
 10426 strings out of 492895
 200013 string characters out of 3133479
 226696 words of memory out of 3000000
 14395 multiletter control sequences out of 15000+200000
 532338 words of font info for 24 fonts, out of 3000000 for 9000
 1141 hyphenation exceptions out of 8191
 54i,1n,67p,350b,317s stack positions out of 5000i,500n,10000p,200000b,50000s

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)

Screenshots If applicable, add screenshots to help explain your problem.

Desktop [Required]:

Additional context Add any other context about the problem here.

jlelong commented 5 years ago

Your description is really not clear. The only thing I can say from the title of your issue is that the magic comment to use xelatex must be %!TEX program = xelatex (no TS-). This is most likely not an issue with the extension but rather with your configuration.

jlelong commented 5 years ago

The issue does not contain enough information to investigate the problem. I am closing it until more information is provided.