Questions tagged [visual-studio-code]

an extensible text/code editor which can be used as a LaTeX editor, especially with the use of various LaTeX extensions.

Filter by
Sorted by
Tagged with
1 vote
0 answers
45 views

Coloring functions, methods and attributes automatically in lstlisting

I am currently working on some materials for my CS classes and since I work in VSCode my goal would be being able to reproduce the color theme used in VSCode faithfully in LaTeX. For that I have ...
b00n heT's user avatar
  • 166
0 votes
1 answer
45 views

Error Using `latex-workshop.bibalign` Command in VSCode LaTeX Workshop

I am encountering an issue with the LaTeX Workshop extension for Visual Studio Code. I'm attempting to format my .bib files using the latex-workshop.bibalign command, as per the guidelines provided in ...
Foad's user avatar
  • 903
0 votes
0 answers
70 views

Visual Studio Code Delete bbl

I am using Visual Studio Code LaTeX workshop. My objective is the same as in Automatically overwrite bbl for biblatex version conflict. Is there any mechanism specific to Visual Studio Code such that, ...
温泽海's user avatar
0 votes
0 answers
139 views

How could the text color inside the VSCode PDF preview be changed?

I want to make LaTeX Workshop's PDF preview fit my Visual Studio Code's theme, and I managed to change the background color of the previewed file following this guide, however if I make the background ...
Magnivul's user avatar
1 vote
0 answers
76 views

Zotero citation, Undefined control sequence [closed]

After I installed the Zotero connector, I tried to cite through it, following every single step. I don't think there are issues with my citation procedure. \chapter{Introduction} % Poly- and ...
guokelsey's user avatar
0 votes
0 answers
133 views

Unable to use package ctex using latexworkshop in Visual Studio Code on my mac

I am writing in Chinese so my understanding is pdflatex doesn't work for me. I have to use xelatex with the ctex package. This is my code, which worked perfectly in the TeXShop IDE that I got after ...
jxhyc's user avatar
  • 1,131
0 votes
0 answers
77 views

How can I reduce the long compilation time? [duplicate]

translation by DeepL.com Description of the problem: I use Visual Studio Code on Windows, together with the extension "LaTeX Workshop" and the LaTeX distribution "TeX Live". ...
Luca Wendt's user avatar
0 votes
0 answers
78 views

Install mtpro2 font for TeXLive user

I'm a Window user, and I'm currently using TeXLive on Visual Studio Code for my LaTeX documents. I recently purchased the mtpro2 package for a better math font, but what I receive is a file named ...
Bakkune's user avatar
  • 57
0 votes
0 answers
36 views

How does one mark something in a pdf and jumps to the part in the code?

i think this is something that might be well-known but i could not find it online. So since this depends on the editor i am using visual code right now. I would like to know if there is a way to jump ...
Adronic's user avatar
  • 23
3 votes
1 answer
868 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 ...
Manuel Cañizares's user avatar
1 vote
0 answers
108 views

Visual Studio Code LaTeX date time

I am using visual studio code LaTeX workshop. Here is my code : \documentclass{report} \usepackage[yyyymmdd,hhmmss]{datetime} \title{my title} \author{author} \date{Compiled at: \today-\currenttime} ...
温泽海's user avatar
1 vote
1 answer
1k views

LaTeX table formatter extension in VSCode

Is there any latex extension similar to the Markdown Table extension for VSCode that can automagically format your tex tables in a nice way? For example, \begin{tabular}{lrr} 12 & 21412 & ...
vicky's user avatar
  • 11
0 votes
1 answer
763 views

LaTeX Worshop for VS Code doesn't work: "Latexmk: Wildcards in file names didn't match any files"

I tried to start using Visual Studio Code as a LaTeX editor for Windows following this tutorial. I completed all the steps: installed VS Code with a LaTeX Workshop extension, installed MikTeX and also ...
Andrey Dmitrenko's user avatar
0 votes
0 answers
37 views

error executing latex code on vs

I recently wanted to make a .tex code in vs and I got the following: Sorry, but latexmk was unsuccessful for the following reason: MiKTeX could not find the 'perl' script engine that is required to ...
Wrloord's user avatar
  • 101
2 votes
0 answers
199 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 ...
Huanyu Shi's user avatar
1 vote
1 answer
413 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 ...
Felipe9's user avatar
  • 309
1 vote
0 answers
252 views

using pstricks to typeset a LaTeX document in Visual Studio Code

I would like to start using Visual Code Studio LaTeX files. I am a linguist, and my documents contain many phrase marker trees that are written with macros that rely on pstricks. I therefore need to ...
Kyle's user avatar
  • 11
4 votes
1 answer
1k 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 ...
Daniel Schreurs's user avatar
2 votes
2 answers
3k views

Display latex inline (in vs code)

I remember seeing someone's latex editing setup where the latex was rendered inline, so when you'd type \alpha in your .tex file it'd be replaced with the letter alpha for example. (but only visually, ...
Chrono's user avatar
  • 23
3 votes
1 answer
2k views

Vs-code latex change only pdf Out Dir

I use vs code for writing and compiling tex files. I changed on vs-code settings the Out Dir to the folder: %DIR%/build. With this setting all the auxiliary files and the pdf are saved in ./build but ...
Pablo's user avatar
  • 43
1 vote
0 answers
390 views

When I compile tex in vscode by tex workshop, I lose focus from my editor?

I reinstall my MacOS last week. I can save my tex code and then vscode will show the PDF of tex in the right by vscode tab, and I can just go ahead and change the code without modifying the cursor ...
牟翔宇's user avatar
1 vote
1 answer
436 views

Changing the aux folder for makeglossaries

I am using Visual Studio Code with Latex Workshop and I am changing the directory for the auxiliary and output files to a directory called .aux (I want it to stay hidden if possible). My reciepe looks ...
TheWorker's user avatar
  • 291
2 votes
3 answers
10k views

Setting up LaTeX in VS Code?

I am attempting to set up LaTeX in VS Code. I have installed MiKTeX and I am able to create TeX files and pdfs using TeXworks. I have installed the TeX workshop extension in Visual Studio Code. Yet I ...
DanielHubschauber's user avatar
1 vote
0 answers
369 views

Citation `XXXX' on page YY undefined in VS Code

I've recently started working on my first LaTeX document and I'm doing it in VSCode. I have the LaTeX workshop plugin installed and it's worked flawlessly until now. I have my basic .tex document with ...
Aksel Tahir's user avatar
1 vote
0 answers
2k views

It takes long time to built file

I made this file: \documentclass[uplatex, dvipdfmx]{jsarticle} \begin{document} \LaTeX \begin{equation} x^2 + y^2 = 5 \end{equation} \begin{equation} x^2 + y^2 = 13 \end{equation} \end{...
valcuria's user avatar
0 votes
1 answer
657 views

Gnuplot and VSCode's Latex Workshop

I am trying to create a contour plot with PGFPlots in VSCode. I am using the LaTeX Workshop extension. I have gnuplot installed. Also in case it matters, I am using Windows Subsystem for Linux 1 (WSL1)...
Nukesub's user avatar
  • 607
1 vote
1 answer
788 views

Asymptote Figures Not Rendering in VS Code

I've been using VS code with James Yu's LaTeX Workshop extension for all my TeX needs. I wanted to add a simple Asymptote figure from my days using Overleaf, and saw that it did not load. Looking at ...
Charles Paxson's user avatar
1 vote
1 answer
1k views

Building with VSCode Latex Workshopm recipes on build directory

I'm working with VSCode WSL and the Latex Workshop extension. I did need to use the \makeglossaries so I created a settings.json like the following as it was indicated in a question I've found. { &...
AquilinoGonzález's user avatar
4 votes
2 answers
13k views

Texlive / LatexWorkshop - unable to Build or Preview Latex Files

I have installed TexLive on Ubuntu 20.04.1 LTS using sudo apt-get install texlive After this I created a file "text.tex" in Visual Studio Code. I installed the Plugin "Latex Workshop&...
MrTony's user avatar
  • 143
0 votes
0 answers
311 views

Hebrew Latex - VSCode

I'm using VSCode to write a .tex files. I've downloaded MikTeX to get latex on my computer. I'm trying to add a Hebrew text to the file and got a bunch of errors. I tried to download the culmus-...
עתודה אקדמאית's user avatar
0 votes
0 answers
638 views

VS Code with Latex produces wrong commenting

I'm using Visual Studio Code with Latex Workshop as my editor to create beamer slides. Until now everything works quite well. Today I tripped over a strange behaviour of VS code. I'm using minted ...
LosWochos's user avatar
  • 141
17 votes
4 answers
23k views

How to use visual studio code LaTex Workshop with xelatex

I want to compile a tex document using xelatex in LaTeX Workshop extension in visual studio code. How can I change compiler from default one to xetex? I put my current setting.json file bellow. { &...
parsa2820's user avatar
  • 337
0 votes
0 answers
348 views

Add new document class

I am trying to compile my file on VS Code by the Tex-Workshop extension. However when I try to include a new document class \documentclass{amsart} The error message below always comes out There were ...
kevin's user avatar
  • 1
1 vote
1 answer
3k views

Empty Bibliography using latexmk recipe in vscode

I have read quite a lot of other questinons of this type, and no help at all. I'm using WIN10 PRO as OS text editor: VScode version 1.48.2 LaTeX Distribution: MikTex Recipe used in vscode: latexmk (it ...
Daniel Correa's user avatar
0 votes
0 answers
2k views

What's the VS Code LaTeX-Workshop recipe and tools for the Tufte book class?

Issue I'd like to really understand how to use the recipes and tools function for the LaTeX-Workshop extension for LaTeX in VS Code. I've read the documentation, but I can't quite figure out how to ...
kapple's user avatar
  • 93
5 votes
2 answers
3k views

How to get LaTeX Workshop showing equations previews as I move my cursor into inline math / math environment?

I am using VSCode with a plugin called LaTeX Workshop as my editor for LaTeX. The plugin has a very useful feature that it shows previews of equations as I move my mouse over over inline math, \[, $$, ...
Hoyan Mok's user avatar
1 vote
1 answer
671 views

Citation and Referring doesn't work on VS Studio Code

I am using Visual Studio Code for my Tex editor. Everything works fine except when I try to \ref a paragraph or \cite something from the bibliography. Could you please help? Thanks!
Ксения Цочева's user avatar
0 votes
0 answers
380 views

Undefined subtype 'subfigure' when using floatrow to create subfigures with subcaptions in VScode latex-workshop

I am try to creat multi rows and columns subfigures each with subcaption. I've run my code in Overleaf, which works fine. However, when I run the same code locally on my windows laptop using VScode ...
Liang Guo's user avatar
3 votes
0 answers
2k views

Syncing pdf with vscode external viewer

Setup: I'm using visual studio code with LaTeX Workshop extension to write latex. I use an external pdf viewer mainly because I want to see the pdf on a different screen. Using Ubuntu 20.04 LTS. ...
Gal's user avatar
  • 131
0 votes
1 answer
633 views

Folding footnotes in VS Code

Folding sections works well in VS Code, but would someone know whether there is an extension that allows folding footnotes? I typically do this in VS Code: Here is some text.\footnote{ reference text ...
Timothy Roes's user avatar
0 votes
1 answer
233 views

Command \url{} not showing up in command palette Visual Studio Code

In Visual Studio Code, using the LaTeX Workshop extension, you can surround selected text with a command or environment. A hotkey brings up Command Palette and there you can choose the command. This ...
Timothy Roes's user avatar
19 votes
3 answers
20k views

"Go to Source" for Latex on VS Code does not seem to work

I am currently trying to migrate to VS Code (on Mac) for creating and editing tex files. Everything has been working just fine except that, when I build and preview, I do not seem to be able to use ...
Gregory Cosac's user avatar
3 votes
0 answers
6k views

Biblatex and biber in VS Code

I've just changed from TexMaker to VS Code and have since been unable to compile .tex documents that use .bib bibliographies and biblatex with biber. I have also tried bibtex, but it doesn't work ...
Pedro G. Mattos's user avatar
2 votes
1 answer
660 views

Output *.pdf file to a different directory using latexmk

I'm using latexmk in Visual Studio Code and I'd like to output the .pdf file to the current directory (same directory as the .tex file), while outputting all auxiliary files to a different directory. ...
zjeffer's user avatar
  • 121
16 votes
4 answers
68k views

PDF Preview in Visual Studio Code

In this question, the setup of LaTeX in VS Code is explained in one of the answers. I followed the instructions, and am indeed able to compile a LaTeX document in VS Code, with the PDF output as ...
Marie. P.'s user avatar
  • 685
7 votes
1 answer
31k views

How can I get VSCode's LaTeX Workshop to find the right installation of TeX?

I've installed TeX Live and Visual Studio Code with the LaTeX Workshop extension. Previously, I'd installed LyX. VSCode is looking at the LyX installation. I know this because I had an error ...
Terri Simon's user avatar
11 votes
4 answers
9k views

Save auxiliary Latex files in another folder in VSC

I have started to configure VSC as my default latex text editor, using the "Latex Workshop" extension. My question is: How can I make the auxiliary files generated when compiling the project be saved ...
Josemanuu01's user avatar
0 votes
0 answers
2k views

"command 'vscode.previewHtml' not found", cannot get preivew of latex

I have this error flashing everytime I try to use VS for Latex. I have no idea how to proceed. One thing I noticed is that it can load pdf that already exists in the folder. error: command 'vscode....
Kilgore Trout's user avatar
1 vote
1 answer
614 views

Umlaut not working in Windows

I'm fairly new to LaTeX and wanted to setup my Visual Studio Code to work with LaTeX. At the moment the compiler always throws an error when I am trying to compile a document with umlauts in it. I ...
Helmut K.'s user avatar
0 votes
0 answers
446 views

Building latex project in VS Code through command line

I would like to build a latex project from the command line on a build server. We write the most latex documents in Visual Studio Code with the LaTeX Workshop extension by James Yu. I have managed to ...
7heViking's user avatar
  • 1,183