emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-article & #+INCLUDE LaTex support
@ 2010-11-19 18:08 Srinivas Pavani
  2010-11-19 18:43 ` Thomas S. Dye
  0 siblings, 1 reply; 2+ messages in thread
From: Srinivas Pavani @ 2010-11-19 18:08 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: org-article & #+INCLUDE LaTex support
  2010-11-19 18:08 org-article & #+INCLUDE LaTex support Srinivas Pavani
@ 2010-11-19 18:43 ` Thomas S. Dye
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas S. Dye @ 2010-11-19 18:43 UTC (permalink / raw)
  To: Srinivas Pavani; +Cc: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 2073 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 2929 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-11-19 18:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-19 18:08 org-article & #+INCLUDE LaTex support Srinivas Pavani
2010-11-19 18:43 ` Thomas S. Dye

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).