# WordPress.org

Ready to get started?

## LaTeX for WordPress Can this plugin generate text documents too ? (1 post)

1. tikaylou
Member
Posted 1 year ago #

I spent many hours playing with this example found here : https://pangea.stanford.edu/computing/unix/formatting/latexexample.php

How can I make it work? I often have errors such as invalid commands, etc.

% Example LaTeX document for GP111 - note % sign indicates a comment
\documentstyle[11pt]{article}
% Default margins are too wide all the way around. I reset them here
\setlength{\topmargin}{-.5in}
\setlength{\textheight}{9in}
\setlength{\oddsidemargin}{.125in}
\setlength{\textwidth}{6.25in}
\begin{document}
\title{LaTeX Typesetting By Example}
\author{Phil Farrell\\
Stanford University School of Earth Sciences}
\renewcommand{\today}{November 2, 1994}
\maketitle
This article demonstrates a basic set of LaTeX formatting commands.
Compare the typeset output side-by-side with the input document.

This topic has been closed to new replies.