Questions tagged [perl]

{perl} is about questions related to the Perl language and TeX

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

Best way to process latex file with its own .sty (etc.) files all in the same dir

I am thinking of making a Perl module to make it easy to format text data from within a Perl script: Perl data structure + LaTeX template file -> LaTeX file -> run latex command on it -> ...
bliako's user avatar
  • 187
0 votes
0 answers
110 views

tlmgr not working after update

After some general system update, tlmgr stopped working. Everything I try gives the follwing error: /usr/local/texlive/2023/texmf-dist/scripts/texlive/tlmgr.pl: config.guess script does not exist, ...
grbll's user avatar
  • 1
0 votes
0 answers
103 views

latexmk.pl version error

I am trying to use LaTeX with VSCode, but I cannot seem to get the .tex file to build. I have installed the latest Perl 5.8.8, installed and updated (both user and admin) MiKTeX and installed the ...
Ahmed Annas's user avatar
2 votes
1 answer
2k 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:...
Fantantonio's user avatar
1 vote
0 answers
64 views

Xindy not working on non-root drive

I've just been using texlive for a few years on my Win10 computer and so far I wasn't facing any difficulties. However since I don't have enough space on the C: drive, I had to install it on another ...
Albis's user avatar
  • 11
2 votes
0 answers
453 views

GUI wizard installer on TeXLive 2021 auto-defaulting to main installer in Linux

I'm not sure why, but for some reason the -gui option is voiding with errors when installing TeXLive 2021 on Linux. Thus: clive@clivux:~/Downloads/install-tl-20210925$ sudo ./install-tl -gui=wizard -...
Clive Nicholas's user avatar
0 votes
1 answer
490 views

Miktex with problem to compile makeglossaries

I'm using texmaker and trying to create a glossary from a glossary.tex file. but I'm getting the error: Sorry, but makeglossaries did not succeed for the following reason: MiKTeX could not find the ...
JCV's user avatar
  • 205
4 votes
3 answers
555 views

How to extract equation-environments (or other blocks) inside a Latex document?

Situation: At Table of equations like a Glossary or memory help list user Alastor posted a Latex document, which contains several equation-environments. Assuming the real document from his teacher ...
MS-SPO's user avatar
  • 9,131
0 votes
1 answer
520 views

Struggling with Biber, can't figure out how to install the Perl packages

When I run Biber, with the command biber filename, it gives me this error (my emphasis): Can't locate Biber.pm in @INC (you may need to install the Biber module) (@INC contains: /home/christiank/...
Chris's user avatar
  • 1
0 votes
0 answers
70 views

Regular expression (RE) in tlmgr search

https://www.tug.org/texlive/doc/tlmgr.html#search said that search search [option...] what search [option...] --file what search [option...] --all what By default, search the names, short ...
Syvshc's user avatar
  • 1,328
1 vote
1 answer
261 views

How to install perl-tk to run Texdoctk on macOS 11.2.3

I'm attempting to run texdoctk on my Mac but I've encountered the following error: The program texdoctk needs the package perl-tk, please install it! I've reinstalled MacTeX 2021 and attempted to ...
kjharcombe's user avatar
1 vote
0 answers
18 views

Output of a perltex function as input to a latex function

I'm in trouble with a simple (in theory) but quite annoiying problem in calling the ifthenelse function when I use the ouput of another function defined in perl as input. I'm using the perltex and the ...
Alberto F.'s user avatar
5 votes
1 answer
2k views

latexindent: trouble installing File::HomeDir, Mac::SystemDirectory since macOS 11 Big Sur

I'm experimenting with latexindent on a fresh install of macOS 11 Big Sur and I'm having issues with File:HomeDir: running latexindent returns a whole list of errors, beginning with Can't locate File/...
Collin Sinclair's user avatar
3 votes
1 answer
210 views

Error running install-tl "profile key for collection-basic must be 0 or 1, not: 1"

I'm getting a very weird error trying to build texlive from scratch inside a Docker using a custom profile, mind you this exact code used to work, but after some updates to the texlive installer I get ...
Mojimi's user avatar
  • 131
5 votes
2 answers
3k views

Can't locate Algorithm/Diff.pm in @INC (you may need to install the Algorithm::Diff module)

I'm having the same problem as described in the closed question "https://tex.stackexchange.com/questions/104350/problem-regarding-latexdiff-perl-and-miktex-2-9-on-win7". Following the ...
user226796's user avatar
0 votes
0 answers
266 views

What are %O and %S in platex -synctex=1 -halt-on-error -file-line-error %O %S

I installed LaTeX with brew: # macOS MacTex Install $ brew cask install mactex-no-gui # Updating the packages $ sudo tlmgr update --self && sudo tlmgr update --all $ latex --version pdfTeX 3....
shin's user avatar
  • 631
4 votes
1 answer
2k views

TeX Live 2020 - tlmgr cannot load perl-tk although it is installed

I installed TeX Live 2020 on my Linux system. When I try to invoke tlmgr --gui I get the error message tlmgr: Cannot load Tk, thus the GUI cannot be started! The Perl/Tk module is not shipped with the ...
Robert's user avatar
  • 43
1 vote
2 answers
3k views

Sorry, but latexmk did not succeed for the following reason:MiKTeX could not find the script engine 'perl.exe' which is required to execute 'latexmk'

LaTeX workshop on vscode keeps showing this error: Sorry, but latexmk did not succeed for the following reason: MiKTeX could not find the script engine 'perl.exe' which is required to execute '...
spitfire's user avatar
1 vote
1 answer
1k views

Glossaries Extra not generating Acronym List

I am trying to build a document using the glossaries-extra package. However, whenever I try build it with \makeglossaries and \printglossaries I get the following in my document: " This document is ...
CastFire's user avatar
0 votes
0 answers
311 views

MiKTeX Portable not working out of the box

The error message I'm getting is MiKTeX could not find the script engine 'perl.exe', and I'm aware this means I need Perl installed. But if I search the TeX Live distribution path I have on disk, it ...
gargoylebident's user avatar
2 votes
5 answers
4k views

Can't locate TeXLive/TLConfig.pm in @INC

When invoking tlgmr, especially in the course of a distribution upgrade, it fails very early with a PERL error Can't locate TeXLive/TLConfig.pm in @INC followed by a list for @INC in the following ...
ysalmon's user avatar
  • 1,116
0 votes
2 answers
299 views

Automated quote from price list

I achieved a very satisfying price list and now want to combine it with my Excel file. I have changed my Excel file to CSV and have 1 column for quote and one for optional extras (as in my example: ...
Chris Peh's user avatar
  • 310
3 votes
1 answer
840 views

Adding entry .bib file breaks LaTeX Workshop in VS Code

When I add an entry to my .bib file and save it, I get an error on compilation that reads: Formatting failed. Please refer to LaTeX Workshop Output for details. Chasing the hint, I see in the ...
bashfuloctopus's user avatar
0 votes
1 answer
370 views

Perltex Can't Locate Perl Modules

I am using Tex Live and Strawberry Perl installation on Windows 10. My ultimate goal was to get LaTeX to retrieve data from a spreadsheet, as shown in this old response. However, at this point I am ...
KaffiMunster's user avatar
3 votes
1 answer
612 views

latexdiff encoding issue

I got the exact same problem as described here and here: umlauts are translated into strange characters; the output file does not compile the output file is UCS2-Little-Endian encoded (according to ...
JoN's user avatar
  • 314
2 votes
1 answer
311 views

Compiling document with PerlTeX, then luaLaTeX - conditional \usepackage based on compilation tool

Slightly connected to my previous question (Output of PerlTex with current TeXlive on Windows), I have managed to generate .pdf files with PerlTeX (precisely, with option --latex=lualatex). Next step ...
Tomáš Kruliš's user avatar
1 vote
1 answer
139 views

Output of PerlTex with current TeXlive on Windows

I am learning with PerlTeX on Windows in TeXworks. I have simple question, for which I wasnt able to find answer in package PerlTeX documentation: Is it possible to output PerlTeX compilation into ....
Tomáš Kruliš's user avatar
0 votes
0 answers
258 views

"Error starting Perl backend"

I have Windows 10 and I am trying to install texlive-full-2019 for TeXmaker. I cd into the directory containing the installation files for texlive-full. When I start install-tl-windows.bat, I get the ...
Jessica's user avatar
1 vote
1 answer
291 views

Latexindent with Homebrew Perl and Sublime Text

I'm trying to get the package BeautifyLatex working on Sublime Text 3. My initial attempts revealed that certain Perl modules were missing which prevented latexindent from working. Instead of fiddling ...
oweydd's user avatar
  • 133
0 votes
0 answers
107 views

PerlTk with MacTex BasicTeX

I have the BasicTex version of MacTeX installed on my machine. I would like to use the gui for tlmgr, but when I try to run it, I'm informed I need perl/tk. After some Internet searching it seems like ...
oweydd's user avatar
  • 133
0 votes
1 answer
203 views

xindy could not find file "lang/english/utf8-lang.xdy" despite being available

I get a strange error upon running perl.exe \path\to\xindy.pl -L english -C utf8 -I xindy -M "main" -t "main.alg" -o "main.acr" "main.acn" or equivalently, xindy.exe -L english -C utf8 -I xindy -...
Dr Krishnakumar Gopalakrishnan's user avatar
5 votes
1 answer
383 views

What is »thumbpdf« good for?

I have seen here that a new version of thumbpdf is available. But I don't understand the manual here: https://github.com/ho-tex/thumbpdf If I open any pdf I produced with pdftex, it will have ...
Keks Dose's user avatar
  • 30.7k
30 votes
4 answers
17k views

latexindent: Can't locate Log/Log4perl.pm in @INC (you may need to install the Log::Log4perl module)

I have Strawberry Perl and MiKTeX v2.9 installed on Windows 10 with the latexindent package installed via the MiKTeX console. However, running latexindent.pl in the command prompt results in the ...
Diaa's user avatar
  • 9,433
2 votes
1 answer
614 views

Vim, latexmk and accented filenames

My very first question on StackExchange. I'm using GVim on windows, trying to compile a minimal tex file with accented characters, e.g. "é 3.tex". Inside gvim, with pdflatex, no problem, but there is ...
Loïc's user avatar
  • 43
1 vote
1 answer
354 views

How to tell texindy where to look for the script engine?

I decided to start using xindy. I'm using MikTex on a Windows machine so I realized I need to install Perl manually, because when running texindy (in TeXworks) it says: texindy.exe: The script engine ...
Bart Michels's user avatar
  • 1,288
1 vote
0 answers
307 views

Link Portable Perl to makeglossaries

I am using MiKTeX with Texmaker on Windows, and I tried to run the command makeglossaries on Texmaker (which I edited in User Commands) but the Perl interpreter was not found. Due to very restrictive ...
Audrey's user avatar
  • 61
0 votes
1 answer
2k views

Problem in using pdfcrop

I am writing a LaTeX document on my Windows machine and I want to crop a pdf using pdfcrop. From my research I could learn that, I also have to install perl. I have downloaded and installed 64-bit ...
pkj's user avatar
  • 501
1 vote
0 answers
97 views

Is it possible to install wrappers for scripts not available in the package distribution in a local texmf?

Is it possible to install wrappers for scripts not available in the package distribution in a local texmf ? I would like to be able to add some perl scripts (not present in the MiKTeX distribution) ...
Idefix's user avatar
  • 147
2 votes
1 answer
374 views

Biber gets perl warning

I am running Arch Linux and have biber 2.7, perl 5.26.1 and TeXlive 2017 installed from the repositories. However when I compile the tex document \documentclass{memoir} \usepackage[backend=biber]{...
Spegesilden's user avatar
14 votes
1 answer
261 views

What is the recommended way to protect a TeX Live file from updates with no changes or to auto-patch it on such updates?

Many package managers allow users to prevent certain packages from being updated. Often this is called 'pinning'. A pinned package is protected from automatic updates. This is useful, for example, if ...
cfr's user avatar
  • 194k
4 votes
1 answer
110 views

perltex fails when using fourier package macro expression as argument to perl macro

After some search for errors, I have defined the following little example to show my issue. The command perltex can nicely translate the following document: \documentclass{article} \usepackage{...
Bernhard Bodenstorfer's user avatar
0 votes
1 answer
140 views

Can the tlperl folder in a (Windows) texLive installation be deleted or is it needed for the compilation of documents?

I am currently looking for ways to minimise the size of my texLive installation. My question generally concerns all operating systems, but for now it would suffice for me to know this in the context ...
PLO's user avatar
  • 1
1 vote
0 answers
322 views

biber: undefined subroutine &encode::define_alias [closed]

After an update of the OS, I am getting this error: $ biber -v Undefined subroutine &Encode::define_alias called at /usr/lib/perl5/site_perl/Encode.pm line 102. Compilation failed in require at /...
NikaZhenya's user avatar
6 votes
2 answers
519 views

How can I avoid this regex error when attempting to use texdef?

When I try to use texdef, I get the following error, even though texdef is just the same as it was when TeX Live 2016 was frozen and, indeed, just the same as it has been for several years, since it ...
cfr's user avatar
  • 194k
1 vote
1 answer
772 views

Error with Perl interpreter and glossaries package on Windows

I'm a relatively new user of Latex. I'm using TeXStudio on a Windows 8.1 system writing a long document (document class book). I'm trying to make glossaries package work properly and after ~2-3h of ...
Alex Rpd's user avatar
0 votes
1 answer
201 views

latexmk error "Insecure dependency in eval"

latexmk has suddenly stopped working (version 1:4.41-1 under Ubuntu 16.04.1 with texlive-full from the Ubuntu repos) and "Perl 5, version 22, subversion 1 (v5.22.1) built for x86_64-linux-gnu-thread-...
Peter Flynn's user avatar
  • 2,851
2 votes
1 answer
573 views

Fancytooltip error during fancy-preview

I wanted to try the fancytooltips package. I did the installation according to this page. I installed perl and the required Config::IniFiles library. I tried the installation both on Fedora using ...
Zoltán Csáti's user avatar
1 vote
0 answers
2k views

Cannot use latexmk on MiKTeX 2.9 [closed]

I'd like to use latexmk in order to compile my LaTeX documents and have Strawberry Perl v5.24.0 installed on my PC. Whenever I type in latexmk myFile.tex at the command prompt I'm getting the ...
AlexP's user avatar
  • 11
1 vote
0 answers
166 views

Tikz plot divide by minimun

I want to normalize my plot by the y minimal value. So I want to divide y by y max. I have already done before in Gnuplot with a Perl sentence : ymin1 = `perl -e 'print sort { $a<=>$b } <&...
daday001's user avatar
  • 199
1 vote
0 answers
175 views

[fancy-preview]: Mouse-over bibliography citations using Perl from Windows Tex Live, and with bibtex [closed]

What does one need to do to get the fancy-preview script going with only a Windows Tex Live installation thus far. The basics have been discussed on tex.SE here and here. [Quick digression: we use ...
kando's user avatar
  • 1,318