LaTeX Warning: Font shape OMS/pplj/m/n undefined

Problem

I got this warning when I compiled a LaTeX document:

LaTeX Font Warning: Font shape `OMS/pplj/m/n' undefined

Solution

Include the textcomp package:

usepackage{textcomp}

Tried with: Ubuntu 14.04

Advertisements

LaTeX error: Font not loadable

Problem

Compiling the LaTeX for certain journals gives this error:

Font OT1/ptm/m/n/10=ptmr7t at 10.0pt not loadable: Metric (TFM) file not found

Solution

This indicates that some font its needing is not available on the system. This error typically goes away after install the extra fonts available in the TeXLive distribution:

$ sudo apt-get install texlive-fonts-recommended

Tried with: Ubuntu 14.04

LaTeX warning: Font shape undefined

Problem

Compiling LaTeX document gives this warning:

foo.tex LaTeX Font Warning: Font shape OT1/cmss/bx/it undefined

LaTeX compilation gives a lot of warnings, that most folks ignore. However, this one can be irritating since it pops up a split window in Vim when compiled using Vim-LaTeX. So, at least for that irritating reason I wanted this warning to go away.

Solution

Use the Latin Modern font package that has a larger collection of fonts and sizes that should take of such errors:

\usepackage{lmodern}

Tried with: Ubuntu 14.04

BibTeX Entry from URL Chrome Extension

Adding BibTeX entries and citations to internet URLs is quite a pain in LaTeX. Manually creating the BibTeX entry can get cumbersome. If you find yourself adding a lot of links from the web to your LaTeX document, then try the BibTeX Entry from URL extension for the Chrome browser.

After you install it, it adds a button beside the addressbar. On a webpage that you want to add to your LaTeX document, just click this button and a BibTeX for that link is added to your clipboard. A sample entry looks like this:

@online{Anand3:Online,
    title = {AnandTech | Motorola Moto G Review},
    url = {http://www.anandtech.com/show/7586/motorola-moto-g-review},
    note = {(Visited on 01/11/2014)}
}

Paste this BibTeX entry into your .bib file and cite it in your .tex file just as you normally would and you are done! 🙂

Tried with: BibTeX Entry from URL 1.2.1, Chrome 31.0.1650.63 and Ubuntu 12.04 LTS

TeXMaths

TexMaths is an extension to LibreOffice which enables you to insert LaTeX equations into Writer documents and Impress presentations.

Install

1. You will need LibreOffice and TeXLive, the common LaTeX distribution on Ubuntu. Install them if you don’t have them:

$ sudo apt-get install libreoffice
$ sudo apt-get install texlive

2. Download the TeXMaths extension from its Sourceforge download page. The extension downloads as a .oxt file.

3. Open LibreOffice Writer and go to Tools > Extension Manager > Add and choose the downloaded .oxt file to install it.

4. Close and start LibreOffice Writer again. It typically hangs the first time I install a new extension and its window does not appear. If this happens to you, kill its process. Starting it now should work.

Usage

TeXMaths adds a couple of icons to the toolbar in Writer and Impress. To insert a LaTeX equation, just click the equations icon, which is shown as pi. Type the equation you want and click LaTeX. The rendered equation is inserted as an image into the document or slide. To edit it again, select the image and click the equations button again.

Tried with: TeXMaths 0.38, LibreOffice 3.5.7.2 and Ubuntu 12.04 LTS