Chaves com duas linhas - Expressão matemática

14,903 views
Skip to first unread message

Allef Pablo Araujo

unread,
Jan 17, 2016, 10:07:14 PM1/17/16
to late...@googlegroups.com
Pessoal, alguém sabe como montar este tipo de expressão no Latex?

Imagem inline 1

​Sou iniciante e não sei nem que pergunta fazer ao Google para encontrar isto.

--
Allef

Marco Paulo (GMail)

unread,
Jan 18, 2016, 5:12:31 AM1/18/16
to late...@googlegroups.com

Um exemplo simples:

 

\documentclass{article}

\usepackage{amsmath}

\begin{document}

$

       a_{ij} =

       \begin{cases}

             1, & \mbox{se } v_i \mbox{e } v_j \mbox{são adjacentes;} \\

             0, & \mbox{caso contrário.}

       \end{cases}

$

\end{document}

 

Retirado aqui: https://kogler.wordpress.com/2008/03/21/latex-multiline-equations-systems-and-matrices/

--
You received this message because you are subscribed to the Google Groups "Latex-br" group.
To unsubscribe from this group and stop receiving emails from it, send an email to latex-br+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/latex-br/CAOhhJ0t2vPXHbdRMK4SO8qzQWSVc95iRQ%3DMz7T%2By2gU1toN_SQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

image001.png

Allef Pablo Araujo

unread,
Jan 18, 2016, 6:58:07 AM1/18/16
to late...@googlegroups.com
Marco, bom dia!
Devo importar alguma coisa? Por que está dando o seguinte erro na linha do primeiro caso:

Misplaced alignment tab character &.

Estou usando o Overleaf.


For more options, visit https://groups.google.com/d/optout.



--
Allef

Marco Paulo (GMail)

unread,
Jan 18, 2016, 7:01:15 AM1/18/16
to late...@googlegroups.com

Qual sistema vc está usando?

Mande um exemplo mínimo para que possamos tentar reproduzir o erro.

image001.png

Allef Pablo Araujo

unread,
Jan 18, 2016, 7:09:11 AM1/18/16
to late...@googlegroups.com
Eu estou usando o Overleaf.

Aqui eu coloquei um exemplo mínimo editável:

https://www.overleaf.com/4105730cxkmms


For more options, visit https://groups.google.com/d/optout.



--
Allef

Marco Paulo (GMail)

unread,
Jan 18, 2016, 7:13:11 AM1/18/16
to late...@googlegroups.com

Vc só não incluiu o pacote necessário para utilizar o código.

 

\usepackage{amsmath}

 

Inclua essa linha no preambulo que vai funcionar.

 

Marco Paulo

image001.png

Allef Pablo Araujo

unread,
Jan 18, 2016, 7:43:00 AM1/18/16
to late...@googlegroups.com
Maravilha!
Funcionou Marco, muito obrigado!


For more options, visit https://groups.google.com/d/optout.



--
Allef
Reply all
Reply to author
Forward
0 new messages