Skip to content

Instantly share code, notes, and snippets.

@nkabir
Created May 5, 2012 20:32
Show Gist options
  • Select an option

  • Save nkabir/2605445 to your computer and use it in GitHub Desktop.

Select an option

Save nkabir/2605445 to your computer and use it in GitHub Desktop.
LaTeX snippets
% listing for a deal specification
\begin{listing}
\begin{sidebox}[black][color_box_tip][1.0]
\begin{packed_item}
\item \textbf{Price Taker} The agent that invites the transaction by requesting the deal level for a particular deal then perhaps accepts the level.
\item \textbf{Price Maker} The agent that quotes a deal level in response to the price taker's request, the confirms acceptance.
\item \textbf{Execution Timestamp} The time at which both parties have confirmed acceptance.
\item \textbf{Execution Venue} The legal context in which the transaction occurs.
\item \textbf{Commitment to Settle} An agreement between the agents that stipulates:
\begin{packed_item}
\item \textbf{Settlement Date} The date on which the agents must legally enact the transfer actions.
\item \textbf{Settlement Actions} The precise transfer actions that need to take place on the settlement date between the two agents.
\end{packed_item}
\end{packed_item}
\end{sidebox}
\caption{A Financial Transaction}
\label{lst:financial-transaction}
\end{listing}
% figure
\begin{figure}[ht] \centering
\includegraphics[width=0.5\textwidth]{media/single-timeline}
\caption{All events for all agents map to a single time-line.}
\label{fig:myfigure}
\end{figure}
Please see Figure~\ref{fig:myfigure}
% loading listing from file
\begin{listing}
\inputminted[bgcolor=mintbg]{xml}{quote-event.xml}
\caption{Google Sale Quote}
\label{lst:quote-event}
\end{listing}
Listing~\ref{lst:quote-event} is an example of an xml document for a quote event.
% table
Please see Table ~\ref{tab:PCKEWR}.
\begin{table}[h]
\centering
\begin{tabular}{llrrll}\hline
\\
Timestamp & Level & Size & Type \\[0.5em]
\hline
\verb=20120430T10:16:16.123= & 603.67 & 5000 & BID \\
\hline
\end{tabular}
\caption{Cash Deals for GOOG}
\label{tab:PCKEWR}
\end{table}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment