emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <ndokos@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Blank page in LaTeX/PDF output
Date: Sat, 01 Mar 2014 07:47:28 -0500	[thread overview]
Message-ID: <87sir2f5lr.fsf@gmail.com> (raw)
In-Reply-To: CA+M2ft8JoAmOfMVZP_N=J1cujd-k-KhS4MuSYnM=5WVX59h=jw@mail.gmail.com

John Hendy <jw.hendy@gmail.com> writes:

> On Fri, Feb 28, 2014 at 9:39 PM, Peter Davis <pfd@pfdstudio.com> wrote:
>>
>> On 2/28/14, 10:32 PM, Nick Dokos wrote:
>>>
>>> You need *some* images in order to compile it. I just replaced all
>>> the image links with
>>>
>>> [[./foo.png]]
>>
>>
>> I did not need any images. In fact, the version I posted I had just tested,
>> and the image links in there are completely bogus. I just get empty boxes of
>> the height I specified.
>>

Indeed - I first tried it by hand, running pdflatex on the command line and
got what I thought were errors, but they were warnings only: I hit RET
to continue past them and got the same empty boxes you got. And doing
C-c C-e l o to go straight to PDF does the same thing.

>>
>>> where foo.png is the emacs logo.
>>>
>>> And my koma-article is a copy of the article class, except the document
>>> class
>>> is "scrartcl" instead of "article".
>>
>>
>> I don't know where that came from. I can post my copy of koma-article, if
>> that would help.
>
> We really need a minimal config, in my opinion. I just tried fiddling
> again and am having no luck after installing koma-script from CTAN (or
> is that even something I need?) and adding =(require 'ox-koma-letter)=
> to my emacs config (again, is that even needed?). I don't use koma, so
> I'm lost as to how to get anything usable from your document in order
> to troubleshoot.
>
>
No, you don't need ox-koma-letter at all. You do need to have
the "scrartcl" class from koma-script installed - check with
kpsewhich - I get:

,----
| $ kpsewhich scrartcl.cls
| /usr/share/texmf-texlive/tex/latex/koma-script/scrartcl.cls
`----

and you need to have a "koma-article" class added to org-latex-classes.
Here's what I used, but Peter may have a different definition
(something must explain why we get different results!):

--8<---------------cut here---------------start------------->8---
(setq koma-article-class
      '("koma-article"
	"\\documentclass[11pt]{scrartcl}"
	("\\section{%s}" . "\\section*{%s}")
	("\\subsection{%s}" . "\\subsection*{%s}")
	("\\subsubsection{%s}" . "\\subsubsection*{%s}")
	("\\paragraph{%s}" . "\\paragraph*{%s}")
	("\\subparagraph{%s}" . "\\subparagraph*{%s}")))

(progn
  (require 'ox-latex)
  (add-to-list 'org-latex-classes koma-article-class t))
--8<---------------cut here---------------end--------------->8---

-- 
Nick

  reply	other threads:[~2014-03-01 12:47 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-28 16:59 Blank page in LaTeX/PDF output Peter Davis
2014-02-28 17:03 ` John Hendy
2014-02-28 17:26   ` Peter Davis
2014-02-28 17:36     ` Peter Davis
2014-02-28 17:37     ` John Hendy
2014-02-28 18:19       ` Peter Davis
2014-02-28 18:32         ` Peter Davis
2014-03-01  0:38     ` Nick Dokos
2014-03-01  1:21       ` Peter Davis
2014-03-01  1:27         ` John Hendy
2014-03-01 13:01           ` Nick Dokos
2014-03-01  1:30         ` Peter Davis
2014-03-01  3:32           ` Nick Dokos
2014-03-01  3:39             ` Peter Davis
2014-03-01  5:27               ` John Hendy
2014-03-01 12:47                 ` Nick Dokos [this message]
2014-03-01 14:48                   ` Peter Davis
2014-03-01 19:19                     ` John Hendy
2014-03-04  0:51                       ` Peter Davis
2014-03-04  1:08                         ` John Hendy
2014-03-04  1:13                           ` Peter Davis
2014-03-04  3:46                             ` John Hendy
2014-03-04 12:27                               ` Peter Davis
2014-03-01 14:42         ` Nick Dokos

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=87sir2f5lr.fsf@gmail.com \
    --to=ndokos@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).