Questions tagged [latex-workshop]
The latex-workshop tag has no usage guidance.
38
questions
1
vote
0
answers
32
views
latexmk stops during execution
I am using latexmk directly or calling from VS Code via Latex-workshop.
It runs normally from the terminal but seems to be terminated prematurely when running from Latex-workshop.
The output stops ...
0
votes
0
answers
19
views
Latex in VSCode, external pdf viewer refreshes twice each time
I'm using MacTex with Latex-Workshop in vscode, and Slkim as my external viewer. If I enable "latex-workshop.latex.autoClean.run": "onBuilt", Skim refreshes twice per build. But if ...
0
votes
0
answers
49
views
File doesn't compile in VS code, But works fine in Overleaf
I've found a template that works fine in Overleaf (using XeLaTeX), and I decided to download all the files and use it in VS code. The issue is that when I tried to compile the file using Recipe:...
0
votes
0
answers
31
views
Compiling latex in VS Code: Recipe terminated with error. Source: LATEX Workshop (Extension)
My VS Code was working properly a couple of weeks ago to compile pdf from latex. Suddenly it stopped compiling my docs. The same happened with TexStudio. I updated my TexLive and texstudio worked ...
1
vote
0
answers
36
views
Not sure what's wrong with my LATEX workshop settings
I've been using LATEX on VS code now. The .pdf and compile correctly, but everytime I use it, it has this error message.
LATEX: macTex distribution and LATEXMK installed
VS Code LATEX Workshop ...
0
votes
0
answers
15
views
How to configure (if is possible) the Reverse Search with VS Code (with LaTeX Workshop)?, similar to WinEdt ReverseSearch preview
How to configure (if is possible) the Reverse Search with VS Code (with LaTeX Workshop)?, similar to WinEdt ReverseSearch preview.
0
votes
1
answer
35
views
How can you improve/configure que VS Code preview?. WinEdt and TeXstudio preview is much better
Comparing WinEdt vs TeXstudio vs VSCode(with LaTeX Workshop).
I love the autocomplete of VS Code, but the preview of VS Code is a little fuzzy/blurr comparing to WinEdt and TeXstudio.
How can I ...
0
votes
0
answers
29
views
How to surround text with auto-complete command in VS code
I am using LaTeX Workshop extension in VS Code, to which I recently shifted from TeXstudio. Is it possible to make auto-surround the selected text with the auto-complete command in VS Code as it ...
0
votes
1
answer
37
views
LaTeX project extension with double menues in vscode
I use the extension "LaTeX Worshop" in Visual Studio Code. It all works fine, but there are two of all kinds of items (like menues). See picture.
0
votes
0
answers
15
views
gnuplot cannot find *.gnuplot files when using the "outdir" option in LatexWorkshop
File mm.tex contains
\documentclass[14pt,a4paper]{extarticle}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
\usepackage{makeidx}
\usepackage{amsmath}
\usepackage{...
0
votes
0
answers
27
views
Adding packages to the VSCode LaTex workshop extension to LaTeX
Avid user of latex workshop on VSCode but I'm unsure of how to add packages. The VSCode tex compiler asks for a .sty file for the packages that I'm trying to import, but I've got no idea of how to ...
2
votes
1
answer
118
views
What do these compile arguments mean?
I see that many people use these settings:
"args": [
"-synctex=1",
"--shell-escape",
"-interaction=nonstopmode",
"%DOCFILE%"
Can anyone explain what ...
0
votes
0
answers
33
views
Auto expansion is only possible with scalable fonts
I'm using moderncv package
Working inside VSCode's LaTeX Workshop extension
At compilation it gives:
[1{/home/kein/.texlive2021/texmf-var/fonts/map/pdftex/updmap/pdftex.map}
/home/kein/Documents/cv/...
2
votes
1
answer
64
views
Subfiles not finding `main.tex` reliably
The minimal working example could not be simpler: I have a main.tex file like so:
\documentclass{article}
\usepackage{subfiles}
\begin{document}
\subfile{Subfiles/subfile}
\end{document}
and a ...
0
votes
0
answers
42
views
tcolorbox causes compilation error in VSCode
I started getting compilation errors after I added tcolorbox to my project. I use VSCode and the Latex Workshop extension. What is strange is that the build fails when running normally, but when I ...
0
votes
0
answers
71
views
Settings for Latex Workshop to compile with lualatex
I've recently had to install Linux on my laptop instead of Windows because other programs work really bad on Windows. Because of this I now have a Linux laptop (running the latest version of PopOS) on ...
0
votes
0
answers
52
views
VS Code Latex Workshop won't print bibliography and glossaries at the same time
I'm new to Latex and I'm currently using the VS Code Latex Workshop extension for my documentation. There are currently some glossary and bibliography entries as well.
My problem is that only the ...
0
votes
0
answers
15
views
Use `sed` in a Latex-Workshop Recipe to replace special characters
I'm using sed -i 's/[_&$]/\\&/g; s/\\\\/\\/g' *.bib to make use no & or _ remain before comppiling. I'd like to do this automatically before running latexmk recepie in latex workshop.
...
1
vote
2
answers
387
views
How to (quickly) compile LaTeX in Vscode Workshop
How do I quickly compile LaTeX in vscode workshop without having to go to the TeX tab everytime?
I know the CTRL + ALT + B hotkey but I can't select the recipe I want.
2
votes
0
answers
105
views
Asymptote usage in the LaTeX Workshop extension in VS Code. The '.latexmkrc' file
I'm trying to create a pdf document using the LaTeX Workshop v8.29.0 extension in Visual Studio Code. And I'm using asymptote by writing \usepackage[inline]{asymptote} in my .tex file preamble and ...
0
votes
0
answers
129
views
How can I change the typesetting engine in Latex Workshop? (VSCode)
The logs ask me to change it to xelatex or lualatex but I can't find how to do that. I have browsed the extension setting extensively.
0
votes
1
answer
222
views
markdown in LaTeX causes compiling issue
A generated lua file for embedding markdown cannot be found during build process.
Hello I want to integrate a markdown file in my latex file. Firstly, I tried to run an example for it. However, the ...
0
votes
0
answers
38
views
Highlight \iffalse ... \fi as comment in VSCode LaTeX Workshop
I write LaTeX documents in VSCode using the LaTeX Workshop extension and occasionally I use \iffalse ... \fi statements to comment out larger blocks of text.
Is there a way to tell LaTeX Workshop to ...
0
votes
0
answers
114
views
Is there a way to increase font of sections under VS Code + LaTeX Workshop?
I am using Emacs + AucTeX to edit everything with LaTeX. Recently, I come across to discover VS Code and LaTeX Workshop addon, it looks great especially for large project! What I like in AucTeX is its ...
0
votes
1
answer
170
views
Cannot build tex file on vs-code + texlive since upgrading to texlive 2022
I had worked both on windows & mac for the last 2 years. All my tex files are located on a drive, and with no problem at all.
But I decided last week to clean my windows computer (fresh windows ...
0
votes
2
answers
315
views
PythonTex Error : No such file or directory on VSCode
\documentclass{ltjsarticle}
\usepackage{pythontex}
\begin{pycode}
def fizbuz(n):
for i in range(1, n+1):
if i % 3 == 0:
print("fiz", end=' ')
else:
...
2
votes
0
answers
97
views
How do I implement precompilation in Visual Stdio code?
Recently, I am writing a really long book. It spends almost several minutes to complie this tex file. So I have to find some methods to speed up compilation. I've tried some possible ways to speed up ...
0
votes
1
answer
194
views
Different Results from Overleaf and VSCode?
My question is mostly trying to troubleshoot why I get different results in VSCode vs Overleaf. When I paste this code into Overleaf vs VSCode/LaTeX Workshop I get different results. The code comes ...
1
vote
1
answer
192
views
run latex-workshop with --halt-on-error instead of --interaction=nonstopmode
I'm using vscode with the latex-workshop extension, and the compilation sometimes hangs when compiling tikz graphics.
The FAQ recommends in this case:
When builds result in an infinite loop with TikZ ...
0
votes
0
answers
289
views
Want to build tex file but Recipe terminated with error
error message :
The command name is D:\texlive\2021\bin\win32\mktexfmt
Latexmk: fls file doesn't appear to have been made.
Collected error summary (may duplicate other messages):
pdflatex: Command ...
3
votes
0
answers
1k
views
Debug LaTeX in Visual Studio Code (with LaTeX-Workshop)
Visual Studio Code seems to be very useful with LaTeX-Workshop plugin. In comparison to TeXStudio, TeXMaker, etc. it is able to autoformat code. It is very useful when I search for an unmatched ...
0
votes
1
answer
2k
views
How to prevent the LaTex Workshop extension from compiling when I save a file?
Observation
When I press Ctrl+S in a sample.tex I get the following error: LaTeX fatal error: spawn latexmk ENOENT, . PID: undefined.. It seems to be a path related error. I assume this occurs ...
0
votes
0
answers
1k
views
Cannot get LaTeX Workshop in VSCode to use MikTex
I'm trying to set up LaTeX on VSCode with LaTeX Workshop and MikTex.
I downloaded MikTex and use the GUI to directly compile a demo.tex into PDF and it worked fine. But when I used LaTeX Workshop on ...
0
votes
1
answer
627
views
How to include SVG documents into LaTeX document in VSCode with LaTeX Workshop plugin?
I try to insert a SVG file into my LaTeX document with this code:
In my main file:
\documentclass[12pt, twoside]{book}
\usepackage{multicol}
\usepackage{svg}
\svgsetup{
inkscape=pdf,
...
0
votes
1
answer
202
views
problem with my settings.json-file
I'm not really familiar with the recipes in latex workshop so I always get an error in my settings.json-file while compiling. This is the content of my settings.json-file:
{
"latex-workshop....
1
vote
2
answers
908
views
Cannot select lualatex or xelatex with magic comment in vscode with latex workshop
The magic comment % !TEX program = lualatex no longer works when using VSCode with latex workshop. I found that Latex Workshop no longer supports magic comments by default for security reasons.
What ...
1
vote
0
answers
445
views
Latex-Workshop and Python Script
I am trying to create a recipe to quickly generate a PNG from an equation in LaTeX. I wanted to use the existing pdflatex tool that is defined in the Latex-workshop recipes and then add an additional ...
2
votes
0
answers
867
views
Open LaTeX PDF file in Skim from Visual Studio Code
I am trying to open my PDF document with Skim from Visual Studio Code. I would like the View LaTeX PDF file command to open in Skim my PDF document and update it automatically. Unfortunately, when I ...