* Changing packages and their order in LaTeX export
@ 2011-07-11 9:47 Dror Atariah
2011-07-11 10:22 ` Jambunathan K
0 siblings, 1 reply; 5+ messages in thread
From: Dror Atariah @ 2011-07-11 9:47 UTC (permalink / raw)
To: Emacs-orgmode
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Changing packages and their order in LaTeX export
2011-07-11 9:47 Changing packages and their order in LaTeX export Dror Atariah
@ 2011-07-11 10:22 ` Jambunathan K
2011-07-11 11:31 ` Dror Atariah
0 siblings, 1 reply; 5+ messages in thread
From: Jambunathan K @ 2011-07-11 10:22 UTC (permalink / raw)
To: Dror Atariah; +Cc: Emacs-orgmode
Dror Atariah <drorata@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
>
--
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Changing packages and their order in LaTeX export
2011-07-11 10:22 ` Jambunathan K
@ 2011-07-11 11:31 ` Dror Atariah
2011-07-11 11:50 ` Bastien
2011-07-11 11:53 ` Michael Markert
0 siblings, 2 replies; 5+ messages in thread
From: Dror Atariah @ 2011-07-11 11:31 UTC (permalink / raw)
To: Jambunathan K; +Cc: Emacs-orgmode
>> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Changing packages and their order in LaTeX export
2011-07-11 11:31 ` Dror Atariah
@ 2011-07-11 11:50 ` Bastien
2011-07-11 11:53 ` Michael Markert
1 sibling, 0 replies; 5+ messages in thread
From: Bastien @ 2011-07-11 11:50 UTC (permalink / raw)
To: Dror Atariah; +Cc: Emacs-orgmode, Jambunathan K
Hi Dror,
please make an effort while quoting people -- your email is barely
readable.
Dror Atariah <drorata@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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Changing packages and their order in LaTeX export
2011-07-11 11:31 ` Dror Atariah
2011-07-11 11:50 ` Bastien
@ 2011-07-11 11:53 ` Michael Markert
1 sibling, 0 replies; 5+ messages in thread
From: Michael Markert @ 2011-07-11 11:53 UTC (permalink / raw)
To: Dror Atariah; +Cc: Emacs-orgmode, Jambunathan K
[-- Attachment #1: Type: text/plain, Size: 924 bytes --]
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
[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-07-11 11:54 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-11 9:47 Changing packages and their order in LaTeX export Dror Atariah
2011-07-11 10:22 ` Jambunathan K
2011-07-11 11:31 ` Dror Atariah
2011-07-11 11:50 ` Bastien
2011-07-11 11:53 ` Michael Markert
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.