(VSCode/LaTeX Previewer) Can someone help me figure out why my installation of the plugin doesn’t work?

I have the following LuaLaTeX code that I want to be able to have coupled with the functionality of the LaTeX Previewer addon on Windows

documentclass[letterpaper,12pt]{article}

usepackage{microtype}
usepackage[left=1.5cm, right=1.5cm, top=1.5cm, bottom=1.5cm]{geometry}
usepackage{mhsetup}
usepackage{empheq}
usepackage{mathtools} % loads amsmath and graphicx
usepackage{newfloat} % use first over float
usepackage{float}
usepackage{indentfirst}
usepackage{amsthm}
usepackage{amssymb} % already loads amsfonts
usepackage{enumitem}
    newlist{checkboxlist}{itemize}{1}
    setlist[checkboxlist]{label=$square$}
    newlist{alphabetization}{enumerate}{1}
    setlist[alphabetization]{label=alph*.)}
    setlist{nosep}
usepackage{cancel}
usepackage[warnings-off={mathtools-colon,mathtools-overbracket}]{unicode-math}
    setmainfont[Ligatures=TeX, BoldFont=Timesbd.ttf, ItalicFont=Timesi.ttf, BoldItalicFont=Timesbi.ttf]{Times.ttf}
    setmathfont{STIXTwoMath-Regular.otf}

makeatletter
renewcommand{maketitle}
{{centering
normalsize{@title} \ smallskip
normalsize{@author} \ smallskip
normalsize{@date} \ vspace{baselineskip}
}}
makeatother

AtBeginDocument{%
setlengthabovedisplayskip{0pt}%
setlengthabovedisplayshortskip{0pt}%
setlengthbelowdisplayskip{0pt}%
setlengthbelowdisplayshortskip{0pt}%
}
showoutput

% Environments And Counters
newcounter{problemcounter}

NewDocumentEnvironment{problem}{o}{
  IfNoValueTF{#1}
    {refstepcounter{problemcounter}}
    {setcounter{problemcounter}{#1}}
  {centering textsc{Problem arabic{problemcounter}.}par}}{
}

newenvironment{solution}{
  {par centering textsc{Solution:}par}}{
}

newenvironment{justification}{
  {centering textsc{Justification:}par}}{
}

setlengthparindent{.25cm} 

%  Commands

newcommand{ds}{displaystyle}

newcommand{blk}{vspace{baselineskip}}

title{Homework}
author{Félix Maldonado Ramírez}
date{today}

begin{document}

maketitle

begin{problem} % 1

    begin{solution}
        
    end{solution}
end{problem}


begin{problem} % 2
    
    begin{solution}
        
    end{solution}
end{problem}


begin{problem} % 3
    
    begin{solution}
        
    end{solution}
end{problem}


begin{problem} % 4
    
    begin{solution}
        
    end{solution}
end{problem}


begin{problem} % 5
    
    begin{solution}
        
    end{solution}
end{problem}


begin{problem} % 6
    
    begin{solution}
        
    end{solution}
end{problem}


begin{problem} % 7
    
    begin{solution}
        
    end{solution}
end{problem}


begin{problem} % 8
    
    begin{solution}
        
    end{solution}
end{problem}


begin{problem} % 9
    
    begin{solution}
        
    end{solution}
end{problem}


begin{problem} % 10
    
    begin{solution}
        
    end{solution}
end{problem}


end{document}

What I have installed already: TeX Live, VSCode with LaTeX Workshop, LaTeX Utilities, and Zotaro LaTeX

The instructions for getting the extension setup go like this:

  1. Search for LaTeX Previewer in VS Code Extensions or Open VSX and click Install
  2. Go to the extension settings and set the LaTeX font diretory for your LaTeX distribution e.g. for MiKTeX on Windows C:UsersAppDataLocalProgramsMiKTeXfonts or for TeXLive native on Linux /usr/share/texmf/fonts
  3. The system font path will also be searched for font files
  4. Open a LaTeX file and run LaTeX Preview: Show Preview from the Command Palette or click the Preview icon

When I find the font folder inside texmf-local, I click on properties, look at Location and see “C:texlivetexmf-local”. I then copied and pasted this into the box needed as shown in the picture.

Though, when I go to the .TeX file and do Ctrl+Shift+L, it does not show the preview. instead I get this error.

dvilualatex --halt-on-error --interaction=nonstopmode --synctex=-1 c:UsersPanolaDocumentsLuaLaTeX Calculus 1HomeworkSetter.tex
This is LuaTeX, Version 1.18.0 (TeX Live 2024) 
 restricted system commands enabled.
! Undefined control sequence.
<*> c:Users
         PanolaDocumentsLuaLaTeX Calculus 1HomeworkSetter.tex
!  ==> Fatal error occurred, bad output DVI file produced!
No pages of output.

Error: Command failed: dvilualatex --halt-on-error --interaction=nonstopmode --synctex=-1 c:UsersPanolaDocumentsLuaLaTeX Calculus 1HomeworkSetter.tex

Could not generate dvi file - review the log for errors.

And when I enable debug mode to enable debug messages, I get a list of windows fonts (all five fonts that I have in the code appear in the list)

Can someone help me figure out why my setup doesn’t work? I don’t know why this doesn’t work, but if someone could help me, it would be a huge help. Thank you for reading. Have a nice day!

New contributor

Felix Maldonado is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật