Skip to content

Instantly share code, notes, and snippets.

@vsimko
Last active May 10, 2017 13:29
Show Gist options
  • Save vsimko/8c42426c0cba135ea873d024facda2bb to your computer and use it in GitHub Desktop.
Save vsimko/8c42426c0cba135ea873d024facda2bb to your computer and use it in GitHub Desktop.
\usepackage[outerbars,xcolor]{changebar} % due to \cbcolor, \cbstart ... \cbend
\setlength{\changebarwidth}{3pt}
\setlength{\changebarsep}{20pt}
\definecolor{ChangebarColor}{rgb}{0.75,0.85,0.95}
\cbcolor{ChangebarColor}
% ==============================================================================
% Marking the changebark using a margin note
% ==============================================================================
\newcommand{\MARK}[1] {%
\marginpar{
\ifthenelse{\isodd{\thepage}}{
\hspace{13pt} % Right Page
\begin{tabular*}{35pt}{>{\color{ChangebarColor}\bfseries}c}
\arrayrulecolor{ChangebarColor}
\specialrule{3pt}{0pt}{3pt} #1
\end{tabular*}
}{
\hspace{35pt} % Left Page
\begin{tabular*}{35pt}{>{\color{ChangebarColor}\bfseries}r!{\color{ChangebarColor}\vrule width 3pt}}
\\[-15pt]
\arrayrulecolor{ChangebarColor}
\specialrule{3pt}{0pt}{3pt} \parbox{22pt}{#1}
\end{tabular*}
}
}
}
\section{Note on conventions used}
Text included verbatim from reviewed publications marked using a colored vertical bar on the right or left side of the text.
Where appropriate, I have slightly modified and unified the original text (in a
way not changing the meaning) to make the thesis coherent and easy to read.
\vspace{1em}
\noindent Here is an example of how paragraphs are marked to indicate a verbatim copy.
It means that starting from this point, the text appeared in the papers [X] and [Y].
\cbstart
\MARK{\textbf{[X]}\\\textbf{[Y]}}
\vspace{1em}
\cbend
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment