Я принимаю emacs, Вы имеете в виду Emacs под X (т.е. не в окне терминала).
существует два пути:
доступные операции Буфера обмена:
Почему бы не определить новую команду:
\newcommand{\tuple}[5]{$\langle$\textit{#1}, \textit{#2}, \textit{#3}, \textit{#4},
\textit{#5} (explained in the latter)$\rangle$}
Затем используйте \ tuple {sourcelocation} {R / W} {tripcounter} {событие} {уничтожено}
LaTeX does allow inline maths to break over lines by default, but there are a number of restrictions. Specifically, in your case, using \left...\right
puts everything inside a non-breakable math group, so the first step is to replace them with either just plain \langle...\rangle
or perhaps \bigl\langle...\bigr\rangle
.
However, this still isn't enough to permit linebreaking; usually that's still only allowed after relations or operators, not punctuation such as the comma. (I think this is what's going on anyway; I haven't stopped to look this up.) So you want indicate where allowable line breaks may occur by writing \linebreak[1]
after each comma.
Depending how often you have to do this, it may be preferable to write a command to wrap your "tuples" into a nice command. In order to write this in your source:
$ \mytuple{ source\_location, R/W, trip\_counter, occurrence, killed\upshape (explained in the later) } $
here's a definition of \mytuple
that takes all of the above into account:
\makeatletter \newcommand\mytuple[1]{% \@tempcnta=0 \bigl\langle \@for\@ii:=#1\do{% \@insertbreakingcomma \textit{\@ii} }% \bigr\rangle } \def\@insertbreakingcomma{% \ifnum \@tempcnta = 0 \else\,,\ \linebreak[1] \fi \advance\@tempcnta\@ne } \makeatother
Похоже, существует пакет , решающий эту проблему, под названием breqn
. Вы можете попробовать это и сообщить нам (я этим не пользовался).
Я бы использовал среду align * из AMSmath. Кроме того, вы можете просто добавить «\», чтобы разорвать линии? Должен работать и в математической среде. В качестве альтернативы вы можете разделить уравнения.