Discussion:
[Orgmode] No title or date in LaTeX export
Xin Shi
2010-07-29 20:31:24 UTC
Permalink
Hello Experts,

When I export the org file to LaTeX, I want no title or date in the first
page. Namely, I want these lines to be commented out:

%\title{XXXXXX}
%\date{XXXXX}
%\maketitle

So far, I only found
#+OPTIONS: author:nil can make:

%\author{XXXX}

I also tried :

# Local Variables:
# org-export-latex-title-command: " "
# End:

but still saw the \maketitle .

Any suggestions?

Thanks!

Xin
Xin Shi
2010-07-29 20:52:45 UTC
Permalink
Hello,

I found an answer for my question :)

#+OPTIONS: toc:nil
#+TITLE:
#+AUTHOR:
#+DATE:

will do the work.

Xin
Post by Xin Shi
Hello Experts,
When I export the org file to LaTeX, I want no title or date in the first
%\title{XXXXXX}
%\date{XXXXX}
%\maketitle
So far, I only found
%\author{XXXX}
# org-export-latex-title-command: " "
but still saw the \maketitle .
Any suggestions?
Thanks!
Xin
Nick Dokos
2010-07-29 21:02:25 UTC
Permalink
Post by Xin Shi
Hello Experts,
When I export the org file to LaTeX, I want no title or date in the first page.  Namely, I want
%\title{XXXXXX}
%\date{XXXXX}
%\maketitle 
So far, I only found
%\author{XXXX} 
# org-export-latex-title-command: " "
but still saw the \maketitle .
Any suggestions?
Try

#+BIND: org-export-latex-title-command ""

at the top of your org file. This should eliminate the \maketitle
invocation. \title, \date etc will still be defined but since only
\maketitle uses them, they won't affect the output.

I presume you'll also want to nuke the table of contents. If so,
add

#+OPTIONS: toc:nil

at the top of the org file as well.

HTH,
Nick
Neil Hepburn
2010-07-29 21:05:04 UTC
Permalink
Hi Xin

To get rid of this stuff, simply put the following at the top of your org file:

#+OPTIONS: author:nil
#+TITLE:
#+DATE:

alternatively you can use

#+TITLE:
#+AUTHOR:
#+DATE:

If you use the second option, your tex file will have
\title{}
\author{}
\date{}

but will not have the \maketitle command.

-Neil
(not an expert but an inquisitive user)
Post by Xin Shi
Hello Experts,
%\title{XXXXXX}
%\date{XXXXX}
%\maketitle
So far, I only found
%\author{XXXX}
# org-export-latex-title-command: " "
but still saw the \maketitle .
Any suggestions?
Thanks!
Xin
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
John Hendy
2010-07-29 23:00:43 UTC
Permalink
See this: http://www.mail-archive.com/emacs-***@gnu.org/msg20692.html

Key line to add in your .org header section:

#+BIND: org-export-latex-title-command ""

When you do C-c C-e p the minibuffer will ask if you want to apply the
BIND code. Type yes and that should do it. It's been working for me in
eliminating the \maketitle line.


John
Post by Xin Shi
Hello Experts,
When I export the org file to LaTeX, I want no title or date in the first
%\title{XXXXXX}
%\date{XXXXX}
%\maketitle
So far, I only found
%\author{XXXX}
# org-export-latex-title-command: " "
but still saw the \maketitle .
Any suggestions?
Thanks!
Xin
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
John Hendy
2010-07-29 23:01:35 UTC
Permalink
Whoops -- sorry for the duplicate suggestion... a bunch of messages just
came through!
Post by Nick Dokos
#+BIND: org-export-latex-title-command ""
When you do C-c C-e p the minibuffer will ask if you want to apply the BIND code. Type yes and that should do it. It's been working for me in eliminating the \maketitle line.
John
Post by Xin Shi
Hello Experts,
When I export the org file to LaTeX, I want no title or date in the first
%\title{XXXXXX}
%\date{XXXXX}
%\maketitle
So far, I only found
%\author{XXXX}
# org-export-latex-title-command: " "
but still saw the \maketitle .
Any suggestions?
Thanks!
Xin
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Xin Shi
2010-08-02 12:22:42 UTC
Permalink
Hello,

Thank you all ! :)

Xin
Post by John Hendy
Whoops -- sorry for the duplicate suggestion... a bunch of messages just
came through!
Post by Nick Dokos
#+BIND: org-export-latex-title-command ""
When you do C-c C-e p the minibuffer will ask if you want to apply the BIND code. Type yes and that should do it. It's been working for me in eliminating the \maketitle line.
John
Post by Xin Shi
Hello Experts,
When I export the org file to LaTeX, I want no title or date in the first
%\title{XXXXXX}
%\date{XXXXX}
%\maketitle
So far, I only found
%\author{XXXX}
# org-export-latex-title-command: " "
but still saw the \maketitle .
Any suggestions?
Thanks!
Xin
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Loading...