[O] Changing packages and their order in LaTeX export

2011-07-11 Thread Dror Atariah
I need to include 'amsmath' package in my LaTeX export. Using #+LATEX_HEADER: 
\usepackage{xyz} adds it at the end of the list, and then there are LaTeX 
related problems.

I tried to find where the default list is defined - it seems like it is in 
org.el. However, I have several copies of this file, and I don't know which one 
is the right one to change.

So, two questions:
1. Should I change the org.el or is it somewhere else?
2. If it is the org.el, then how can I tell which file is the one which is 
used? Should I restart emacs after each edit of this file for the changes to 
take effect?

Thanks!
Dror Atariah


Re: [O] Changing packages and their order in LaTeX export

2011-07-11 Thread Jambunathan K
Dror Atariah dror...@gmail.com writes:

 I need to include 'amsmath' package in my LaTeX export. Using
 #+LATEX_HEADER: \usepackage{xyz} adds it at the end of the list, and
 then there are LaTeX related problems.
 I tried to find where the default list is defined - it seems like it
 is in org.el. However, I have several copies of this file, and I don't
 know which one is the right one to change.

Does M-x customize-group RET org-export-latex RET show something that
could be of interest to you.

As a user, in principle, you should refuse to look at elisp files. But
it's a very good idea to look at the manuals though.

http://orgmode.org/manual/LaTeX-and-PDF-export.html#LaTeX-and-PDF-export

 So, two questions:
 1. Should I change the org.el or is it somewhere else?
 2. If it is the org.el, then how can I tell which file is the one
 which is used? Should I restart emacs after each edit of this file for
 the changes to take effect?

 Thanks!
 Dror Atariah


-- 



Re: [O] Changing packages and their order in LaTeX export

2011-07-11 Thread Dror Atariah
 I need to include 'amsmath' package in my LaTeX export. Using
 #+LATEX_HEADER: \usepackage{xyz} adds it at the end of the list, and
 then there are LaTeX related problems.
 I tried to find where the default list is defined - it seems like it
 is in org.el. However, I have several copies of this file, and I don't
 know which one is the right one to change.
 
 Does M-x customize-group RET org-export-latex RET show something that
 could be of interest to you.
This worked for me! Where did you find it in the manual? I looked there. 
Sometimes the manual's instructions are too cryptic for me - in the sense that 
I find the variable name, but I don't know how to change it.
 
 As a user, in principle, you should refuse to look at elisp files. But
 it's a very good idea to look at the manuals though.
Thanks for the tip!

 2. If it is the org.el, then how can I tell which file is the one
 which is used? Should I restart emacs after each edit of this file for
 the changes to take effect?
Can you still answer this question? How can I ask emacs to tell me where is the 
file it is using and should I restart after each such change?

Thanks,
Dror




Re: [O] Changing packages and their order in LaTeX export

2011-07-11 Thread Bastien
Hi Dror,

please make an effort while quoting people -- your email is barely
readable.  

Dror Atariah dror...@gmail.com writes:

 I need to include 'amsmath' package in my LaTeX export. Using
 #+LATEX_HEADER: \usepackage{xyz} adds it at the end of the list, and
 then there are LaTeX related problems.
 I tried to find where the default list is defined - it seems like it
 is in org.el. However, I have several copies of this file, and I don't
 know which one is the right one to change.
 
 Does M-x customize-group RET org-export-latex RET show something that
 could be of interest to you.
 This worked for me! Where did you find it in the manual? 

Did you look at this section?

  12.6.2 Header and sectioning structure

There is mentioned the `org-export-latex-class' variable.

Then you can do

  C-h v org-export-latex-class RET

to get information about the variable, and see in what customization
group it belongs.

 I looked
 there. Sometimes the manual's instructions are too cryptic for me - in
 the sense that I find the variable name, but I don't know how to change
 it.

Just do `C-h v' after a variable's name, it will describe the variable.
From the buffer containing the description, you can follow a link to
customize it.

 2. If it is the org.el, then how can I tell which file is the one
 which is used? Should I restart emacs after each edit of this file for
 the changes to take effect?

 Can you still answer this question? How can I ask emacs to tell me where is
 the file it is using

C-h v org-export-latex-class RET will tell you.

  and should I restart after each such change?

No.  If you change things in Org Elisp files, you need to reload Org
with M-x org-reload RET

HTH,

PS: While insisting on getting an answer, please be extra careful of
having a readable email ;)

-- 
 Bastien



Re: [O] Changing packages and their order in LaTeX export

2011-07-11 Thread Michael Markert
On 11 Jul 2011, Dror Atariah wrote:
 2. If it is the org.el, then how can I tell which file is the one
 which is used? Should I restart emacs after each edit of this file
 for the changes to take effect?
 Can you still answer this question? How can I ask emacs to tell me
 where is the file it is using and should I restart after each such
 change?

A combination of describe-{function,variable,...} (to get the filename)
and locate-library (to get the exact location -- you can also follow the
link in describe-*) tells you this. And no you don't have to restart
after that change you just have to reload (and recompile beforehand if
it was compiled) it.

But that's only a must if you change the file! A more sensible approach
is using customize. With X-c customize-group RET org RET you can browse
through all org settings that are thought to be changed. And don't
forget to set/save in that dialog.

Michael


pgpjcesvdEKIo.pgp
Description: PGP signature