all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* org tables - modified field
@ 2010-07-02  8:27 Seweryn Kokot
  2010-08-30 12:22 ` Carsten Dominik
  0 siblings, 1 reply; 2+ messages in thread
From: Seweryn Kokot @ 2010-07-02  8:27 UTC (permalink / raw
  To: emacs-orgmode

Hi,

I have the following table

#+TBLNAME: table_three
|--------+--------|
|      1 | 2      |
|--------+--------|
|   2.00 | *4.00* |
| *4.00* | #ERROR |
|--------+--------|
#+TBLFM: @2$1=2*@1$1;%.2f::@2$2=2*@1$2;*%.2f*::@3$1=2*@2$1;*%.2f*::@3$2=2*@2
$2;*%.2f*

in which I would like to have some fields bold in org buffer and latex export

\begin{center}
\begin{tabular}{rl}
\hline
             1  &  2              \\
\hline
          2.00  &  \textbf{4.00}  \\
 \textbf{4.00}  &  \#ERROR        \\
\hline
\end{tabular}
\end{center}

However, since the field B3 refers to the field B2 which is not exactly a 
number, I get an error.

Would it be possible to reuse the field B2 in another formula, somehow?

Best regards,
Seweryn 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: org tables - modified field
  2010-07-02  8:27 org tables - modified field Seweryn Kokot
@ 2010-08-30 12:22 ` Carsten Dominik
  0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2010-08-30 12:22 UTC (permalink / raw
  To: Seweryn Kokot; +Cc: emacs-orgmode


On Jul 2, 2010, at 10:27 AM, Seweryn Kokot wrote:

> Hi,
>
> I have the following table
>
> #+TBLNAME: table_three
> |--------+--------|
> |      1 | 2      |
> |--------+--------|
> |   2.00 | *4.00* |
> | *4.00* | #ERROR |
> |--------+--------|
> #+TBLFM: @2$1=2*@1$1;%.2f::@2$2=2*@1$2;*%.2f*::@3$1=2*@2$1;*%. 
> 2f*::@3$2=2*@2
> $2;*%.2f*
>
> in which I would like to have some fields bold in org buffer and  
> latex export
>
> \begin{center}
> \begin{tabular}{rl}
> \hline
>             1  &  2              \\
> \hline
>          2.00  &  \textbf{4.00}  \\
> \textbf{4.00}  &  \#ERROR        \\
> \hline
> \end{tabular}
> \end{center}
>
> However, since the field B3 refers to the field B2 which is not  
> exactly a
> number, I get an error.
>
> Would it be possible to reuse the field B2 in another formula,  
> somehow?

Only if you use elisp formulas and strip the stars yourself.  Calc
cannot solve this for you, so computations using calc with emphasized
fields are not allowed in org tables.

HTH

- Carsten

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-08-30 12:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-02  8:27 org tables - modified field Seweryn Kokot
2010-08-30 12:22 ` Carsten Dominik

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.