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 #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 --]
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
Thanks John, I now have what I want. Roger
Thanks Eric. Filed away for future reference. Roger
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 #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 --]
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 #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 --]
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
>