Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add workflow to build latex #25

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/latex.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Build LaTeX document
on: [push]
jobs:
build_latex:
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v2
- name: Compile LaTeX document
uses: xu-cheng/latex-action@v2
with:
root_file: book_ML.tex
compiler: pdflatex
args: ""
working_directory: ./

# name: Build LaTeX document
# on: [push]
# jobs:
# build_latex:
# runs-on: ubuntu-latest
# steps:
# - name: Set up Git repository
# uses: actions/checkout@v2
# - name: Compile LaTeX document
# uses: dante-ev/latex-action@latest
# with:
# root_file: book_ML.tex
# compiler: pdflatex
# args: "-synctex=1 -interaction=nonstopmode"
98 changes: 49 additions & 49 deletions book_ML.tex
Original file line number Diff line number Diff line change
Expand Up @@ -67,55 +67,55 @@
\include{Chapters/03_SimpleML/3_linearregression2}
\include{Chapters/01_Overview/15_overfitting2}

\setcounter{part}{2}
\setcounter{chapter}{8}
\input{Chapters/warmup2}
\include{Chapters/03_SimpleML/6_knn2}
\include{Chapters/03_SimpleML/4_kmeans2}
\include{Chapters/03_SimpleML/32_nbc2}

\setcounter{part}{3}
\setcounter{chapter}{11}
\input{Chapters/neuralnets2}
\include{Chapters/04_GradientDescent/7_gradientdescent2}
\include{Chapters/05_NeuralNetworks/09_perceptron2}
\include{Chapters/05_NeuralNetworks/10_logisticregression2}
\include{Chapters/05_NeuralNetworks/13_softmax2}
\include{Chapters/05_NeuralNetworks/14_mlp2}

\setcounter{part}{4}
\setcounter{chapter}{16}
\input{Chapters/recomsys2}
\input{Chapters/06_RecommendationSystems/23_contentbasedRS2}
\include{Chapters/06_RecommendationSystems/24_neighborhoodRS2}
\include{Chapters/06_RecommendationSystems/25_matrixfactorizationRS2}

\setcounter{part}{5}
\setcounter{chapter}{19}
\input{Chapters/dimred2}
\input{Chapters/07_DimemsionalityReduction/dr_intro2}
\include{Chapters/07_DimemsionalityReduction/26_svd2}
\include{Chapters/07_DimemsionalityReduction/27_pca2}
\include{Chapters/07_DimemsionalityReduction/29_lda2}

\setcounter{part}{6}
\setcounter{chapter}{22}
\input{Chapters/cvxopt2}
\include{Chapters/08_ConvexOptimization/16_convexity2}
\include{Chapters/08_ConvexOptimization/17_convexopt2}
\include{Chapters/08_ConvexOptimization/18_duality2}

\setcounter{part}{7}
\setcounter{chapter}{25}
\input{Chapters/svm2}
\include{Chapters/09_SupportVectorMachines/19_svm2}
\include{Chapters/09_SupportVectorMachines/20_softmaginsvm2}
\include{Chapters/09_SupportVectorMachines/21_kernelsvm2}
\include{Chapters/09_SupportVectorMachines/22_multiclasssvm2}

\appendix
\include{Chapters/lagrange2}
\include{Chapters/color2}
% \setcounter{part}{2}
% \setcounter{chapter}{8}
% \input{Chapters/warmup2}
% \include{Chapters/03_SimpleML/6_knn2}
% \include{Chapters/03_SimpleML/4_kmeans2}
% \include{Chapters/03_SimpleML/32_nbc2}

% \setcounter{part}{3}
% \setcounter{chapter}{11}
% \input{Chapters/neuralnets2}
% \include{Chapters/04_GradientDescent/7_gradientdescent2}
% \include{Chapters/05_NeuralNetworks/09_perceptron2}
% \include{Chapters/05_NeuralNetworks/10_logisticregression2}
% \include{Chapters/05_NeuralNetworks/13_softmax2}
% \include{Chapters/05_NeuralNetworks/14_mlp2}

% \setcounter{part}{4}
% \setcounter{chapter}{16}
% \input{Chapters/recomsys2}
% \input{Chapters/06_RecommendationSystems/23_contentbasedRS2}
% \include{Chapters/06_RecommendationSystems/24_neighborhoodRS2}
% \include{Chapters/06_RecommendationSystems/25_matrixfactorizationRS2}

% \setcounter{part}{5}
% \setcounter{chapter}{19}
% \input{Chapters/dimred2}
% \input{Chapters/07_DimemsionalityReduction/dr_intro2}
% \include{Chapters/07_DimemsionalityReduction/26_svd2}
% \include{Chapters/07_DimemsionalityReduction/27_pca2}
% \include{Chapters/07_DimemsionalityReduction/29_lda2}

% \setcounter{part}{6}
% \setcounter{chapter}{22}
% \input{Chapters/cvxopt2}
% \include{Chapters/08_ConvexOptimization/16_convexity2}
% \include{Chapters/08_ConvexOptimization/17_convexopt2}
% \include{Chapters/08_ConvexOptimization/18_duality2}

% \setcounter{part}{7}
% \setcounter{chapter}{25}
% \input{Chapters/svm2}
% \include{Chapters/09_SupportVectorMachines/19_svm2}
% \include{Chapters/09_SupportVectorMachines/20_softmaginsvm2}
% \include{Chapters/09_SupportVectorMachines/21_kernelsvm2}
% \include{Chapters/09_SupportVectorMachines/22_multiclasssvm2}

% \appendix
% \include{Chapters/lagrange2}
% \include{Chapters/color2}

\backmatter%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\bibliographystyle{alpha}
Expand Down