# What program do you guys use to write a paper?

jhae2.718
Gold Member
Code:
[B]\documentclass[/B][10pt,a4paper]{article}
[B]\usepackage[/B][latin1]{inputenc}
[B]\usepackage[/B]{amsmath}
[B]\usepackage[/B]{amsfonts}
[B]\usepackage[/B]{amssymb}
[B]\author[/B]{Author}

[B]\newtheorem[/B]{theorem}{Theorem}[section]
[B]\newtheorem[/B]{lemma}[theorem]{Lemma}
[B]\newenvironment[/B]{proof}[1][Proof]{[B]\begin[/B]{trivlist}
[B]\item[/B][[B]\hskip \labelsep[/B] {[B]\bfseries[/B] #1}]}{[B]\end[/B]{trivlist}}

[B]\begin[/B]{document}
Prove $4^k+5$ is divisible by 3. [I]% Use $...$ for inline math. It's not necessary to put a single character in braces for (super|sub)scripts.[/I]
[B]\begin[/B]{equation*}
4^{k}+5 =2^{2k}-1+6 [I]% Newlines (\\) don't work in the equation environment. Use align. Asterisks suppress numbering.[/I]
[B]\end[/B]{equation*}
Here we introduce a lemma

[B]\begin[/B]{lemma}
If $n$ is not divisible by 3, then $n^2-1$ is divisible by 3.
[B]\end[/B]{lemma}

[B]\begin[/B]{proof}
if $n$ is divisible by 3,
[B]\begin[/B]{align*} [I]% This is the align environment. Use it for multiline equations/etc. The ampersand is the alignment position.[/I]
&[B]\implies[/B] n[B]\equiv[/B][B] \pm[/B] 1 [B]\pmod[/B] [B]3\\[/B]
&[B]\implies[/B] n^2[B]\equiv[/B] 1 [B]\pmod[/B] 3[B]\\[/B]
&[B]\implies[/B] n^2 - 1 [B]\equiv[/B] 0 [B]\pmod[/B] 3
[B]\end[/B]{align*}
[B]\end[/B]{proof}
[B]\end[/B]{document}
Does this work better? I borrowed the custom theorems and environments from http://www.maths.tcd.ie/~dwilkins/LaTeXPrimer/Theorems.html.

it works without any error! thanks

To insert an equation in OpenOffice/StarOffice, go to Insert->Object->Formula. Then you can do all (or all within reasonable limits) you can do with LaTeX.

Hepth
Gold Member
I use LED as a Windows based latex editor

jhae2.718
Gold Member
Personally, I couldn't imagine using anything but LaTeX for writing a paper.

Hi again

How do we skip a line in latex and move on to next paragraph?
I tried \\ and \newline command but it gives me bad boxes
I also tried \vspace{30mm} command but it is inconsistent every time I do my homework.
Is ther a better way?

MATLABdude