|
8 | 8 | \usepackage{lipsum} % Filler text
|
9 | 9 | \usepackage{multicol} % Two cols
|
10 | 10 | \usepackage[cm]{fullpage} % Small margins
|
| 11 | +\setlength{\columnsep}{1cm} |
11 | 12 | \usepackage{bookman} % Closest built-in font I could find
|
12 | 13 | \usepackage[T1]{fontenc}
|
13 | 14 | \usepackage{mdframed} % Used for green boxes
|
14 |
| -\setlength{\columnsep}{1cm} |
| 15 | +\usepackage[table]{xcolor} |
| 16 | +\usepackage{tabularx} |
15 | 17 |
|
16 | 18 | % Define colors, sample from the books
|
17 | 19 | \usepackage{color}
|
|
23 | 25 |
|
24 | 26 | % Green comment box definition
|
25 | 27 | \newenvironment{commentbox}[1]
|
26 |
| -{\begin{mdframed}[frametitle={#1}, frametitlefont=\scshape\bfseries, linecolor=commentgreen, backgroundcolor=commentgreen]} |
| 28 | +{\fontfamily{lmss}\selectfont\begin{mdframed}[frametitle={#1}, |
| 29 | + frametitlefont=\scshape\bfseries, |
| 30 | + linecolor=commentgreen, |
| 31 | + backgroundcolor=commentgreen]} |
27 | 32 | {\end{mdframed}}
|
28 | 33 |
|
| 34 | +% Font environment |
| 35 | +\newenvironment{lmss}{\fontfamily{lmss}\selectfont}{} |
| 36 | + |
29 | 37 | % Adjust section and subsection colors and font
|
30 | 38 | \titleformat{\section}
|
31 | 39 | {\color{titlered}\normalfont\scshape\Huge}{\thesection}{1em}{}
|
|
35 | 43 | % Start document
|
36 | 44 | \begin{document}
|
37 | 45 | \begin{multicols}{2}
|
| 46 | +\fontfamily{ppl}\selectfont % Set text font |
38 | 47 | % Your content goes here
|
39 | 48 | \section*{Test Section}
|
40 | 49 | \lipsum[1]
|
41 | 50 | \subsection*{Test Subsection}
|
42 | 51 | \begin{commentbox}{Neat Green Box!}
|
43 | 52 | \lipsum[1]
|
44 | 53 | \end{commentbox}
|
| 54 | + \lipsum[3] |
| 55 | + |
| 56 | + \noindent |
| 57 | + \begin{lmss} % Switch font |
| 58 | + \rowcolors{1}{bgtan}{commentgreen} % Alternate colors |
| 59 | + \begin{tabularx}{\linewidth}{XX} |
| 60 | + \textbf{Table head} & \textbf{Table head} \\ |
| 61 | + Some value & Some value \\ |
| 62 | + Some value & Some value \\ |
| 63 | + Some value & Some value |
| 64 | + \end{tabularx} |
| 65 | + \end{lmss} |
| 66 | + |
45 | 67 | \lipsum
|
46 | 68 |
|
47 | 69 | % End document
|
|
0 commit comments