-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added examples/test cases for new functionality
- Loading branch information
1 parent
c797e17
commit 286905b
Showing
4 changed files
with
112 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
\documentclass{article}% | ||
\usepackage{latexgit}% use our package | ||
\usepackage{xcolor}% to be able to use colors | ||
\usepackage[colorlinks]{hyperref}% for printing the URL | ||
\usepackage{listings}% importing external code | ||
\lstset{language={},basicstyle=\small\ttfamily,% | ||
numbers=left,numberstyle=\tiny,frame=shadowbox,frameround=tttt,% | ||
backgroundcolor=\color{black!10!yellow!5!white}}% | ||
% | ||
\begin{document}% | ||
% | ||
Check the output of a simple command in \autoref{lst:out}: | ||
% | ||
\gitExec{}{}{python3 --version}% | ||
\lstinputlisting[float,label={lst:out},caption={% | ||
The result of \texttt{python3 {-}{-} version}.}]{\gitFile} | ||
% | ||
\end{document}% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
\documentclass{article}% | ||
\usepackage{latexgit}% use our package | ||
\usepackage{xcolor}% to be able to use colors | ||
\usepackage[colorlinks]{hyperref}% for printing the URL | ||
\usepackage{listings}% importing external code | ||
\lstset{language={},basicstyle=\tiny,% | ||
numbers=left,numberstyle=\tiny,frame=shadowbox,frameround=tttt,% | ||
backgroundcolor=\color{black!10!yellow!5!white}}% | ||
% | ||
\begin{document}% | ||
% | ||
Check the output of a command executed inside a git | ||
repository in \autoref{lst:out}: | ||
% | ||
\gitExec{https://github.com/thomasWeise/pycommons}{examples}{python3 temp.py}% | ||
\lstinputlisting[float,label={lst:out},caption={% | ||
The result of command executed inside a git repository.}]{\gitFile} | ||
% | ||
\end{document}% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters