Latex: Difference between revisions

746 bytes added ,  21 October 2020
Line 116: Line 116:
;Font type
;Font type
* Times New Roman - <code>\usepackage{mathptmx}</code>
* Times New Roman - <code>\usepackage{mathptmx}</code>
==Tables==
===Multirow and Multicolumns===
===Newlines===
[https://tex.stackexchange.com/questions/2441/how-to-add-a-forced-line-break-inside-a-table-cell stackexchange line break in table cell] 
[https://tex.stackexchange.com/questions/331716/newline-in-multirow-environment linebreak in multirow]
To have a newline in a cell, you can use the [https://www.ctan.org/pkg/makecell makecell] package. 
<code>\makecell{Some really \\ longer text}</code>. 
To make this align left: <code>\makecell[l]{Some really \\ longer text}</code>
For multirow cells, you can use <code>\multirowcell{5}{Numbers\\from\\ 1 to 5}</code>. 
By default, this will align center. You can make it align left: <code>\multirowcell{2}[0pt][l]{Number\\ Letter}</code>.


==Enumerate==
==Enumerate==