سلام
من قبلا فایلی را با تکلایو 2015 نوشته بودم و توی اجرا شدنش مشکلی نداشت. اما الان که تکلایو 2017 را نصب کردم و ادیتورم (تک استادیو هست) را به روز کردم، فایل اجرا نمیشه و دو تا ارور میده که این ها هستند:
Fatal fontspec error: "cannot-use-pdftex" The fontspec package requires either XeTeX or LuaTeX. You must change your typesetting engine to, e.g., "xelatex" or "lualatex"instead of plain "latex" or "pdflatex". For immediate help type H <return>.
و...
It is better to use one of the extsizes classes, if you can.
سیستم عاملم ویندوز10 هست. در ضمن وقتی روی ارورها کلیک می کنم در کنار فایلم، فایل های دیگه ای باز میشه که این ها هستند:
%% This is file `fontspec.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% fontspec.dtx (with options: `fontspec,load')
%% ------------------------------------------------
%% The FONTSPEC package for XeLaTeX/LuaLaTeX
%% (C) 2004--2017 Will Robertson and Khaled Hosny
%% License information appended.
%% ------------------------------------------------
\RequirePackage{expl3}
\RequirePackage{xparse}
\ProvidesExplPackage{fontspec}%
{2017/03/31}{2.6a}{Font selection for XeLaTeX and LuaLaTeX}
\sys_if_engine_luatex:T
{ \RequirePackage{luaotfload}
\directlua{require("fontspec")}
\RequirePackageWithOptions{fontspec-luatex} \endinput }
\sys_if_engine_xetex:T
{ \RequirePackageWithOptions{fontspec-xetex} \endinput }
\msg_new:nnn {fontspec} {cannot-use-pdftex}
{
The~ fontspec~ package~ requires~ either~ XeTeX~ or~ LuaTeX.\\\\
You~ must~ change~ your~ typesetting~ engine~ to,~ e.g.,~ "xelatex"~ or~ "lualatex" instead~ of~ plain~ "latex"~ or~ "pdflatex".
}
\msg_fatal:nn {fontspec} {cannot-use-pdftex}
%% ------------------------------------------------
%% Copyright 2004--2017 Will Robertson <will.robertson@latex-project.org>
%% Copyright 2009--2013 Khaled Hosny <khaledhosny@eglug.org>
%%
%% Distributable under the LaTeX Project Public License, version 1.3c or higher.
%% The latest version of this license is at: http://www.latex-project.org/lppl.txt
%%
%% This work is "maintained" by Will Robertson.
%% It consists of the files: fontspec*.dtx, fontspec.cfg, fontspec*.tex.
%% And the derived files: fontspec*.sty,fontspec.lua, fontspec.pdf.
%% ------------------------------------------------
%%
%% End of file `fontspec.sty'.
و ...
%% This follows an idea of Hans Steffani. It attempts to load the class
%options as a package. Naturally it's better to use one of the real
%extsizes classes, such as extarticle etc. But you are free you use
%this with other classes. It may not work with a given class. YMMV
%It is therefore quite unsupported.
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesPackage{extsizes}
[1996/10/08 v1.0
Non Standard LaTeX Package]
\PackageWarningNoLine{ExtSizes}{It is better to use one of the extsizes
classes,^^J if you can} %Comment out this
% line if you find it annoying!
\providecommand\@ptsize{}
\DeclareOption{8pt}{\renewcommand\@ptsize{8}}
\DeclareOption{9pt}{\renewcommand\@ptsize{9}}
\DeclareOption{10pt}{\renewcommand\@ptsize{10}}
\DeclareOption{11pt}{\renewcommand\@ptsize{11}}
\DeclareOption{12pt}{\renewcommand\@ptsize{12}}
\DeclareOption{14pt}{\renewcommand\@ptsize{14}}
\DeclareOption{17pt}{\renewcommand\@ptsize{17}}
\DeclareOption{20pt}{\renewcommand\@ptsize{20}}
\ProcessOptions
\def\EC@family#1#2#3#4#5{%
\DeclareFontShape{#1}{#2}{#3}{#4}%
{<5><6><7><8><9><10><10.95><12><14.4>%
<17.28><20.74><24.88><29.86><35.83><42.99><51.59>genb*#5}{}}
\EC@family{T1}{cmr}{m}{n}{ecrm}
\EC@family{T1}{cmr}{m}{sl}{ecsl}
\EC@family{T1}{cmr}{m}{it}{ecti}
\EC@family{T1}{cmr}{m}{sc}{eccc}
\EC@family{T1}{cmr}{bx}{n}{ecbx}
\EC@family{T1}{cmr}{b}{n}{ecrb}
\EC@family{T1}{cmr}{bx}{it}{ecbi}
\EC@family{T1}{cmr}{bx}{sl}{ecbl}
\EC@family{T1}{cmr}{bx}{sc}{ecxc}
\EC@family{T1}{cmr}{m}{ui}{ecui}
\DeclareFontShape{OT1}{cmr}{m}{n}%
{<5><6><7><8><9><10><12>gen*cmr%
<10.95>cmr10%
<14.4>cmr12%
<17.28><20.74><24.88><29.86><35.83><42.99><51.59>cmr17}{}
\DeclareFontShape{OT1}{cmr}{m}{sl}%
{<5><6><7>cmsl8%
<8><9>gen*cmsl%
<10><10.95>cmsl10%
<12><14.4><17.28><20.74><24.88><29.86><35.83><42.99><51.59>cmsl12%
}{}
\DeclareFontShape{OT1}{cmr}{m}{it}%
{<5><6><7>cmti7%
<8>cmti8%
<9>cmti9%
<10><10.95>cmti10%
<12><14.4><17.28><20.74><24.88><29.86><35.83><42.99><51.59>cmti12%
}{}
\DeclareFontShape{OT1}{cmr}{m}{sc}%
{<5><6><7><8><9><10><10.95><12>%
<14.4><17.28><20.74><24.88><29.86><35.83><42.99><51.59>cmcsc10%
}{}
\DeclareFontShape{OT1}{cmr}{m}{ui}
{<5><6><7><8><9><10><10.95><12>%
<14.4><17.28><20.74><24.88><29.86><35.83><42.99><51.59>cmu10%
}{}
\DeclareFontShape{OT1}{cmr}{b}{n}
{<5><6><7><8><9><10><10.95><12>%
<14.4><17.28><20.74><24.88><29.86><35.83><42.99><51.59>cmb10%
}{}
\DeclareFontShape{OT1}{cmr}{bx}{n}
{<5><6><7><8><9>gen*cmbx%
<10><10.95>cmbx10%
<12><14.4><17.28><20.74><24.88><29.86><35.83><42.99><51.59>cmbx12%
}{}
\DeclareFontShape{OT1}{cmr}{bx}{sl}
{<5><6><7><8><9>%
<10><10.95><12><14.4><17.28><20.74><24.88><29.86><35.83><42.99><51.59>cmbxsl10%
}{}
\DeclareFontShape{OT1}{cmr}{bx}{it}
{<5><6><7><8><9>%
<10><10.95><12><14.4><17.28><20.74><24.88><29.86><35.83><42.99><51.59>cmbxti10%
}{}
\let\orig@newcommand=\newcommand
\renewcommand{\newcommand}[2]{% %an unconditional newcommand
\def#1{}
\renewcommand{#1}{#2}}
\input{size\@ptsize.clo}
\let\newcommand=\orig@newcommand
ببخشید که سوال این قدر طولانی شد. ممنون میشم راهنمایی کنید(خیییلی فوریه!!)