maphy-psd / texliveonfly Goto Github PK
View Code? Open in Web Editor NEWScript to download TeX Live Packages "on the fly"
License: GNU General Public License v3.0
Script to download TeX Live Packages "on the fly"
License: GNU General Public License v3.0
Is it only me that keep getting error, or it does not support windows?
Running the script on windows the following error appears.
Usage: texliveonfly.py [options] file.tex Use option --help for more info. texliveonfly.py: error: texliveonfly.py: It appears tlmgr is not installed. Are you sure you have TeX Live 2010 or later?
X:\Path\To\texlive\2015\bin\win32\runscript.tlu:659: command failed with exit code 2: python.exe x:/Path/To/texlive/2015/texmf-dist/scripts/texliveonfly/texliveonfly.py Y:\Path\to\texfile.tex
The prompt to escalate permissions was never displayed, so package installation fails without further information.
A typical message:
! LaTeX Error: File `celtic.sty' not found.
Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)
Enter file name:
! Emergency stop.
<read *>
l.5 \usepackage
{url}^^M
! ==> Fatal error occurred, no output PDF file produced!
Transcript written on main.log.
On Linux I needed to set it chmod +x texliveonfly.py
, to run ./texliveonfly.py
, maybe you change the filepermissions on GitHub.
The runSudoCommand
tries to launch kdesudo
if gksudo
doesn't exist. However, kdesudo
has been deprecated in favour of kdesu
.
Copied from Stack Exchange https://tex.stackexchange.com/questions/618224/utf-8-codec-cant-decode-byte-0xd0
I get the following error trying to compile a file with bulgarian text on Ubuntu 20.04 with tex-live. I use kile to compile.
Traceback (most recent call last):
File "/usr/bin/texliveonfly", line 360, in <module>
(output, returnCode) = compileTex()
File "/usr/bin/texliveonfly", line 277, in compileTexDoc
return readFromProcess(process)
File "/usr/bin/texliveonfly", line 292, in readFromProcess
line = getProcessLine()
File "/usr/bin/texliveonfly", line 285, in <lambda>
getProcessLine = lambda : frombytesifpy3(process.stdout.readline())
File "/usr/bin/texliveonfly", line 44, in <lambda>
frombytesifpy3 = lambda b = None : b.decode("UTF-8") if py3 and b != None else b
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd0 in position 19: invalid continuation byte
Minimum example:
\documentclass[a4paper]{report}
\usepackage[T2A,T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english, bulgarian]{babel}
\begin{document}
\begin{enumerate}
\item {\em Решение.} Тази стъпка използва компресираната и
факторизирана матрица от коефициенти на системата и дясната страна,
за намиране на решението. Изчислителната сложност на тази стъпка
е $O(rn)$.
\end{enumerate}
\end{document}
If I add an empty line between the \item row and the next, it compiles, but that adds an unwanted new paragraph and in the actual file I have other code that breaks it too.
I.e. if I change \item as below it will suddenly start compiling:
...
\begin{enumerate}
\item {\em Решение.} Тази стъпка използва компресираната и
факторизирана матрица от коефициенти на системата и дясната страна,
за намиране на решението. Изчислителната сложност на тази стъпка
е $O(rn)$.
\end{enumerate}
...
I am on Ubuntu 20.04.3 LTS with tex-live and have just upgraded from 18.04. On another computer with Ubuntu 20.04 same text compiles without a problem as a part of a bigger file.
Full Output log of the compile command:
*****
***** PDFLaTeX output:
***** cd "/home/iict/Documents/test_not_working"
***** texliveonfly -a -interaction=nonstopmode not_working.tex
*****
This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019/Debian) (preloaded format=pdflatex)
restricted \write18 enabled.
entering extended mode
(./not_working.tex
LaTeX2e <2020-02-02> patch level 2
L3 programming layer <2020-02-14>
(/usr/share/texlive/texmf-dist/tex/latex/base/report.cls
Document Class: report 2019/12/20 v1.4l Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo))
(/usr/share/texlive/texmf-dist/tex/latex/base/fontenc.sty
(/usr/share/texlive/texmf-dist/tex/latex/cyrillic/t2aenc.def
(/usr/share/texlive/texmf-dist/tex/latex/base/t2aenc.dfu)))
(/usr/share/texlive/texmf-dist/tex/latex/base/inputenc.sty)
(/usr/share/texlive/texmf-dist/tex/generic/babel/babel.sty
(/usr/share/texlive/texmf-dist/tex/generic/babel/switch.def)
(/usr/share/texlive/texmf-dist/tex/generic/babel-english/english.ldf
(/usr/share/texlive/texmf-dist/tex/generic/babel/babel.def
(/usr/share/texlive/texmf-dist/tex/generic/babel/txtbabel.def)))
(/usr/share/texlive/texmf-dist/tex/generic/babel-bulgarian/bulgarian.ldf))
(/usr/share/texlive/texmf-dist/tex/latex/l3backend/l3backend-pdfmode.def)
(./not_working.aux (/usr/share/texlive/texmf-dist/tex/latex/cyrillic/t2acmr.fd)
)
Overfull \hbox (0.53506pt too wide) in paragraph at lines 9--13
Traceback (most recent call last):
File "/usr/bin/texliveonfly", line 360, in <module>
(output, returnCode) = compileTex()
File "/usr/bin/texliveonfly", line 277, in compileTexDoc
return readFromProcess(process)
File "/usr/bin/texliveonfly", line 292, in readFromProcess
line = getProcessLine()
File "/usr/bin/texliveonfly", line 285, in <lambda>
getProcessLine = lambda : frombytesifpy3(process.stdout.readline())
File "/usr/bin/texliveonfly", line 44, in <lambda>
frombytesifpy3 = lambda b = None : b.decode("UTF-8") if py3 and b != None else b
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd0 in position 19: invalid continuation byte
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.