5

I used equation to write my Comment set. But when I used aligned, it doesn't show a left alignment. This is my code :

\begin{equation}
\begin{aligned}
Comments=\{\{7322,{""}\},\{7424,\text{"remove unnecessary default editor parts"},\\ \text{"Add the updated Bugzilla people part"}\}\\, \{7696,\text{"remove unnecessary default editor parts"},\\ \text{"Add the updated Bugzilla people part"},\text{"Add Bugzilla vote Planning part"}\} ,\\ \{8045,\text{"Task Submit Error"},\text{"Please enter a short summary before submitting"},\\ \text{"Please select a component before submitting"},\\,
\{8565,\text{"org.eclipse.mylyn.bugzilla.ui.editors.part.flags"}\\,\text{"org.eclipse.mylyn.bugzilla.ui.editors.part.planning"},\\ \text{"Force the most recent known good token onto the outgoing task data to ensure submit"}\}\\,
\{\{7710,7691\}\text{"remove unnecessary default editor parts"},\\ \text{"Add the updated Bugzilla people part"},\text{"Add Bugzilla vote Planning part"},\\ \text{"org.eclipse.mylyn.bugzilla.ui.editors.part.flags"}\}\}\}
\end{aligned}
\nonumber
\end{equation} 

How I can have left alignment?

  • 2
    Could you please format your code as human readable? You can "Code sample" option to view in code form – SKPS Feb 1 '14 at 1:05
1

it looks like there's no math here. the tabbing environment would seem more appropriate.

\documentclass{article}
\begin{document}
\begin{tabbing}
Comments = \= \{\{7322,`` ''\},\{7424,``remove unnecessary default editor parts'',\\
 \>``Add the updated Bugzilla people part''\},\\
 \>\{7696,``remove unnecessary default editor parts'',\\
 \>``Add the updated Bugzilla people part'',
  ``Add Bugzilla vote Planning part''\},\\
 \>\{8045,``Task Submit Error'',
  ``Please enter a short summary before submitting'',\\
 \>``Please select a component before submitting'',\\
 \>\{8565,``org.eclipse.mylyn.bugzilla.ui.editors.part.flags'',\\
 \>``org.eclipse.mylyn.bugzilla.ui.editors.part.planning'',\\
 \>``Force the most recent known good token onto the outgoing task data to ensure submit''\},\\
 \>\{\{7710,7691\}``remove unnecessary default editor parts'',\\
 \>``Add the updated Bugzilla people part'',``Add Bugzilla vote Planning part'',\\
 \>``org.eclipse.mylyn.bugzilla.ui.editors.part.flags''\}\}\}
\end{tabbing}
\end{document}

output of example code

|improve this answer|||||
4

You might be after this type of alignment, using a straight-forward align*:

enter image description here

\documentclass{article}
\usepackage[maaargin=1in]{geometry}% http://ctan.org/pkg/geometry
\usepackage{amsmath}% http://ctan.org/pkg/amsmath
\begin{document}
\begin{align*}
\text{Comments} ={}& \{\{7322, \text{`` ''}\}, \{7424, \text{``remove unnecessary default editor parts''}, \\
  & \text{``Add the updated Bugzilla people part''} \}, \\
  & \{7696, \text{``remove unnecessary default editor parts''}, \\
  & \text{``Add the updated Bugzilla people part''}, \text{``Add Bugzilla vote Planning part''} \}, \\
  & \{8045, \text{``Task Submit Error''}, \text{``Please enter a short summary before submitting''}, \\
  & \text{``Please select a component before submitting''}, \\
  & \{8565, \text{``org.eclipse.mylyn.bugzilla.ui.editors.part.flags''}, \\
  & \text{``org.eclipse.mylyn.bugzilla.ui.editors.part.planning''}, \\
  & \text{``Force the most recent known good token onto the outgoing task data to ensure submit''} \}, \\
  & \{ \{ 7710, 7691 \}, \text{``remove unnecessary default editor parts''}, \\
  & \text{``Add the updated Bugzilla people part''}, \text{``Add Bugzilla vote Planning part''}, \\
  & \text{``org.eclipse.mylyn.bugzilla.ui.editors.part.flags''} \} \} \}
\end{align*}
\end{document}

The equation is too wide, but I'm not sure what your document dimensions might be. I would think there must be better ways of presenting the information, but without more context it's difficult to say.

|improve this answer|||||
  • 1
    Why the phantoms? Replace & = in first line with ={}& then we do not need them – daleif Feb 1 '14 at 8:29
  • 1
    @daleif: Sorry, old habit. Removed the opera of phantoms... – Werner Feb 1 '14 at 17:27
1

Why don't you just use a stack, and forget the math mode.

\documentclass[margin=2pt]{standalone}
\usepackage[usestackEOL]{stackengine}
\usepackage{amsmath}
\begin{document}
Comments = \Longunderstack[l]{%
\{\{7322,{""}\},\{7424,\text{"remove unnecessary default editor parts"},\\ \text{"Add the updated Bugzilla people part"}\}\\, \{7696,\text{"remove unnecessary default editor parts"},\\ \text{"Add the updated Bugzilla people part"},\text{"Add Bugzilla vote Planning part"}\} ,\\ \{8045,\text{"Task Submit Error"},\text{"Please enter a short summary before submitting"},\\ \text{"Please select a component before submitting"},\\,
\{8565,\text{"org.eclipse.mylyn.bugzilla.ui.editors.part.flags"}\\,\text{"org.eclipse.mylyn.bugzilla.ui.editors.part.planning"},\\ \text{"Force the most recent known good token onto the outgoing task data to ensure submit"}\}\\,
\{\{7710,7691\}\text{"remove unnecessary default editor parts"},\\ \text{"Add the updated Bugzilla people part"},\text{"Add Bugzilla vote Planning part"},\\ \text{"org.eclipse.mylyn.bugzilla.ui.editors.part.flags"}\}\}\}
}
\end{document}

enter image description here

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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