blob: 59bb4d07c6a2f9d91d8bc72fbaf51e6cc12c215c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
% dependencies
\usepackage{pbox}
\usepackage{fancybox}
% commands
\newcommand{\messagebubbleleft}[2]{
\begin{flushleft}
\messagebubble{#2}
\\ % newline after bubble
\timestampleft{#1}
\adjustvspace
\end{flushleft}
}
\newcommand{\messagebubbleright}[2]{
\begin{flushright}
\messagebubble{#2}
\\ % newline after bubble
\timestampright{#1}
\adjustvspace
\end{flushright}
}
\newcommand{\messagebubble}[1]{
\ovalbox{
\pbox{\messagebubblewidth}{
\textwidth1cm
#1
}
}
}
\newcommand{\messagebubblewidth}{
0.60\textwidth
}
\newcommand{\adjustvspace}{
\vspace{-0.6cm}
}
\newcommand{\timestampright}[1]{
\vspace{2pt}
\timestamp{#1} % content of timestamp
\hspace{1pt}
}
\newcommand{\timestampleft}[1]{
\vspace{2pt}
\hspace{1pt}
\timestamp{#1} % content of timestamp
}
\newcommand{\timestamp}[1]{
{\footnotesize \textit{#1}} % italic and small
}
|