## LaTeX forum ⇒ MiKTeX and proTeXt ⇒ How to update Tex distribution Topic is solved

Information and discussion about MikTeX distribution for Windows and the related proTeXt: Installing, updating, configuring
Singularity
Posts: 152
Joined: Sat Jan 22, 2011 9:55 pm

### How to update Tex distribution

According to this post, I need to update my Tex distribution. How do I do that?

I have MikTex. I ran "Update (Admin)" program a few times. But that has not solved the problem.

I also tried Package Manager (Admin), but was not sure what to do after starting it. I could not find anything named xfrac in it.

I have MikTex 2.9.

Tags:

cgnieder
Site Moderator
Posts: 1988
Joined: Sat Apr 16, 2011 7:27 pm
Does this question and its answers over a TeX stackexchange help?

How do I update my TeX distribution?
Clemens
------------------------------
chemmacros · chemformula · leadsheets · xsim

Stefan Kottwitz
Posts: 9201
Joined: Mon Mar 10, 2008 9:44 pm
Hi,

Singularity wrote:I have MikTex. I ran "Update (Admin)" program ... I could not find anything named xfrac in it.

MiKTeX 2.9 is already the latest base version. Running update sounds fine, as you did it.

However, xfrac is not a single package. It's part of the l3packages bundle, as you can see here: MiKTeX: l3packages: High-level LaTeX3 concepts.

So, ensure that l3packages is installed.

Stefan

Stefan Kottwitz
Posts: 9201
Joined: Mon Mar 10, 2008 9:44 pm
Here's the relevant part for MiKTeX updating, written by Harish Kumar under the link above (so cited with CC attribution). Btw. Harish Kumar is also member on LaTeX-Community.org.

MiKTeX GUI (Windows XP/Vista/7/8)

MiKTex can be updated with 2 methods. With method 1 only updates are possible – it's intended for this task –, method 2 uses the package manager, originally intended for manual package installations and uninstallations.

Otherwise than in TeXlive also binary files are updated if necessary. They are provided as additional packages with names starting with miktex-<name>-bin (and supporting packages with similar names).

Method 1

The update utility can be started from

start>All Programs>MiKTeX 2.9>Maintenance>Update.

This will open up a window like this:

miktex-update-1.png (54.63 KiB) Viewed 8062 times

Here, one can choose the package repositories and adjust connection settings. Pressing Next button will take you to the next window which will show, after a search through the repository for update-able packages (if any).

Here we can select the packages we want to update and click Next again:

miktex-update-2.png (108.67 KiB) Viewed 8062 times

Usually all packages are already selected. But sometimes, if an important internal MiKTeX binary has to be updated, this is selected alone and the update should separately be executed, first. Afterwards a second call of the update utility will select all other update-able packages.

miktex-update-3.png (50.68 KiB) Viewed 8062 times

Method 2:

Alternatively, one can open MiKTeX package manager by

start>All Programs>MiKTeX 2.9>Maintenance>Package Manager.

When opened, it looks like this:

miktex-update-4.png (93.25 KiB) Viewed 8062 times

From here, one can choose the repository tab to change the repository and synchronize the packages with repository. After synchronizing, through Edit tab, we can perform Select All or Select Installable Packages or Select Updateable Packages. When this is done, the + or - buttons under the File menu get activated. By clicking + we can install updateable packages, while - button will remove the packages (Attention!).

If you installed MiKTeX with Administrator privileges, you will have '(Admin)' versions of the above commands. To fully update your system, run the update both with and without the '(Admin)' mode enabled. This is necessary as with auto-install enabled, MiKTeX will have managed files both in the system-wide (Admin) area and your own user tree.

------

Ulrike Fischer gave additional information here:

Synchronization

Miktex has an offline database which contains informations about available packages, their content and how to install them. Miktex needs such an offline database for the on-the-fly installation: Beside other problems it would slow down the compilation a lot if miktex would download the informations every time a file is missing.

When new packages are added to the online repositories, or if for some reason packages are rearranged or renamed the offline database on your PC is no longer up-to-date and you should "synchronize". As you can't know if this is the case you should use sensible rule of thumbs: Synchronize every month, if the update manager has removed some package, before running a lot of updates, if you are looking for a new package, if you get curious errors.

You should run regularly the update manager in admin + user mode to check for new packages. Before clicking on the "update" button, use your brain: updates do change the system and so can break it. Don't update when you don't have the time to handle problems. Don't update if packages are removed and you don't understand the implications. It doesn't do any harm to wait some days (I have miktex on three systems and their age differ by weeks).

FNDB + formats: In general it is not necessary to run the commands if you install packages with the package manager. But it can be necessary to run "updmap" as user to update your user map-files. If you install files manually you should always update the FNDB (in admin + user mode if you don't know which one is the right one), it doesn't harm to update the formats.

Critical updates are updates which changes core miktex packages (those starting with miktex- in the list).

In some cases such updates also need some new packages, e.g. newer versions of some .dll or some new tool. The update manager will not show you the new packages. It will also not warn you that these packages are needed and should be installed.

When you see an update list that looks as if it could be critical, it is a good idea to first start the package manager ((admin) in multiuser setups), synchronize the data base (menu repositories), check if there are uninstalled miktex-packages and to install them.

If you forgot this and miktex fails after such an critical update: Don't panic. You normally can install the missing packages with the command line version of the tools, or even manually after a download from CTAN.

------

Stefan

Singularity
Posts: 152
Joined: Sat Jan 22, 2011 9:55 pm
I tried running Update (Admin) again. It said there were no updates.

Then I went to Package Manager (Admin) and installed l3packages.

Then I went to Update (not admin). It said there were many packages to be updated. I checked off all of them, inlcuding l3packages.

For good measure, I went back to Update (Admin), now it had two packages to be updated.

Then I cycled through both Update (Admin), Update (non-admin) several times. The non-admin update always reports that l3kernel and l3packages need updating, no matter how many times I run it.

My MWE still reports 21 errors. Any more help?

MWE.log

\documentclass[14pt,fleqn,reqno]{extarticle}\usepackage{amsfonts,amsmath,amssymb,amsthm}\usepackage{bm,nicefrac,xfrac}  \begin{document}\begin{align*}   \bm{\nicefrac{1}{4}}.\end{align*}\end{document}

Stefan Kottwitz
Posts: 9201
Joined: Mon Mar 10, 2008 9:44 pm
Don't worry, often only the first error is relevant! Following errors could be a consequence.

In this case, it's not a package installation problem any more. You managed the installation fine. \bm doesn't work well with \nicefrac in its argument. I did not see the reason at first glance, however using \bm inside works fine:

\documentclass[14pt,fleqn,reqno]{extarticle}\usepackage{amsfonts,amsmath,amssymb,amsthm}\usepackage{bm,nicefrac,xfrac}\begin{document}\begin{align*}\nicefrac{\bm{1}}{\bm{4}}\end{align*}\end{document}

Stefan

Johannes_B
Site Moderator
Posts: 3906
Joined: Thu Nov 01, 2012 4:08 pm
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

Stefan Kottwitz
Posts: 9201
Joined: Mon Mar 10, 2008 9:44 pm
So it seems, that
• the installation problem of xfrac was solved here,
• the application of bold together with \frac commands has been solved in the other topic, or here.

Is this correct?

Btw. this seems to work too - not a single of them but the combination

\boldmath{\mathbf{\nicefrac{1}{4}}}

Stefan