Re: [O] Updated syntax for #+bind and no LaTeX \maketitle command?
Hi John, John Hendy wrote: > On Fri, May 24, 2013 at 1:36 AM, Nick Dokos wrote: >> Check the value of org-export-allow-bind-keywords. If nil, then >> BIND keywords seem to be ignored silently. > > Thanks all! Not knowing about the org-export-allow-bind-keywords was > my issue, and setting it to =t= fixed it. Out of curiosity, what's the > difference between org-export-allow-BIND and > org-export-allow-bind-keywords? They M-x help on them sounds very > similar. One is used in Org < 8, the other in Org 8 and future versions. Best regards, Seb -- Sebastien Vauban
Re: [O] Updated syntax for #+bind and no LaTeX \maketitle command?
On Fri, May 24, 2013 at 1:36 AM, Nick Dokos wrote: > Nick Dokos writes: > >>> #+bind: org-latex-title-command "" >>> >>> This is still generating a \maketitle line in my .tex file. >>> >>> What's the proper way to do this on Org 8.0? >>> >>> >> >> I suspect this is the same problem as the one discussed in the following: >> >>http://thread.gmane.org/gmane.emacs.orgmode/72085 >> >> Nicolas suggested using a file local variable for that problem and I've >> verified that that solution also works for this one. Just add >> >> # Local Variables: >> # org-latex-title-command: "" >> # End: >> >> at the end of your file. > > No, I'm wrong: it's not the same problem. And using BIND should > work in this case, assuming that it is allowed. > > Check the value of org-export-allow-bind-keywords. If nil, then > BIND keywords seem to be ignored silently. Thanks all! Not knowing about the org-export-allow-bind-keywords was my issue, and setting it to =t= fixed it. Out of curiosity, what's the difference between org-export-allow-BIND and org-export-allow-bind-keywords? They M-x help on them sounds very similar. #+begin_help org-export-allow-bind-keywords Documentation: Non-nil means BIND keywords can define local variable values. This is a potential security risk, which is why the default value is nil. You can also allow them through local buffer variables. #+end_help #+begin_help org-export-allow-BIND Documentation: Non-nil means allow #+BIND to define local variable values for export. This is a potential security risk, which is why the user must confirm the use of these lines. #+end_help Ah, nevermind. Based on the customize-variable menu option, I'm thinking the latter is how org should automatically accept #+bind settings, and the former is whether to allow #+bind settings at all. Oddly, my value for org-export-allow-bind is set to "confirm" but I just tested things and didn't get asked... John > > -- > Nick > >
Re: [O] Updated syntax for #+bind and no LaTeX \maketitle command?
Nick Dokos writes: >> #+bind: org-latex-title-command "" >> >> This is still generating a \maketitle line in my .tex file. >> >> What's the proper way to do this on Org 8.0? >> >> > > I suspect this is the same problem as the one discussed in the following: > >http://thread.gmane.org/gmane.emacs.orgmode/72085 > > Nicolas suggested using a file local variable for that problem and I've > verified that that solution also works for this one. Just add > > # Local Variables: > # org-latex-title-command: "" > # End: > > at the end of your file. No, I'm wrong: it's not the same problem. And using BIND should work in this case, assuming that it is allowed. Check the value of org-export-allow-bind-keywords. If nil, then BIND keywords seem to be ignored silently. -- Nick
Re: [O] Updated syntax for #+bind and no LaTeX \maketitle command?
John Hendy writes: > I sometimes don't want a title in my LaTeX exported documents and used to use: > > #+bind: org-export-latex-title-command "" > > in my documents. I see that the new variable is simply > =org-latex-title-command= and now have: > > #+bind: org-latex-title-command "" > > This is still generating a \maketitle line in my .tex file. > > What's the proper way to do this on Org 8.0? > > I suspect this is the same problem as the one discussed in the following: http://thread.gmane.org/gmane.emacs.orgmode/72085 Nicolas suggested using a file local variable for that problem and I've verified that that solution also works for this one. Just add --8<---cut here---start->8--- # Local Variables: # org-latex-title-command: "" # End: --8<---cut here---end--->8--- at the end of your file. -- Nick
Re: [O] Updated syntax for #+bind and no LaTeX \maketitle command?
John Hendy writes: > I sometimes don't want a title in my LaTeX exported documents and used to use: > > #+bind: org-export-latex-title-command "" > > in my documents. I see that the new variable is simply > =org-latex-title-command= and now have: > > #+bind: org-latex-title-command "" > > This is still generating a \maketitle line in my .tex file. Does either of solutions work in your case? #+BEGIN_SRC org #+TITLE: * My document without title . . . By setting TITLE to nil #+END_SRC #+BEGIN_SRC org #+TITLE: my-title #+BEGIN_SRC emacs-lisp :exports none (set (make-local-variable 'org-latex-title-command) "") #+END_SRC * My document without title . . . By changing the command with babel #+END_SRC #+BEGIN_SRC org #+TITLE: with title #+BEGIN_SRC emacs-lisp :exports results (set (make-local-variable 'org-export-allow-bind-keywords) t) #+END_SRC #+BIND: org-latex-title-command "" * without title using and allowing bind. #+END_SRC -- I almost cut my hair, it happened just the other day
Re: [O] Updated syntax for #+bind and no LaTeX \maketitle command?
Dnia 2013-05-23, o godz. 17:48:59 John Hendy napisaĆ(a): > I sometimes don't want a title in my LaTeX exported documents and > used to use: > > #+bind: org-export-latex-title-command "" > > in my documents. I see that the new variable is simply > =org-latex-title-command= and now have: > > #+bind: org-latex-title-command "" > > This is still generating a \maketitle line in my .tex file. > > What's the proper way to do this on Org 8.0? > > > Thanks! > John > Hi John, with the caveat that I don't use Org exporter, so I'm not sure whether this will help: a (dirty) TeX trick would be to say \let\maketitle=\relax somewhere in the preamble. (\relax is TeX's no-op.) Best, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Adam Mickiewicz University
[O] Updated syntax for #+bind and no LaTeX \maketitle command?
I sometimes don't want a title in my LaTeX exported documents and used to use: #+bind: org-export-latex-title-command "" in my documents. I see that the new variable is simply =org-latex-title-command= and now have: #+bind: org-latex-title-command "" This is still generating a \maketitle line in my .tex file. What's the proper way to do this on Org 8.0? Thanks! John