pandoc doesn’t text-wrap code blocks when converting to pdf

If you have a recent installation of LaTeX that includes the fvextra package, then there is a simple solution, recently suggested by jannick0. Modify your YAML header options to include \usepackage{fvextra} \begin{Highlighting}[breaklines,numbers=left] and compile with xelatex. For instance, — header-includes: – \usepackage{fvextra} – \DefineVerbatimEnvironment{Highlighting}{Verbatim}{breaklines,commandchars=\\\{\}} — ~~~~~{.java} this is a very long long long long long … Read more

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

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:$PATH Or in a command line simply: export PATH=/Library/TeX/texbin:$PATH And then run the export to pdf from a … Read more

Enable xelatex in Latex Workshops for Visual Studio Code

The simplest solution found in issues here, but in more common formulation: Copying the content, simply go to Preferences → Extensions → LaTeX (meaning LaTeX is LaTeX workshops), find gear-wheel button with name Manage, then find in the list link to settings.json under any tag, open and type next: “latex-workshop.latex.tools”: [{ “name”: “latexmk”, “command”: “latexmk”, … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)