huajh / awesome-latex-cv

Latex CV template built with Font Awesome.
https://huajh.github.io/cv/awesome-cv.pdf
LaTeX Project Public License v1.3c
475 stars 139 forks source link

LaTeX Error: File xetex-inputenc.sty not found. #7

Open Tas-sos opened 4 years ago

Tas-sos commented 4 years ago

Unfortunately I can't run your code on my system.

Operating system details:

lsb_release -a ``` No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 9.11 (stretch) Release: 9.11 Codename: stretch ```
lapt-get install texlive-full ``` Reading package lists... Done Building dependency tree Reading state information... Done texlive-full is already the newest version (2016.20170123-5). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. ```
apt install texlive-xetex ``` Reading package lists... Done Building dependency tree Reading state information... Done texlive-xetex is already the newest version (2016.20170123-5). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. ```
apt install luatex ``` Reading package lists... Done Building dependency tree Reading state information... Done Note, selecting 'texlive-binaries' instead of 'luatex' texlive-binaries is already the newest version (2016.20160513.41080.dfsg-2+deb9u1). texlive-binaries set to manually installed. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. ```

When I'm going to run your code from Gummi is a LaTeX editor with compilation "Typesetter command" -> TeXLive with XeTeX, I get the following error :

This is XeTeX, Version 3.14159265-2.6-0.99996 (TeX Live 2016/Debian) (preloaded format=xelatex)
 \write18 enabled.
entering extended mode
(/home/tas-sos/Downloads/awesome-latex-cv-master/.awesome-cv.tex.swp
LaTeX2e <2017/01/01> patch level 3
Babel <3.9r> and hyphenation patterns for 83 language(s) loaded.
(./awesome-source-cv.cls
Document Class: awesome-source-cv 2016/11/05 v1.6.1 Awesome Source CV Class
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo))
(/usr/share/texlive/texmf-dist/tex/generic/babel/babel.sty
(/usr/share/texlive/texmf-dist/tex/generic/babel-french/frenchb.ldf
(/usr/share/texlive/texmf-dist/tex/generic/babel/babel.def
(/usr/share/texlive/texmf-dist/tex/generic/babel/xebabel.def))))
(/usr/share/texlive/texmf-dist/tex/latex/carlisle/scalefnt.sty)
(/usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/share/texlive/texmf-dist/tex/lualatex/luainputenc/luainputenc.sty
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifluatex.sty)
(/usr/share/texlive/texmf-dist/tex/generic/ifxetex/ifxetex.sty)

! LaTeX Error: File `xetex-inputenc.sty' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)

Enter file name: 
/usr/share/texlive/texmf-dist/tex/lualatex/luainputenc/luainputenc.sty:61: Emer
gency stop.
<read *> 

l.61   \expandafter
                   \endinput^^M
No pages of output.
Transcript written on /home/tas-sos/.cache/gummi/.awesome-cv.tex.log.



Or when I'm going to run your code from Gummi is a LaTeX editor with compilation "Typesetter command" -> TeXLive with PdfTeX, I get the following error :

This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016/Debian) (preloaded format=pdflatex)
 \write18 enabled.
entering extended mode
(/home/tas-sos/Downloads/awesome-latex-cv-master/.awesome-cv.tex.swp
LaTeX2e <2017/01/01> patch level 3
Babel <3.9r> and hyphenation patterns for 83 language(s) loaded.
(./awesome-source-cv.cls
Document Class: awesome-source-cv 2016/11/05 v1.6.1 Awesome Source CV Class
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo))
(/usr/share/texlive/texmf-dist/tex/generic/babel/babel.sty
(/usr/share/texlive/texmf-dist/tex/generic/babel-french/frenchb.ldf
(/usr/share/texlive/texmf-dist/tex/generic/babel/babel.def)))
(/usr/share/texlive/texmf-dist/tex/latex/carlisle/scalefnt.sty)
(/usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/share/texlive/texmf-dist/tex/lualatex/luainputenc/luainputenc.sty
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifluatex.sty)
(/usr/share/texlive/texmf-dist/tex/generic/ifxetex/ifxetex.sty)
(/usr/share/texlive/texmf-dist/tex/latex/base/inputenc.sty
(/usr/share/texlive/texmf-dist/tex/latex/base/utf8.def
(/usr/share/texlive/texmf-dist/tex/latex/base/t1enc.dfu)
(/usr/share/texlive/texmf-dist/tex/latex/base/ot1enc.dfu)
(/usr/share/texlive/texmf-dist/tex/latex/base/omsenc.dfu))))
(/usr/share/texlive/texmf-dist/tex/latex/fontspec/fontspec.sty
(/usr/share/texlive/texmf-dist/tex/latex/l3kernel/expl3.sty
(/usr/share/texlive/texmf-dist/tex/latex/l3kernel/expl3-code.tex)
(/usr/share/texlive/texmf-dist/tex/latex/l3kernel/l3pdfmode.def))
(/usr/share/texlive/texmf-dist/tex/latex/l3packages/xparse/xparse.sty)

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
/usr/share/texlive/texmf-dist/tex/latex/fontspec/fontspec.sty:28: Fatal fontspe
c 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".
! 
! See the fontspec documentation for further information.
! 
! For immediate help type H <return>.
!...............................................  

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

/usr/share/texlive/texmf-dist/tex/latex/fontspec/fontspec.sty:28:  ==> Fatal er
ror occurred, no output PDF file produced!
Transcript written on /home/tas-sos/.cache/gummi/.awesome-cv.tex.log.

What can be wrong and the code cannot be compiled? Can I do something to fix it?

TDHypocrites commented 4 years ago

! LaTeX Error: File `xetex-inputenc.sty' not found. The same problem.

aleksandar-spasojevic commented 3 years ago

use own xetex-inputenc.sty style generated definition. Put the file in the same directory where your main.tex file is, so that xelatex main.tex finds the style file.

Here are instructions under Readme -> Installation where you can generate your own style file xetex-inputenc

Or use my file:

%%
%% This is file `xetex-inputenc.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% xetex-inputenc.dtx  (with options: `package')
%% 
%%   ___________________________________
%%   The xetex-inputenc override package
%%   (C) 2009  Will Robertson
%%   License information appended
%% 
%% 
\ProvidesPackage{xetex-inputenc}
  [2009/03/09 v0.2 XeTeX-specific inputenc package]
\def\xIE@encoding#1#2{%
  \DeclareOption{#1}{%
    \xIE@set{#2}
  }%
}
\DeclareOption*{%
  \PackageWarning{xetex-inputenc}{%
    Encoding "\CurrentOption" not recognised; attempting to use it anyway
  }%
  \xIE@set{\CurrentOption}%
}
\newcommand\xIE@set[1]{%
  \edef\xetex@inputenc{#1}%
  \AtEndOfPackage{%
    \XeTeXinputencoding   "\xetex@inputenc"
    \XeTeXdefaultencoding "\xetex@inputenc"
  }
}
\xIE@encoding{ascii}    {ascii}
\xIE@encoding{latin1}   {latin1}
\xIE@encoding{latin2}   {latin2}
\xIE@encoding{latin3}   {latin3}
\xIE@encoding{latin4}   {latin4}
\xIE@encoding{latin5}   {latin5}
\xIE@encoding{latin9}   {latin9}
\xIE@encoding{latin10}  {latin10}
\xIE@encoding{decmulti} {dec}
\xIE@encoding{cp850}    {cp850}
\xIE@encoding{cp852}    {cp852}
\xIE@encoding{cp858}    {cp858}
\xIE@encoding{cp437}    {cp437}
\xIE@encoding{cp865}    {cp865}
\xIE@encoding{applemac} {mac}
\xIE@encoding{cp1250}   {windows-1250}
\xIE@encoding{cp1252}   {windows-1252}
\xIE@encoding{cp1257}   {windows-1257}
\xIE@encoding{ansinew}  {windows-1252}
\xIE@encoding{utf8}     {utf8}
\ExecuteOptions{utf8}
\ProcessOptions
\def\@input#1{%
  \IfFileExists{#1}{%
    \XeTeXdefaultencoding "utf8"
    \@@input\@filef@und
    \XeTeXdefaultencoding "\xetex@inputenc"
  }{\typeout{No file #1.}}%
}
\AtBeginDocument{%
  \immediate\write\@auxout{\string\XeTeXinputencoding "utf8"}%
}
%% 
%% Copyright (C) 2009 by Will Robertson <wspr81@gmail.com>
%% 
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
%% this license is at: http://www.latex-project.org/lppl.txt
%% 
%% This work is "maintained" (as per LPPL maintenance status)
%% by Will Robertson.
%% 
%% This work consists of the file  xetex-inputenc.dtx
%%           and the derived files xetex-inputenc.sty,
%%                                 xetex-inputenc.ins, and
%%                                 xetex-inputenc.pdf.
%% 
%%
%% End of file `xetex-inputenc.sty'.