One major problem that can occur is that fractions set inline in text either forces some extra space above and below the line of text or fails to nicely follow the text's current formatting.
The solution is to use the xfrac package, a package that solves all the nasty typesetting issues for fractions. Unfortunately, xfrac doesn't work if it is installed in the default way. A little LaTeX expertise is needed to coerce it into working. The instructions to do so with a MikTeX installation follow (the instructions for other LaTeX installations should be very similar).
- Do a full update of using the MikTeX Update Wizard
- Install the xfrac package, either automatically by including it in a document or using the MikTeX Package Manager
- Get the LaTeX project repository download xbase.tgz, the base package for the experimental features (direct link to the file)
- From xbase.tgz, extract the file xbase.ins
- Run latex on xbase.ins (the exact command is latex xbase.ins)
- Copy the generated style files (template.sty, ldcsetup.sty, xparse.sty, and xparse.sty) to the appropriate places, such that we get:
- C:\texmf\tex\latex3\template\template.sty
- C:\texmf\tex\latex3\xparse\ldcsetup.sty
- C:\texmf\tex\latex3\xparse\xparse.sty
- C:\texmf\tex\latex3\xtools\xtools.sty
- Update the package index (the exact command is texhash)
Thank you! The issue was driving me nuts but your solution worked perfectly.
ReplyDeleteSomehow I managed to break my installation of latex trying to do this! Must have gone wrong somewhere!
ReplyDeleteFixed MikTex and it all works great now!
ReplyDelete