| New Reply |
How to post this Latex code on forum? |
Share Thread | Thread Tools |
| Oct17-10, 03:05 AM | #1 |
|
|
How to post this Latex code on forum?
Hello!
I just finished typing up my first Latex document for a proof I worked on. Now, I'm having trouble posting it on these forums. Here is the source code... \begin{document} $f : \mathbb{R} \Rightarrow \mathbb{R}$ is odd $\;\Longleftrightarrow \;f(-x) = -f(x) \;\forall x$. Show that if $f : \mathbb{R} \Rightarrow \mathbb{R}$ is odd and with a retriction to $[0, \infty)$ is strictly increasing, then $f : \mathbb{R} \Rightarrow \mathbb{R}$ is stricly increasing. \begin{proof} Suppose $f : \mathbb{R} \Rightarrow \mathbb{R}$ is odd and strictly increasing on $[0, \infty)$. Consider $x_n, x_{n+1} \in [0, \infty)$, where $n \in \mathbb{N}$ and $x_{n+1} > x_n$. Since $f$ is strictly increasing in $[0, \infty)$, then $f(x_{n+1}) > f(x_n)$. Additionally, since $f$ is odd, $f(-x_n) = -f(x_n)$ and $f(-x_{n+1}) = -f(x_{n+1})$. Thus, \begin{align*} \\f(x_{n+1}) > f(x_n) \\\Rightarrow -f(x_n) > -f(x_{n+1}) \\\Rightarrow f(-x_n) > f(-x_{n+1}) \\\Rightarrow -x_n > -x_{n+1} \end{align*} \\Therefore, $f$ is strictly increasing on $(-\infty, 0) \cup [0, \infty)$. Hence, $f : \mathbb{R} \Rightarrow \mathbb{R}$ is strictly increasing. \end{proof} \end{document} It compiles fine using TeXWorks, although I'm not sure how to modify it so I can post it here. Thanks for the help! |
| Oct17-10, 03:11 AM | #2 |
|
This forum uses [tex ] and [/tex ] without the space to enclose latex code.
|
| Oct17-10, 03:15 AM | #3 |
|
|
Thanks, although I already knew that. I was hoping for a different explanation because I tried to simply put those tags in but it's not working.
|
| Oct17-10, 03:57 AM | #4 |
|
|
How to post this Latex code on forum?
You need to put tex tags wherever you have $ signs. All the spacing using slashes is irrelevant for the forum, as are things like \begin{document} or \begin{proof}
|
| Oct17-10, 04:48 AM | #5 |
|
Mentor
|
The [ tex ] tags provides a subset of LaTeX. The underlying engine places LaTeX in math mode. Your document is in LR mode, not math mode.
A couple of alternatives: 1. Write your text outside of the [ tex ] tags, using those tags for math mode stuff. You can use the [ itex ] tags for inline math mode (e.g., $ f(x) $), but that doesn't work quite as nicely as it does in LaTeX. 2. Generate a pdf and post it as a link. |
| New Reply |
| Thread Tools | |
Similar Threads for: How to post this Latex code on forum?
|
||||
| Thread | Forum | Replies | ||
| Latex Code | Math & Science Software | 4 | ||
| Relation between LaTeX Code: \\theta and LaTeX Code: \\mu ? | Introductory Physics Homework | 0 | ||
| [Q]Why does latex code fail to post fomula now? | Forum Feedback & Announcements | 7 | ||
| Convert latex code to fortran code? | Math & Science Software | 1 | ||
| LaTeX Code | General Discussion | 1 | ||