GeneralJust a few things

General information and discussion about TeXnicCenter
Mini
Posts: 73
Joined: Thu Aug 06, 2009 12:46 pm

Just a few things

Post by Mini »

Hello there,

I'm new to LateX and I have been fiddling around with TeXnicCenter. I think I've installed ProteX with it.

I just have a few question. I've searched documentation and I'm yet to find how to install packages. I'd like to install the polynom package but I have no clue.

Also, when I begin to type something like \documentclass{ ... it comes up with a suggestion below. Would I be able to press something that would type the suggestion out, without me having to type it out?

I don't quite understand LateX yet. Does it do calculations for me? How would I graph functions (both real functions and complex vectors on the argand diagram).

Finally, I'd like to achieve something like I've attached, the symbol underneath the brackets. How would I do this?

Thank you very much and I apologise if these have been answered somewhere, if they have then feel free to simply point me there.

Thank you again.
Attachments
untitled.JPG
untitled.JPG (23.72 KiB) Viewed 6194 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
renno
Posts: 54
Joined: Thu Jun 07, 2007 7:16 pm

Just a few things

Post by renno »

Hello there,

If you are using MikTeX, you can simple go to: Start ==> MikTeX ==> Package Manager (or settings). There you can look for the package you want, and simple press + to install it.

As far as I know (I use TeXnicCenter), pressing enter and getting the suggestion typed out for you does not work. I think it is only a guidance.

You can use TikZ and PGF http://sourceforge.net/projects/pgf/ to produce drawings and such. However, I am not sure about the calculation. As far as I know, you cannot do calculations in LaTeX, but somebody might know more. Maybe you want to check this later.

As for the image you uploaded, here is how you can do it:

\[
(\underbrace{1+1.01+1.01^2+\cdots+1.01^29}_{\textrm{30 terms}})
\]

I hope this helps,

Take care,
If there is no way, we will make one...
Hanibal
torbjorn t.
Posts: 162
Joined: Wed Jun 17, 2009 10:18 pm

Just a few things

Post by torbjorn t. »

For auto-completion, try Ctrl + Space.

And speaking of PGF/Tikz, Geogebra will let you export to Tikz-code, so you can create drawings and plot graphs in Geogebra, generate the Tikz-code and copy that to your .tex-document.

Note that I've only tried this a couple of times, and found that I've had to modify the code slightly to get the desired result.
Mini
Posts: 73
Joined: Thu Aug 06, 2009 12:46 pm

Just a few things

Post by Mini »

renno wrote: As for the image you uploaded, here is how you can do it:

\[
(\underbrace{1+1.01+1.01^2+\cdots+1.01^29}_{\textrm{30 terms}})
\]
Hi, thanks for that. Is there a list of these things somewhere that I could refer to?

Thank you again!

EDIT: Just a few more questions... Does MiKTeX have all packages? If not how could I install ones that I may find on the net at a later stage?

How would I do diagrams for say, circle geometry, triangles for vector-force diagrams, and trajectory paths for projectile motion?

Thank you once again :D
Mini
Posts: 73
Joined: Thu Aug 06, 2009 12:46 pm

Just a few things

Post by Mini »

Hello again,

I'm having trouble using pgf. I feel like such a noob, why does LaTeX have to be so hard =\

The code I'm using is:

Code: Select all

\documentclass[a4paper,12pt]
\begin{document}
\begin{tikzpicture}
\draw (-1.5,0) -- (1.5,0)
\draw (0,-1.5) -- (0,1.5)
\end{tikzpicture}
\end{document}
and I get 101 errors when I produce my PDF file. I've attached the log file. What am I doing wrong?

I installed pgf and xcolor using MiKTeX and all seemed well... :(

Thanks in advanced.
Attachments
LaTeX1.log
(44.93 KiB) Downloaded 380 times
Mini
Posts: 73
Joined: Thu Aug 06, 2009 12:46 pm

Re: Just a few things

Post by Mini »

Hi again,

Sorry for so many posts...

I have a feeling that I haven't installed the packages properly for pgf... *sigh* ... MiKTeX shows that xcolor and pgf are installed, so what could be wrong?

Thanks in advanced.
Mini
Posts: 73
Joined: Thu Aug 06, 2009 12:46 pm

Re: Just a few things

Post by Mini »

Okay, you'll probably be sick and tired of me pretty soon, but... I fiddled around with it and I finally got the basics of pgf to work.

Now, when I graph functions (real functions), I'd like to mark any stationary points, pts of inflexions and asymptotes. How would I do this?

Also, would this be covered in any tutorials?

Thanks again! =D
User avatar
renno
Posts: 54
Joined: Thu Jun 07, 2007 7:16 pm

Just a few things

Post by renno »

Hey there,

The correct code is below

Code: Select all

\documentclass[a4paper,12pt]{article}

\usepackage{tikz}

\begin{document}

\begin{tikzpicture}
\draw (-1.5,0) -- (1.5,0);
\draw (0,-1.5) -- (0,1.5);
\end{tikzpicture}

\end{document}
You should always include the class you are using (article, book, report, letter, etc...). That's for one thing. The other issue is that when using TikZ, all the commands should be ended with a ";", and you need to declare before you start your document the packages you will be using. Now all should work...

Cheers,
If there is no way, we will make one...
Hanibal
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

Just a few things

Post by localghost »

Mini wrote:Hello there,

I'm new to LateX and I have been fiddling around with TeXnicCenter. I think I've installed ProteX with it.

I just have a few question. I've searched documentation and I'm yet to find how to install packages. I'd like to install the polynom package but I have no clue.

Also, when I begin to type something like \documentclass{ ... it comes up with a suggestion below. Would I be able to press something that would type the suggestion out, without me having to type it out?

I don't quite understand LateX yet. Does it do calculations for me? How would I graph functions (both real functions and complex vectors on the argand diagram).

Finally, I'd like to achieve something like I've attached, the symbol underneath the brackets. How would I do this?

Thank you very much and I apologise if these have been answered somewhere, if they have then feel free to simply point me there.

Thank you again.
Please, do not mix several topics in one thread. Some of the issues belong to TeXnicCenter, others are related to your distribution (ProTeXt) or to graphics and should be placed in the according forum. Keep that in mind for future requests.


Best regards and welcome to the board
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
Mini
Posts: 73
Joined: Thu Aug 06, 2009 12:46 pm

Just a few things

Post by Mini »

renno wrote: You should always include the class you are using (article, book, report, letter, etc...). That's for one thing. The other issue is that when using TikZ, all the commands should be ended with a ";", and you need to declare before you start your document the packages you will be using. Now all should work...
Thanks for that.

I actually copied that from their own documentations. -_-;
localghost wrote: Please, do not mix several topics in one thread. Some of the issues belong to TeXnicCenter, others are related to your distribution (ProTeXt) or to graphics and should be placed in the according forum. Keep that in mind for future requests.
Thorsten
Sorry, and thank you :)
Post Reply