Author Topic: LaTeX help  (Read 3372 times)

0 Members and 1 Guest are viewing this topic.

Offline deadly7

  • 42
  • x86
  • Hero Member
  • *****
  • Posts: 6496
    • View Profile
LaTeX help
« on: November 07, 2008, 01:11:47 pm »
Hey all-

I'm trying to use LaTeX to write a lab report for bio.. How do I have the following 3 items directly above each other in this order?

\beta-galactosidase
\rightarrow
H_{2}O

I tried this formula but it didn't work, and I dunno what else to do. Maybe an array or a vector? But I don't want the associated braces that come with them..
\displaystyle C_{12}H_{22}O_{11} \over{\beta-galactosidase}\longrightarrow \under{H_{2}O}
[17:42:21.609] <Ergot> Kutsuju you're girlfrieds pussy must be a 403 error for you
 [17:42:25.585] <Ergot> FORBIDDEN

on IRC playing T&T++
<iago> He is unarmed
<Hitmen> he has no arms?!

on AIM with a drunk mythix:
(00:50:05) Mythix: Deadly
(00:50:11) Mythix: I'm going to fuck that red dot out of your head.
(00:50:15) Mythix: with my nine

Offline Sidoh

  • x86
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: LaTeX help
« Reply #1 on: November 07, 2008, 01:49:35 pm »
Use tables?  The array/vector structures don't automatically add braces, by the way.

This should work fine (http://t.sidoh.org/?OhAIEA==):
\begin{tabular}{l}
$\beta-galactosidase$ \\
$\rightarrow$ \\
$H_2O$ \\
\end{tabular}

If that's not what you're looking for, I don't think I understand what you're asking.  Maybe you can upload a handwritten version?

Offline deadly7

  • 42
  • x86
  • Hero Member
  • *****
  • Posts: 6496
    • View Profile
Re: LaTeX help
« Reply #2 on: November 07, 2008, 01:56:30 pm »
Thanks, Sidoh, but I foudn another way around it. I tried a matrix and it had the text centered above the arrow like I wanted.. here's the final version of the entire rxn:
\displaystyle C_{12}H_{22}O_{11} \begin{matrix}
\beta-galactosidase \\
\longrightarrow \\
H_{2}O
\end{matrix}
C_{6}H_{12}O_{6} (Galactose) + C_{6}H_{12}O_{6} (Glucose)


Incidentally, have you looked at the Chem Latex package? I don't know if it's actually any useful or not but it may be worth looking into: http://hypography.com/forums/chemistry/14321-chemistry-latex-package-please-read.html
[17:42:21.609] <Ergot> Kutsuju you're girlfrieds pussy must be a 403 error for you
 [17:42:25.585] <Ergot> FORBIDDEN

on IRC playing T&T++
<iago> He is unarmed
<Hitmen> he has no arms?!

on AIM with a drunk mythix:
(00:50:05) Mythix: Deadly
(00:50:11) Mythix: I'm going to fuck that red dot out of your head.
(00:50:15) Mythix: with my nine

Offline Sidoh

  • x86
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: LaTeX help
« Reply #3 on: November 07, 2008, 01:58:40 pm »
Oh, I see what it was you were wanting.  I couldn't really see what you meant by your wording.  Pictures are much easier. :D

Nah.  I have no use for it.  However, if you'd like me to install it for use in latex.sidoh.org, I can probably look into it if you'd like.

Offline Sidoh

  • x86
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: LaTeX help
« Reply #4 on: November 07, 2008, 02:05:17 pm »
Incidentally, you might consider enclosing things that should be in "text mode" instead of "math mode" in dollar-signs.  Note that this is not how it would work if you were composing a LaTeX document (it'd be the inverse), but because the way this thing is set up, everything is in math mode by default.

Example:
[tex]\displaystyle C_{12}H_{22}O_{11} \begin{matrix}
\beta-$galactosidase$ \\
\longrightarrow \\
H_{2}O
\end{matrix}
C_{6}H_{12}O_{6} ($Galactose$) + C_{6}H_{12}O_{6} ($Glucose$)[/tex]