Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
* Fix bad permission of files under code/ and figures/
* cancle .ins and make .dtx works
* Fix typos in mcmthesis.pdf
  • Loading branch information
Liam0205 committed Jan 22, 2015
1 parent ff92e94 commit 1b7506d
Show file tree
Hide file tree
Showing 9 changed files with 216 additions and 212 deletions.
4 changes: 2 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Released under the [LaTeX Project Public
License](http://www.latex-project.org/lppl.txt), v1.3c or later.
Released under the [LaTeX Project Public License]
(http://www.latex-project.org/lppl.txt), v1.3c or later.

The package has status 'maintained': the current maintainer is
[Liam Huang]([email protected]).
32 changes: 19 additions & 13 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,34 @@ License](http://www.latex-project.org/lppl.txt), v1.3c or later.

## Installation

This work consists of the file mcmthesis.dtx, mcmthesis.ins,
figures/, and code/,
and the derived files mcmthesis.cls,
mcmthesis-demo.tex,
README,
LICENSE,
mcmthesis.pdf and
mcmthesis-demo.pdf.

To install this class, you should copy `mcmthesis.cls` to
`TEXMF/tex/latex/mcmthesis/`, copy `mcmthesis.dtx` and `mcmthesis.ins`
to `TEXMF/source/latex/mcmthesis/` and copy other files to
`TEXMF/doc/latex/mcmthesis/` and then run `texhash`.
This work consists of the file mcmthesis.dtx,
figures/, and
code/,
and the derived files mcmthesis.cls,
mcmthesis-demo.tex,
README,
LICENSE,
mcmthesis.pdf and
mcmthesis-demo.pdf.

To install this class, you should
move `mcmthesis.cls` to `TEXMF/tex/latex/mcmthesis/`,
move `mcmthesis.dtx` to `TEXMF/source/latex/mcmthesis/`,
move other files to `TEXMF/doc/latex/mcmthesis/` and then
run `texhash`.

## Author

[Zhaoli Wang][zhaoli]

Email: [email protected]

[Liam Huang][liam-ctan]

Email: [email protected]

## Project Page

If you are interested in the process of development you may observe

<https://github.com/LiamHuang0205/mcmthesis>
Expand Down
28 changes: 14 additions & 14 deletions code/mcmthesis-matlab1.m
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
function [t,seat,aisle]=OI6Sim(n,target,seated)
pab=rand(1,n);
for i=1:n
if pab(i)<0.4
aisleTime(i)=0;
else
aisleTime(i)=trirnd(3.2,7.1,38.7);
end
end





function [t,seat,aisle]=OI6Sim(n,target,seated)
pab=rand(1,n);
for i=1:n
if pab(i)<0.4
aisleTime(i)=0;
else
aisleTime(i)=trirnd(3.2,7.1,38.7);
end
end






80 changes: 40 additions & 40 deletions code/mcmthesis-sudoku.CPP
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,41 +1,41 @@
//============================================================================
// Name : Sudoku.cpp
// Author : wzlf11
// Version : a.0
// Copyright : Your copyright notice
// Description : Sudoku in C++.
//============================================================================

#include <iostream>
#include <cstdlib>
#include <ctime>

using namespace std;

int table[9][9];

int main() {

for(int i = 0; i < 9; i++){
table[0][i] = i + 1;
}

srand((unsigned int)time(NULL));

shuffle((int *)&table[0], 9);

while(!put_line(1))
{
shuffle((int *)&table[0], 9);
}

for(int x = 0; x < 9; x++){
for(int y = 0; y < 9; y++){
cout << table[x][y] << " ";
}

cout << endl;
}

return 0;
//============================================================================
// Name : Sudoku.cpp
// Author : wzlf11
// Version : a.0
// Copyright : Your copyright notice
// Description : Sudoku in C++.
//============================================================================

#include <iostream>
#include <cstdlib>
#include <ctime>

using namespace std;

int table[9][9];

int main() {

for(int i = 0; i < 9; i++){
table[0][i] = i + 1;
}

srand((unsigned int)time(NULL));

shuffle((int *)&table[0], 9);

while(!put_line(1))
{
shuffle((int *)&table[0], 9);
}

for(int x = 0; x < 9; x++){
for(int y = 0; y < 9; y++){
cout << table[x][y] << " ";
}

cout << endl;
}

return 0;
}
Empty file modified figures/mcmthesis-aaa.eps
100755 → 100644
Empty file.
Empty file modified figures/mcmthesis-logo.pdf
100755 → 100644
Empty file.
6 changes: 3 additions & 3 deletions make
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
perl adjust_checksum.pl mcmthesis.dtx
xelatex mcmthesis.ins
xetex mcmthesis.dtx
xelatex -interaction=batchmode -shell-escape mcmthesis.dtx
xelatex -interaction=batchmode -shell-escape mcmthesis.dtx
xelatex -interaction=batchmode mcmthesis-demo.tex
xelatex -interaction=batchmode mcmthesis-demo.tex
mv LICENSE.md LICENSE
mv README.md README
mv LICENSE.tex LICENSE
mv README.tex README
rm *.log *.out *.aux *.glo *.idx
open .
Loading

0 comments on commit 1b7506d

Please sign in to comment.