From mboxrd@z Thu Jan 1 00:00:00 1970 From: Charles Millar Subject: Re: first #+LATEX_HEADER: in SETUPFILE not correctly exported and causes Missing \begin{document} error Date: Sat, 26 Mar 2016 18:55:45 -0400 Message-ID: <56F71371.5030003@verizon.net> References: <56F5DE32.1090107@verizon.net> <87a8lltwca.fsf@ucl.ac.uk> <56F677E8.3050009@verizon.net> <8760w9tnb0.fsf@ucl.ac.uk> <56F6997B.70505@verizon.net> <87oaa1rwj8.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Boundary_(ID_y7q7+Pkdy6Wq+lI3M/alig)" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38687) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ajx8F-0004Kt-Tc for emacs-orgmode@gnu.org; Sat, 26 Mar 2016 18:56:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ajx8A-0007cR-Qg for emacs-orgmode@gnu.org; Sat, 26 Mar 2016 18:56:35 -0400 Received: from vms173007pub.verizon.net ([206.46.173.7]:52849) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ajx8A-0007cM-JN for emacs-orgmode@gnu.org; Sat, 26 Mar 2016 18:56:30 -0400 Received: from vz-proxy-m006.mx.aol.com ([64.236.83.3]) by vms173007.mailsrvcs.net (Oracle Communications Messaging Server 7.0.5.32.0 64bit (built Jul 16 2014)) with ESMTPA id <0O4O003ZK50Y4X80@vms173007.mailsrvcs.net> for emacs-orgmode@gnu.org; Sat, 26 Mar 2016 17:55:48 -0500 (CDT) In-reply-to: <87oaa1rwj8.fsf@ucl.ac.uk> 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 This is a multi-part message in MIME format. --Boundary_(ID_y7q7+Pkdy6Wq+lI3M/alig) Content-type: text/plain; CHARSET=US-ASCII; format=flowed Content-transfer-encoding: QUOTED-PRINTABLE On 03/26/2016 01:14 PM, Eric S Fraga wrote: > On Saturday, 26 Mar 2016 at 10:15, Charles Millar wrote: > > [...] > >> I was not clear - I ran the exports after I made the correction to >> "mysetup", i.e. \newcommand{\\foo}{bar} > but I am confused: why the \\ for foo but \ for newcommand? My typo. Just in case I attach a copy of the "mysetup class" which I= =20 believe is now correct and which i have been using since your origina= l=20 response where you pointed out that \\newcommand, etc. was incorrect = . I=20 have used this as the latex class for all subsequent messages in this= =20 thread. > What is the > actual result in the output.tex file? See attached TestLatexformessage.tex >> I do agree that the one file that exports as desired must be a res= ult >> of luck. I compared the output.tex file for each document. In each= the >> first \usepackage{foo} which is inserted from the SETUPFILE is >> indented several tabs or spaces to the right and not aligned to th= e >> left margin. > The indentation or not itself is not the issue but only a symptom o= f an > error before that line, in my opinion. I place the cursor just before \usepackage{lastpage} and backspace on= ce,=20 the file builds without the extra page, etc. Is there a proper location for the #+SETUPFILE: line in the main org = file? Charlie --Boundary_(ID_y7q7+Pkdy6Wq+lI3M/alig) Content-type: text/plain; CHARSET=US-ASCII; name=mysetup-latex-class Content-transfer-encoding: QUOTED-PRINTABLE Content-disposition: attachment; filename=mysetup-latex-class (add-to-list 'org-latex-classes '("mysetup" "\\documentclass[fontsize=3D11pt,letterpaper,twoside=3Dfalse]{scrartc= l} \\usepackage{verbatim} % \\usepackage[T1]{fontenc} % \\usepackage{charter,parskip,setspace,layout} \\usepackage{charter,setspace,layout} \\usepackage{array,graphicx} \\usepackage{tabularx,tabulary} \\usepackage{longtable} \\usepackage{numprint} \\npstyleenglish \\usepackage[at]{easylist} \\usepackage{csquotes} %\\usepackage[letterpaper,margin=3D1.00in]{geometry} \\usepackage[letterpaper,left=3D1.00in,right=3D1.00in,top=3D1.00in,bo= ttom=3D1.00in]{geometry} % \\usepackage[top=3D1.0in,bottom=3D0.4in,left=3D1.2in,nohead]{geomet= ry} %\\pagestyle{empty} \\pagenumbering{arabic} \\newcommand\{\\foo}{bar} [NO-DEFAULT-PACKAGES] [NO-PACKAGES] [EXTRA]" ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}") ("\\subparagraph{%s}" . "\\subparagraph*{%s}"))) --Boundary_(ID_y7q7+Pkdy6Wq+lI3M/alig) Content-type: text/x-tex; name=TestLatexformessage.tex Content-transfer-encoding: QUOTED-PRINTABLE Content-disposition: attachment; filename=TestLatexformessage.tex =EF=BB=BF% Created 2016-03-26 Sat 18:11 % Intended LaTeX compiler: pdflatex \documentclass[fontsize=3D11pt,letterpaper,twoside=3Dfalse]{scrartcl} \usepackage{verbatim} % \usepackage[T1]{fontenc} % \usepackage{charter,parskip,setspace,layout} \usepackage{charter,setspace,layout} \usepackage{array,graphicx} \usepackage{tabularx,tabulary} \usepackage{longtable} \usepackage{numprint} \npstyleenglish \usepackage[at]{easylist} \usepackage{csquotes} %\usepackage[letterpaper,margin=3D1.00in]{geometry} \usepackage[letterpaper,left=3D1.00in,right=3D1.00in,top=3D1.00in,bot= tom=3D1.00in]{geometry} % \usepackage[top=3D1.0in,bottom=3D0.4in,left=3D1.2in,nohead]{geometr= y} %\pagestyle{empty} \pagenumbering{arabic} \newcommand{\foo}{bar} \usepackage{lastpage} \usepackage{scrpage2} \pagestyle{scrheadings} \setkomafont{pagefoot}{\normalfont\rmfamily} \ifoot{Foo} \cfoot[\pagemark]{\hspace{1.0in} Page \thepage\ of \pageref{LastPage}= } [redacted] \date{} \title{} \begin{document} \label{sec:org4108cc1} \label{sec:org42652eb} \setcounter{page}{1} \setlength{\extrarowheight}{0.5ex} \begin{flushleft} \begin{tabular}{ l l } STATE OF NEW YORK SURROGATE'S COURT & \\ COUNTY OF \CourtCounty & \\ \cline{1-1}& \\ Proceeding by \PetitionerOneName & \\ as \PetitionerOneFiduciaryType of the Estate of \DecedentNameCaption = & LIST OF ASSETS/INVENTORY\\ & (Rule =C2=A7207.20(a)) \\ a/k/a \DecedentAKACaption, & File No.: \FileNumber \\ \hspace{1.5in}Deceased. & \\[0.25ex] \cline{1-1} \end{tabular}\\[1.0ex] \end{flushleft} \begin{onehalfspacing} Something is printed here. \end{document} --Boundary_(ID_y7q7+Pkdy6Wq+lI3M/alig)--