Skip to content

Instantly share code, notes, and snippets.

@sorrell
Created February 19, 2012 04:43
Show Gist options
  • Save sorrell/1862016 to your computer and use it in GitHub Desktop.
Save sorrell/1862016 to your computer and use it in GitHub Desktop.
Latex intro (6)
\documentclass[landscape,12pt]{article}
\usepackage[margin=1.25in]{geometry}
\usepackage{color}
\renewcommand{\familydefault}{\sfdefault} %changing font!
\newcommand\Red[1]{\textcolor{red}{\bf #1}}
\newcommand\Blue[1]{\textcolor{blue}{\bf #1}}
\title{My First Document}
\author{Nick}
\date{\today}
\begin{document}
{\tiny tiny} \\
{\footnotesize footnotesize} \\
{\small small} \\
{\normalsize normalsize} \\
{\large large} \\
{\huge huge} \\
{\Huge Huge} \\
%Ack! Sans-serif generates a warning for italics, but still works! Let's change font anyway!
\renewcommand{\familydefault}{\rmdefault} %changing font!
\normalfont{\textit{what's} a \emph{space}?}
~~~ the tilde \textasciitilde{} \texttt{are} \textbf{spaces}!
%Time for text coloring! See how we are using the \usepackage command to add color?
%First, let's use the conventional command
\textcolor{red}{This is some red text!This is some red text!This is some red text!This is some red text!This is some red text!This is some red text!This is some red text!This is some red text!This is some red text!This is some red text!This is some red text!This is some red text!This is some red text!This is some red text!This is some red text!This is some red text!This is some red text!This is some red text!This is some red text!This is some red text!This is some red text!} \\
%Now, let's use the command above (just below \documentclass) that we defined ourselves... we'll explore these more later!
\Red{... and this bold red text!}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment