TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm a LaTeX newbie making a first post. I have a table as follows:

\begin{table}[H]
\small
\centering
\begin{tabular}{cl}
     \multirow{2}{*}{\emph{NewElement} ``item'',} & \emph{NewElement}(``title'', ``US sanctions North Korea over Sony''),\\
                                                  & \emph{NewElement} ``pubDate'',
     ``Fri, 02 Jan 2015 20:07:38 GMT'') \\
\end{tabular}
\end{table}

Which compiles into this:

enter image description here

But if I want to add {} and () symbols as follows, how can I do it?

enter image description here

If you can forgive my modest artistic attempts!

So the left round bracket occurs after the first NewElement and after the text "item", the left brace occurs. Then at the end, a right brace and right bracket occur.

share|improve this question
up vote 3 down vote accepted

Don't use \multirow:

\documentclass{article}

\begin{document}

\emph{NewElement}$\left(
  \mbox{``item'',}\left\{
    \begin{tabular}{@{}l@{}}
    \emph{NewElement}(``title'', ``US sanctions North Korea over Sony''),\\
    \emph{NewElement} ``pubDate'', ``Fri, 02 Jan 2015 20:07:38 GMT'')
    \end{tabular}
  \right\}
\right)$

\end{document}

enter image description here

share|improve this answer
    
This looks splendid. Thanks. – HopFrog Jan 23 at 19:06

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.