-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample.tex
81 lines (71 loc) · 1.92 KB
/
example.tex
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
% Canberk Sönmez
\documentclass{article}
\usepackage[margin=2cm]{geometry}
\usepackage{lipsum}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{discussionbox}
\renewcommand{\familydefault}{\sfdefault}
\DefinePerson{Canberk}{magenta}
\DefinePerson{Ahmet}{blue}
\DefinePerson{Mehmet}{red}
\DefinePerson{NoAuthor}{black}
\begin{document}
Unread messages:
\begin{itemize}
\item \textbf{For Canberk:} \ListSeeMsgs{Canberk}
\item \textbf{For Ahmet:} \ListSeeMsgs{Ahmet}
\item \textbf{For Mehmet:} \ListSeeMsgs{Mehmet}
\end{itemize}
\begin{discussionbox}
\NoAuthor{This one has no author. \SeeMsg{Canberk}}
\Canberk{
Hey, what's up?
\Ahmet{
\SeeMsg{Canberk}\SeeMsg{Mehmet} It's perfect! By the way, math formatting works:
\begin{align}
F = ma
\end{align}
\Ahmet{Wow, that's cool!}
}
\Mehmet{
\SeeMsg{Canberk}
Same here! Check out the following Latex logo:
\begin{center}
\includegraphics[width=0.3\linewidth]{fig/latex-logo.png}
\end{center}
\Ahmet{
Wow, that's so good!
}
\Canberk{
I totally agree!
\Canberk{\LabelMsg{msg:canberk} More and more nesting...}
}
Previous message continues...
\Ahmet{Here is a long text:\\ \lipsum[1-2]}
}
}
\end{discussionbox}
\clearpage
\begin{discussionbox}
\Ahmet{
\lipsum[1]
\Canberk{
\lipsum[2-3]
\Mehmet{
\lipsum[4-5][3]
}
}
}
\Ahmet{
\lipsum[6-7]
\Canberk{
\lipsum[8-12]
\Mehmet{
Here is a reference: \ref{msg:canberk}. \textbf{Also, \SeeMsg{Canberk} should read this.}
\lipsum[13-19]
}
}
}
\end{discussionbox}
\end{document}