-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
51 additions
and
49 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 |
---|---|---|
|
@@ -18,29 +18,6 @@ Written by [Yuan Li](https://github.com/FoxerLee), idea comes from [homework-tem | |
\end{answer} | ||
``` | ||
|
||
- Other basic information | ||
|
||
```latex | ||
\course | ||
{\setlength{\unitlength}{1mm} | ||
\begin{picture}(0,0) | ||
\put(0,0){\includegraphics[width=0.7cm]{img/NYU.png}} | ||
\end{picture} | ||
} % University's logo | ||
{Fall 2019} % semester | ||
{CS-GY 6923} % course number | ||
\university | ||
{New York University} % university | ||
{Tandon school of Engineering} % department | ||
\assignment | ||
{Homework} % assignment name | ||
{Foxerlee} % student name | ||
{N12345678} % student ID | ||
{[email protected]} % student email | ||
``` | ||
|
||
- How to add Code | ||
|
||
```latex | ||
|
@@ -55,25 +32,42 @@ Written by [Yuan Li](https://github.com/FoxerLee), idea comes from [homework-tem | |
\end{lstlisting} | ||
``` | ||
|
||
- How to add Image | ||
- `\image` Add a image | ||
|
||
```latex | ||
\begin{figure}[!ht] | ||
\begin{center} | ||
\includegraphics[width = 0.6\textwidth]{img/NYU.png} | ||
\end{center} | ||
\end{figure} | ||
\image{0.4}{img/NYU.png} % para1 -- size, para2 -- image source | ||
``` | ||
|
||
- How to add Equation | ||
- `equ` Where to write equation | ||
|
||
```latex | ||
\begin{equation}\nonumber | ||
\begin{aligned} | ||
\begin{equ} | ||
E_{in}(w) &= \frac{1}{10}\sum_{i=1}^{10}(\hat{y}_i + y_i)^2\\ | ||
&= \frac{1}{N}||Xw-y||_2^2 | ||
\end{aligned} | ||
\end{equation} | ||
\end{equ} | ||
``` | ||
|
||
- Other basic information | ||
|
||
```latex | ||
\course | ||
{\setlength{\unitlength}{1mm} | ||
\begin{picture}(0,0) | ||
\put(0,0){\includegraphics[width=0.7cm]{img/NYU.png}} | ||
\end{picture} | ||
} % University's logo | ||
{Fall 2019} % semester | ||
{CS-GY 6923} % course number | ||
\university | ||
{New York University} % university | ||
{Tandon school of Engineering} % department | ||
\assignment | ||
{Homework} % assignment name | ||
{Foxerlee} % student name | ||
{N12345678} % student ID | ||
{[email protected]} % student email | ||
``` | ||
|
||
- Chinese is supported. | ||
|
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