From mboxrd@z Thu Jan 1 00:00:00 1970 From: Markus Grebenstein Subject: Export issue: Text not exportet to latex but to html (emacs23.2 windows and orgmode 7.7) Date: Sat, 27 Aug 2011 14:30:46 +0200 Message-ID: <20110827143046.Horde.-eL5WFNNcXdOWON22w9Dv-A@webmail.df.eu> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed; DelSp=Yes Return-path: Received: from eggs.gnu.org ([140.186.70.92]:37418) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QxI2G-0004b7-KD for emacs-orgmode@gnu.org; Sat, 27 Aug 2011 08:30:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QxI2E-0005bZ-IV for emacs-orgmode@gnu.org; Sat, 27 Aug 2011 08:30:52 -0400 Received: from smtprelay02.ispgateway.de ([80.67.31.40]:34892) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QxI2E-0005b0-3r for emacs-orgmode@gnu.org; Sat, 27 Aug 2011 08:30:50 -0400 Received: from [80.67.16.115] (helo=webmailfront01.ispgateway.de) by smtprelay02.ispgateway.de with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1QxI2A-0007Uo-Tv for emacs-orgmode@gnu.org; Sat, 27 Aug 2011 14:30:46 +0200 Content-Disposition: inline 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: emacs-orgmode@gnu.org Dear List, I've been fighting the whole night but I' can't get it fixed: I have a simple and short file (to test why the big document >70 pages is not exported completely) which I want to export to latex. But if I do so, a portion of text is missing (in the tex file! So it doesn't seem to be related to latex setup?) If I export the same text to html it works fine. I fixed the file encoding to utf 8 and checked encoding also using jedit. .emacs tex- relevant part: 8><---------------------------------------- (add-to-list 'org-export-latex-classes '("book" "\\documentclass{book}" ("\\part{%s}" . "\\part*{%s}") ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}")) ) (add-to-list 'org-export-latex-classes '("IEEEtran" "\\documentclass{IEEEtran}" ;; ("\\part{%s}" . "\\part*{%s}") ;; ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}")) ) (add-to-list 'org-export-latex-classes '("djcb-org-article" "\\documentclass[11pt,a4paper]{article} \\usepackage[T1]{fontenc} \\usepackage{fontspec} \\usepackage{graphicx} \\defaultfontfeatures{Mapping=tex-text} \\setromanfont{Gentium} \\setromanfont [BoldFont={Gentium Basic Bold}, ItalicFont={Gentium Basic Italic}]{Gentium Basic} \\setsansfont{Charis SIL} \\setmonofont[Scale=0.8]{DejaVu Sans Mono} \\usepackage{geometry} \\geometry{a4paper, textwidth=6.5in, textheight=10in, marginparsep=7pt, marginparwidth=.6in} \\pagestyle{empty} \\title{} [NO-DEFAULT-PACKAGES] [NO-PACKAGES]" ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}") ("\\subparagraph{%s}" . "\\subparagraph*{%s}"))) ;; acitvate RefTex ;; Master Bib (setq reftex-default-bibliography '("D:/grebenst/My_Info_Local/Daten/Diss/svn_grebi/trunk/DISS/Scrivener/Diss-zotero")) (setq reftex-cite-format 'natbib) (defun my-org-mode-setup () (when (and (buffer-file-name) (file-exists-p (buffer-file-name))) (load-library "reftex") (and (buffer-file-name) (file-exists-p (buffer-file-name)) (reftex-parse-all)) (reftex-set-cite-format '((?N 'natbib) (?b . "[[bib::%l]]") (?n . "[[note::%l]]") (?p . "[[citep][%l]]") (?c . "[[cite][%l]]") (?C . "\\cite{%l}")))) (define-key org-mode-map "\C-c\C-g" 'reftex-citation) ) (add-hook 'org-mode-hook 'my-org-mode-setup) ;; Mehrerer Latex prozessoren ;; Aus Orgmode FAQS ;; LATEX_CMD auf nicht pdflatex oder xelatex setzen (require 'org-latex) (setq org-export-latex-listings t) ;; Originally taken from Bruno Tavernier: http://thread.gmane.org/gmane.emacs.orgmode/31150/focus=31432 ;; but adapted to use latexmk 4.20 or higher. (defun my-auto-tex-cmd () "When exporting from .org with latex, automatically run latex, pdflatex, or xelatex as appropriate, using latexmk." (let ((texcmd))) ;; default command: oldstyle latex via dvi (setq texcmd "latexmk -dvi -pdfps -quiet %f") ;; pdflatex -> .pdf (if (string-match "LATEX_CMD: pdflatex" (buffer-string)) (setq texcmd "latexmk -pdf -quiet %f")) ;; xelatex -> .pdf (if (string-match "LATEX_CMD: xelatex" (buffer-string)) (setq texcmd "latexmk -pdflatex=xelatex -pdf -quiet %f")) ;; LaTeX compilation command (setq org-latex-to-pdf-process (list texcmd))) (add-hook 'org-export-latex-after-initial-vars-hook 'my-auto-tex-cmd) ;; Specify default packages to be included in every tex file, whether pdflatex or xelatex (setq org-export-latex-packages-alist '(("" "graphicx" t) ("" "longtable" nil) ("" "float" nil))) (defun my-auto-tex-parameters () "Automatically select the tex packages to include." ;; default packages for ordinary latex or pdflatex export (setq org-export-latex-default-packages-alist '(("AUTO" "inputenc" t) ("T1" "fontenc" t) ("" "fixltx2e" nil) ("" "wrapfig" nil) ("" "soul" t) ("" "textcomp" t) ("" "marvosym" t) ("" "wasysym" t) ("" "latexsym" t) ("" "amssymb" t) ("" "hyperref" nil))) ;; Packages to include when xelatex is used (if (string-match "LATEX_CMD: xelatex" (buffer-string)) (setq org-export-latex-default-packages-alist '(("" "fontspec" t) ("" "xunicode" t) ("" "url" t) ("" "rotating" t) ("american" "babel" t) ("babel" "csquotes" t) ("" "soul" t) ("xetex" "hyperref" nil) ))) (if (string-match "LATEX_CMD: xelatex" (buffer-string)) (setq org-export-latex-classes (cons '("article" "\\documentclass[11pt,article,oneside]{memoir}" ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}") ("\\subparagraph{%s}" . "\\subparagraph*{%s}")) org-export-latex-classes)))) (add-hook 'org-export-latex-after-initial-vars-hook 'my-auto-tex-parameters) 8><------------------------------------- The orgmode file: 8><------------------------------------ #+STARTUP: hidestars #+STARTUP: indent #+TODO: TODO | DONE #+TODO: FirstDraft RevisedDraft | Final #+OPTIONS: toc:4 *:t (only to two levels in TOC) ##+OPTIONS: toc:nil (no TOC at all) #+LATEX_CMD: pdflatex #+LaTeX_CLASS: book #+LaTeX_CLASS_OPTIONS: [a4paper,11pt] #+LATEX_HEADER: \input{D:/grebenst/My_Info_Local/Daten/Diss/svn_grebi/trunk/DISS/Templates/book_header.tex} #+LaTeX_HEADER: \bibliography{Diss-zotero} #+TITLE: Testfile fuer Orgmode spezifische Dinge zur Diss * Section 1 HIer steht ein Bild Hier ein Zitat in Latex syntax Hier steht ein Zitat in orgmode markup Hier eine Fussnote [fn:1_1] * Formatierungen Warum fehlen denn hier schon wieder Dinge?? ** Fuer Text wumm das wieda nich geht?? ** liegts an dem Markup Zeuch? asdf Komisch ist das?? [fn:1_1]Ich bin die Fussnote \printbibliography 8><------------------------------------ The produced texfile (section 2.1 missing): 8><------------------------------------ % Created 2011-08-27 Sa 14:08 \documentclass[a4paper,11pt]{book} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{fixltx2e} \usepackage{wrapfig} \usepackage{soul} \usepackage{textcomp} \usepackage{marvosym} \usepackage{wasysym} \usepackage{latexsym} \usepackage{amssymb} \usepackage{hyperref} \usepackage{graphicx} \usepackage{longtable} \usepackage{float} \input{D:/grebenst/My_Info_Local/Daten/Diss/svn_grebi/trunk/DISS/Templates/book_header.tex} \bibliography{Diss-zotero} \providecommand{\alert}[1]{\textbf{#1}} \title{Testfile fuer Orgmode spezifische Dinge zur Diss} \author{} \date{\today} \begin{document} \maketitle \setcounter{tocdepth}{3} \tableofcontents \vspace*{1cm} indent \part{Section 1} \label{sec-1} HIer steht ein Bild Hier ein Zitat in Latex syntax Hier steht ein Zitat in orgmode markup Hier eine Fussnote \footnote{Ich bin die Fussnote } \part{Formatierungen} \label{sec-2} Warum fehlen denn hier schon wieder Dinge?? \end{document} 8><--------------------------------------------------------- And the html file (complete text; section 2.1 not missing) 8><--------------------------------------------------------- Testfile fuer Orgmode spezifische Dinge zur Diss

Testfile fuer Orgmode spezifische Dinge zur Diss

1 Section 1

HIer steht ein Bild

Hier ein Zitat in Latex syntax

Hier steht ein Zitat in orgmode markup

Hier eine Fussnote 1

2 Formatierungen

Warum fehlen denn hier schon wieder Dinge??

2.1 Fuer Text

wumm das wieda nich geht??

2.2 liegts an dem Markup Zeuch?

asdf Komisch ist das??

\printbibliography

Footnotes:

1 Ich bin die Fussnote

Author:

Org version 7.7 with Emacs version 23

Validate XHTML 1.0
8><--------------------------------------------------------- Thanks a lot in advance for your help. Best Regards, Markus