Python: Unable to Render Tex in Matplotlib

I recently upgraded my laptop to Snow Leopard, updated TeX to Version 3.1415926 (TeX Live 2011/MacPorts 2011_5), and installed Python 2.7.3. After all these installs, I ran macport selfupdate and...

Error when generating R package manual

I having the following issue when trying to check a package using the command line. First I get this very general error message: * checking PDF version of manual ... WARNING LaTeX errors when...

pandoc version 1.12.3 or higher is required and was not found (R shiny)

I have a problem generating a pdf report from my app shiny which is hosted on a server. the app works fine but when I press the button to download the report, I get this error : pandoc version...

inconsolata missing to build R vignette

On ubuntu 14.04 with texlive, checking an R package, for example with devtools check() would return : LaTeX errors found: ! LaTeX Error: File `inconsolata.sty' not found. Type X to quit or...

Where to put own document class .cls file for Tex Live 2016

I understand that there are similar questions posted on stack overflow and elsewhere. But after a couple of trials and failures, I thought this could be a new version of an old question. So with...

Can't use Rcpp engine in R Markdown

I tried to Knit HTML the following Rmd file: --- title: "Untitled" author: "Florian Privé" date: "12 septembre 2016" output: html_document --- ```{r fibCpp, engine='Rcpp'} #include <Rcpp.h> //...

How to install only cmap.sty required packages in my machine

I'm trying to convert a tex document to pdf. But when I did pdflatex doc.tex, I got This is pdfTeX, Version 3.14159265-2.6-1.40.16 (TeX Live 2015/Debian) (preloaded format=pdflatex) restricted...

Solving "500: Internal Server Error, nbconvert failed: xelatex not found in PATH"

Whenever I try to export a Jupyter notebook as a PDF I get the following error in a separate window: 500 : Internal Server Error The error was: nbconvert failed: xelatex not found on PATH, if you...

Matplotlib not working for LInux. Cannot load backend 'TkAgg'

Trying to use Matplotlib on Linux, but I keep getting this error: ImportError: Cannot load backend 'TkAgg' which requires the 'tk' interactive framework, as 'headless' is currently running I am...

Command 'vue' not found, did you mean: command 'vpe' from deb texlive-latex-extra Try: sudo apt install <deb name> on UBUNTU

I'm trying to setup vue js on my system, I've installed the necessary things such as npm, yarn etc and vue-cli itself but when I try creating a vue folder using vue init webpack-simple myapp it...

I can't knit my documents into PDF in RStudio

I have to use RStudio to knit a report in PDF but when I try to knit the document with the packages required in a chunk in Rmarkdown it shows me this error: tlmgr search --file --global...

matplotlib/seaborn: first and last row cut in half of heatmap plot

When plotting heatmaps with seaborn (and correlation matrices with matplotlib) the first and the last row is cut in halve. This happens also when I run this minimal code example which I found...

AWS Lambda layer has no execute permission

I create a lambda lambda for Python runtime (3.6 and 3.7 compatible) that contains a bin executable (texlive) But when I try to execute it through subprocess.run it says that it has no execution...

LaTeX and Python works on Ubuntu but not on Windows

I'm not particularly fluent with LaTeX, but I need to generate a bunch of SVG files given the raw input LaTeX code. One way I found to do that was by using a Python script called "latex2svg",...

rstudio knitr not running pdfcrop

I'm trying to knit the mwe below to pdf using rstudio (1.2.5019) --- title: "Test" author: "Me" output: pdf_document: fig_caption: yes keep_tex: yes fig_crop: yes --- This should...

Citation not working in latex using natbib package

I am new to latex. I have been trying to add citations in a document but its not working. I have used the package natbib and the command \citet{DAVANZO201573} in the 2nd line of the first...

How to configure R/Exams to use system LaTeX?

I'm completely new to R and R/Exams. I have installed R and R/Exams, and tested the dist example to generate HTML outputs. When I tried to generate PDF outputs, R/Exams always used tinytex and...

Pandoc: Change font family to sans while converting from Markdown to HTML

I successfully get a nice formatted text I could paste anywhere using: cat myFile.md | pandoc -s -f markdown -t html | xclip -selection clipboard -t text/html xclip is a command line interface...

! Undefined control sequence. with R/Rmarkdown/knitr

I'm new here, but I've spend few hours on R. I am using a combination of the R package Drake with knitr. However I have an error with the Rmarkdown file. I have a similar structure to the drake...

Cannot run rails server locally wrong ruby version

I recently install ruby 2.7.1 using rbenv. I have made sure that .ruby-version and Gemfile file both have 2.7.1 as ruby version. Now i cannot run rails s locally, doing so returns the following...

Alternative use for uarial package in Overleaf for LaTeX

For a project I am using Overleaf for LaTex and I require the uarial package that I initialised liked this: \RequirePackage[scaled]{uarial} \renewcommand*\familydefault{\sfdefault} With this I...

ImportError: No module named pygments.styles when attempting to run Pythontex

When I try to run pythontex via my command line((base) Zachs-MacBook-Pro:mat_300 zachmaurus$ pythontex pythontex.tex) the following occurs: Traceback (most recent call last): File...

latex runtime error with Xelatex compiler

environment: ubuntu18.04 + texlive-2020 + texstudio I have successfully installed texlive and made sure by testing with latex -v ; xelatex -v, and they worked just fine. And in texstudio I...

What is the difference between calling a command via "wsl [command]" and opening a wsl shell and calling "[command]"?

I am using Ubuntu via WSL 2.0 on Windows 10 and would like to run Texlive from the Windows command line. To do so I prepended the Texlive folder to the path in /etc/environment (I also tried a...

Problem with building Docker image from Dockerfile

my task is to create a docker container from my own Dockerfile using ubuntu:18.10 and run pdflatex in this container. My system is MacOs, my Dockerfile looks like this: FROM ubuntu:18.10 RUN...

Unable to compile a Rmarkdown file on Arch Linux

I'm having a problem compiling a simple Rmarkdown file, and I'm clueless about the solutions. Here is the problem: Document I want to compile It's a simple document without R code, just text. In...

How do you debug using 'Code::Blocks 20.03' (the "mingw" version)?

I have built a Console Application using Code::Blocks 20.03, which was installed using codeblocks-20.03mingw-setup.exe. The defaults for the installation directory(see Note01) and the installation...

Lua 5.3 is installed, but I can't locate the correct lua.h

I am trying to install some luarocks packages but it seems that although lua5.3 is installed, the relevant headers are not $ which lua /usr/bin/lua $ lua -v Lua 5.3.3 Copyright (C) 1994-2016...

Ghostscript causes a compilation error under LaTeX

I recently had a big problem with a document that uses pstrick code to figure inside a document. While the document compiled perfectly, an update that I didn't pay attention to, gives me the...

Recipe terminated with fatal error: spawn latexmk ENOENT

I have just installed debian 10 as well as vscode. I have been struggling with this for 3 days now.. I installed texlive from terminal with the following command: sudo apt install texlive I then...