Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't build pdf: Listings Error #193

Open
Hiisi5 opened this issue Jun 16, 2018 · 2 comments
Open

Can't build pdf: Listings Error #193

Hiisi5 opened this issue Jun 16, 2018 · 2 comments

Comments

@Hiisi5
Copy link

Hiisi5 commented Jun 16, 2018

I'm trying to build the pdf as described in the README.md. When trying to run make I got the following error:

(/usr/share/texlive/texmf-dist/tex/latex/listings/lstlang1.sty)
(/usr/share/texlive/texmf-dist/tex/latex/listings/lstlang2.sty)
(/usr/share/texlive/texmf-dist/tex/latex/listings/lstlang3.sty)

! Package Listings Error: Couldn't load requested language.

See the Listings package documentation for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.1440 \lstset{language=js}
                           \begin{lstlisting}
!  ==> Fatal error occurred, no output PDF file produced!

So, it seems that Listings package doesn't know 'js' language. I've googled the package description and they don't mention js actually. So, what should I do? Where the error comes from?

@Hiisi5
Copy link
Author

Hiisi5 commented Jun 16, 2018

As a workaround I had to manually edit /usr/share/texlive/texmf-dist/tex/latex/listings/lstlang1.sty file. I have copy&pasted the definition of Java language renaming it to 'js. Afterwards the book compiled with no errors.

@bubifengyun
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants