Questions tagged [vscode]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
2 answers
43 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: ...
user avatar
  • 3
0 votes
0 answers
17 views

Problem with bibtex compilation on VS code

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": "/...
user avatar
0 votes
1 answer
61 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 ...
user avatar
  • 145
0 votes
1 answer
48 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.
user avatar
  • 33
0 votes
0 answers
51 views

VSCode compiling for LaTex tells me to "(re)run Biber" even though it is part of the recipe

First post ever, so I'm sorry in advance if I don't provide any logs - I'll figure out how to do that if need be. For now, maybe someone knows what the issue is: I'm trying to compile my main.tex ...
user avatar
0 votes
0 answers
38 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 ...
user avatar
  • 8,674
0 votes
0 answers
40 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 ...
user avatar
  • 1,439
0 votes
0 answers
28 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 ...
user avatar
  • 145
0 votes
0 answers
37 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 ...
user avatar
  • 1
1 vote
1 answer
52 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 ...
user avatar
  • 6,080
0 votes
0 answers
27 views

Building the project continues indefinitely

I installed texlive on my laptop (ubuntu 20.04.4 LTS) using the command: sudo apt install texlive-latex-extra and then I installed sudo apt-get install latexmk. I also use plug in VS code - latex ...
user avatar
1 vote
0 answers
43 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 ...
user avatar
0 votes
0 answers
98 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 ...
user avatar
2 votes
0 answers
232 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 ...
user avatar
  • 23
0 votes
1 answer
338 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 ...
user avatar
  • 195
0 votes
0 answers
45 views

Visual Studio Code: Latex workshop recipe - rename generated pdf from underline to spaces with command substitution

For compatibility latex files shouldn't have spaces, so their generated files doesn't as well. How can I create a recipe for renaming the generated pdf file substituting _ for ? In a terminal window ...
user avatar
  • 79
0 votes
0 answers
899 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 ...
user avatar
  • 23
1 vote
0 answers
161 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 ...
user avatar
  • 79
1 vote
0 answers
308 views

Magic comment doesn't seem to work in VScode?

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 ...
user avatar
  • 1,033
0 votes
0 answers
608 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 ...
user avatar
0 votes
0 answers
68 views

Configure VSCode generete dvi to ps to pdf

Configuring latex in VSCode I put the following in my personal configuration. { // Define which recipe is used by `latex-workshop.build`. It also applies to auto build. Recipes are refered to ...
user avatar
0 votes
0 answers
183 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, ...
user avatar
  • 133
0 votes
2 answers
153 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 ...
user avatar
1 vote
1 answer
411 views

LaTeXindent fail in VSCode: Can't locate Log/Log4perl.pm

I'm using LaTeX Workshop on VSCode to build pdf using LaTeX and I'm getting this error in the Output console when I save the .tex file. Formatting with command latexindent -c,d:path_to_folder,d:...
user avatar
1 vote
0 answers
114 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 ...
user avatar
  • 411
0 votes
0 answers
71 views

VS Code LaTeX Workshop Error with Biber and Biblatex [duplicate]

despite numerous attempts and following the official documentation to modify the settings.json, I can no longer compile tex documents that use biber+biblatex in VS Code. I keep getting the error "...
user avatar
1 vote
1 answer
56 views

What is the file __latexindent_temp.tex?

I'm using Visual Studio Code with the LaTeX Workshop extension. It works fine, but sometimes a file named __latexindent_temp.tex is automatically generated. It keeps working fine if I delete it and it ...
user avatar
  • 152
1 vote
1 answer
617 views

Recipes in Settings.JSON for Latex Workshop extension not showing

I tried to edit/add some recipes to the Latex Workshop extension of VSCode. However, when I open settings.json, the thing that appears is this: { "clangd.path": "/home/guillermh/....
user avatar
0 votes
0 answers
34 views

VSCode not underlining error line in red when render fails (soft-question)

For some reason after re-installing windows and setting up LaTex on VSCode with the usual Latex workshop extension, when I have an error in my LaTex document there is no longer any squiggly underlined ...
user avatar
  • 101
0 votes
0 answers
86 views

VSCode - LaTeX preview not working

When I try to preview any LaTeX document I write in VSCode, I get the error message Cannot view file PDF file. File not found C:.... How can I fix this? It would be really convenient for me if I could ...
user avatar
  • 1
0 votes
0 answers
42 views

Unable to run biber in vscode [duplicate]

I always use vscode to run LaTeX and my codes of recipe in settings.json are "latex-workshop.latex.recipes": [ { "name": "xelatex", ...
user avatar
  • 101
0 votes
0 answers
21 views

VsCode markdown: how to add align as a direct math environment?

Basically, I am using vscode for my latex notes due to its snippets, and I would like to have a live preview with markdown. The idea is to take live notes in markdown and then copy and paste them into ...
user avatar
0 votes
0 answers
55 views

Workflow for automatically running sagetex in VSCode

Notes This is my first post here; however, I have used the answers from here countless times. I am definitely a beginner with command line/terminal stuff. I would say I am pretty literate with LaTeX, ...
user avatar
  • 1
0 votes
0 answers
116 views

Customize which file extensions can be built with VSCode/LaTeX Workshop (tikz-files)

My question is related to VS Code - LaTeX Workshop - Typesetting a LaTeX file with extension ".md" instead of ".tex" , which has not received any answers or comments so far (and ...
user avatar
  • 333
1 vote
0 answers
77 views

Use font ligatures as concealment

I write tex in VSCode using the latex-studio extension, and I wanted to add concealments to the editor, for example, when I write \lambda I want it to display λ in the editor itself. I found a VSCode ...
user avatar
  • 111
1 vote
0 answers
184 views

Writing Persian text in latex in vs code

I want to use VS code as my new latex editor because it offers lots of great features. But since I write lots of Persian text, VS code doesn't show them correctly. It doesn't have an RTL option to ...
user avatar
0 votes
2 answers
135 views

Macro Definition for Including Image Files

I have been trying to implement a macro for my team to be able to include images with a macro. With this macro: Size of the image Image path selection Caption of the image can be defined by the end ...
user avatar
1 vote
0 answers
33 views

How to interact with the compiler within VSCode?

Sometimes, I made a typo, so the compilation fails, which leads to an incomplete aux file. This file causes problems the next time I want to compile. Usually it says File ended while scanning use of \...
user avatar
  • 35.5k
1 vote
1 answer
2k views

LaTeX Workshop in VSCode failed to compile

I am trying to use LaTeX Workshop in VSCode to compile my tex file. I have no idea why it can not successfully compile it. The error log is as follows: This is pdfTeX, Version 3.141592653-2.6-1.40.22 (...
user avatar
  • 61
0 votes
0 answers
60 views

How to use psfrag in latex workshop in VScode?

I've been struggling with making psfrag working in latex workshop in VSCode. Here are my tool and recipe "latex-workshop.latex.tools": [ { "name": "latexmk", ...
user avatar
1 vote
0 answers
327 views

View PDF in VSCode Not Updating

the issues I'm facing in vscode are: "View LaTeX PDF" does not update: I made some edits to my .tex file, saved them with ctrl + s, but the PDF does not update (it does not show the new ...
user avatar
0 votes
1 answer
153 views

VS Code latexmk version mismatch

I have trying to install latex in vscode. I have install Miktex, perl, Latex Workshop extension latest versions. But I can not run the .tex file. Facing version related error. File::Path version 2.08 ...
user avatar
2 votes
0 answers
505 views

How to I properly setup LaTeX Workshop in VSCode with WSL2

I am completely lost. I have installed TeXLive on windows 10 and with TeXworks I'm able to use the packages stmaryrd, physics, and mathtools along with the normal ams packages. However the second I ...
user avatar
1 vote
0 answers
362 views

Mimicking overleaf compiling in VS code

I'm trying to render a LaTeX PDF using both hyperref and biblatex and a psfrag based package (chemscheme), I posted a question earlier but I'm not sure what the real fix is. Now I found that using ...
user avatar
  • 11
0 votes
0 answers
86 views

Why did the math preview in vscode fail when including physics package?

My code is written as follows: \documentclass[12pt]{article} \renewcommand{\baselinestretch}{1.5} \usepackage{hyperref} \usepackage{amsmath} \usepackage{amssymb} \usepackage{esint} \usepackage{...
user avatar
  • 33
0 votes
0 answers
106 views

Latex with VSCode

Anyone using VSCode to work with Latex? I try create a .latexmkrc with this content: $pdflatex='lualatex -synctex=1 -interaction=nonstopmode -shell-escape'; But always have this error: main.tex (...
user avatar
0 votes
1 answer
1k views

no error messages in VSCode LaTex Worksop but latex won't compile my file

There are no errors in my code as far as I know but my code won't compile in vscode LaTex Workshop. I only get a bunch of warnings after a very cryptic Recipe terminated with error. Retry building the ...
user avatar
1 vote
0 answers
66 views

VS Code - LaTeX Workshop - Typesetting a LaTeX file with extension ".md" instead of ".tex"

For a reason difficult to explain, I need to be able to typeset a LaTeX file with a ".md" extension. (No, I can't change it into ".tex".) pdlatex (and TeXShop) allows this. Is it ...
user avatar
  • 61
4 votes
1 answer
183 views

VScode build recipe with keybinding

I have VScode and LaTeX workshop and usually compile by typing ctrl-alt-B. This does the full run (pdflatex, bibtex, 2 x pdflatex). However, I am often happy with just one LaTeX run, so I have added a ...
user avatar
  • 1,073
1 vote
1 answer
151 views

Add post processing step with VS Code

I'm very new to Latex and I'm trying to setup a glossary. I need to execute a post processing step, but I can't find how can I add this command to the compilation using VS Code. The command is: ...
user avatar
  • 121