[O] Exporting LaTeX fragments equations Org-mode 8.2.10

2014-12-15 Thread kevin.lemorzadec
Hello,
Since I updated to Org-mode version 8.2.10, I am having trouble exporting
equation in latex properly. Some \ are inserted in the tex verion.

For example:
\begin{equation} \label{eqn:Lpar}
Lpar_{k}=\frac{hb_{k}}{slope}
\end{equation}

Becomes:
\begin{equation} \label{eqn:Lpar}
Lpar$_{\text{k}}$=\frac\{hb$_{\text{k}}$\}\{slope\}
\end{equation}

I tried to force #+OPTIONS: tex:t
which should be the default value but that didn't help.

Any suggestion of what I may be missing?


-- 
Kevin


Re: [O] Exporting LaTeX fragments equations Org-mode 8.2.10

2014-12-15 Thread kevin.lemorzadec
It does,
Thanks for the answer,

Kevin

On Mon, Dec 15, 2014 at 4:58 PM, Thomas S. Dye t...@tsdye.com wrote:

 Aloha Kevin,

 kevin.lemorzadec kevin.lemorza...@mun.ca writes:

  Since I updated to Org-mode version 8.2.10, I am having trouble exporting
  equation in latex properly. Some \ are inserted in the tex verion.
 
  For example:
  \begin{equation} \label{eqn:Lpar}
  Lpar_{k}=\frac{hb_{k}}{slope}
  \end{equation}
 
  Becomes:
  \begin{equation} \label{eqn:Lpar}
  Lpar$_{\text{k}}$=\frac\{hb$_{\text{k}}$\}\{slope\}
  \end{equation}
 
  I tried to force #+OPTIONS: tex:t
  which should be the default value but that didn't help.
 
  Any suggestion of what I may be missing?

 I think this came up on the list a few days ago.  IIRC, the
 \begin{equation} has to be on its own line.  The \label{} should move
 down to the next line.  Does that work?

 hth,
 Tom

 --
 Thomas S. Dye
 http://www.tsdye.com



-- 
Kevin Le Morzadec - Ph.D. candidate
   Dept of Physics and Physical Oceanography,
   Memorial University of Newfoundland, Canada
   Tel 709-864-8654


[O] LaTeX fragments to deal with character {

2014-12-13 Thread kevin.lemorzadec
Hi,
I am trying to do a latex loop in org mode. When I use the latex syntax
directly, the character { are exported as\{ as in case 1 below. If I
use ‘\(...\)’ it does keep the { characters but the ‘\(...\)' stays in
the .tex created (case 2 below) giving me an error when I try to generate
the pdf.
Is there an other was to export the { characters?

Org-mode version 6.33x

-
case 1
.org file:
\foreach \n in {Temp,DO,Sal}{\foreach \m in
{Temp,DO,Sal}{
\n \m \par
}}

.tex file:
\foreach \n in \{Temp,DO,Sal\}{\foreach \m in
\{Temp,DO,Sal\}\{
\n \m \par
}\}

-
case 2
.org file:
\(\foreach \n in {Temp,DO,Sal}{\foreach \m in
{Temp,DO,Sal}{
\n \m \par
}}\)

.tex file:
\(\foreach \n in {Temp,DO,Sal}{\foreach \m in
{Temp,DO,Sal}{
\n \m \par
}}\)



-- 
Kevin


Re: [O] font colour in a table row

2014-11-07 Thread kevin.lemorzadec
Thanks for your answer,

Unfortunatly the #+attr_latex: :environment tabu seem to not be taken into
account

I have org 6.33x, could that be the problem?

Code used:
#+DRAWERS: LATEX
:LATEX:
#+LATEX_HEADER: \usepackage[table]{xcolor}
#+LATEX_HEADER: \usepackage{tabu}

#+TITLE: Some statistics about the oceanographic data
#+AUTHOR: Kevin Le Morzadec
#+OPTIONS: toc:nil todo:nil

:END:

 #+attr_latex: :environment tabu
 |   | | |
 |   min | 10th percentile | 25th percentile |
 |---+-+-|
 | \rowfont{\color{red}}   1 | 1.2 | 1.7 |
 | 1 | 1.5 | 1.9 |
 |   1.1 | 1.5 | 1.9 |
 | 1 | 1.9 | 2.3 |
 | 1 |   2 | 2.3 |

Thanks,
Kevin

On Thu, Nov 6, 2014 at 6:02 AM, Eric S Fraga e.fr...@ucl.ac.uk wrote:

 On Wednesday,  5 Nov 2014 at 21:06, kevin.lemorzadec wrote:

 [...]

  in org mode. I don't see how to include replace the \begin{tabular}
  generated automaticly by the following code by \begin{tabu}

 Try

 #+attr_latex: :environment tabu

 just before the table, assuming you are using a relatively recent
 version of org.  This is described in the org manual in the exporting -
 LaTeX and PDF export section.
 --
 : Eric S Fraga (0xFFFCF67D), Emacs 24.3.1, Org release_8.3beta-372-gdd70cf




-- 
Kevin Le Morzadec - Ph.D. candidate
   Dept of Physics and Physical Oceanography,
   Memorial University of Newfoundland, Canada
   Tel 709-864-8654


[O] font colour in a table row

2014-11-05 Thread kevin.lemorzadec
Hi,
I am trying to colour the font over the hole row of a table.
I am able to highlight the row following this thread :
http://thread.gmane.org/gmane.emacs.orgmode/76711/focus=76713
but can't change the font colour. It seems that I should use  \rowfont in
the tabu package may be the way to go but I can't figure out how to use it
in org mode. I don't see how to include replace the \begin{tabular}
generated automaticly by the following code by \begin{tabu}

#+DRAWERS: LATEX
:LATEX:
#+LATEX_HEADER: \usepackage[table]{xcolor}
#+LATEX_HEADER: \usepackage{tabu}
:END:

 | | | |
 | min | 10th percentile | 25th percentile |
 |-+-+-|
 | \textcolor{Red}   1 | 1.2 | 1.7 |
 |   1 | 1.5 | 1.9 |
 | 1.1 | 1.5 | 1.9 |
 |   1 | 1.9 | 2.3 |
 |   1 |   2 | 2.3 |

Thanks,
Kevin