-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
created file and some code to show all figures.
- Loading branch information
1 parent
a0bd57e
commit 66b4192
Showing
10 changed files
with
565 additions
and
68 deletions.
There are no files selected for viewing
Binary file modified
BIN
+1.96 KB
(100%)
Intro-Math-Programming/baseText/Mathematical Programming and Operations Research.pdf
Binary file not shown.
124 changes: 62 additions & 62 deletions
124
Intro-Math-Programming/baseText/Mathematical Programming and Operations Research.tdo
Large diffs are not rendered by default.
Oops, something went wrong.
Empty file.
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,4 @@ | ||
This is makeindex, version 2.15 [TeX Live 2019] (kpathsea + Thai support). | ||
Scanning input file all_figures.idx...done (0 entries accepted, 0 rejected). | ||
Nothing written in all_figures.ind. | ||
Transcript written in all_figures.ilg. |
Empty file.
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 |
---|---|---|
@@ -0,0 +1,308 @@ | ||
% Chapters will always start on odd numbered page | ||
\documentclass[letter,12pt]{book} | ||
|
||
%\def \oldstuff {add old stuff} | ||
|
||
\usepackage[english]{babel} | ||
\usepackage{fancyhdr} | ||
|
||
%% Toggle text | ||
%\newcommand \nlptext{Show NLP text} | ||
%\newcommand \oldstuff{Show old text} | ||
|
||
%Toggle proofs | ||
%\def \showproofs {If commented, many proofs will not be shown} | ||
% See command.tex for all package imports, environments, and special commands. | ||
\input{foundationsAppliedMathematicsLabs/command} | ||
\input{optimization/preamble} | ||
\input{optimization/preamble0} | ||
\input{optimization/preamble0-biblatex} | ||
\input{preamble-jupyter.tex} | ||
|
||
|
||
\usepackage{pdfpages} | ||
|
||
\usepackage{booktabs} | ||
|
||
\graphicspath{ {./images/}{images/}{optimization/multi-objective/images/}{OR-Book-Vorwerk/images/ }} | ||
% For the font | ||
\usepackage{mathptmx} | ||
%\usepackage{roboto} %%for Lyryx Icon font | ||
\usepackage[T1]{fontenc} | ||
\usepackage[EULERGREEK]{sansmath} | ||
|
||
% Various math packages | ||
\usepackage{amsmath,amsfonts,amsthm,amssymb} | ||
|
||
% Make it look more like the Word docs | ||
%\setlength{\parskip}{\baselineskip} | ||
%\setlength{\parindent}{0pt} | ||
|
||
% Simple arithmetic | ||
\usepackage{calc} | ||
|
||
% For colouring various things | ||
\usepackage{xcolor} | ||
|
||
% Colored tables and other nice enhancements | ||
\usepackage{tabu} | ||
|
||
% Conditional statements | ||
\usepackage{ifthen} | ||
|
||
% Page layout | ||
\ifthenelse{\equal{\detokenize{interior}}{\jobname}}{ | ||
\usepackage[headheight=15pt,top=1in, bottom=0.75in, outer=0.65in, inner=0.85in]{geometry} | ||
% \usepackage[headheight=15pt,top=1in, bottom=0.1in, outer=0.75in, inner=1.25in]{geometry} | ||
}{ | ||
\usepackage[headheight=15pt,top=1in, bottom=0.75in, outer=0.75in, inner=0.75in]{geometry} | ||
%\usepackage[headheight=15pt,top=1in, bottom=0.1in, outer=1in, inner=1in]{geometry} | ||
} | ||
|
||
% Captions for objects | ||
\usepackage[format=hang,font=bf]{caption} | ||
|
||
% Additional commands for simple LaTeX drawings | ||
\usepackage{eepic} | ||
|
||
% For multicolumn cells in text | ||
\usepackage{multicol} | ||
|
||
% Standard package for creating indexes | ||
\usepackage{makeidx} | ||
|
||
% If you want to include postscript graphics | ||
\usepackage{graphicx} | ||
|
||
% For including eps graphic files | ||
\usepackage{epsfig} | ||
|
||
% Additional features for lists | ||
\usepackage{mdwlist} | ||
|
||
% Coloured titlepage setup | ||
\usepackage{afterpage} | ||
\usepackage{pagecolor} | ||
|
||
% Hyperlinks | ||
\usepackage{hyperref} | ||
|
||
|
||
% To insert df page (only open text distribution project) | ||
%\usepackage{pdfpages} | ||
|
||
% Creates coloured boxes | ||
\usepackage{tcolorbox} | ||
\tcbuselibrary{theorems,breakable} | ||
|
||
% Draw frames around text | ||
\usepackage[framemethod=tikz]{mdframed} | ||
\mdfsetup{skipabove=\topskip,skipbelow=\topskip} | ||
|
||
% To remove headers and footers from truly empty pages | ||
\usepackage{emptypage} | ||
|
||
% Draw images and figures | ||
\usepackage{rotating} | ||
\usepackage{tikz} | ||
\usetikzlibrary{calc,intersections,shapes.callouts} | ||
\usetikzlibrary{decorations.text} | ||
\usetikzlibrary{positioning} | ||
\usetikzlibrary{decorations.pathreplacing} | ||
\usetikzlibrary{shadows} | ||
\usetikzlibrary{backgrounds} | ||
\usepackage{circuitikz} | ||
\tikzstyle arrowstyle=[scale=2.5] | ||
\tikzstyle directed=[postaction={decorate,decoration={markings, | ||
mark=at position .65 with {\arrow[arrowstyle]{latex}}}}] | ||
\tikzstyle directed1=[postaction={decorate,decoration={markings, | ||
mark=at position .99 with {\arrow[arrowstyle]{latex}}}}] | ||
\tikzstyle{vertex}=[circle,fill=black!25,minimum size=20pt,inner sep=0pt] | ||
|
||
\definecolor{ocre}{RGB}{243,102,25} % Define the orange color used for highlighting throughout the book | ||
|
||
% Thew following passes on paperheight to ps2pdf... bug fix | ||
\pdfpageheight=\paperheight | ||
|
||
% For plotting data | ||
\usepackage{pgfplots} | ||
\usepackage{pgfplotstable} | ||
|
||
% For fancy headers! | ||
\usepackage{fancyhdr} | ||
|
||
% Used for creating EOC questions with corresponding solutions at the end of the textbook | ||
\usepackage{answers} | ||
|
||
% fancy section headers, sc for small caps, prevent titles from being stranded on previous page | ||
\usepackage[explicit,sc,nobottomtitles]{titlesec} | ||
|
||
|
||
% Inputs information regarding book Title, Authors, Version and Revision | ||
\input aFirstCourseLinearAlgebra/frontmatter/bookinfo.txt | ||
|
||
% Inputs information regarding Institution,Course Code, Name, Session and Section (for adapted text) | ||
%\input aFirstCourseLinearAlgebra/courseInfo.txt | ||
|
||
% Lyryx Math Style | ||
\usepackage{aFirstCourseLinearAlgebra/LyryxMathStyle} | ||
|
||
% Lyryx Linear Algebra Style | ||
\usepackage{aFirstCourseLinearAlgebra/LyryxLinAlgStyle} | ||
|
||
|
||
\renewcommand{\b}{\mathbf{b}} | ||
\renewcommand{\x}{\mathbf{x}} | ||
\renewcommand{\c}{\mathbf{c}} | ||
\renewcommand{\0}{\mathbf{0}} | ||
\renewcommand{\u}{\mathbf{u}} | ||
|
||
%% Print Setup | ||
\newlength{\coverwidth} | ||
\newlength{\frontsideleft} | ||
\newlength{\pagethickness} | ||
|
||
%%set page number of interior | ||
\newcommand{\numpages}{604} | ||
|
||
% Color interior | ||
\setlength{\pagethickness}{0.0025in} | ||
|
||
% Some new tables | ||
\usepackage{tabularx} | ||
\usepackage{booktabs} | ||
% B+W Interior | ||
%\setlength{\pagethickness}{0.002252in} | ||
|
||
% TODO: Is there a way to automatically calculate the dimensions of the print-cover? | ||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
% | ||
% PRINT COVER GEOMETRY CALCULATIONS | ||
% | ||
% % % | ||
%%% Here are the calculations from createspace: | ||
% | ||
% Spine width: --> black+white interior is 0.002252in * page count | ||
% --> colour interior is 0.0025in * page count | ||
% | ||
% Spine: allow for 0.0625" variance on either side of the fold lines for your cover. | ||
% | ||
% Bleed: 0.125 * 2 (needed on all 4 outside edges of PDF, but not spine) | ||
% | ||
% Safe zone: Text and images must be at least .125" inside the trim lines to ensure | ||
% that no live elements are cut during the bookmaking process. | ||
% | ||
% Minimum Cover Width: Bleed + Back Cover Trim Size + Spine Width + Front Cover Trim Size + Bleed | ||
% | ||
% | ||
% For 108 pages in colour: (exclude front and back cover - 2 pages) | ||
% | ||
% paper width = 0.125 + 8.5 + (0.0025 * 108) + 8.5 + 0.125 = 17.52in | ||
% paper height = 11 + (2 * 0.125) = 11.25in | ||
% | ||
% paper size - safe zone (layoutsize) | ||
% layout width = 8.5 - (.125 * 2) | ||
% layout height = 11 - (.125 * 2) | ||
% | ||
% bleed + left side + spine + safe zone | ||
% layout offset x = 0.125 + 8.5 + (0.0025 * 108) + 0.125 = 9.02in | ||
% bleed + safe zone | ||
% layout offset y = 0.125 + 0.125 = 0.25in | ||
% | ||
% spine width: 0.002252 * 360 = 0.81072in B&W | ||
% 0.0025 * 360 = 0.9in colour | ||
% | ||
% | ||
% HOWEVER this will leave space for headers/footers/marginal notes/etc | ||
% | ||
% So we want to tweak the body size to be something nice, such as layoutsize minus 1/2 inch on each side for margins | ||
% | ||
%% LULU DIMENSIONS | ||
% | ||
%From Lulu: | ||
%Spine width = 0.419cm | ||
%Spine begins = 21.905cm from the left | ||
%Total cover width = 44.229cm X 28.571cm | ||
|
||
%CreateSpace | ||
%\setlength{\coverwidth}{0.125in + 8.5in + (\pagethickness * \numpages) + 8.5in + 0.125in} | ||
%\setlength{\frontsideleft}{0.125in + 8.5in + (\pagethickness * \numpages) + 0.125in} | ||
|
||
%Lengths from LULU for samples 2017-01-16 | ||
\setlength{\coverwidth}{44.229cm} | ||
\setlength{\frontsideleft}{21.905cm+0.419cm+0.3cm} %Spine begins + Spine width +safe zone | ||
|
||
% Options showframe, showcrop, and verbose can be used for debugging | ||
\ifthenelse{\equal{\detokenize{print-cover}}{\jobname}}{ | ||
% \geometry{papersize={\coverwidth,28.571cm},layoutsize={21cm,27.3cm},layoutoffset={\frontsideleft,0.6cm},body={18.4cm,24.7cm}} | ||
\geometry{papersize={\coverwidth,28.571cm},layoutsize={21.3cm,27.3cm},layoutoffset={\frontsideleft,0.3cm},body={18.4cm,24.7cm}} | ||
}{ | ||
% No change in geometry for regular pdf | ||
} | ||
|
||
%To create index | ||
\makeindex | ||
|
||
|
||
\input{optimization/title} | ||
\input{lineqlpbook/linearProgrammingPreamble} | ||
|
||
\graphicspath{{aFirstCourseLinearAlgebra/},{lineqlpbook/},{optimization/figures/figures-static/},{Christopher_Griffin_Penn_State_University/},{OR-Book-Vorwerk/images/}} | ||
|
||
|
||
\usetikzlibrary{arrows.meta,positioning} | ||
|
||
%\usepackage[disable]{todonotes} | ||
\usepackage[colorinlistoftodos]{todonotes} | ||
\usepackage{etoolbox} | ||
|
||
\newcommand\getcurrentref[1]{% | ||
\ifnumequal{\value{#1}}{0} | ||
{??} | ||
{\the\value{#1}}% | ||
} | ||
|
||
\newcommand{\todored}[1]{\todo[inline, color=red]{\textbf{(\getcurrentref{chapter}\hspace{-0.5pt}.\getcurrentref{section})} #1}} | ||
|
||
|
||
\let\Chaptermark\chaptermark | ||
\def\chaptermark#1{\def\Chaptername{#1}\Chaptermark{#1}} | ||
\let\Sectionmark\sectionmark | ||
\def\sectionmark#1{\def\Sectionname{#1}\Sectionmark{#1}} | ||
\let\Subsectionmark\subsectionmark | ||
\def\subsectionmark#1{\def\Subsectionname{#1}\Subsectionmark{#1}} | ||
\let\Subsubsectionmark\subsubsectionmark | ||
\def\subsubsectionmark#1{\def\Subsubsectionname{#1}\Subsubsectionmark{#1}} | ||
|
||
\definecolor{capri}{rgb}{0.0, 0.75, 1.0} | ||
\definecolor{cherryblossompink}{rgb}{1.0, 0.72, 0.77} | ||
\newcommand{\todoChapter}[1]{\todo[inline, color=capri]{\textbf{Chapter \getcurrentref{chapter}\hspace{-0.5pt}. \Chaptername}\\ | ||
#1}} | ||
\newcommand{\todoSection}[1]{\todo[inline, color=cherryblossompink]{\textbf{Section \getcurrentref{chapter}\hspace{-0.5pt}.\getcurrentref{section}\hspace{-0.5pt}. \Sectionname}\\ | ||
#1}} | ||
|
||
|
||
% OR Book Vorwerk | ||
% \usepackage[export]{adjustbox} | ||
|
||
|
||
|
||
|
||
\begin{document} | ||
\chapter{Optimization Folder - static figures} | ||
These are static figures. | ||
|
||
\includefigurestatic{wiki/File/William_Rowan_Hamilton_painting.jpg} | ||
\includefigurestatic{wiki/File/triangle_inequality.png} | ||
\includefigurestatic{wiki/File/complexity-classes.png} | ||
\includefigurestatic{network-flow.png} | ||
|
||
\chapter{Optimization folder - source figures} | ||
|
||
\section{Source Figures - Optimization Folder} | ||
These are figures with source code. | ||
\includefiguresource{tikz/convexity-definition.pdf}. | ||
|
||
\newpage | ||
\chapter{Figures from ....} | ||
\end{document} |
Oops, something went wrong.