I am using msc package to generate message sequence charts, here is documentation. I want to make a comment in 2 lines, because it does not fit in one line on my page. I tried \newline
but it didn't work. Comments I am talking about:
\msccomment[position]{text}{instname}
How can I force comment on 2 lines?
\documentclass[a4paper,11pt]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{eurosym}
\usepackage{wasysym}
\usepackage{todonotes}
\usepackage{geometry}
\usepackage{enumitem}
\usepackage{ulem}
\usepackage{msc}
\usepackage[parfill]{parskip}
\title{aaa}
\author{aaa }
\begin{document}
\normalsize
\maketitle
\tableofcontents
\newpage
\subsection{whatever}
\begin{center}
\begin{msc}{diagram}
\setlength{\instdist}{9cm}
\setlength{\envinstdist}{2\envinstdist}
\declinst{dd}{}{DD}
\declinst{ff}{}{FF}
\nextlevel[2]
\mess{something}{dd}{ff}
\msccomment[r]{my very long comment is here}{ff}
\end{msc}
\end{center}
\end{document}
Output is like this:
\documentclass{...}
and ending with\end{document}
.inputenc
(with 2014 latex it does nothing with xetex, with older ones it would mess your document up completely) you can just about get away with using classic tex fonts and T1 encoding if you only have ascii input not acented latters. as far as I can see the only dependency is pstrics so it doesn't need xetex you could use latex/dvips or even probably pdflatex with pdf-auto-pst or whatever it's called to run pstricks in pdflatex