Skip to content

Commit

Permalink
vscode-isms and code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
nllong committed Oct 16, 2023
1 parent 89deff0 commit ecbf533
Show file tree
Hide file tree
Showing 8 changed files with 68 additions and 60 deletions.
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,6 @@
"%DOCFILE%"
]
}
]
],
"cSpell.words": []
}
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# CU Boulder's LaTeX Template
# CU Boulder's LaTeX Templates

This repository contains an updated version of CU's LaTeX class with support for a couple other features including:

Expand Down Expand Up @@ -49,3 +49,10 @@ An example PDF is in this project [here](./main-cu-prospectus.pdf) and [here](./

The difference between the prospectus and thesis is minimal. The prospectus version contains language that it is just that, a prospectus, and the thesis.cls has the approval page.

## Notes

If using vscode, then the latex-formatter might require an installation of a PERL library called HomeDir. This can be accomplished (on macOS) with the following brew install command.

```
brew install latexindent
```
62 changes: 31 additions & 31 deletions bibliography.bib
Original file line number Diff line number Diff line change
Expand Up @@ -4,39 +4,39 @@
BibTeX export options can be customized via Preferences -> BibTeX in Mendeley Desktop
@techreport{EnergyInformationAdministration2020,
abstract = {Table 1.3 Primary Energy Consumption by Source},
author = {{U.S. Energy Information Administration}},
booktitle = {Monthly Energy Review},
file = {:Users/nlong/Documents/Bibtex/Library/U.S. Energy Information Administration - 2020 - Monthly Energy Review.pdf:pdf},
institution = {US DOE Energy Information Administration},
isbn = {2025862792},
keywords = {biofuels,carbon emissions,coal,consumption,electricity,energy,energy prices,hydroelectric,international energy,natural gas,nuclear,overview,petroleum,renewable energy},
number = {December},
pages = {235},
title = {{Monthly Energy Review}},
url = {http://www.eia.gov/totalenergy/data/monthly},
volume = {0035},
year = {2020}
abstract = {Table 1.3 Primary Energy Consumption by Source},
author = {{U.S. Energy Information Administration}},
booktitle = {Monthly Energy Review},
file = {:Users/nlong/Documents/Bibtex/Library/U.S. Energy Information Administration - 2020 - Monthly Energy Review.pdf:pdf},
institution = {US DOE Energy Information Administration},
isbn = {2025862792},
keywords = {biofuels,carbon emissions,coal,consumption,electricity,energy,energy prices,hydroelectric,international energy,natural gas,nuclear,overview,petroleum,renewable energy},
number = {December},
pages = {235},
title = {{Monthly Energy Review}},
url = {http://www.eia.gov/totalenergy/data/monthly},
volume = {0035},
year = {2020}
}
@techreport{Landsberg2014,
abstract = {ASHRAE Guidelines are scheduled to be updated on a five-year cycle; the date following the Guideline number is the year of ASHRAE approval. The latest edition of an ASHRAE Guideline may be purchased on the ASHRAE website (www.ashrae.org) or from ASHRAE Customer Service,},
address = {Atlanta, GA},
author = {Landsberg, Dennis R and Shonder, John A and Barker, Kimberly A and Haberl, Jeff S and Judson, Scott A and Jump, David A and Koran, William E and Hall, Richard L and Reindl, Douglass T and Anderson, Joseph R and Barnaby, Charles S and Clark, John A and Dunlap, John F and Earley, James W and Emmerich, Steven J and Graef, Patricia T},
file = {:Users/nlong/Documents/Bibtex/Library/Landsberg et al. - 2014 - ASHRAE Guideline 14-2014 Measurement of Energy, Demand, and Water Savings.pdf:pdf},
institution = {ASHRAE},
title = {{ASHRAE Guideline 14-2014: Measurement of Energy, Demand, and Water Savings}},
url = {www.ashrae.org/technology.},
volume = {2014},
year = {2014}
abstract = {ASHRAE Guidelines are scheduled to be updated on a five-year cycle; the date following the Guideline number is the year of ASHRAE approval. The latest edition of an ASHRAE Guideline may be purchased on the ASHRAE website (www.ashrae.org) or from ASHRAE Customer Service,},
address = {Atlanta, GA},
author = {Landsberg, Dennis R and Shonder, John A and Barker, Kimberly A and Haberl, Jeff S and Judson, Scott A and Jump, David A and Koran, William E and Hall, Richard L and Reindl, Douglass T and Anderson, Joseph R and Barnaby, Charles S and Clark, John A and Dunlap, John F and Earley, James W and Emmerich, Steven J and Graef, Patricia T},
file = {:Users/nlong/Documents/Bibtex/Library/Landsberg et al. - 2014 - ASHRAE Guideline 14-2014 Measurement of Energy, Demand, and Water Savings.pdf:pdf},
institution = {ASHRAE},
title = {{ASHRAE Guideline 14-2014: Measurement of Energy, Demand, and Water Savings}},
url = {www.ashrae.org/technology.},
volume = {2014},
year = {2014}
}
@techreport{Satchwell2021,
address = {Washington, DC},
author = {Satchwell, Andrew; and Piette, Mary Ann; and Khandekar, Aditya; and Granderson, Jessica; and Frick, Natalie Mims; and Hledik, Ryan and Faruqui, Ahmad and Lam, Long and Ross, Stephanie and Cohen, Jesse and Wang, Kitty and Urigwe, Daniela and Delurey, Dan and Neukomm, Monica and Nemtzow, David},
file = {:Users/nlong/Documents/Bibtex/Library/Satchwell et al. - 2021 - A National Roadmap for Grid-Interactive Efficient Buildings.pdf:pdf},
institution = {Department of Energy Office of Energy Efficiency and Reneweable Energy's Building Technologies Office},
keywords = {DER,EE,Energy Solutions,GEB,GHG,Grid-Interactive Efficient Buildings,Lawrence Berkeley National Laboratory,Smart Grid,The Brattle Group,U.S. Department of Energy,Wedgemere Group,decarbonization,distributed energy resources,electrification,energy efficiency,energy policy,green buildings,greenhouse gas emissions},
mendeley-tags = {GEB},
title = {{A National Roadmap for Grid-Interactive Efficient Buildings}},
url = {https://escholarship.org/uc/item/78k303s5},
year = {2021}
address = {Washington, DC},
author = {Satchwell, Andrew; and Piette, Mary Ann; and Khandekar, Aditya; and Granderson, Jessica; and Frick, Natalie Mims; and Hledik, Ryan and Faruqui, Ahmad and Lam, Long and Ross, Stephanie and Cohen, Jesse and Wang, Kitty and Urigwe, Daniela and Delurey, Dan and Neukomm, Monica and Nemtzow, David},
file = {:Users/nlong/Documents/Bibtex/Library/Satchwell et al. - 2021 - A National Roadmap for Grid-Interactive Efficient Buildings.pdf:pdf},
institution = {Department of Energy Office of Energy Efficiency and Reneweable Energy's Building Technologies Office},
keywords = {DER,EE,Energy Solutions,GEB,GHG,Grid-Interactive Efficient Buildings,Lawrence Berkeley National Laboratory,Smart Grid,The Brattle Group,U.S. Department of Energy,Wedgemere Group,decarbonization,distributed energy resources,electrification,energy efficiency,energy policy,green buildings,greenhouse gas emissions},
mendeley-tags = {GEB},
title = {{A National Roadmap for Grid-Interactive Efficient Buildings}},
url = {https://escholarship.org/uc/item/78k303s5},
year = {2021}
}
32 changes: 16 additions & 16 deletions chapter1-intro.tex
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
\chapter{Introduction}
\label{section_introduction}

\singlespacing
\singlespacing

Example document showing the features of this \LaTeX\ class. Citations are similar to any other \LaTeX\ document and require a bibtex format of the bibliography to be saved in the project directory.
Example document showing the features of this \LaTeX\ class. Citations are similar to any other \LaTeX\ document and require a bibtex format of the bibliography to be saved in the project directory.

\section{Figures}

Expand Down Expand Up @@ -38,13 +38,13 @@ \section{Tables}
\begin{tabular}{|L{4.5cm}|L{5.5cm}|L{5.0cm}|}
\hline
\rowcolor{lightgray}
\textbf{Research Objective} & \textbf{Method of Achievement} & \textbf{Expected Outcome} \\ \hline \hline
\textbf{Research Objective} & \textbf{Method of Achievement} & \textbf{Expected Outcome} \\ \hline \hline
% next row
Cell 1 & Cell 2 & Cell 2 \\ \hline
Cell 1 & Cell 2 & Cell 2 \\ \hline
% next row
Another cell &
Another cell &
And another cell with some text wrapping if there is enough text needed for it to wrap based on the fixed width defined in the tabular definition &
Last cell for this row \\ \hline
Last cell for this row \\ \hline
\end{tabular}
\label{tbl_example}
\end{table}
Expand Down Expand Up @@ -80,18 +80,18 @@ \section{Lists and Enumerations}

\begin{enumerate}
\item First item
\begin{itemize}
\item Example of just a bullet item
\item Another item
\item Last item!
\end{itemize}
\begin{itemize}
\item Example of just a bullet item
\item Another item
\item Last item!
\end{itemize}

\item Second numbered item
\begin{enumerate}
\item Keep the list going,
\item With more items,
\item But now I'm done.
\end{enumerate}
\begin{enumerate}
\item Keep the list going,
\item With more items,
\item But now I'm done.
\end{enumerate}
\end{enumerate}

\section{Code Snippets}
Expand Down
14 changes: 7 additions & 7 deletions listings-modelica.cfg.tex
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@
\lstdefinelanguage{modelica}
{
morekeywords=[1]{
algorithm,and,annotation,as,assert,block,break,case,class,connect,connector,
constant,constrainedby,der,discrete,each,else,elseif,elsewhen,encapsulated,
end,enumeration,equality,equation,expandable,extends,external,failure,final,
flow,for,function,guard,if,import,in,initial,inner,input,List,local,loop,
match,matchcontinue,model,not,operator,Option,or,outer,output,package,parameter,
partial,protected,public,record,redeclare,replaceable,return,stream,
subtypeof,then,Tuple,type,uniontype,when,while},
algorithm,and,annotation,as,assert,block,break,case,class,connect,connector,
constant,constrainedby,der,discrete,each,else,elseif,elsewhen,encapsulated,
end,enumeration,equality,equation,expandable,extends,external,failure,final,
flow,for,function,guard,if,import,in,initial,inner,input,List,local,loop,
match,matchcontinue,model,not,operator,Option,or,outer,output,package,parameter,
partial,protected,public,record,redeclare,replaceable,return,stream,
subtypeof,then,Tuple,type,uniontype,when,while},
morekeywords=[2]{true, false},
% Do not make true,false keywords because fn(true,x, false ) shows up as fn(true,x, *false*)
morekeywords=[3]{optimization,constraint}, % Optimica keywords
Expand Down
8 changes: 4 additions & 4 deletions macros.tex
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
\newcommand{\vth}{V_{\theta}}

\newcommand{\twochoices}[2]{\left\{ \begin{array}{lcc}
\displaystyle #1 \\ \vspace{-10pt} \\
\displaystyle #2 \end{array} \right. } %}
\displaystyle #1 \\ \vspace{-10pt} \\
\displaystyle #2\end{array} \right. } %}

\newcommand{\threechoices}[3]{\left\{ \begin{array}{lcc}
#1 \\ #2 \\ #3 \end{array} \right. } %}
#1 \\ #2 \\ #3\end{array} \right. } %}

\newcommand{\fourchoices}[4]{\left\{ \begin{array}{lcc}
#1 \\ #2 \\ #3 \\ #4 \end{array} \right. } %}
#1 \\ #2 \\ #3 \\ #4\end{array} \right. } %}

\newcommand{\twovec}[2]{\left(\begin{array}{c} #1 \\ #2 \end{array}\right)}
\newcommand{\threevec}[3]{\left(\begin{array}{c} #1 \\ #2 \\ #3 \end{array}\right)}
Expand Down
Binary file modified main-cu-phd-thesis.pdf
Binary file not shown.
Binary file modified main-cu-prospectus.pdf
Binary file not shown.

0 comments on commit ecbf533

Please sign in to comment.