all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Darlan Cavalcante Moreira <darcamo@gmail.com>
To: Christian Wittern <cwittern@gmail.com>
Cc: Org Mode Mailing List <emacs-orgmode@gnu.org>
Subject: Re: Switch language on heading lines in Latex export (was Re: Re: org-beamer: How to get items appear sequentially rather than all at once)
Date: Fri, 26 Mar 2010 14:51:47 +0100	[thread overview]
Message-ID: <4bacbbf0.1067f10a.5441.3df5@mx.google.com> (raw)
In-Reply-To: <4BAB5B87.4090308@gmail.com>


As I understand, whenever org sees something like "\something" it will
understand that this is a latex command and it will just write it as it is
in the exported latex file. Therefore, if you put something like
#+LATEX_HEADER: \newcommand{\blue}[1] {\textcolor{blue}{#1}}
in the beginning of the org file than latex will know the command "blue"
and writing "\blue{some text}" in the org presentation will work as
expected. I even tried defining latex commands with two arguments such as
the with the line below
#+LATEX_HEADER: \newcommand{\blueRed}[2]{\textcolor{blue}{#1} \textcolor{red}{#2}}
and it works!

I don't know this newfontfamily command in latex, but if you can use a
command in latex then you can do the same in org.

Notice, however, that I used "#+LATEX_HEADER:". That is, I created a macro
in Latex, not in org. Macros defined in org are created with "#+MACRO:".

 - Darlan

At Thu, 25 Mar 2010 21:48:07 +0900,
Christian Wittern <cwittern@gmail.com> wrote:
> 
> Darlan,
> 
> Thank you again.  I think I understand the problem now.
> 
> On 2010-03-25 20:02, Darlan Cavalcante Moreira wrote:
> > Summarizing, define your macros as Latex macros instead of TeX ones and
> > they should work. That is, something like \J{XXX}.
> >    
> 
> Currently, the definition is
> \newfontfamily{\J}[Scale=0.85]{Osaka}
> 
> If I say \J{XX} in my documents, org-mode's latex export does the right 
> thing and I get what I need, so does this definition as you call it also 
> define a LaTeX macro?  Or is this just pure luck?  Still mystified by 
> all this, but very glad that I can say goodbye to WYSWIG presentation 
> software:-)
> 
> All the best,
> 
> Christian
> 

      reply	other threads:[~2010-03-26 13:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-25  3:50 Switch language on heading lines in Latex export (was Re: Re: org-beamer: How to get items appear sequentially rather than all at once) Christian Wittern
2010-03-25 11:02 ` Darlan Cavalcante Moreira
2010-03-25 12:48   ` Christian Wittern
2010-03-26 13:51     ` Darlan Cavalcante Moreira [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4bacbbf0.1067f10a.5441.3df5@mx.google.com \
    --to=darcamo@gmail.com \
    --cc=cwittern@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.