emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Change default latex packages
@ 2014-05-05 12:13 Roger Mason
  2014-05-05 15:01 ` John Kitchin
  2014-05-05 16:41 ` Eric S Fraga
  0 siblings, 2 replies; 10+ messages in thread
From: Roger Mason @ 2014-05-05 12:13 UTC (permalink / raw)
  To: emacs-orgmode

Hello,

How can I change the default packages that are used in LaTeX export?  
I'm running Org-mode version 8.2.6 (release_8.2.6-937-g60502a).

Thanks,
Roger

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

* Re: Change default latex packages
  2014-05-05 12:13 Change default latex packages Roger Mason
@ 2014-05-05 15:01 ` John Kitchin
  2014-05-05 17:39   ` Roger Mason
  2014-05-06 10:37   ` Roger Mason
  2014-05-05 16:41 ` Eric S Fraga
  1 sibling, 2 replies; 10+ messages in thread
From: John Kitchin @ 2014-05-05 15:01 UTC (permalink / raw)
  To: Roger Mason; +Cc: emacs-orgmode@gnu.org

[-- Attachment #1: Type: text/plain, Size: 1373 bytes --]

I do not know if this is the best practice, but I do it like this.

(setq org-latex-default-packages-alist
      '(("AUTO" "inputenc" t)
    ("" "lmodern" nil)
    ("T1" "fontenc" t)
    ("" "fixltx2e" nil)
;    ("" "charter" nil) ;; a decent font
;    ("expert" "mathdesign" nil)
    ("" "graphicx" t)
    ("" "longtable" nil)
    ("" "float" nil)
    ("" "wrapfig" nil)
    ("" "rotating" nil)
    ("normalem" "ulem" t)
    ("" "amsmath" t)
    ("" "textcomp" t)
    ("" "marvosym" t)
    ("" "wasysym" t)
    ("" "amssymb" t)
    ("" "amsmath" t)
    ("version=3" "mhchem" t)
    ("numbers,super,sort&compress" "natbib" t)
    ("" "natmove" nil)
    ("" "url" t)
    ("" "minted" nil)
    ("" "underscore" t)
    ("linktocpage,pdfstartview=FitH,colorlinks,
linkcolor=blue,anchorcolor=blue,
citecolor=blue,filecolor=blue,menucolor=blue,urlcolor=blue"
     "hyperref" nil)
    ("" "attachfile" nil)))



John

-----------------------------------
John Kitchin
Associate Professor
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
http://kitchingroup.cheme.cmu.edu



On Mon, May 5, 2014 at 8:13 AM, Roger Mason <rmason@mun.ca> wrote:

> Hello,
>
> How can I change the default packages that are used in LaTeX export?  I'm
> running Org-mode version 8.2.6 (release_8.2.6-937-g60502a).
>
> Thanks,
> Roger
>
>

[-- Attachment #2: Type: text/html, Size: 2565 bytes --]

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

* Re: Change default latex packages
  2014-05-05 12:13 Change default latex packages Roger Mason
  2014-05-05 15:01 ` John Kitchin
@ 2014-05-05 16:41 ` Eric S Fraga
  2014-05-05 17:40   ` Roger Mason
  1 sibling, 1 reply; 10+ messages in thread
From: Eric S Fraga @ 2014-05-05 16:41 UTC (permalink / raw)
  To: Roger Mason; +Cc: emacs-orgmode

On Monday,  5 May 2014 at 09:43, Roger Mason wrote:
> Hello,
>
> How can I change the default packages that are used in LaTeX export?

If you want to add some to the default, you can modify
org-latex-packages-alist.  If you want to remove some from the default
list (not recommended), check out org-latex-default-packages-alist.

"C-h v org-latex-packages-alist RET" is your friend here!

HTH,
eric

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.6-923-g233c11

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

* Re: Change default latex packages
  2014-05-05 15:01 ` John Kitchin
@ 2014-05-05 17:39   ` Roger Mason
  2014-05-06 10:37   ` Roger Mason
  1 sibling, 0 replies; 10+ messages in thread
From: Roger Mason @ 2014-05-05 17:39 UTC (permalink / raw)
  To: John Kitchin; +Cc: emacs-orgmode@gnu.org


Thanks John, I now have what I want.

Roger

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

* Re: Change default latex packages
  2014-05-05 16:41 ` Eric S Fraga
@ 2014-05-05 17:40   ` Roger Mason
  0 siblings, 0 replies; 10+ messages in thread
From: Roger Mason @ 2014-05-05 17:40 UTC (permalink / raw)
  To: Roger Mason, emacs-orgmode

Thanks Eric.  Filed away for future reference.

Roger

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

* Re: Change default latex packages
  2014-05-05 15:01 ` John Kitchin
  2014-05-05 17:39   ` Roger Mason
@ 2014-05-06 10:37   ` Roger Mason
  2014-05-06 10:51     ` John Kitchin
  1 sibling, 1 reply; 10+ messages in thread
From: Roger Mason @ 2014-05-06 10:37 UTC (permalink / raw)
  To: emacs-orgmode

Hello again,

On 05/05/14 12:31, John Kitchin wrote:
> (setq org-latex-default-packages-alist
>
I thought I had this fixed, but apparently not.

Here's what I have in my .emacs:

(setq org-latex-default-packages-alist
       '(("AUTO" "inputenc" t)
     ("" "lmodern" nil)
     ("T1" "fontenc" nil)
     ("" "fixltx2e" nil)
;    ("" "charter" nil) ;; a decent font
;    ("expert" "mathdesign" nil)
     ("" "graphicx" t)
     ("" "longtable" nil)
     ("" "float" nil)
     ("" "wrapfig" nil)
     ("" "rotating"  nil)
     ("normalem" "ulem" t)
     ("" "amsmath" t)
     ("" "textcomp" nil)
     ("" "marvosym" t)
     ("" "wasysym" t)
     ("" "amssymb" t)
     ("" "amsmath" t)
     ("version=3" "mhchem" t)
     ("numbers,super,sort&compress" "natbib" t)
     ("" "natmove" nil)
     ("" "url" t)
     ("" "minted" nil)
     ("" "underscore" t)
     ("linktocpage,pdfstartview=FitH,colorlinks,
linkcolor=blue,anchorcolor=blue,
citecolor=blue,filecolor=blue,menucolor=blue,urlcolor=blue"
      "hyperref" nil)
     ("" "attachfile" nil)))

Notice     ("T1" "fontenc" nil) and ("" "textcomp" nil).

Here's the latex output:

\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage[T1]{fontenc}
\usepackage{fixltx2e}
\usepackage{graphicx}
\usepackage{longtable}
\usepackage{float}
\usepackage{wrapfig}
\usepackage{rotating}
\usepackage[normalem]{ulem}
\usepackage{amsmath}
\usepackage{textcomp}
\usepackage{marvosym}
\usepackage{wasysym}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage[version=3]{mhchem}
\usepackage[numbers,super,sort&compress]{natbib}
\usepackage{natmove}
\usepackage{url}
\usepackage{minted}
\usepackage{underscore}
\usepackage[linktocpage,pdfstartview=FitH,colorlinks,
linkcolor=blue,anchorcolor=blue,
citecolor=blue,filecolor=blue,menucolor=blue,urlcolor=blue]{hyperref}
\usepackage{attachfile}
\usepackage{parskip}

Notice the \usepackage[T1]{fontenc} and \usepackage{textcomp}.

What am I doing wrong?

Thanks,
Roger

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

* Re: Change default latex packages
  2014-05-06 10:37   ` Roger Mason
@ 2014-05-06 10:51     ` John Kitchin
       [not found]       ` <5368ED80.3010906@mun.ca>
  0 siblings, 1 reply; 10+ messages in thread
From: John Kitchin @ 2014-05-06 10:51 UTC (permalink / raw)
  To: Roger Mason; +Cc: emacs-orgmode@gnu.org

[-- Attachment #1: Type: text/plain, Size: 2504 bytes --]

Isn't that what it is supposed to be like? what were you expecting
differently?

John

-----------------------------------
John Kitchin
Associate Professor
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
http://kitchingroup.cheme.cmu.edu



On Tue, May 6, 2014 at 6:37 AM, Roger Mason <rmason@mun.ca> wrote:

> Hello again,
>
> On 05/05/14 12:31, John Kitchin wrote:
>
>> (setq org-latex-default-packages-alist
>>
>>  I thought I had this fixed, but apparently not.
>
> Here's what I have in my .emacs:
>
>
> (setq org-latex-default-packages-alist
>       '(("AUTO" "inputenc" t)
>     ("" "lmodern" nil)
>     ("T1" "fontenc" nil)
>
>     ("" "fixltx2e" nil)
> ;    ("" "charter" nil) ;; a decent font
> ;    ("expert" "mathdesign" nil)
>     ("" "graphicx" t)
>     ("" "longtable" nil)
>     ("" "float" nil)
>     ("" "wrapfig" nil)
>     ("" "rotating"  nil)
>     ("normalem" "ulem" t)
>     ("" "amsmath" t)
>     ("" "textcomp" nil)
>
>     ("" "marvosym" t)
>     ("" "wasysym" t)
>     ("" "amssymb" t)
>     ("" "amsmath" t)
>     ("version=3" "mhchem" t)
>     ("numbers,super,sort&compress" "natbib" t)
>     ("" "natmove" nil)
>     ("" "url" t)
>     ("" "minted" nil)
>     ("" "underscore" t)
>     ("linktocpage,pdfstartview=FitH,colorlinks,
> linkcolor=blue,anchorcolor=blue,
> citecolor=blue,filecolor=blue,menucolor=blue,urlcolor=blue"
>      "hyperref" nil)
>     ("" "attachfile" nil)))
>
> Notice     ("T1" "fontenc" nil) and ("" "textcomp" nil).
>
> Here's the latex output:
>
> \documentclass[11pt]{article}
> \usepackage[utf8]{inputenc}
> \usepackage{lmodern}
> \usepackage[T1]{fontenc}
> \usepackage{fixltx2e}
> \usepackage{graphicx}
> \usepackage{longtable}
> \usepackage{float}
> \usepackage{wrapfig}
> \usepackage{rotating}
> \usepackage[normalem]{ulem}
> \usepackage{amsmath}
> \usepackage{textcomp}
> \usepackage{marvosym}
> \usepackage{wasysym}
> \usepackage{amssymb}
> \usepackage{amsmath}
> \usepackage[version=3]{mhchem}
> \usepackage[numbers,super,sort&compress]{natbib}
> \usepackage{natmove}
> \usepackage{url}
> \usepackage{minted}
> \usepackage{underscore}
> \usepackage[linktocpage,pdfstartview=FitH,colorlinks,
> linkcolor=blue,anchorcolor=blue,
> citecolor=blue,filecolor=blue,menucolor=blue,urlcolor=blue]{hyperref}
> \usepackage{attachfile}
> \usepackage{parskip}
>
> Notice the \usepackage[T1]{fontenc} and \usepackage{textcomp}.
>
> What am I doing wrong?
>
> Thanks,
> Roger
>
>
>
>
>
>

[-- Attachment #2: Type: text/html, Size: 4078 bytes --]

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

* Re: Change default latex packages
       [not found]         ` <CAJ51ETpzTgJpnX3iQOcxY9u1zLDPD1TAyR1tANvYs_f3tJar-A@mail.gmail.com>
@ 2014-05-06 14:23           ` Roger Mason
  2014-05-06 16:23             ` John Kitchin
  0 siblings, 1 reply; 10+ messages in thread
From: Roger Mason @ 2014-05-06 14:23 UTC (permalink / raw)
  To: John Kitchin; +Cc: emacs-orgmode

hello,

On 05/06/14 11:48, John Kitchin wrote:
> no, I think nil means it is not needed to make latex fragments  of 
> equations.
>
> John
OK, thanks.  So, back to my original question: how do I control the list 
of packages exported into a LaTeX document?

Thanks,
Roger

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

* Re: Change default latex packages
  2014-05-06 14:23           ` Roger Mason
@ 2014-05-06 16:23             ` John Kitchin
  2014-05-06 16:47               ` Roger Mason
  0 siblings, 1 reply; 10+ messages in thread
From: John Kitchin @ 2014-05-06 16:23 UTC (permalink / raw)
  To: Roger Mason; +Cc: emacs-orgmode@gnu.org

[-- Attachment #1: Type: text/plain, Size: 1481 bytes --]

just delete the packages you don't what from (setq
org-latex-default-packages-ali
st
      '(("AUTO" "inputenc" t)
    ("" "lmodern" nil)
    ("T1" "fontenc" nil)

    ("" "fixltx2e" nil)
;    ("" "charter" nil) ;; a decent font
;    ("expert" "mathdesign" nil)
    ("" "graphicx" t)
    ("" "longtable" nil)
    ("" "float" nil)
    ("" "wrapfig" nil)
    ("" "rotating"  nil)
    ("normalem" "ulem" t)
    ("" "amsmath" t)
    ("" "textcomp" nil)
    ("" "marvosym" t)
    ("" "wasysym" t)
    ("" "amssymb" t)
    ("" "amsmath" t)
    ("version=3" "mhchem" t)
    ("numbers,super,sort&compress" "natbib" t)
    ("" "natmove" nil)
    ("" "url" t)
    ("" "minted" nil)
    ("" "underscore" t)
    ("linktocpage,pdfstartview=Fit
H,colorlinks,
linkcolor=blue,anchorcolor=blue,
citecolor=blue,filecolor=blue,menucolor=blue,urlcolor=blue"
     "hyperref" nil)
    ("" "attachfile" nil)))

John

-----------------------------------
John Kitchin
Associate Professor
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
http://kitchingroup.cheme.cmu.edu



On Tue, May 6, 2014 at 10:23 AM, Roger Mason <rmason@mun.ca> wrote:

> hello,
>
>
> On 05/06/14 11:48, John Kitchin wrote:
>
>> no, I think nil means it is not needed to make latex fragments  of
>> equations.
>>
>> John
>>
> OK, thanks.  So, back to my original question: how do I control the list
> of packages exported into a LaTeX document?
>
> Thanks,
> Roger
>

[-- Attachment #2: Type: text/html, Size: 2858 bytes --]

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

* Re: Change default latex packages
  2014-05-06 16:23             ` John Kitchin
@ 2014-05-06 16:47               ` Roger Mason
  0 siblings, 0 replies; 10+ messages in thread
From: Roger Mason @ 2014-05-06 16:47 UTC (permalink / raw)
  To: John Kitchin; +Cc: emacs-orgmode@gnu.org


Thanks!  Dunno why I was too stunned to try the obvious.

Cheers,
Roger

On 05/06/14 13:53, John Kitchin wrote:
> just delete the packages you don't what from (setq 
> org-latex-default-packages-ali
> st
>       '(("AUTO" "inputenc" t)
>     ("" "lmodern" nil)
>     ("T1" "fontenc" nil)
>
>     ("" "fixltx2e" nil)
> ;    ("" "charter" nil) ;; a decent font
> ;    ("expert" "mathdesign" nil)
>     ("" "graphicx" t)
>     ("" "longtable" nil)
>     ("" "float" nil)
>     ("" "wrapfig" nil)
>     ("" "rotating"  nil)
>     ("normalem" "ulem" t)
>     ("" "amsmath" t)
>     ("" "textcomp" nil)
>     ("" "marvosym" t)
>     ("" "wasysym" t)
>     ("" "amssymb" t)
>     ("" "amsmath" t)
>     ("version=3" "mhchem" t)
>     ("numbers,super,sort&compress" "natbib" t)
>     ("" "natmove" nil)
>     ("" "url" t)
>     ("" "minted" nil)
>     ("" "underscore" t)
>     ("linktocpage,pdfstartview=Fit
> H,colorlinks,
> linkcolor=blue,anchorcolor=blue,
> citecolor=blue,filecolor=blue,menucolor=blue,urlcolor=blue"
>      "hyperref" nil)
>     ("" "attachfile" nil)))
>
> John
>

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

end of thread, other threads:[~2014-05-06 16:48 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-05 12:13 Change default latex packages Roger Mason
2014-05-05 15:01 ` John Kitchin
2014-05-05 17:39   ` Roger Mason
2014-05-06 10:37   ` Roger Mason
2014-05-06 10:51     ` John Kitchin
     [not found]       ` <5368ED80.3010906@mun.ca>
     [not found]         ` <CAJ51ETpzTgJpnX3iQOcxY9u1zLDPD1TAyR1tANvYs_f3tJar-A@mail.gmail.com>
2014-05-06 14:23           ` Roger Mason
2014-05-06 16:23             ` John Kitchin
2014-05-06 16:47               ` Roger Mason
2014-05-05 16:41 ` Eric S Fraga
2014-05-05 17:40   ` Roger Mason

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