emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] latex newcommand in org


From: Eric S Fraga
Subject: Re: [O] latex newcommand in org
Date: Fri, 20 May 2016 19:45:12 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.92 (gnu/linux)

On Friday, 20 May 2016 at 18:10, Doyley, Marvin M. wrote:
> Hi there,
>
> In my group, we typically response to reviewers comments (in latex) by first 
> defining the  following command in the header
>
> \newcommand{\response}[1]{\textcolor{red}{#1}}
> then marking up the text as follows
>
> \response{red text}
>
> I try to do the same in org,  i.e., putting
>  #+latex_header:\newcommand{\response}[1]{\textcolor{red}{#1}}
> then \response{BLAH BLAH} in the text. The only snag is that on export I get 
> \response\{BLAH BLAH\}

Easiest solution is @@latex:\response{blah blah}@@ but that will lose you
all the org formatting.  Longer solution is to use environments, such as

#+begin_response
blah blah blah
#+end_response

and define a "response" LaTeX environment, along these lines:

#+latex_header: 
\makeatletter\newenvironment{response}{\textcolor{red}}{}\makeatother

(untested)

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.92.1, Org release_8.3.4-775-g3308a5



reply via email to

[Prev in Thread] Current Thread [Next in Thread]