Hot answers tagged

58 votes

How can I generate PDF metadata from LaTeX?

As others have already answered, I like to use hyperref. However, as my documents often have \author and \title commands I do not want to repeat myself in the package parameters. Luckily, hyperref ...
user avatar
  • 731
38 votes

problems installing mathtools

Had the same issue. For me it worked after I synchronized manually with the repository using the MikTeX Package Manager (Admin) tool and under the Repository menu using the synchronize. Then the ...
user avatar
37 votes

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

UPDATE: Log4perl is definitely no longer required. See comments. Original Answer For others running into the same issue but on a Mac: Install perl via brew: brew install perl Use cpan to install the ...
user avatar
  • 471
33 votes

Package inputenc Error: Invalid UTF-8 byte 147

You have byte 147 in your file without declaring an input encoding, previously this would silently fall through and make whatever character happened to be in that position in the font encoding. From ...
user avatar
33 votes
Accepted

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

Thanks to @Nicola's comment, the error can be fixed as follows: The missing module is Log::Log4perl as found in the first line of the error. Open Win 10 start menu and search for CPAN client, then ...
user avatar
  • 8,789
30 votes

How to install mathtools package?

@romkyns I had the same problem with mathtools and MiKTeX today, the same initial error about the missing .sty file. Going to: MiKTeX 2.9\miktex\bin I ran mpm_mfc_admin, went to the Repository tab ...
user avatar
  • 413
30 votes
Accepted

! LaTeX Error: Command \counterwithout already defined

A new version 1.1a of chngcntr is now available on ctan which detects that the commands are already defined and so does nothing other than leave a message in the log, so the error in the question is ...
user avatar
29 votes

How to use LaTeX on VS Code?

When MiKTeX is running and LaTeX-Workshop installed, you do not need perl or latexmk. Building Just open the command palette in VS Code (Menu: View > Command Palette ...) and type: Latex workshop: ...
user avatar
  • 391
28 votes

How can I tell which Latex (MikTex or TexLive) I have installed on Ubuntu?

Use pdflatex --version to tell which version of Latex you're using.
user avatar
  • 1,601
27 votes
Accepted

MikTeX proxy settings

I assume you are using the newest version of MikTeX. Step 1: Open the Update application Step 2: Click on "Connection Settings" Step 3: tick "Use a proxy server" and enter the details
user avatar
26 votes
Accepted

How to use LaTeX on VS Code?

I faced some difficulties in configuring and I decided to do this tutorial. In fact, it would be easier to download MacTex, which is the full version; however, I was not in the mood to occupy 4GB of ...
user avatar
23 votes

miktex-makemf did not succeed for the following reason

Please run this command: updmap.exe --admin or updmap.exe --force for example: C:\Program Files\MiKTeX 2.9\miktex\bin\x64>updmap.exe --force
user avatar
  • 413
23 votes
Accepted

MiKTeX graphics version 1.3b bug on Windows 10 (\set@curr@file undefined)

As noted in the question, this is an issue in the way MiKTeX has integrated the latest LaTeX kernel change. The graphics package has been updated but not the LaTeX kernel, and this leads to the error. ...
user avatar
  • 243k
22 votes
Accepted

AUCTeX says "LaTeX: problems after {1} page"

AUCTeX parses the output buffer in order to report errors and warnings, and if there is none of them, it looks for a line like LaTeX2e <date> However, since April 2017, the date format of ...
user avatar
  • 8,316
21 votes
Accepted

MikTex 2.9 Package Manager internal error trying Update Wizard

Sorry, in retrospect the solution seems obvious... but I had been looking around for quite some time. Do not use the Package Manager, but "MikTex Update (Admin)" :-/ Windows 10 tricked me, for when ...
user avatar
21 votes

Is there a problem with Beamer in the latest MiKTeX update?

The problem disappeared when I used the MiKTeX Package Manager to install Beamer and translator, used Refresh FNDB, and restarted my machine. Experience with a second machine shows the latest ...
user avatar
21 votes

How to get rid of pdflatex: major issue: So far, no MiKTeX administrator has checked for updates in TeXstudio

I had a similar issue on a new install of MikTeX 2.9.7300 on Windows 7. I received the error message So far, no MiKTeX administrator has checked for updates. The error persisted even after ...
user avatar
  • 315
20 votes

BibTex There were undefined references

The answer is as @Sigur wrote: run (pdf)latex + bibtex + (pdf)latex + (pdf)latex [+ preview] In TeXmaker, this can be done using shortcuts F6 + F11 + F6 + F6 [+ F7].
user avatar
  • 411
18 votes
Accepted

Do I risk breaking documents by updating my TeX distribution?

Generally speaking, there’s always a risk that something will break and the usual caveats thus apply: never update on a deadline, check that the output of your document is satisfactory, etc. That ...
user avatar
18 votes

\usepackage{glossaries} won't work after Miktex-Update/-Reinstallation

I had the same problem. I followed Ulrike's advice i.e. Synchronization of the local package databases (thanks Ulrike!!). It sorted out the initial issue. Next I too ended up with the "glossary-...
user avatar
  • 201
18 votes
Accepted

Font not loadable: metric data not found or bad

Unlike pdflatex lualatex doesn't trigger the tfm generation from a mf-source if it can't find the tfm (this is not miktex specific: it doesn't do it in texlive either, but there bbold10.tfm exist in ...
user avatar
18 votes
Accepted

Should different TeX implementations (e.g. MiKTeX's and TeX Live's) produce identical DVI files?

TeX is concerned with typesetting on a physical medium (eg paper). For Don identical output means a visually equal look and any user-level calculations are exactly identical (which is why you can't ...
user avatar
17 votes

Auto Package download for TeXLive

texliveonfly As mentioned in comments, there is a TeX Live package called texliveonfly which you can use with texliveonfly filename.tex, and it will automatically downloaded the right TeX Live ...
user avatar
  • 1,615
17 votes
Accepted

How to install mathtools package?

If you have installed MikTeX 2.9 (on Windows) is very easy. You can go to Home->Programs->MiKTeX 2.9->Maintenance (Admin)->Package Manager (Admin) Alternative path to admin exe file C:\...
user avatar
  • 8,498
16 votes
Accepted

On pdfTeX error (font expansion): auto expansion is only possible with scalable fonts, microtype package

TeX Live includes cm-super. If you write \usepackage[T1]{fontenc} then the fonts from cm-super are used and these are scalable. Therefore, you don't get an error. I assume that you do not have cm-...
user avatar
  • 183k
16 votes

MiKTeX graphics version 1.3b bug on Windows 10 (\set@curr@file undefined)

The core of this issue has been fixed (on 2019-10-06) in MikTeX, but since the situation involves formats and is overall a bit tricky I wrote up a guide at https://github.com/MiKTeX/miktex-packaging/...
user avatar
  • 159k
15 votes

Do I need to install MiKTEX on my system before installing Texmaker?

If you want to run LaTeX on Windows you need to install a TeX distribution for Windows, MiKTeX or TeX Live. With pdflatex mwe.tex you can then compile the TeX code in file mwe.tex from terminal/...
user avatar
  • 63.4k
15 votes
Accepted

MikTeX update from basic install (2.9.6850) fails with fatal error

It seems that this issue is known from this thread: https://github.com/MiKTeX/miktex/issues/187 The workaround suggested there is to repair the MiKTeX installation by running: initexmf --admin --...
user avatar
  • 271
15 votes
Accepted

siunitx v3 in beamer adds extra slide containing "T@TS1" before the first frame

I've located the issue and there will be an update to CTAN shortly. It's a simple error - I've accidentally grabbed an argument that's eating up a test.
user avatar
  • 243k

Only top scored, non community-wiki answers of a minimum length are eligible