[Tex/LaTex] Exporting .org files to LaTeX – Error

auctexemacsorg-modepdftex

I'm new to EMACS (on Ubuntu) and I have started using the org mode to begin with. I tried to convert my .org files into LaTeX only to see an error saying pdf was not produced
Upon checking the error online, I understood that packages required for .org to latex were not available. I used sudo apt-get install auctex to install the required packages. Now I'm left with the following error message.

This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013/Debian)
 restricted \write18 enabled.
entering extended mode
(/home/prasannarajaram/list.tex
LaTeX2e 
Babel  and hyphenation patterns for 2 languages loaded.
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size11.clo))
(/usr/share/texlive/texmf-dist/tex/latex/base/inputenc.sty
(/usr/share/texlive/texmf-dist/tex/latex/base/utf8.def
(/usr/share/texlive/texmf-dist/tex/latex/base/t1enc.dfu)
(/usr/share/texlive/texmf-dist/tex/latex/base/ot1enc.dfu)
(/usr/share/texlive/texmf-dist/tex/latex/base/omsenc.dfu)))
(/usr/share/texlive/texmf-dist/tex/latex/base/fontenc.sty
(/usr/share/texlive/texmf-dist/tex/latex/base/t1enc.def)
kpathsea: Running mktextfm ecrm1095
mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input ecrm1095
This is METAFONT, Version 2.718281 (TeX Live 2013/Debian)

kpathsea: Running mktexmf ecrm1095

! I can't find file `ecrm1095'.
 ...ljfour; mag:=1; nonstopmode; input ecrm1095

Please type another input file name
! Emergency stop.
 ...ljfour; mag:=1; nonstopmode; input ecrm1095

Transcript written on mfput.log.
grep: ecrm1095.log: No such file or directory
mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input ecrm1095' failed to make ecrm1095.tfm.
kpathsea: Appending font creation commands to missfont.log.

! Font T1/cmr/m/n/10.95=ecrm1095 at 10.95pt not loadable: Metric (TFM) file not
 found.
 
                   relax 
l.100 \fontencoding\encodingdefault\selectfont

) (/usr/share/texlive/texmf-dist/tex/latex/base/fixltx2e.sty)
(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphicx.sty
(/usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/share/texlive/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/share/texlive/texmf-dist/tex/latex/latexconfig/graphics.cfg)
(/usr/share/texlive/texmf-dist/tex/latex/pdftex-def/pdftex.def
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/infwarerr.sty)
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ltxcmds.sty))))
(/usr/share/texlive/texmf-dist/tex/latex/tools/longtable.sty)
(/usr/share/texlive/texmf-dist/tex/latex/float/float.sty)

! LaTeX Error: File `wrapfig.sty' not found.

Type X to quit or  to proceed,
or enter new name. (Default extension: sty)

Enter file name: 
! Emergency stop.
 

l.10 \usepackage
                {soul}^^M
!  ==> Fatal error occurred, no output PDF file produced!
Transcript written on /home/prasannarajaram//list.log.

Where am I going wrong? Do I need to install more packages? or is it to do with the configuration.

Note: I'm pressed up for download limits. Already used up 400+ MB for downloading AUCTEX

The source org file is here



This is my first to do list in ORG mode in emacs

* This is heading level 1
  There should be some text here
** Heading level 2
This is to see how the system behaves when there is text between level 1 and 2
*** this is heading level 3
THIS also Speaks VOLUMES about THE POWER OF EMACS-ORG MODE. 
**** This is heading level 4
*this text will be bold*

/whereas this will be italics/

_and this needs to be underline_

I WOULD LIKE TO SEE IF IT INDENTS BELOW THE THIRD HEADING. 

However the C code for printing Hello World program will look like this

#+begin_SRC C
#include 
int main (void) 
{ 
printf("Hello World!"); 
return 0; 
}
#+end_SRC C 

#+begin_quote
"This is a quote"
#+end_quote

* Let me create a list here [66%] 

- [X] first item
- [ ] second item
- [X] third item
  - [X] is this a nested item
  - [X] is this also nested - i doubt - yes it is

  First I would like to list down the list of commands for Org mode I have learnt so far.

- An asterisk creates a heading level 1
  + A double asterisk creates a heading level 2 and so on so forth
  + To create a check list use `-[ ]` 
  + In order to see the percentage of the items checked off in the check list use `[0%]`
  + In order to see the number of checked items checked off in the check list use `[0/0]`
- this is another one
- this is the next one 
  + this is an unordered list


* TODO list [4/6] : 
- [ ] How to create a numbered list
- [ ] How to markup multiple lines of code in =code= style
- [ ] How to create a bulleted list
- [X] How to split screens in EMACS - for horizontal split use C-x-2; vertical split:C-x-3
- [X] How to toggle a check list item - C-c C-c
- [X] In order to change the outline view to a cleaner view use the command M-x-org-indent-mode
- [X] In order to wrap the text to be visually pleasing use M-x-visual-line-mode


* Let us try to make a table now
| S.No  | Name       |
|-------+------------|
|    |            |
| 1     | Arthy      |
| 2     | Indu       |
| 3     | Padmavathy |
| 4     | Prakruti   |
| 5     | Prasanna   |
| 6     | Rajaram    |
|-------+------------|
| Total |            |

** More details
| S.No | Work location        | Working hours | Price |
|------+----------------------+---------------+-------|
|   |                      |            |       |
| 1    | United States        | X-Y           |   100 |
|------+----------------------+---------------+-------|
| 2    | United Arab Emirates | X'-Y'         |   100 |
|------+----------------------+---------------+-------|


* Conclusion
#this is a COMMENT AND I HOPE this will not be displayed

** COMMENT and this will not be displayed


* Links
[[http://www.google.com][Google.com]]

 #+BEGIN_VERSE
      Great clouds overhead
      Tiny black birds rise and fall
      Snow covers Emacs

          -- AlexSchroeder
 #+END_VERSE

Best Answer

Not exactly an Ubuntu answer, but I came to this page looking for a solution for the same error on a Mac. I believe my MacOS-specific answer can be adapted to other OSes.

For me, installing the wrapfig (and a few more) packages did the trick:

cd /Library/TeX/texbin
sudo tlmgr update --self
sudo tlmgr install wrapfig
sudo tlmgr install marvosym
sudo tlmgr install wasysym

After that I was able to export to latex/PDF successfully.