From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thomas S. Dye" Subject: Re: org-article & #+INCLUDE LaTex support Date: Fri, 19 Nov 2010 08:43:56 -1000 Message-ID: <62307F65-F7DC-434B-B327-31A718317DC8@tsdye.com> References: Mime-Version: 1.0 (Apple Message framework v936) Content-Type: multipart/mixed; boundary="===============0718940254==" Return-path: Received: from [140.186.70.92] (port=34011 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PJVwJ-0006oa-Ay for emacs-orgmode@gnu.org; Fri, 19 Nov 2010 13:44:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PJVwH-00006W-RR for emacs-orgmode@gnu.org; Fri, 19 Nov 2010 13:44:03 -0500 Received: from oproxy1-pub.bluehost.com ([66.147.249.253]:42584) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1PJVwH-00006O-Ew for emacs-orgmode@gnu.org; Fri, 19 Nov 2010 13:44:01 -0500 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Srinivas Pavani Cc: emacs-orgmode@gnu.org --===============0718940254== Content-Type: multipart/alternative; boundary=Apple-Mail-48-499907557 --Apple-Mail-48-499907557 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Aloha Srinivas, On Nov 19, 2010, at 8:08 AM, Srinivas Pavani wrote: > Tom, > > I have been trying to use the org-article LaTEX setup to get > consistent look > and feel across my documents. > > I found out that if you insert the following lines directly in a file > (test.org), the desired output is produced. However if you insert > the lines in > an #+INCLUDE file, then the outcome is different. The settings of > org-article > are ignored. > > > Test case 1: > > File: test.org > > #+OPTIONS: H:3 > #+LaTeX_CLASS: org-article > #+LaTeX_CLASS_OPTIONS: > [koma,letterpaper,captions=tableheading,utopia,11pt,listings- > sv,microtype,paralist,colorlinks=true,urlcolor=blue,secnums] > #+LATEX_HEADER: \usepackage[AUTO]{inputenc} > > * Sample Heading1 > ** Sample Heading2 > *** Sample Heading3 > Content goes here > > ---------------------------- > > Test case 2: > File: test.org > > #+include: boiler.org > #+OPTIONS: H:3 > > * Sample Heading1 > ** Sample Heading2 > *** Sample Heading3 > > Content goes here > > > File: boiler.org > #+OPTIONS: H:2 > #+LaTeX_CLASS: org-article > #+LaTeX_CLASS_OPTIONS: > [koma,letterpaper,captions=tableheading,utopia,11pt,listings- > sv,microtype,paralist,colorlinks=true,urlcolor=blue,secnums] > #+LATEX_HEADER: \usepackage[AUTO]{inputenc} > > It seems that when files are included, the contents of the included > file are > not evaluated consistently. This seems like it is more of an issue > with org- > mode and interpreting include file contents. > > - Srinivas Thanks for reporting this. I'm glad you're able to get the desired output with org-article. Org-article doesn't know anything about include files (perhaps it should?), so I'm guessing along with you that this is an org-mode issue. If I'm not mistaken, Eric Fraga reported this behavior as a bug earlier today (http://lists.gnu.org/archive/html/emacs-orgmode/2010-11/msg00860.html ). I'll be interested in the discussion of this issue and any changes that might be required for org-article to process include files correctly. All the best, Tom --Apple-Mail-48-499907557 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Aloha Srinivas,
On = Nov 19, 2010, at 8:08 AM, Srinivas Pavani wrote:

Tom,

I have been trying to use the org-article = LaTEX setup to get consistent look
and feel across my documents. =

I found out that if you insert the following lines directly in a = file
(test.org), the desired output is produced. However if you = insert the lines in
an #+INCLUDE file, then the outcome is = different. The settings of org-article
are ignored.


Test = case 1:

File: test.org

#+OPTIONS: H:3
#+LaTeX_CLASS: = org-article
#+LaTeX_CLASS_OPTIONS: =
[koma,letterpaper,captions=3Dtableheading,utopia,11pt,listings-
sv,= microtype,paralist,colorlinks=3Dtrue,urlcolor=3Dblue,secnums]
#+LATEX_H= EADER: \usepackage[AUTO]{inputenc}

* Sample Heading1
** Sample = Heading2
*** Sample Heading3
Content goes = here

----------------------------

Test case 2:
File: = test.org

#+include: boiler.org
#+OPTIONS: H:3

* Sample = Heading1
** Sample Heading2
*** Sample Heading3

Content = goes here


File: boiler.org
#+OPTIONS: = H:2
#+LaTeX_CLASS: org-article
#+LaTeX_CLASS_OPTIONS: =
[koma,letterpaper,captions=3Dtableheading,utopia,11pt,listings-
sv,= microtype,paralist,colorlinks=3Dtrue,urlcolor=3Dblue,secnums]
#+LATEX_H= EADER: \usepackage[AUTO]{inputenc}

It seems that when files are = included, the contents of the included file are
not evaluated = consistently. This seems like it is more of an issue with org-
mode = and interpreting include file contents.

- Srinivas

Than= ks for reporting this. =  I'm glad you're able to get the d= esired output with org-article.  

<= /div>
Org-article doesn't know anything about = ;include files (perhaps it should?), so I'm&= nbsp;guessing along with you that this is&nb= sp;an org-mode issue.  

If&nb= sp;I'm not mistaken, Eric Fraga reported thi= s behavior as a bug earlier today (http://lists.gnu.org/archive/html/emacs-orgmode/2010-11/msg00860.html= ).  I'll be interested in the discu= ssion of this issue and any changes that might be required for = org-article to process include files = correctly.

All the = best,
Tom
= --Apple-Mail-48-499907557-- --===============0718940254== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============0718940254==--