A few days ago I installed XeTeX as part of TeX Live 2008. I installed on Mac OS X but would not expect big differences on other UNIX systems. It was totally pain-free.Downloaded the TeX Live installer - a rather classic looking command line downloader/installer thingy. Created a writable install target directory (/usr/local/TeX/ or something like that, don't have the machine here to look). Fired up the installer telling it where to install.
Off it went downloading about 1800 files then configuring and doing all sorts of things. Flawless.Added /usr/local/TeX/bin to my $PATH.
A few days ago I installed XeTeX as part of TeX Live 2008. I installed on Mac OS X but would not expect big differences on other UNIX systems. Nov 01, 2011 TeXnicCenter for Mac. Post by rayman » Tue Nov 01, 2011 10:10 am. I used to work with TeXnicCenter when I had my PC, but I bought recently Mac OS X Version 10.6.8 and I wonder if TeXnicCenter works also for Mac as well? XeTeX Others; LaTeX Distributions Decision Guidance MiKTeX and proTeXt TeX Live and MacTeX Others; LaTeX.
I am very pleased.Please take the above paths with a grain of salt. I type them here from memory. The gist is: the input you give the installer is very straightforward.A late reply - hope it helps someone.Cheers,Joerg.
Whenever I try to export a Jupyter notebook as a PDF I get the following error in a separate window: 500: Internal Server ErrorThe error was:nbconvert failed: xelatex not found on PATH, if you have not installed xelatex you may need to do so. Find further instructions at am running macOS Sierra 10.12.6.Things I have tried:. Re-installing nbconvert through pip (in the Jupyter notebook) and conda (terminal).
Installing xelatex for Mac. Re-installing Mactex. Installing pandoc (both through pip and through 'conda install -c conda-forge pandoc')Running!echo $PATHYields: /Users/ed/anaconda/bin:/Users/ed/anaconda/bin:/usr/bin:/bin:/usr/sbin:/sbinI located the directory containing xelatex as per @einsweniger suggestion here: /usr/local/texlive/bin/x8664-darwin.
Don't go copying executables around to different directories. You'll just make a worse mess of things, possibly break things in unknowable ways. PATH is an environment variable. It's associated with your login session and its value is passed along to other programs (including, but not limited to, Python). If a program like xelatex needs to be on your PATH the solution is not to copy files into a directory that happens to already be on your PATH. The solution is to update your PATH variable itself before starting Python.
Possibly even permanently.–Sep 18 '18 at 22:53. I encountered the same issue. As people previously stated, the problem lies in that xlatex isn't found in your PATH environment variable.A solution that worked for me was to run the following from the notebook:!export PATH=/Library/TeX/texbin:$PATHOr in a command line simply: export PATH=/Library/TeX/texbin:$PATHAnd then run the export to pdf from a command line (within your virtual environment if there is one in place) as follows: jupyter nbconvert yournotebook.ipynb -to pdfThis should create a pdf of your notebook on the same directory it is running.
I've run into similar issues in the past with paths in python when using tensorflow in Windows and Linux. As is pointed out by others, using PATH is the way to go (i.e update in.bashrc if it was linux), but I've found the code below to resolve path issues on a script by script basis. Import sysif 'yourpathtoxelatex' not in sys.path:print('adding path') # I just add this to know if the path was present or not.sys.path.append('yourpathtoxelatex')essentially would check PATH for what it is you are looking for and then adds it if it is missing. You probably don't even need the 'if' statement.Perhaps not the most practical way has worked well for me where I know the path in question is perhaps a 'rarely used' or 'one time use' PATH add.So as was pointed out in comments above (and I think you already have) find the location of the file and add its location using the above code.Some more reading on it:6.2 Standard Modules.
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
February 2023
Categories |