Questions tagged [vscode]
The vscode tag has no usage guidance.
84
questions
1
vote
0
answers
30
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
9
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
48
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
1
answer
32
views
TikZ not showing up image in VS Code, latest Mac OS, latest MacTex distribution (Freshly installed 2022 using the .pkg)
I was wondering why thee images are not showing up.
For the code
From :https://www.overleaf.com/learn/latex/TikZ_package
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\...
0
votes
0
answers
29
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
33
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 ...
1
vote
0
answers
31
views
A small but nagging bug in VSCode LaTeX Workshop keyboard shortcuts
I am using VSCode with LaTeX Workshop extension for writing LaTeX. I am a fan of its helpful shortcuts for math symbols. But recently, the shortcuts began exhibiting a nagging bug that isn't critical ...
0
votes
0
answers
14
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 ...
1
vote
0
answers
36
views
References undefined while autocomplete does find the reference [duplicate]
When I add references to my file it outputs a question mark and the error message "citation 'label' in page '1' undefined." However, autocomplete does notice the reference which implies to ...
0
votes
0
answers
28
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 ...
1
vote
0
answers
52
views
VS Code, LaTeX Workshop: Viewer jumps to the first page when saving
I am using VS Code with the LaTeX Workshop extension on Ubuntu 18.04. I enabled the "Build on save" option, with the browser as the PDF viewer. It has always worked fine. However, it ...
2
votes
2
answers
212
views
how to add unicode characters in vscode latex (input)
In vscode, I would like to type something like \scrK to get 𝒦. There is a Unicode Latex plugin but it takes several extra keystrokes. What would be the easiest way to accomplish this?
Thanks!
(I'm ...
2
votes
1
answer
36
views
Visual Studio Code for Xelatex latexmkrc with Beamer and Minted for Musixtex
It is required to configure the Visual Studio Code for Xelatex latexmkrc with Beamer and Minted for Musixtex. For that I configure the following files:
latexmkrc:
$xelatex = 'internal musixlatex %R %...
0
votes
1
answer
36
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{...
1
vote
1
answer
29
views
backref does not work on VS code
I can't get back-referencing of citations to work with VS Code.
Here is my minimum reproducible example, which works fine on overleaf but not on VS Code:
\documentclass{article}
\usepackage{natbib}
\...
1
vote
1
answer
28
views
Equation showing error "Missing { inserted" or "Missing } inserted" despite having properly closed every curly braces
\begin{align*}
I(T) = I_m exp(\frac{E}{k T_m}) exp(- \frac{E}{k(T_m)^2}) \int_{T_m}^{T} exp(\frac{E}{k T_m} - \frac{E dT^'}{k T^'})
\end{align*}
This line of code is giving me trouble as I ...
0
votes
0
answers
32
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/...
0
votes
0
answers
69
views
I can't view the pdf preview of my tex file
I am currently using LaTeX Workshop in VSCode and each time I attempt to view the pdf preview of my tex file I receive the following message in the bottom right.
BlockquoteCannot view file PDF file. ...
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
32
views
VScode with Latex Workshop aint generating Table of contents/list of figures etc
I already wrote a few Tex documents in overleaf and the table of contents and list of figures always generated fine. Now, because of recommendations, I switched to VScode and I installed everything as ...
0
votes
0
answers
68
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
327
views
Missing file from package unicode-data
I am trying to use VS code to build latex files but I am getting the following problem when trying to output a simple file containing a nomenclature:
LaTeX Error: File 'GraphemeBreakProperty.txt' not ...
0
votes
0
answers
51
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.
...
0
votes
1
answer
751
views
Trying to use VSCode for LaTex instead of Overleaf and moved a project over as a starting point but can't compile
The project works on Overleaf using pdfLaTex but not in VSCode using any of the compilers in the latex workshop extension. I have installed latex via TeX Live.
Previously, I've tried MikTex and using ...
0
votes
0
answers
339
views
Change MikTeX's Default Build Recipe (in VS Code) to Remove 'Undefined Citation' Warnings
I am using MikTeX in VS Code to compile a LaTeX document.
When I press 'control + s' to save and build, I get the following undefined citation warnings:
After some research and debugging, I found ...
1
vote
2
answers
368
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.
1
vote
1
answer
164
views
How to stop Vscode from destroying my pdf when I have a typo in the code
So I use vscode to write up most of my assignments, and sometimes I need to use tikz figures, and to make that process easier I use tikzfig and tikzit. At times, I edit the tikz files directly without ...
2
votes
0
answers
102
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
1
answer
217
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
1
answer
57
views
VSCode Compile immediately stalls, displaying only "This is pdfTex" message
Trying to compile a MWE using VSCode (latex, latex workshop, and utilities all installed) using TeXlive. The compiler only shows the following and stalls, I've let it run for hours without progress:
**...
0
votes
0
answers
37
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
2
answers
309
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:
...
0
votes
0
answers
283
views
Problem with bibtex compilation on VS code [duplicate]
Sorry for my english it's not my native language. I begin to write paper with latex and I try to write with VS Code.
But when I compil my project I have these errors:
[{
"resource": &...
0
votes
1
answer
652
views
Paste image into latex quickly?
Every time when I write some short thing with latex, and have some pictures to insert, I have to save the picture with a specified name in a specified directory first and then type the include... to ...
0
votes
1
answer
113
views
How can I use Arial Narrow in the VSCode editor?
I use VSCode along with MiKTeX. Although XeLaTeX and LuLaTeX seem to be installed when I checked on MiKTeX, I cannot use the \fontspec package to use Arial Narrow.
0
votes
0
answers
385
views
How to force VSCode to seach for sty files in a folder called TeXAuX
Is there a way to "force" Visual Studio Code (VSCode) to search for sty files in a folder called TeXAuX?
I saw a post found here that tells VSCode to save the aux files etc. in another ...
0
votes
0
answers
89
views
Custom indentation in VS Code
I've been using LaTeX Workshop in VS Code for a few years and one little thing annoys me: the way environments with \item are formatted. This is what is done automatically as I type:
Some text before ...
1
vote
1
answer
73
views
Is there some method to quickly add references, like ctrl+c and ctrl+v style?
I use vscode to write some of my notes in Latex. Sometimes I need to add some references for clarity of the notes, and the normal way I do is to create a bib from Zotero, copy it at the end of my .tex ...
0
votes
0
answers
176
views
Latex commands are not recognized in VSCode terminal - windows 10
I have a latex project which is built successfully using the build icon of VSCode, but when I try to compile it using latex commands in the terminal, such as:
pdflatex main.tex
it gives me the ...
2
votes
1
answer
81
views
Compile small piece of code without \begin{document} with modern tools like vscode
I would like to compile piece of LaTeX code without \begin{document} and \end{document} (the preamble is, of course, fixed). The reason is that sometimes I only write small pieces of text and don't ...
1
vote
1
answer
189
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 ...
1
vote
0
answers
6k
views
Setting up LaTeX in VS Code: error "Recipe terminated with fatal error: spawn latexmk ENOENT"
I know there are similar posts with the same error, but I have been trying to follow up with their solutions and somehow is not working. I am using windows 10, with Ubuntu and I downloaded Miktex and ...
1
vote
0
answers
261
views
VS Code - LaTeX-Workshop - Recipe with `for` script
Hello There
Currently creating compilation recipes for LaTeX-Workshop extension in visual studio code, how to create a tool that rename files using for and mv or some other method?
The script using a ...
2
votes
1
answer
906
views
Magic comment doesn't seem to work in VScode? [duplicate]
I'm tyring to built a tex project in VScode. One problem I encountered is that I need to write in Chinese and as such I need to specify the compiler as xelatex rathter than pdflatex. This is not a ...