Skip to main content

I am a learn-by-example person. I have no idea to change every { and } to ( and ) respectively. Could you let me know which concept in Mathematica is related to this problem so I can learn it much faster?

The objective is to convert the output of

In[52]:= Tuples[{{a, b, c}, {1, 2}}]

which is

Out[52]= {{a, 1}, {a, 2}, {b, 1}, {b, 2}, {c, 1}, {c, 2}}

to LaTeX-frinedlyfriendly output as follows. I have learnt TeXForm but it must be called at the last phase.

$\{(a, 1), (a, 2), (b, 1), (b, 2), (c, 1), (c, 2)\}$

I am a learn-by-example person. I have no idea to change every { and } to ( and ) respectively. Could you let me know which concept in Mathematica related to this problem so I can learn it much faster?

The objective is to convert the output of

In[52]:= Tuples[{{a, b, c}, {1, 2}}]

which is

Out[52]= {{a, 1}, {a, 2}, {b, 1}, {b, 2}, {c, 1}, {c, 2}}

to LaTeX-frinedly output as follows. I have learnt TeXForm but it must be called at the last phase.

$\{(a, 1), (a, 2), (b, 1), (b, 2), (c, 1), (c, 2)\}$

I am a learn-by-example person. I have no idea to change every { and } to ( and ) respectively. Could you let me know which concept in Mathematica is related to this problem so I can learn it much faster?

The objective is to convert the output of

Tuples[{{a, b, c}, {1, 2}}]

which is

{{a, 1}, {a, 2}, {b, 1}, {b, 2}, {c, 1}, {c, 2}}

to LaTeX-friendly output as follows. I have learnt TeXForm but it must be called at the last phase.

$\{(a, 1), (a, 2), (b, 1), (b, 2), (c, 1), (c, 2)\}$
Post Closed as "Duplicate" by Kuba, Oleksandr R., Michael E2, Pinguin Dirk, rm -rf
Source Link

How to convert each pair of { and } into ( and )?

I am a learn-by-example person. I have no idea to change every { and } to ( and ) respectively. Could you let me know which concept in Mathematica related to this problem so I can learn it much faster?

The objective is to convert the output of

In[52]:= Tuples[{{a, b, c}, {1, 2}}]

which is

Out[52]= {{a, 1}, {a, 2}, {b, 1}, {b, 2}, {c, 1}, {c, 2}}

to LaTeX-frinedly output as follows. I have learnt TeXForm but it must be called at the last phase.

$\{(a, 1), (a, 2), (b, 1), (b, 2), (c, 1), (c, 2)\}$