emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Jeff Horn <jrhorn424@gmail.com>
To: Org-mode ml <emacs-orgmode@gnu.org>
Subject: Re: [Bug] Using org-article produces nil.sty error
Date: Fri, 17 Dec 2010 01:15:35 -0500	[thread overview]
Message-ID: <AANLkTimAu-m_YoGMRvZW_DqQOO1h8W-3eF_sX2eK44LU@mail.gmail.com> (raw)
In-Reply-To: <AANLkTi=Tzdvj3LNq9pV3XBGowJ0ouzVy6As6GfO6Jyh3@mail.gmail.com>

Aloha Thomas,

I think I found the bug. I ran =C-c C-c= on the following lines of
code from your 'article-class.org' file:

#+begin_src emacs-lisp :exports code
  (require 'org-latex)
  (setq org-export-latex-listings t)
  (add-to-list 'org-export-latex-packages-alist
               '(("AUTO" "inputenc" t)))
  (add-to-list 'org-export-latex-classes
            '("org-article"
               "\\documentclass{org-article}
               [NO-DEFAULT-PACKAGES]
               [PACKAGES]
               [EXTRA]"
               ("\\section{%s}" . "\\section*{%s}")
               ("\\subsection{%s}" . "\\subsection*{%s}")
               ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
               ("\\paragraph{%s}" . "\\paragraph*{%s}")
               ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
#+end_src

The culprit is the call to add the cell to
org-export-latex-packages-alist. There is an extra set of parentheses.
I'm not sure how to write a patch, or I would have sent that. Surely
would have been smaller than this e-mail. :-)

Thanks,
Jeff

On Fri, Dec 17, 2010 at 12:48 AM, Jeff Horn <jrhorn424@gmail.com> wrote:
> Thomas et al,
>
> I was eager to try out org-article when putting together my CV. I
> ignored the `nil.sty' error when I tried to export the article-class.org
> file, but now I'm getting the same error when trying to export my CV.
>
> The relevant portion of the tex log is below.
>
> ,----
> | (/usr/local/texlive/2010/texmf-dist/tex/latex/hyperref/hpdftex.def
> | (/usr/local/texlive/2010/texmf-dist/tex/latex/oberdiek/atveryend.sty)
> | (/usr/local/texlive/2010/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty
> | (/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/uniquecounter.sty))))
> |
> | ! LaTeX Error: File `nil.sty' not found.
> `----
>
> The error does not seem to be caused by Inconsolata (as mentioned
> previously). Either that or I receive the error for another reason
> before Inconsolata is used. In any case, I have Inconsolata in my Font
> Book.
>
> org-mode 7.4 in emacs 23.2
>
> Thanks for your help,
> Jeff
>
> --
> Jeffrey Horn
> Graduate Lecturer and PhD Student in Economics
> George Mason University
>
> (704) 271-4797
> jhorn@gmu.edu
> jrhorn424@gmail.com
>
> http://www.failuretorefrain.com/jeff/
>



-- 
Jeffrey Horn
Graduate Lecturer and PhD Student in Economics
George Mason University

(704) 271-4797
jhorn@gmu.edu
jrhorn424@gmail.com

http://www.failuretorefrain.com/jeff/

  reply	other threads:[~2010-12-17  6:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-17  5:48 [Bug] Using org-article produces nil.sty error Jeff Horn
2010-12-17  6:15 ` Jeff Horn [this message]
2010-12-17 16:05   ` Thomas S. Dye

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AANLkTimAu-m_YoGMRvZW_DqQOO1h8W-3eF_sX2eK44LU@mail.gmail.com \
    --to=jrhorn424@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).