emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Big curly bracket
@ 2009-12-08 16:34 andrea
  2009-12-08 16:56 ` Olivier Schwander
  2009-12-08 17:51 ` Nick Dokos
  0 siblings, 2 replies; 5+ messages in thread
From: andrea @ 2009-12-08 16:34 UTC (permalink / raw)
  To: emacs-orgmode


I have to write things like
f(x) = | 0 if x == 1
       | 1 otherwise
       
with the big curly bracket.
It's a common thing and I found in latex is like here
http://www.mathhelpforum.com/math-help/latex-help/59690-left-curly-brace.html
Using \left{ and \begin{gathered}
For some reasons anyway it doens't work.

This 
--8<---------------cut here---------------start------------->8---
    $\phi_{sum}(g1))(\bot) = (\phi_{sum}(g2))(\bot) =$ \newline
    \begin{gathered}
    1 if x < 0 \\
    \bot otherwise \\
    \end{gathered}
--8<---------------cut here---------------end--------------->8---

doesn't to what I'd like it to do.
Any idea?

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

* Re: Big curly bracket
  2009-12-08 16:34 Big curly bracket andrea
@ 2009-12-08 16:56 ` Olivier Schwander
  2009-12-08 17:51 ` Nick Dokos
  1 sibling, 0 replies; 5+ messages in thread
From: Olivier Schwander @ 2009-12-08 16:56 UTC (permalink / raw)
  To: emacs-orgmode

Le 08 Dec 2009 17:34, andrea a écrit:
> 
> I have to write things like
> f(x) = | 0 if x == 1
>        | 1 otherwise
>        
> with the big curly bracket.
> It's a common thing and I found in latex is like here
> http://www.mathhelpforum.com/math-help/latex-help/59690-left-curly-brace.html
> Using \left{ and \begin{gathered}
> For some reasons anyway it doens't work.
> 
> This 
> --8<---------------cut here---------------start------------->8---
>     $\phi_{sum}(g1))(\bot) = (\phi_{sum}(g2))(\bot) =$ \newline
>     \begin{gathered}
>     1 if x < 0 \\
>     \bot otherwise \\
>     \end{gathered}
> --8<---------------cut here---------------end--------------->8---
> 
> doesn't to what I'd like it to do.
> Any idea?

No idea, did you try with \begin{cases}...\end{cases} ?

You can also use \left\{...\right followed by an array.                                

Olivier 

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

* Re: Big curly bracket
  2009-12-08 16:34 Big curly bracket andrea
  2009-12-08 16:56 ` Olivier Schwander
@ 2009-12-08 17:51 ` Nick Dokos
  2009-12-09 15:30   ` andrea
  1 sibling, 1 reply; 5+ messages in thread
From: Nick Dokos @ 2009-12-08 17:51 UTC (permalink / raw)
  To: andrea; +Cc: emacs-orgmode

[This is OT for this list - comp.text.tex is a better venue.  Otoh, the
 reference might be useful to some people here - but unless org-mode
 content can be added, let's make this the end of the thread. Thanks.]

I don't know anything about the gathered environment, but the standard
solutions are the ones that Olivier Schwander suggested. In your case, the
array solution looks like this:

,----
| \documentclass{article}
| 
| \usepackage{amsmath}
| 
| \begin{document}
| \[
|     \phi_{sum}(g1))(\bot) = (\phi_{sum}(g2))(\bot) = \left\{
|       \begin{array}{rl}
|         1 & \text{if } x < 0 \\
|         \bot & \text{otherwise}
|       \end{array}
|     \right.
| \]
| \end{document}
`----

This can be found in the published books, but also in the online
"(Not so) Short Introduction to LaTeX" by Tobias Oetiker et al., p.58.
The URL is

   http://www.tex.ac.uk/tex-archive/info/lshort/english/lshort.pdf

Nick

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

* Re: Big curly bracket
  2009-12-08 17:51 ` Nick Dokos
@ 2009-12-09 15:30   ` andrea
  2009-12-09 21:24     ` Carsten Dominik
  0 siblings, 1 reply; 5+ messages in thread
From: andrea @ 2009-12-09 15:30 UTC (permalink / raw)
  To: emacs-orgmode

Nick Dokos <nicholas.dokos@hp.com> writes:

> [This is OT for this list - comp.text.tex is a better venue.  Otoh, the
>  reference might be useful to some people here - but unless org-mode
>  content can be added, let's make this the end of the thread. Thanks.]

Yes I'm sorry it was OT, I thought that the problem was the org-mode
translation to latex but it wasn't of course.

But I anyway found out that exporting to pdf with \n:t is really a bad
idea.
It doesn't only mess up with the indentation, using \left and \right it
becomes a mess.

Maybe it would be better to disable it completely or put a very big
warning (I don't see it written in the manual).

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

* Re: Re: Big curly bracket
  2009-12-09 15:30   ` andrea
@ 2009-12-09 21:24     ` Carsten Dominik
  0 siblings, 0 replies; 5+ messages in thread
From: Carsten Dominik @ 2009-12-09 21:24 UTC (permalink / raw)
  To: andrea.crotti.0; +Cc: emacs-orgmode

I think I will just disable the \n option for LaTeX export.

Thanks.

- Carsten

On Dec 9, 2009, at 4:30 PM, andrea wrote:

> Nick Dokos <nicholas.dokos@hp.com> writes:
>
>> [This is OT for this list - comp.text.tex is a better venue.  Otoh,  
>> the
>> reference might be useful to some people here - but unless org-mode
>> content can be added, let's make this the end of the thread. Thanks.]
>
> Yes I'm sorry it was OT, I thought that the problem was the org-mode
> translation to latex but it wasn't of course.
>
> But I anyway found out that exporting to pdf with \n:t is really a bad
> idea.
> It doesn't only mess up with the indentation, using \left and \right  
> it
> becomes a mess.
>
> Maybe it would be better to disable it completely or put a very big
> warning (I don't see it written in the manual).
>
>
>
> _______________________________________________
> 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

- Carsten

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

end of thread, other threads:[~2009-12-09 21:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-08 16:34 Big curly bracket andrea
2009-12-08 16:56 ` Olivier Schwander
2009-12-08 17:51 ` Nick Dokos
2009-12-09 15:30   ` andrea
2009-12-09 21:24     ` Carsten Dominik

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).