General ⇒ help getting started
-
- Posts: 10
- Joined: Fri May 18, 2007 3:33 pm
help getting started
Also, when the wizard is on I have to tell it where the file directory is, but it says none of my directories have latex in them. What am I doing wrong. Please help me because I don't know anymore.
I am already feeling like going back to Word!
Thanks a million
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- pumpkinegan
- Posts: 91
- Joined: Thu May 03, 2007 10:29 pm
Re: help getting started
However you should be able to pdfLaTeX right now.
In TeXnicCenter go to Build >> Define Output Profiles. Click on LaTeX => PDF. The "Path to the (La)TeX compiler" should be something like: C:\Program Files (x86)\MiKTeX 2.5\miktex\bin\pdflatex.exe
If this is set correctly you should be able to pdfLaTeX. From the drop build down menu select "LaTeX => PDF" and "Build and View". (Alternatively do this through the build menu).
Note pdfLaTeX only works with pdf, jpeg or png figures.
Patrick.
-
- Posts: 10
- Joined: Fri May 18, 2007 3:33 pm
Re: help getting started

Besides, the path for the wizard does not work: there is no bin file.
- pumpkinegan
- Posts: 91
- Joined: Thu May 03, 2007 10:29 pm
help getting started
More important is to verify that you can compile your tex file to pdf by pdfLaTeX.
Besides, the path for the wizard does not work: there is no bin file.
There is no bin file. In the folder C:\Program Files (x86)\MiKTeX 2.5\miktex\bin (or where ever it is located on your system) you should find the executable pdflatex.exe. You just need to point TeXnicCenter to that location, and compile with pdfLaTeX to get a pdf file.
What happens when you build with LaTeX => PDF? Do you see any files in the folder of you tex file?
-
- Posts: 10
- Joined: Fri May 18, 2007 3:33 pm
Re: help getting started
- pumpkinegan
- Posts: 91
- Joined: Thu May 03, 2007 10:29 pm
help getting started
Code: Select all
\documentclass[12pt,a4paper]{article}
\usepackage{graphicx}
Code: Select all
%%------------------
\begin{figure}[ht]
\centering
\includegraphics[width=\linewidth]{figure_name}
\caption{Description of figure.}
\label{fig:figure_label}%
\end{figure}
%%------------------
- "[ht]" means place "here" and/or at "top" of the page. A "!" before the "h" will try and force it more.
- "\centering" centers the graphic.
- "width=\linewidth" means that the graphic will be the width page margins. Many alternatives exist, such as: "width=6cm" or "width=0.5\linewidth".
- "figure_name" is the name of the figure, and you do not need to specify the file extension (although some may suggest it is a good idea). The actual figure file will have to be in the same folder as the tex file (but there are ways to change this and make the tex folder tidier---ask me if you are interested).
- Remember pdfLaTeX is only compatible with jpg, png, or pdf. If you work with vector (postscript) graphics consider LaTeX => ps2pdf compilation or eps2pdf.exe (a great application to convert eps figures to pdf).
- "\caption" is the figure caption. The figure number is automatically generated.
- "\label" is the figure label. You can reference this figure number anywhere in the document. For example: "As shown in Figure \ref{fig:figure_label} ...".
-
- Posts: 10
- Joined: Fri May 18, 2007 3:33 pm
Re: help getting started
Maybe it is Acrobat that is wrong, I don't know. Does anybody know what's wrong?
- pumpkinegan
- Posts: 91
- Joined: Thu May 03, 2007 10:29 pm
help getting started
Code: Select all
\documentclass[12pt,a4paper]{article}
\usepackage{graphicx}
\usepackage{url}
\begin{document}
\title{Title of document}
\author{Firstname Surname}
\maketitle
\section{Name of Section}
Default text .....
\begin{figure}[ht]
\centering
\includegraphics[width=\linewidth]{figure_name}
\caption{Description of figure.}
\label{fig:figure_label}%
\end{figure}
Default text .....
\end{document}
-
- Posts: 10
- Joined: Fri May 18, 2007 3:33 pm
Re: help getting started
- pumpkinegan
- Posts: 91
- Joined: Thu May 03, 2007 10:29 pm
Re: help getting started
What LaTeX distribution and operating system are you using and how did you install LaTeX?