-
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.
- Now using pdfcrop for cropping built PDF to size; allows for buildi…
…ng environments like algorithm or eqnarray - Added a 'build' folder containing the current build and very rudimentary codes for testing
- Loading branch information
Showing
20 changed files
with
269 additions
and
40 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,7 +51,7 @@ local.properties | |
|
||
# Project specific | ||
/images/ | ||
/latex/ | ||
*/latex/* | ||
*.aux | ||
*.log | ||
standalone.tex | ||
|
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
Binary file not shown.
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 |
---|---|---|
@@ -1,16 +1,14 @@ | ||
[build] | ||
# Absolute path or relative to app dir path to the custom preamble file | ||
latexPreambleFile = | ||
# Creates a border around the built output. | ||
# Can be unit accepted by standalone class | ||
border = 0pt | ||
latexPreambleFile = | ||
# Creates a border around the built output in pt. | ||
border = 3 | ||
|
||
[imagemagick] | ||
density = 800 | ||
quality = 100 | ||
# Parameters to provide to imagemagick's 'convert' | ||
params = -background white -alpha remove | ||
# Path to imagemagick (only for Winddows OS) | ||
# Path to imagemagick (only for Windows OS) | ||
# Example: path = C:\Program Files (x86)\ImageMagick-6.9.0-Q16\ | ||
path = | ||
|
||
path = |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,22 @@ | ||
%\begin{algorithm} | ||
% \caption{My algorithm}\label{euclid} | ||
\begin{algorithmic}[1] | ||
\Procedure{MyProcedure}{} | ||
\State $\textit{stringlen} \gets \text{length of }\textit{string}$ | ||
\State $i \gets \textit{patlen}$ | ||
\BState \emph{top}: | ||
\If {$i > \textit{stringlen}$} \Return false | ||
\EndIf | ||
\State $j \gets \textit{patlen}$ | ||
\BState \emph{loop}: | ||
\If {$\textit{string}(i) = \textit{path}(j)$} | ||
\State $j \gets j-1$. | ||
\State $i \gets i-1$. | ||
\State \textbf{goto} \emph{loop}. | ||
\State \textbf{close}; | ||
\EndIf | ||
\State $i \gets i+\max(\textit{delta}_1(\textit{string}(i)),\textit{delta}_2(j))$. | ||
\State \textbf{goto} \emph{top}. | ||
\EndProcedure | ||
\end{algorithmic} | ||
%\end{algorithm} |
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,89 @@ | ||
|
||
%https://www.mathworks.com/matlabcentral/fileexchange/45125-sorting-methods/content/Sorting%20Methods/bubblesort.m | ||
%{ | ||
<latex> | ||
<file>bubblesort.png</file> | ||
<code> | ||
%\begin{algorithm} | ||
%\caption{A bubble sort algorithm.} | ||
\begin{algorithmic} | ||
\Function{bubblesort}{$x$} | ||
\State $n \gets length(x)$ | ||
\While{$n > 0$} | ||
\State $nnew \gets 0$ | ||
\For{$i \gets 1, i < n, i++$} | ||
\If{$x(i) < x(i-1)$} | ||
\State $x \gets swap(x, i, i-1)$ | ||
\State $nnew \gets i$ | ||
\EndIf | ||
\EndFor | ||
\State $n \gets nnew$ | ||
\EndWhile | ||
\State \Return $x$ | ||
\EndFunction | ||
\end{algorithmic} | ||
%\end{algorithm} | ||
</code> | ||
</latex> | ||
%} | ||
function x = bubblesort(x) | ||
%-------------------------------------------------------------------------- | ||
% Syntax: sx = bubblesort(x); | ||
% | ||
% Inputs: x is a vector of length n | ||
% | ||
% Outputs: sx is the sorted (ascending) version of x | ||
% | ||
% Description: This function sorts the input array x in ascending order | ||
% using the bubble sort algorithm | ||
% | ||
% Complexity: O(n) best-case performance | ||
% O(n^2) average-case performance | ||
% O(n^2) worst-case performance | ||
% O(1) auxiliary space | ||
% | ||
% Author: Brian Moore | ||
% brimoor@umich.edu | ||
% | ||
% Date: January 5, 2014 | ||
%-------------------------------------------------------------------------- | ||
% Bubble sort | ||
n = length(x); | ||
while (n > 0) | ||
% Iterate through x | ||
nnew = 0; | ||
for i = 2:n | ||
% Swap elements in wrong order | ||
if (x(i) < x(i - 1)) | ||
x = swap(x,i,i - 1); | ||
nnew = i; | ||
end | ||
end | ||
n = nnew; | ||
end | ||
|
||
end | ||
%{ | ||
<latex> | ||
<file>swap.png</file> | ||
<code> | ||
\begin{algorithmic} | ||
\Function{swap}{$x,i,j$} | ||
\State $val \gets x(i)$ | ||
\State $x(i) \gets x(j)$ | ||
\State $x(j) \gets val$ | ||
\State \Return $x$ | ||
\EndFunction | ||
\end{algorithmic} | ||
</code> | ||
</latex> | ||
%} | ||
function x = swap(x,i,j) | ||
% Swap x(i) and x(j) | ||
% Note: In practice, x xhould be passed by reference | ||
|
||
val = x(i); | ||
x(i) = x(j); | ||
x(j) = val; | ||
|
||
end |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
File renamed without changes
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -1,16 +1,14 @@ | ||
[build] | ||
# Absolute path or relative to app dir path to the custom preamble file | ||
latexPreambleFile = | ||
# Creates a border around the built output. | ||
# Can be unit accepted by standalone class | ||
border = 0pt | ||
latexPreambleFile = | ||
# Creates a border around the built output in pt. | ||
border = 3 | ||
|
||
[imagemagick] | ||
density = 800 | ||
quality = 100 | ||
# Parameters to provide to imagemagick's 'convert' | ||
params = -background white -alpha remove | ||
# Path to imagemagick (only for Winddows OS) | ||
# Path to imagemagick (only for Windows OS) | ||
# Example: path = C:\Program Files (x86)\ImageMagick-6.9.0-Q16\ | ||
path = | ||
|
||
path = |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.