New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update the LaTeX kernel/base #131
Comments
It seems that Please check for MiKTeX updates tomorrow. |
Updated to the latest Oct 5 patches, still getting the error on \includegraphics .... |
Thank you for the swift response. The updated packages arrived this morning and the MWE now works after rebuilding the formats. @ctbhavius The MWE should work now, but since the update involves changes to the LaTeX kernel, it is not enough to just replace files, the LaTeX formats also need to be rebuilt. Due to a misconfiguration on my system I couldn't check if the update triggers an auto-rebuild of the formats. If it does not do that you may have to rebuild the formats yourself (MikTeX Console > Settings > Formats > select all relevant formats and click Build format). |
Thanks for guidance about rebuilding formats, but regrets, in my hands on my machine, even after updating to latest patches and rebuilding formats, MikTeX is still crashing on the \includegraphics command. Apologies, but due to time pressure on a manuscript, I have switched to typesetting the same LaTeX document with the TeX Live 2019 distribution, and my LaTeX source typesets fine without crashing on the \includegraphics command. |
@edocevoli would it be possible to release a new installation for windows? I am still experiencing this issue with todays Also the installer is numbered |
I just reinstalled Miktex as well and am experiencing the same issue, it is giving me a "Undefined control sequence" for \includegraphics even after rebuilding the formats manually. |
Guys at https://tex.stackexchange.com/questions/511138/miktex-graphics-version-1-3b-bug-on-windows-10-setcurrfile-undefined have provided a solution:
I have no clue what this does, but posting here for the peeps who need to continue working |
I am still experiencing the "Undefined control sequence" error with the new |
October 11 - same problem here ... the temp fix posted above seems to work as a temporary solution. |
OK, this turned out to be quite a tricky issue, since there are several things at play here. The heart of the issue: Incompatible packagesThe core of the issue I reported was as follows. The LaTeX development team released an update of the LaTeX kernel (LaTeX base in The packages and the kernel were uploaded to CTAN at almost the same time and arrived in TeX live with the same sweep of updates. Due to unfortunate timing, only The core issue of the MikTeX package sever distributing incompatible packages was fixed swiftly the next day on 2019-10-06 (UTC). Since then the server has distributed the newest LaTeX base package (2019-10-01) that matches The LaTeX kernel is specialUsually when a package is updated it is enough to renew the file name database to tell TeX about the addition or removal of files. This happens automatically when the MikTeX Console is used to update or install packages (same for TeX live's But the LaTeX kernel is special. It defines a TeX format and is directly baked into the executable so that all LaTeX commands are available from the start without loading any packages (the LaTeX commands can be used without any OK, so what can I do?Update in Admin and User modeFirst of all you need to make sure that your MikTeX system is fully up to date. Run an update (see https://tex.stackexchange.com/a/55473/35864). If you have a multi-user MikTeX make sure to run the Update in User and Admin mode. Double check that In an ideal world that should be it. The formats should automatically be generated as needed during the update and things should work. Small aside: The admin–user distinction is a common source of problems in MikTeX. The updater will always only update the packages installed with its permission level. If you have a multi-user installation and installed packages with User-level as well as Admin-level permissions, packages may get out of sync if you only update with one permission level. Whenever you encounter an update-related issue always make sure to update your system in Admin and User mode, often that makes issues go away. (Of course this only applies to multi-user MikTeX installs.) Check your formatYou can check your LaTeX format by running a simple LaTeX document like \documentclass{article}
\begin{document}
Lorem
\end{document} Open the resulting
The important bit is the
the date should be The date in the Recreate the formatsIf your formats are not new enough, MikTeX either did not recreate the format during the update or it did recreate the formats, but still picks up older versions of the formats. You can rebuild the TeX formats as described in https://tex.stackexchange.com/q/500534/35864. You will need to rebuild all the formats you want to use (probably at least Again if you have a multi-user installation there might be a need to do this in Admin and User mode. Generally I recommend to rebuild the formats in Admin mode first (if you have Admin rights that is) and only then if still necessary in User mode. In case the relevant formats create error you can not resolve or understand on rebuilding, ask a question on your favourite TeX forum and give enough details so people understand what you did. If you rebuilt the formats and still MikTeX doesn't pick up the correct formats, your MikTeX might be misconfigured. This is then going to be a specific issue that can only be diagnosed with more detailed information about your system. Again it might be better to ask a question with as much detail as possible on your favourite TeX forum. Last commentsThe fix from https://tex.stackexchange.com/q/511138/35864 is only a temporary workaround. It should not be needed any more since the correct kernel version is now available in MikTeX. Please don't use this workaround any more. Instead make sure that you format gets updated correctly. If you want to know more about TeX formats, LaTeX etc., have a look at http://www.tug.org/levels.html and https://tex.stackexchange.com/q/49/35864. Incidentally new installers and the like will probably not help here, since this is purely an issue related to things that happen after installation. Indeed it may not even help to remove MikTeX and install a new version if problematic files remain in directories not controlled by MikTeX. It is therefore important to try and understand where the problem comes from before going on an uninstall-reinstall spree. |
Thanks @moewew for the detailed description on how to solve the issue! there was no overview like that before! I managed to fix my working environment! |
" Admin and User mode " works ... the admin mode had no updates but the user mode did... thanks for the detailed help. |
After an Update a few hours ago the latex version has been the right one. |
Thank you @moewew for the detailed response. I followed all of the checks you outlined, checked versions, updated in both admin and user mode, recreated all formats in both user and admin mode, confirmed format update dates in the relevant directories, etc. Graphics now render when using pdflatex, however, they are still not rendering when I use xelatex. Do you happen to have any suggestions about what else I might take a look at? |
@smmurphy If pdflatex works, but xelatex doesn't then that seems to suggest that the pdfLaTeX format was properly regenerated, but the XeLaTeX format wasn't. Can you check the format version for the XeLaTeX run as described above? Is it |
Thanks for the quick response @moewew ! From the log...
I don't see any errors in the log, but the images don't render in the pdf, whereas they did prior to update using xelatex and still do using pdflatex. Interestingly it looks like pdf's render with \includegraphics{} but png and jpg do not. Thank you for any help you are able to provide! |
@smmurphy If you don't get any errors, then this is not related to the core of this issue here. I just tested in a small example document and XeLaTeX had no problems including PNGs, PDFs and JPGs. I suggest you ask a question about this on your favourite LaTeX forum, include as much info as possible. Ideally you would test image inclusion with files that are freely available like https://commons.wikimedia.org/wiki/File:Twemoji12_1f984.svg (PNG) and https://commons.wikimedia.org/wiki/File:Braunschweig_Brunswick_Einhorn_(2006).JPG (JPG). |
Thanks so much @moewew will do! |
Following up on this... This issue came up using rmarkdown where the default pandoc template triggered the line, |
@smmurphy the current grffile package does nothing other than load graphicx so it would be best not to load it, but loading it does no har m, it does nothing at all if you have already loaded graphicx. This is true of all engines, not xetex specific. |
The described steps did not solve the issue for me. I still get the undefined control sequence issue when using \includepdf. Any suggestions how to solve this? |
Things were fixed for me but after |
…ing#131 - trying to use an up-to-date version of miktek by building the docker
Via https://tex.stackexchange.com/q/511060/35864.
Tonight's MikTeX update installed the current versions 2019-10-01 of
graphicx
via the https://miktex.org/packages/graphics package (tools
was also updated https://miktex.org/packages/tools), but the LaTeX kernel/base andamsmath
is still at the previous release https://miktex.org/packages/ltxbase, https://miktex.org/packages/amsmath.This means that simple documents like
currently produce an error. (It can be verified using
pdflatex-dev
that this is not an error of the new LaTeX format.)Please update
ltxbase
,amsmath
and all other LaTeX base/kernel packages to the2019-10-01
release.See also MiKTeX/miktex#380.
The text was updated successfully, but these errors were encountered: