[Orgmode] Issues with org-mode and LaTeX export.

2010-10-21 Thread gerald . jean

Hello,

I am new to org-mode and I have a few issues with it.  First, I am running
org-mode version 5.23a from Emacs 22.3.1 on a Linux RedHat machine.

1.- Following advice in the org manual I added the following lines to my
.emacs.

(add-to-list 'auto-mode-alist '(\\.org\\' . org-mode))
(global-set-key \C-cl 'org-store-link)
(global-set-key \C-ca 'org-agenda)
(global-set-key \C-cb 'org-iswitchb)
(setq org-log-done t)

when I open a *.org file, org-mode is turned on OK.  But none of the
org-export-latex-* variables are defined at this point?

Now if I do C-c C-e l then a LaTeX file is produced, not with the options I
want though (see point 2), and some of the org-export-latex-* variables
seemed to be defined now; for example org-export-latex-classes is defined
with the default definition, but not all LaTeX related variables are
defined, for example org-export-latex-default-packages-alist is not
defined; henced I can't even find out what are the default packages?

What is going on here?  Do I have something missing in my .emacs file?

2.- Now, I want to use different packages, for example

\usepackage[latin9]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english, francais]{babel}

I posted about this yesterday and I got the following reply from Thomas S.
Dye, thanks Thomas,

Perhaps the org-export-latex-classes variable is mis-configured.  IIUC, the
[EXTRA] macro needs to be present:

  If you need more control about the sequence in which the header is
  built
  up, or if you want to exclude one of these building blocks for a
  particular
  class, you can use the following macro-like placeholders.

   [DEFAULT-PACKAGES]  \usepackage statements for default packages
   [NO-DEFAULT-PACKAGES]   do not include any of the default packages
   [PACKAGES]  \usepackage statements for packages
   [NO-PACKAGES]   do not include the packages
   [EXTRA] the stuff from #+LaTeX_HEADER
   [NO-EXTRA]  do not include #+LaTeX_HEADER stuff
   [BEAMER-HEADER-EXTRA]   the beamer extra headers

Unfortunaetly this is not enough details for my little knowledge of elisp!
Could someone provide me with a clear example of what needs to go in the
.emacs file for packages with options and correspondingly what needs to go
in the org file for that example.  Does the .emacs file needs to be
modified every time one wants to add a new package?

Thanks for any support,

Gérald Jean
Conseiller senior en statistiques,
VP Actuariat et Solutions d'assurances,
Desjardins Groupe d'Assurances Générales
télephone: (418) 835-4900 poste (7639)
télecopieur  : (418) 835-6657
courrier électronique: gerald.j...@dgag.ca

We believe in God, others must bring Data.

W. Edwards Deming


___
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


RE [Orgmode] Re: Issues with org-mode and LaTeX export.

2010-10-21 Thread gerald . jean
Hello,

first thanks Tassilo for your reply, it did help somehow but there is still
things I don't understand, see below.

emacs-orgmode-bounces+gerald.jean=dgag...@gnu.org a écrit sur 2010/10/21
11:03:48 :

 gerald.j...@dgag.ca writes:

 Hi Gerald,

  1.- Following advice in the org manual I added the following lines to
my
  .emacs.
 
  (add-to-list 'auto-mode-alist '(\\.org\\' . org-mode))
  (global-set-key \C-cl 'org-store-link)
  (global-set-key \C-ca 'org-agenda)
  (global-set-key \C-cb 'org-iswitchb)
  (setq org-log-done t)
 
  when I open a *.org file, org-mode is turned on OK.  But none of the
  org-export-latex-* variables are defined at this point?

 That's because at that point org is not loaded, but only registered at
 the autoloading facility.  As soon as you invoke one of them (e.g. with
 a keybinding) org is loaded, and then the missing variables will be
 defined as well.

 But a variable doesn't need to be defvared before setting them, so you
 can simply add

   (setq org-export-latex-foobar some nice setting)

 to your emacs file although that variable isn't known at that time.
 When org is loaded your values won't be overridden.

  2.- Now, I want to use different packages, for example
 
  \usepackage[latin9]{inputenc}
  \usepackage[T1]{fontenc}

 I think the those should be added automatically, and the encoding is
 determined by the org file's encoding.

  \usepackage[english, francais]{babel}
 
  I posted about this yesterday and I got the following reply from Thomas
S.
  Dye, thanks Thomas,

 I didn't read that, but...

  Perhaps the org-export-latex-classes variable is mis-configured.  IIUC,
the
  [EXTRA] macro needs to be present:

 ... I don't think that variable is the right thing here.

  Unfortunaetly this is not enough details for my little knowledge of
  elisp!  Could someone provide me with a clear example of what needs to
  go in the .emacs file for packages with options and correspondingly
  what needs to go in the org file for that example.

 I think this should do what you want, e.g. enable babel with english and
 francais options:

 --8---cut here---start-8---
 (setq org-export-latex-packages-alist
   '((english, francais babel nil)))
 --8---cut here---end---8---

  Does the .emacs file needs to be modified every time one wants to add
  a new package?

 If you want a new package in every exported document, add an entry of
 form (OPTIONS PACKAGE nil) to the list above.


That works, thanks, but when do you use #+LATEX_HEADER: then?  I thought
that if I wanted a package just for this one org file that it was the way
to specify it, sure doesn't work for me?

I also looked at the manual to selectively export a part of the org file.
They talk about the org-export-select-tags and org-export-exclude-tags;
these variables don't even exist?  They never explain how to create them
and how to set them?  They never explain neither how and where to set the
tags once the variables are set?

Any light here?  Thanks again,

Gérald


 Bye,
 Tassilo


 ___
 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


___
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


Re: RE [Orgmode] Re: Issues with org-mode and LaTeX export.

2010-10-21 Thread gerald . jean
Thanks again Tassilo,

here is what I tried.

Tassilo Horn tass...@member.fsf.org a écrit sur 2010/10/21 13:42:59 :

 gerald.j...@dgag.ca writes:

 Hi Gerald,

  I think this should do what you want, e.g. enable babel with english
  and francais options:
 
  --8---cut here---start-8---
  (setq org-export-latex-packages-alist
'((english, francais babel nil)))
  --8---cut here---end---8---
 
   Does the .emacs file needs to be modified every time one wants to
add
   a new package?
 
  If you want a new package in every exported document, add an entry of
  form (OPTIONS PACKAGE nil) to the list above.
 
  That works, thanks, but when do you use #+LATEX_HEADER: then?

 I don't use the LaTeX export at all (at least regularily). :-)

  I thought that if I wanted a package just for this one org file that
  it was the way to specify it, sure doesn't work for me?

 Yes, the docs say so.  I had the impression that you want to enable
 babel for each exported org file, so I chose the version above.  But you
 can also use

You were right for the babel package, I use it all the time.  But some
other packages not so often

 #+LATEX_HEADER: \usepackage[english, francais]{babel}

 in your org file, which should have the same effect.

I tried this:

#+LATEX_HEADER: \usepackage{longtable}

No effects?


  I also looked at the manual to selectively export a part of the org
  file.  They talk about the org-export-select-tags and
  org-export-exclude-tags; these variables don't even exist?

 They do.  Are you still using that old org version 5.x?  If so, well,
 then maybe there were no such variables.  And somewhen in org version
 6.x the export facilities were completely rewritten, so I guess you are
 pretty alone with your problems unless you get a recent version.

For the time being I am stuck with this version.  I am sending a request to
our IT group to upgrade Emacs to the most recent version for the version of
RedHat we have, this should have a more recent version of org-mode, if I am
lucky that should be done in a couple weeks.  In the mean time I will
manually add, or exclude, what I want from the exported *.tex file.

For the little I have done with org mode I still think it looks like a
great package and I am planning to learn to use it better so I use it more.
Thanks to all contributors.

Cheers,

Gérald

 Bye,
 Tassilo


___
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


Re: RE [Orgmode] Re: Issues with org-mode and LaTeX export.

2010-10-21 Thread gerald . jean


Erik Iverson er...@ccbr.umn.edu a écrit sur 2010/10/21 14:26:51 :


 
  For the time being I am stuck with this version.  I am sending a
request to
  our IT group to upgrade Emacs to the most recent version for the
version of
  RedHat we have, this should have a more recent version of org-mode, if
I am
  lucky that should be done in a couple weeks.  In the mean time I will
  manually add, or exclude, what I want from the exported *.tex file.

 Do you have write access to your home directory?  That's all you need
 to install the latest and greatest. Although I do not know how org 7
 works with your version of Emacs.  Probably smart to have them
 upgrade since there are tons of improvements in Emacs, and it's,
 you know, free.


Yes I do have write access to my home.  I do manage ESS versions, AucTeX
versions and a full TeXLive distribution that way.  But I do find this is
enough, I am not very efficient at system maintenance and do have other
work to do.  Hence I'll wait a little and let the experts do a system
wide installation.

Gérald


___
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


[Orgmode] Setting up LATEX_HEADER properly.

2010-10-20 Thread gerald . jean

Hello,

I am new to org-mode, not to Emacs and LaTeX though.  I am trying to export
an org document to LaTeX.  It does export but not with the options I want.
For example, trying to add just one package I have the following at the end
of my org file, I tried to put it at the begining also but it didn't work
neither?  Any way I tried to include packages didn't work, I also tried
with #+SETUPFILE: /home/jeg002/org/2010/setupLaTeX.org, no luck?

#+TITLE: MODÉLISATION du TAUX de SOUMISSION en MARKETING DIRECT.
#+AUTHOR:Gérald Jean
#+EMAIL: gerald.j...@dgag.ca
#+LANGUAGE:  fr
#+TEXT:  Le fichier Org pour le projet 33539.
#+OPTIONS:   H:3 num:t toc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t TeX:t
LaTeX:t skip:t d:nil tags:not-in-toc
#+latex_header: \usepackage[english, francais]{babel}

thanks for any help,

Gérald Jean
Conseiller senior en statistiques,
VP Actuariat et Solutions d'assurances,
Desjardins Groupe d'Assurances Générales
télephone: (418) 835-4900 poste (7639)
télecopieur  : (418) 835-6657
courrier électronique: gerald.j...@dgag.ca

We believe in God, others must bring Data.

W. Edwards Deming


___
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