Re: [O] Specifying \institute[short]{long] in Beamer presentations

2011-03-24 Thread Camille persson
Hi,

I'm not sure but maybe you could declare it in your org file as:

#+MACRO: BEAMERINSTITUTELONG My long and detailed Institute
#+MACRO: BEAMERINSTITUTESHORT Short Institute


And change the export code as follows:

\\institute[beamerinstituteshort]beamerinstitutelong\n

But I didn't tested it, it is just an idea that comes up reading your mail.

--
Camille



2011/3/24 Suvayu Ali fatkasuvayu+li...@gmail.com

 On Wed, 23 Mar 2011 19:18:45 -0400
 Bernd Weiss bernd.we...@uni-koeln.de wrote:

  I assume that my first email[1], which I sent yesterday, was not
  clear enough to draw any/enough attention.
 

 Since orgmode is a volunteer effort and the list is a relatively low
 traffic list, often posts are answered after a few weeks. :)

  I am currently preparing a Beamer presentation and I would like to
  include \institute[short]{long} into my org-file; it is important
  that I am able to define a short and a long entry for institute. How
  can I do this?

 Let me reword your issue, but my understanding of LaTeX is limited so
 please correct me if I am wrong.

 You want to specify your affiliation with the institute command. AFAIU
 the \institute command is declared in the header of a tex file. So I am
 a little confused by your use of properties in org. Shouldn't something
 like this after the #+NAME: and #+AUTHOR: directives work fine?

 #+LaTeX_HEADER: \institute[short name]{My awesome institute}

 Hope this helps,

 --
 Suvayu

 Open source is the future. It sets us free.




Re: [O] Title page in latex export

2011-03-04 Thread Camille persson
Hi,

I think that what it already does

But if you mean you should use \maketitlte before \begin{document} you could
do it like this:

#+BIND: org-export-latex-title-command 
#+LATEX_HEADER: \maketitle


Regards,
CP


2011/3/4 Suvayu Ali fatkasuvayu+li...@gmail.com

 Hi Orgers,

 I am trying to write my thesis as per my university style. It requires
 I use the \title{Thesis title} command before the

 \begin{document}
 ...
 \end{document}

 Is there any way to do that? Thanks for any thoughts.

 --
 Suvayu

 Open source is the future. It sets us free.




Re: [O] Title page in latex export

2011-03-04 Thread Camille persson
Hi Suvayu,

Do you use the lastest update of org-mode ?
cause it works perfectly for me without any patch actually...

The following org :

#+begin_org
#+TITLE: My title
#+AUTHOR: Camille Persson
#+DATE: 2011
#+LATEX_CLASS: book
#+end_org

... produce the following latex code:

#+begin_latex
\documentclass[11pt,letter]{book}
%% package list
%% 
\title{My title}
\author{Camille Persson}
\date{2011}

\begin{document}

\maketitle
% etc
#+end_latex

to use your university's custom style, you need to put it in your texmf
directory and use the following header lines:
#+LATEX_CLASS: MyUnivThesis
#+LATEX_CLASS_OPTIONS: [options...]

and then customize your .emacs file (or a file in your .emacs.d/) as
following

(add-to-list 'org-export-latex-classes
  '(MyUnivThesis
 \\documentclass{univstyle}
   (\\part{%s} . \\part*{%s})
   (\\chapter{%s} . \\chapter*{%s})
   (\\section{%s} . \\section*{%s})
   (\\subsection{%s} . \\subsection*{%s})
   (\\subsubsection{%s} . \\subsubsection*{%s}))


See http://orgmode.org/worg/org-tutorials/org-latex-export.html#sec-6

Yours,
CP

2011/3/4 Suvayu Ali fatkasuvayu+li...@gmail.com

 Hi Lawrence,

 On Fri, 04 Mar 2011 11:38:08 +
 Lawrence Mitchell we...@gmx.li wrote:

  Try this patch to org-latex.el:
 
  diff --git a/lisp/org-latex.el b/lisp/org-latex.el
  index 19baa40..4db38d6 100644
  --- a/lisp/org-latex.el
  +++ b/lisp/org-latex.el

 That does the trick. :) Thanks a lot.

 I am not very familiar with LaTeX, is the org default the proper syntax
 and my university style is buggy?

 --
 Suvayu

 Open source is the future. It sets us free.




Re: [O] How to escape characters in tables

2011-03-04 Thread Camille persson
 Hi Ken,

2011/3/4 ken.willi...@thomsonreuters.com





 On 3/3/11 9:07 PM, Suvayu Ali fatkasuvayu+li...@gmail.com wrote:

 On Wed, 2 Mar 2011 09:25:57 -0600
 ken.willi...@thomsonreuters.com wrote:
 
  The issue is that I've got tables whose cells contain the '|'
  character (it's a table of regular expressions), and I can't seem to
  figure out how to escape it so that it doesn't mean a delimiter
  between cells.  Anyone have advice or a pointer to the docs I can't
  seem to find?
 
 
 I don't think you can.

 I'm making slight progress, actually.

 On StackOverflow
 (
 http://stackoverflow.com/questions/5144862/escape-pipe-character-in-org-mo
 de), it was suggested to use the \vert{} character escape, which does
 work.

 However, since this is code (a regular expression), I want it to appear
 monospaced, so I'm not out of the woods yet - here's a test case that
 shows my intent:


  | foo | =m/foo\vert{}foodfight/= |

 The \vert{} seems not to work inside a =...= construction.  Furthermore,
 the =...= construction is problematic there because it conflicts with the
 start-of-formula syntax.


=...= is used for code so it is printed as it written
You may use \texttt{}
| foo | \texttt{m\/foo\vert{}foodfight\/} |

I don't have emacs right now so I can test it... but it should work

CP




 --
 Ken Williams
 Senior Research Scientist
 Thomson Reuters
 http://labs.thomsonreuters.com





Re: [O] Re: [Orgmode] [HOW] no way to escape vertical bar (pipe char) in tables?

2011-03-03 Thread Camille persson
Hi Vladimir and Bastien,

2011/3/3 Bastien b...@altern.org

 Hi Vladimir,

 Vladimir Alexiev vladi...@sirma.bg writes:

  I want to manage some perl regexps in a table
  then feed them to a code block (literate programming).
  Unfortunately they include alternatives (|)
  and the table editor thinks this is a column break.
 
  There's no way to escape this?

 AFAIK, there is not.


Shouldn't your perl regexp be in a formula - ie. not directly in the table ?

Camille



  On a related thought: what is the best way to manage
  leading/trailing spaces in a table cell?
  I've been forced to use \x20 for this purpose...

 This i don't understand -- you want to *keep* the spaces
 in the exported table?

 --
  Bastien

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