Text FormattingLatex: Definitions on the left of the page?

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
AlexanderNY
Posts: 1
Joined: Tue Dec 24, 2013 4:13 am

Latex: Definitions on the left of the page?

Post by AlexanderNY »

Back in my grad-school days, I used LaTeX 2.09 to create summaries of the
topics we studied.

A simple example can be found in the attachment.

I used to have a custom environment which allowed things like Definitions
to be placed on the left of the page. Unfortunately, I forgot how to do this.

Any ideas?

Regards,

AlexanderNY
Attachments
01page.pdf
(56.24 KiB) Downloaded 405 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Latex: Definitions on the left of the page?

Post by cgnieder »

Hi Alexander,

Welcome to the LaTeX community!
AlexanderNY wrote:Back in my grad-school days, I used LaTeX 2.09 to create summaries of the
topics we studied.
So it's been a while? LaTeX2.09 has been superseded by LaTeX2e about twenty years ago...
AlexanderNY wrote:A simple example can be found in the attachment.

I used to have a custom environment which allowed things like Definitions
to be placed on the left of the page. Unfortunately, I forgot how to do this.

Any ideas?

Regards,

AlexanderNY
Since I've never used 2.09 I'll show an example of how to do this with 2e:

Code: Select all

\documentclass{article}
\usepackage[utf8]{inputenc}

\usepackage{amsmath}
\renewcommand*\Re{\operatorname{Re}}
\renewcommand*\Im{\operatorname{Im}}

\newcommand*\mytitle[1]
  {\par\noindent\llap{\bfseries #1:\hspace*{\marginparsep}}\ignorespaces}

\usepackage{showframe}% show page dimensions
\begin{document}

\section{A Section Title}

\mytitle{Properties}
For all complex numbers the following properties hold:
\begin{enumerate}
  \item $(z^*)^* = z$
  \item $(zw)^* = z^*w^*$
  \item $(z +w)^* = z^* + w^*$
  \item $(z/w)^* = (z)^* /(w)^*$
  \item $z + z^* = 2 \Re(z)$
  \item $ z - z^* = 2i \Im(z)$
  \item $\arg(z^*) = - \arg(z)$
  \item $\arg(zw) = \arg(z) + \arg(w)$
  \item $\arg(z/w) = \arg(z) - \arg(w)$
\end{enumerate}

\mytitle{Euler}
$e^{inx} = \cos nx + i \sin nx$

\end{document}
Regards
site moderator & package author
Post Reply