From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thomas S. Dye" Subject: Re: RE Re: Issues with org-mode and LaTeX export. Date: Thu, 21 Oct 2010 07:47:11 -1000 Message-ID: References: Mime-Version: 1.0 (Apple Message framework v936) Content-Type: multipart/mixed; boundary="===============2005283076==" Return-path: Received: from [140.186.70.92] (port=59313 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P8zEX-000536-F3 for emacs-orgmode@gnu.org; Thu, 21 Oct 2010 13:47:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P8zEU-0008B9-PK for emacs-orgmode@gnu.org; Thu, 21 Oct 2010 13:47:20 -0400 Received: from oproxy2-pub.bluehost.com ([67.222.39.60]:55030) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1P8zEU-0008Ae-Eb for emacs-orgmode@gnu.org; Thu, 21 Oct 2010 13:47:18 -0400 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: gerald.jean@dgag.ca Cc: emacs-orgmode-bounces+gerald.jean=dgag.ca@gnu.org, tassilo@member.fsf.org, emacs-orgmode@gnu.org --===============2005283076== Content-Type: multipart/alternative; boundary=Apple-Mail-4-138386614 --Apple-Mail-4-138386614 Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Aloha Gerald, I don't know if you saw the earlier message. Your org-mode is out of =20= date. You should update according to the instructions in that message. Also, have you seen Worg? http://orgmode.org/worg Once you've upgraded to a recent version of org-mode, then the LaTeX =20 export tutorial there might help get you over the steep part of the =20 learning curve: http://orgmode.org/worg/org-tutorials/org-latex-export.php hth, Tom On Oct 21, 2010, at 6:56 AM, gerald.jean@dgag.ca wrote: > Hello, > > first thanks Tassilo for your reply, it did help somehow but there =20 > is still > things I don't understand, see below. > > emacs-orgmode-bounces+gerald.jean=3Ddgag.ca@gnu.org a =E9crit sur =20 > 2010/10/21 > 11:03:48 : > >> gerald.jean@dgag.ca writes: >> >> Hi Gerald, >> >>> 1.- Following advice in the org manual I added the following lines =20= >>> 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 =20= >> at >> the autoloading facility. As soon as you invoke one of them (e.g. =20= >> 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 =20= >> 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 =20 >>> Thomas > S. >>> Dye, thanks Thomas, >> >> I didn't read that, but... >> >>> Perhaps the org-export-latex-classes variable is mis-configured. =20= >>> 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 =20 >>> 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 =20 >> 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 =20= >>> 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 =20 > thought > that if I wanted a package just for this one org file that it was =20 > 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 =20= > file. > They talk about the "org-export-select-tags" and "org-export-exclude-=20= > tags"; > these variables don't even exist? They never explain how to create =20= > them > and how to set them? They never explain neither how and where to =20 > set the > tags once the variables are set? > > Any light here? Thanks again, > > G=E9rald > > >> 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 --Apple-Mail-4-138386614 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Aloha = Gerald,

I don't know if you saw the earlier message. =  Your org-mode is out of date.  You should update according to = the instructions in that message.

Also, have = you seen Worg?  http://orgmode.org/worg
Once you've upgraded t= o a recent version of org-mode, then th= e LaTeX export tutorial there might help&nbs= p;get you over the steep part of the&nb= sp;learning curve:  
http:/= /orgmode.org/worg/org-tutorials/org-latex-export.php

=
hth,
Tom

On Oct 21, 2010, = at 6:56 AM, gerald.jean@dgag.ca= wrote:

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=3Ddgag.ca@gnu.org a =E9crit sur = 2010/10/21
11:03:48 :

gerald.jean@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}
<= blockquote type=3D"cite">
\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=E9rald


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
<= br>= --Apple-Mail-4-138386614-- --===============2005283076== 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 --===============2005283076==--