Math Is Fun Forum
  Discussion about math, puzzles, games and fun.   Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ • π ƒ -¹ ² ³ °

You are not logged in.

#76 2010-04-19 17:02:36

bobbym
Administrator
From: Bumpkinland
Registered: 2009-04-12
Posts: 86,636

Re: LaTeX - A Crash Course

Hi Amarylli$;

Like this:


In mathematics, you don't understand things. You just get used to them.
Of course that result can be rigorously obtained, but who cares?
Combinatorics is Algebra and Algebra is Combinatorics.

Offline

#77 2010-12-17 13:55:49

Au101
Member
Registered: 2010-12-01
Posts: 286

Re: LaTeX - A Crash Course

Can I offer a suggestion regarding the typesetting of matrices. The array environment is very useful, however, there is a dedicated environment which some may find useful, simply use:

\begin{φmatrix}
\end{φmatrix}

Where φ is a variable. pmatrix will produce a matrix with parentheses, or standard brackets, bmatrix one with square brackets, Bmatrix one with braces, or curly brackets, vmatrix one with straight lines and Vmatrix one with double straight lines. Simply using matrix will create a simple array, with no brackets of any kind. As before entries are separated with & and \\ will drop a line. Note adding \\[φpt] will leave a gap of φ point. Seeing as LaTeX is, by default, usually 12pt, I suggest \\[12pt].

To exemplify

\begin{bmatrix}
a & b \\
c & d
\end{bmatrix}

Produces


\begin{vmatrix}
a & b \\
c & d
\end{vmatrix}

Produces


etc.

Last edited by Au101 (2010-12-17 13:58:46)

Offline

#78 2011-10-09 01:50:32

loida
Member
Registered: 2009-11-12
Posts: 32

Re: LaTeX - A Crash Course

hi there.. does anybody know how do i get characterictic function (not \chi , i need symbol with 1 ) in latex? i can't find it..

Last edited by loida (2011-10-09 02:00:29)

Offline

#79 2011-10-09 01:57:08

bobbym
Administrator
From: Bumpkinland
Registered: 2009-04-12
Posts: 86,636

Re: LaTeX - A Crash Course


In mathematics, you don't understand things. You just get used to them.
Of course that result can be rigorously obtained, but who cares?
Combinatorics is Algebra and Algebra is Combinatorics.

Offline

#80 2011-10-09 01:59:21

anonimnystefy
Real Member
From: The Foundation
Registered: 2011-05-23
Posts: 15,522

Re: LaTeX - A Crash Course

hi loida

is that it?


“Here lies the reader who will never open this book. He is forever dead.

“Taking a new step, uttering a new word, is what people fear most.” ― Fyodor Dostoyevsky, Crime and Punishment

Offline

#81 2011-10-09 02:06:39

loida
Member
Registered: 2009-11-12
Posts: 32

Re: LaTeX - A Crash Course

great.. thank you bobbym and anonimnystefy

it's
\usepackage{ bbold }
\mathbb{1}

Offline

#82 2011-10-09 02:11:47

bobbym
Administrator
From: Bumpkinland
Registered: 2009-04-12
Posts: 86,636

Re: LaTeX - A Crash Course

Hi loida;

We cannot use packages in this latex.

Is that essentially the same symbol?


In mathematics, you don't understand things. You just get used to them.
Of course that result can be rigorously obtained, but who cares?
Combinatorics is Algebra and Algebra is Combinatorics.

Offline

#83 2011-10-09 02:16:41

loida
Member
Registered: 2009-11-12
Posts: 32

Re: LaTeX - A Crash Course

no..i don't how to get it here..

Offline

#84 2011-10-09 02:17:52

bobbym
Administrator
From: Bumpkinland
Registered: 2009-04-12
Posts: 86,636

Re: LaTeX - A Crash Course

That is what I thought. How did you get the answer then?


In mathematics, you don't understand things. You just get used to them.
Of course that result can be rigorously obtained, but who cares?
Combinatorics is Algebra and Algebra is Combinatorics.

Offline

#85 2011-10-09 02:20:10

loida
Member
Registered: 2009-11-12
Posts: 32

Re: LaTeX - A Crash Course

your site helped me..i just drew 26419c3e2b6ed53df4891ac722a3d1e0.png

Last edited by loida (2011-10-09 02:22:02)

Offline

#86 2011-10-09 02:23:11

bobbym
Administrator
From: Bumpkinland
Registered: 2009-04-12
Posts: 86,636

Re: LaTeX - A Crash Course

Hi;

Okay, very good, that site is useful.


In mathematics, you don't understand things. You just get used to them.
Of course that result can be rigorously obtained, but who cares?
Combinatorics is Algebra and Algebra is Combinatorics.

Offline

#87 2011-10-09 02:24:29

loida
Member
Registered: 2009-11-12
Posts: 32

Re: LaTeX - A Crash Course

yes, site is wonderful..thank you very much for sharing

Offline

#88 2011-10-09 02:25:21

bobbym
Administrator
From: Bumpkinland
Registered: 2009-04-12
Posts: 86,636

Re: LaTeX - A Crash Course

Your welcome.


In mathematics, you don't understand things. You just get used to them.
Of course that result can be rigorously obtained, but who cares?
Combinatorics is Algebra and Algebra is Combinatorics.

Offline

#89 2011-10-09 03:47:19

Au101
Member
Registered: 2010-12-01
Posts: 286

Re: LaTeX - A Crash Course

Hi, yeah, I won't go into the details, but basically LaTeX is a mark-up language, and they way mark-up works - as you will probably have realised - is that if you want your text to appear in a certain way - such as to be in bold face - then you 'mark up' the text. i.e. you use special sequences of characters (called control sequences) to induce an effect (e.g. \textbf{Hi} makes Hi become Hi. textbf is the control sequence and the \ is known as the escape character, which escapes the control sequence. This means that the control sequence is interpreted as a command, rather than just normal text.) Anyway, I probably could have explained that better, but it's not very important, so don't worry if you didn't follow it. The main point is that these control sequences are interpreted by a renderer, which creates the final document. Now, the renderer already 'knows' the basic commands, such as \frac{x}{y}, however, we can also write packages which extend LaTeX beyond these very basic functions. Now, bbold is an example of a package which was written to give LaTeX more functionality. If our renderer doesn't know how to interpret \mathbb{1} in the way we want it to, then we have to load that package, and then the renderer will use the information contained in that package to interpret our control sequence. Otherwise, it will use the standard interpretation. IIn this case, the mathsisfun renderer does know the standard interpretation (bobbym's symbol) but not the interpretation you want. If you ever use your own renderer and write LaTeX for yourself outside of this forum, then you can use the bbold package and extend your own LaTeX capabilities. However, the mathsisfun forum (for very good reasons, mostly simplicity but also to prevent abuse) does not support the loading of extra packages, so we have to make do with the functionality we have.

Last edited by Au101 (2011-10-09 03:56:28)

Offline

#90 2011-10-09 08:26:21

loida
Member
Registered: 2009-11-12
Posts: 32

Re: LaTeX - A Crash Course

hey.. how do i put .gif in latex?

Offline

#91 2011-10-09 19:02:20

Au101
Member
Registered: 2010-12-01
Posts: 286

Re: LaTeX - A Crash Course

Hi smile

Is that on the forums or at home? On the forums, you cannot insert any pictures in LaTeX, you must use the standard bbcode. At home, if you are using graphicx, the supported image formats really depend on the renderer which you are using, however, I do not know of any renderer which supports .gif. pdflatex - the most common and, indeed, useful one, will only support .jpg, .png and .pdf, to the best of my knowledge. It may have expanded its abilities by now, or there may be a package which can do something clever and allow .gif files to be inserted (almost certainly by converting them to .jpg/.png for you) but I think that this is quite unlikely. Instead you should use one of these formats. Indeed, if you are using it for a diagram, then a vector image in .pdf format will definitely have a much much better effect.

Last edited by Au101 (2011-10-09 19:02:41)

Offline

#92 2011-10-09 20:53:33

loida
Member
Registered: 2009-11-12
Posts: 32

Re: LaTeX - A Crash Course

thank you Au..
I need it at home.. can you give me the code?

Offline

#93 2011-10-09 22:15:49

Au101
Member
Registered: 2010-12-01
Posts: 286

Re: LaTeX - A Crash Course

Hi Ioida smile

In your preamble write

\usepackage{graphicx}

Graphicx will probably look for the picture in whichever directory the .tex file is in, but it's best to specify the graphicspath - especially if your picture is somewhere else on the system, in which case it won't find it, so write underneath that (yes, two braces, it works better, apparently):

\graphicspath{{filepath}}

Then, wherever you want the picture:

\includegraphics{filename}

It should not be necessary to include the extension. You can also scale the picture using

\includegraphics[scale=x]{filename}

Give x as a decimal, e.g. 0.5 or 1.8.

You can also use the figure environment if you want captions. There is a lot of information about this in the LaTeX manual (http://en.wikibooks.org/wiki/LaTeX). There are also dedicated forums for LaTeX queries, and - indeed - TeX queries in general, and I suggest that for general TeX questions you go there. Not that I'm not completely happy to help, but you're much more likely to find your answer. Also, please remember that this won't work for .gif, I don't think. You should be using .jpg, .png or .pdf.

Offline

#94 2011-10-09 22:33:52

loida
Member
Registered: 2009-11-12
Posts: 32

Re: LaTeX - A Crash Course

awesome!!! thank you!
i've converted it to .jpg

Offline

#95 2011-10-30 05:15:06

sassygirl
Member
Registered: 2011-10-30
Posts: 3

Re: LaTeX - A Crash Course

UH this is confusing this site is just wow like going down and down to comment and then when i comment i forget what to say or what the topic is about

Offline

#96 2011-10-30 05:20:43

bobbym
Administrator
From: Bumpkinland
Registered: 2009-04-12
Posts: 86,636

Re: LaTeX - A Crash Course

Hi sassygirl;

Welcome to the forum. What is the problem?


In mathematics, you don't understand things. You just get used to them.
Of course that result can be rigorously obtained, but who cares?
Combinatorics is Algebra and Algebra is Combinatorics.

Offline

#97 2011-12-08 08:16:57

djsakds
Guest

Re: LaTeX - A Crash Course

#98 2011-12-08 09:44:48

bobbym
Administrator
From: Bumpkinland
Registered: 2009-04-12
Posts: 86,636

Re: LaTeX - A Crash Course

Hi;

Welcome to the forum!


In mathematics, you don't understand things. You just get used to them.
Of course that result can be rigorously obtained, but who cares?
Combinatorics is Algebra and Algebra is Combinatorics.

Offline

#99 2012-04-10 05:11:30

anonimnystefy
Real Member
From: The Foundation
Registered: 2011-05-23
Posts: 15,522

Re: LaTeX - A Crash Course


“Here lies the reader who will never open this book. He is forever dead.

“Taking a new step, uttering a new word, is what people fear most.” ― Fyodor Dostoyevsky, Crime and Punishment

Offline

#100 2012-04-28 10:15:28

hi2
Guest

Re: LaTeX - A Crash Course

shamethats cool

2x

Board footer

Powered by FluxBB