What program do you guys use to write a paper?

  • Thread starter l-1j-cho
  • Start date
  • #26
jhae2.718
Gold Member
1,161
20
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.
 
  • #27
104
0
it works without any error! thanks
 
  • #28
724
0
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.
 
  • #29
Hepth
Gold Member
448
39
I use LED as a Windows based latex editor
 
  • #30
jhae2.718
Gold Member
1,161
20
Personally, I couldn't imagine using anything but LaTeX for writing a paper.
 
  • #31
104
0
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?
 
  • #32
MATLABdude
Science Advisor
1,655
4
  • #33
383
35
I'm not understanding why "\\" does not work. Anyways, the normal way to start a new paragraph in tex is an empty line between the paragraphs.
 
  • #34
MATLABdude
Science Advisor
1,655
4
I'm not understanding why "\\" does not work. Anyways, the normal way to start a new paragraph in tex is an empty line between the paragraphs.
That's just a line break. I don't know if you can use it multiple times to leave white space.
 

Related Threads for: What program do you guys use to write a paper?

  • Last Post
Replies
3
Views
2K
  • Last Post
2
Replies
29
Views
34K
  • Last Post
Replies
8
Views
6K
  • Last Post
Replies
2
Views
3K
Replies
5
Views
957
Replies
2
Views
741
Replies
1
Views
5K
Top