Skip to main content

Questions tagged [perl]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
129 views

Where is `mktexlsr.pl` coming from in the trunk TexLive source?

I found that in modern fmtutil.pl https://github.com/TeX-Live/texlive-source/blob/92c38ad23e396ba3c67728998a7857791d401ea8/texk/texlive/linked_scripts/texlive/fmtutil.pl#L23 require "mktexlsr.pl&...
Vadim Kantorov's user avatar
1 vote
0 answers
41 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
  • 185
0 votes
0 answers
218 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
212 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
71 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
525 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
552 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
  • 215
4 votes
3 answers
661 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
  • 13.7k
0 votes
1 answer
628 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
75 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,348
1 vote
1 answer
312 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
20 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
251 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
339 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
4k 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
330 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,160
0 votes
2 answers
328 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
  • 320
3 votes
1 answer
917 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
406 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
4 votes
1 answer
746 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
  • 334
2 votes
1 answer
336 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
168 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
260 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
302 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
  • 143
0 votes
0 answers
114 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
  • 143
0 votes
1 answer
206 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
409 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
  • 31.3k
30 votes
4 answers
18k 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,689
2 votes
1 answer
641 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
363 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,308
1 vote
0 answers
366 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
  • 511
1 vote
0 answers
100 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
379 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
269 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
  • 208k
4 votes
1 answer
117 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
161 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
327 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
551 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
  • 208k
1 vote
1 answer
784 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
205 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,910
2 votes
1 answer
590 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 ...
Zoltan Csati'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
168 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