From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Hannon Subject: PDF docs from Org-mode: not valid PDF? Date: Sat, 8 Dec 2012 13:16:31 -0800 (PST) Message-ID: <1355001391.68403.YahooMailNeo@web122205.mail.ne1.yahoo.com> Reply-To: Michael Hannon Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:58522) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ThRlD-0007S2-1O for emacs-orgmode@gnu.org; Sat, 08 Dec 2012 16:16:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ThRlB-0004CB-2w for emacs-orgmode@gnu.org; Sat, 08 Dec 2012 16:16:34 -0500 Received: from nm40-vm3.bullet.mail.ne1.yahoo.com ([98.138.229.179]:48933) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ThRlA-0004C7-PU for emacs-orgmode@gnu.org; Sat, 08 Dec 2012 16:16:33 -0500 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Org-Mode List Greetings.=A0 The woman that runs our research group complains that she is= =0Aunable to print PDF documents that a couple of us in the group send her,= and=0Athat the two of us are the only source of such troublesome documents= .=0A=0AIt occurred to me that the two of us are the only ones in the group = that use=0AEmacs Org-mode to produce PDF documents.=0A=0AI know there are w= eb sites that can validate (i.e., measure conformance to the=0Astandard of)= HTML documents.=A0 I wondered if there might be something similar=0Afor PD= F documents.=0A=0AI found the following site:=0A=0A=A0=A0=A0 http://www.val= idatepdfa.com/=0A=0AI don't much about the PDF standard, and I don't know a= nything about the=0Areliability of this site, but I've found that PDF docum= ents that I generate=0Ausing Org-mode and send to that site come back with = a boatload of validation=0Aerrors.=0A=0AI've appended a sample Org-mode fil= e that generates errors when I try to=0Avalidate it.=A0 I've appended detai= ls of my configuration below the sample file.=0A=0AI should mention that I = have no trouble viewing the PDF file (using "evince"=0Aon my Fedora system)= or printing this file (to a Brother b/w printer).=A0 Ditto for=0Amy collea= gue on a MacOS X system.=A0 Hence, I personally have no reason to=0Acomplai= n.=A0 But there's that nagging issue with the boss.=0A=0ACan anybody commen= t as to what I should expect in the way of validation?=0AAnd/or are there a= ny settings that would affect this behavior?=A0 I.e.,=0Asomething like:=0A= =0A=A0=A0=A0 (setq org-export-pdf-use-strict t)=0A=0AThanks.=0A=0A-- Mike= =0A=0A###### Beginning of sample Org-mode file=0A#+PROPERTY: session *R*=0A= #+PROPERTY: cache yes=0A#+PROPERTY: results output verbatim=0A#+PROPERTY: t= angle yes=0A=0A=0A* This is a test=0A=0A#+BEGIN_SRC R :exports both=0A=A0 = =0A=A0 x <- 7.2=0A=A0 y <- 3=0A=A0 =0A=A0 print(x * y)=0A=A0 =0A=A0 =0A#+EN= D_SRC=0A=0A#+RESULTS:=0A: 21.6=0A###### End of sample Org-mode file=0A=0AEm= acs=A0 : GNU Emacs 24.1.1 (x86_64-redhat-linux-gnu, GTK+ Version 2.24.13)= =0A=A0of 2012-11-17 on buildvm-30.phx2.fedoraproject.org=0APackage: Org-mod= e version 7.9.2 (release_7.9.2-656-g2f9dda @=0A/usr/local/emacs.d/org-mode/= org-devel/org-mode/lisp/)=0A=0Acurrent state:=0A=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=0A(setq=0A=A0org-export-preprocess-before-selecting-backend= -code-hook=0A'(org-beamer-select-beamer-code)=0A=A0org-tab-first-hook '(org= -hide-block-toggle-maybe=0A=A0=A0=A0 =A0=A0=A0 =A0=A0=A0=A0=A0 org-src-nati= ve-tab-command-maybe=0A=A0=A0=A0 =A0=A0=A0 =A0=A0=A0=A0=A0 org-babel-hide-r= esult-toggle-maybe=0A=A0=A0=A0 =A0=A0=A0 =A0=A0=A0=A0=A0 org-babel-header-a= rg-expand)=0A=A0org-speed-command-hook '(org-speed-command-default-hook=0A= =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0 org-babel-speed-command-hook)=0A=A0org-ex= port-html-after-blockquotes-hook=0A'(org-special-blocks-convert-html-specia= l-cookies)=0A=A0org-occur-hook '(org-first-headline-recenter)=0A=A0org-meta= up-hook '(org-babel-load-in-session-maybe)=0A=A0org-export-preprocess-befor= e-normalizing-links-hook=0A'(org-remove-file-link-modifiers)=0A=A0org-confi= rm-shell-link-function 'yes-or-no-p=0A=A0org-export-latex-after-blockquotes= -hook=0A'(org-special-blocks-convert-latex-special-cookies)=0A=A0org-export= -latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc=0A=A0=A0=A0 = =A0=A0=A0 =A0=A0=A0 =A0=A0=A0=A0=A0=A0 org-beamer-auto-fragile-frames=0A=A0= =A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0=A0=A0=A0 org-beamer-place-default-acti= ons-for-lists)=0A=A0org-export-latex-after-initial-vars-hook '(org-beamer-a= fter-initial-vars)=0A=A0org-after-todo-state-change-hook '(org-clock-out-if= -current)=0A=A0org-from-is-user-regexp "\\"=0A=A0org-src-= mode-hook '(org-src-babel-configure-edit-buffer=0A=A0=A0=A0 =A0=A0=A0 =A0= =A0=A0=A0 org-src-mode-configure-edit-buffer)=0A=A0org-agenda-before-write-= hook '(org-agenda-add-entry-text)=0A=A0org-babel-pre-tangle-hook '(save-buf= fer)=0A=A0org-mode-hook '(#[nil "\300\301\302\303\304$\207"=0A=A0=A0=A0 =A0= =A0=A0 =A0=A0 [org-add-hook change-major-mode-hook org-show-block-all=0A=A0= =A0=A0 =A0=A0=A0 =A0=A0=A0 append local]=0A=A0=A0=A0 =A0=A0=A0 =A0=A0 5]=0A= =A0=A0=A0 =A0=A0=A0 =A0#[nil "\300\301\302\303\304$\207"=0A=A0=A0=A0 =A0=A0= =A0 =A0=A0 [org-add-hook change-major-mode-hook=0A=A0=A0=A0 =A0=A0=A0 =A0= =A0=A0 org-babel-show-result-all append local]=0A=A0=A0=A0 =A0=A0=A0 =A0=A0= 5]=0A=A0=A0=A0 =A0=A0=A0 =A0org-babel-result-hide-spec org-babel-hide-all-= hashes)=0A=A0org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point=0A=A0=A0=A0 = =A0=A0=A0 =A0=A0=A0 =A0 org-babel-execute-safely-maybe)=0A=A0org-cycle-hook= '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers=0A=A0=A0=A0 =A0= =A0=A0 =A0 org-cycle-hide-inline-tasks org-cycle-show-empty-lines=0A=A0=A0= =A0 =A0=A0=A0 =A0 org-optimize-window-after-visibility-change)=0A=A0org-exp= ort-latex-format-toc-function 'org-export-latex-format-toc-default=0A=A0org= -export-first-hook '(org-beamer-initialize-open-trackers)=0A=A0org-babel-ta= ngle-lang-exts '(("C++" . "cpp") ("latex" . "tex")=0A=A0=A0=A0 =A0=A0=A0 = =A0=A0=A0 =A0=A0=A0=A0=A0 ("python" . "py") ("lisp" . "lisp")=0A=A0=A0=A0 = =A0=A0=A0 =A0=A0=A0 =A0=A0=A0=A0=A0 ("emacs-lisp" . "el"))=0A=A0org-confirm= -elisp-link-function 'yes-or-no-p=0A=A0org-metadown-hook '(org-babel-pop-to= -session-maybe)=0A=A0org-structure-template-alist '(("r" "#+begin_src R\n\n= #+end_src"=0A=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0"= \n\n")=0A=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 ("S" "#+BEGIN_SRC ?\= n\n#+END_SRC"=0A=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0"\n\n")=0A=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 ("s" "#+BEGIN_SRC= ?\n\n#+END_SRC"=0A=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 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A0=A0=A0 =A0=A0=A0 ("a" "#+BEGIN_ASCII\n?\n#+END_ASCII")=0A=A0=A0=A0 =A0= =A0=A0 =A0=A0=A0 =A0=A0=A0 ("A" "#+ASCII: ")=0A=A0=A0=A0 =A0=A0=A0 =A0=A0= =A0 =A0=A0=A0 ("i" "#+INDEX: ?" "#+INDEX: ?")=0A=A0=A0=A0 =A0=A0=A0 =A0=A0= =A0 =A0=A0=A0 ("I" "#+INCLUDE: %file ?"=0A=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0= =A0=A0 =A0"")=0A=A0=A0=A0 =A0=A0=A0 = =A0=A0=A0 =A0=A0=A0 )=0A=A0org-babel-load-languages '((emacs-lisp . t) (lis= p . t) (gnuplot . t) (R . t)=0A=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 (dot= . t) (python . t) (sh . t) (latex . t)=0A=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0= =A0=A0 (C . t) (octave \.t))=0A=A0org-agenda-files '("~/Documents/scratch.o= rg")=0A=A0org-clock-out-hook '(org-clock-remove-empty-clock-drawer)=0A=A0or= g-confirm-babel-evaluate 'my-org-confirm-babel-evaluate=0A=A0org-export-pre= process-after-blockquote-hook=0A'(org-special-blocks-make-special-cookies)= =0A=A0org-src-fontify-natively t=0A=A0)