Problem opening .pdf in TeXnicCenter



With Adobe Reader 10, I realised that after I build the .tex file, although the .pdf file is generated, when I press F5, the pdf fail to show up.

Here's the solution to the problem. We need to make a slight change to the configuration on the TeXnicCenter if you are using Adobe Reader X/10. Below are the setting that you need to follow. Go to Build -> Define Output Profiles then click on Viewer tab. Make sure you select LaTeX =>PDF then just update values.




By default the Close document command only has the DocClose("%bm.pdf"). This command is not enough because we need to let the Adobe reader know which file that is open that need to be close. So we need to add DocOpen("%bm.pdf") first.

You would also notice that the server is not acroviewR10 :)


I will also put up a new entry for our table problem in LaTex soon! :) LaTex is the BEST!!! HohoHOHOHOHOhoho...

Read more...

How to organise table and images in latex

Aaaa.. yes yes, I know there is this one person who has been looking at this page from time to time. Sorry2. I have tried to be consistent to put new material on this page but time has gone too fast these last few weeks.

I know I am supposedly give a clean introduction to latex and all, but I think I should skip all that and put selected features which I think has greater importance. Today is on organising table or images in your article.

There are two way of inserting images/tables into your article i.e. either you 1) use the tool from your text editor or 2) copy and paste the syntax from previous images/table then edit what necessary. I always opt the second. I will start of with the 1st method then the 2nd yer kawan2. ;)

If you are using TexnicCenter, you will find this icon as shown in figure below. Yup, the one like the 'cactus' is the insert image icon and next to it is the table.


Let say you click the insert image icon this prompt will come out:


All you have to do is browse your image. The inflation can be very useful. I found it very useful. What it does is it scales your image according to your preset value. Since hands-on is the best way of learning, and so, give it a go and you will know what I mean. The 'caption' and 'label' is self explanatory. Now, one of the main feature is the 'position'. In many predefined .tex, I usually keep it to float. What this mean is "place the image 'here', 'top' or 'bottom' or left it float" in the text. 

Here is one tip, for a professional scientific paper (as I have been told), never force your image to 'here'. 'here' usually refer to image in between text. It should either be at the top of a page or bottom. Never in the middle.

Finally there's the 'expansion'. For a large image and you want is to be the size of a full page, then select the expansion to be stretch into two columns. Yup, imagine doing all this in words! Giler tension! :P

And to the second option. Of course this would only be useful if you have had syntax used which allows you to copy and paste laa kan. :P

And example of the insert figure is as the following:



\begin{figure}[!tbh]
  \centering
  \centerline{\includegraphics[width=.45\columnwidth]{images/eg2.jpg}}
  \caption{Example of heterogenous elements of smart camera architecture}
  \label{fig:eg2}
\end{figure}

Basically, the first method will produce this syntax once you click the OK button. A 45% 'inflation' would be translated into "width=.45\columnwidth". I usually copy and paste since I remember the image name to be associated with. All I have to change is 1) images/filename.jpg, 2) the caption (obviously) and 3) the label fig:filename . The [!tbh] indicates the position. '!' means force the image 't' top 'b' bottom and 'h' here.

Aaa yes yes, before I forget. Again this is just for housekeeping. as you can see I have put  'images/filename.jpg'. It is generally a good idea to keep all images in one folder which in my case I call the folder 'images'. Hence, when inserting the image I would put the folder name and then the image name. A better way than to have "c:\\blaa\blaa\blaaa\filename". It is also good to keep the label name accordingly i.e. for figure you would have for example, fig:name, for table tab:name, or equations eq:name. This will make your referencing (~\ref) a whole lot easier. 

And here is a fun trick. In latex we also have the '\pagebreak' where you put right at the end of a section. This is definitely useful when you have problem getting your images or table at your specified location. And as usual, I really want you to try it for yourselves. Trying generate your paper with and without \pagebreak. You'll see the difference. ;)

Read more...

Knowing your syntax

So if you have managed to start from my previous post, kudos! I hope you have been playing around and not being put off just yet.

So here's the thing, when you just started using your latex, you might not remember what are the syntaxs are. But then of course, like I say, the best is always to start a draft from a conference given latex. That is how I remember starting. But it is worth knowing what the syntaxs mean once you felt like you want to have superior control over your document. HOhohO

So today, I am going to start from the top.
  1. What is 'documentclass'?

Usually when you received a conference latex, in its zip folder, it is important to note that there will usually be a .tex file and a .cls file. The .tex file is where you will write your document. Now, the .cls define your document class. I would suggest you not changing anything in the cls file just yet. Now, if you are going to copy paste it to another folder copy both .tex and .cls file.

In your .tex file, you will see, this
\documentclass[conference]{IEEEtran}
So if you see, there are three parts; 'documentclass', '[conference]' and '{IEEEtran}'. This is where it tells the compiler that "I want the paper to look like the IEEE transaction conference paper". Ok, I might exaggerate a bit. But that is how I would put it in words.

There are many predefined document class and all you have to remember is that the two last part are the main ones that will change how your document will look like. A valid LaTeX document styles are as the followings:
  1. article: 11pt, 12pt, twoside, twocolumn, draft, fleqn, leqno, acm
  2. report: 11pt, 12pt, twoside, twocolumn, draft, fleqn, leqno, acm
  3. letter : 11pt, 12pt, fleqn, leqno, acm
  4. book : 11pt, 12pt, twoside, twocolumn, draft, fleqn, leqno
So instead of "\documentclass[conference]{IEEEtran}", you could do
"\documentclass[twocolumn]{article}"
instead and so on. Try and play around by changing, compiling and look at the result. Didn't I tell you that you only have to change one line to change the look of your paper! ;)

I will touch on the next line soon. I know I should have posted everything sooner than later. ;)


Read more...

Internet~

I know you can find it at a click of button on the web. But these are the collection of common problems which encountered by us and how we get away with it. :D

INTERNET CONNECTION TROUBLE SHOOTING

You thought you have connected to an internet connection (through wireless or cable) i.e. you got the message "Local area connected" or "Wireless connection connected". However, when you click on your internet browser (e.g. internet explorer, firefox, chrome or etc), you got an error message as shown below.



There could be many reasons to this problem. But the usual case besides network connection problem from your internet service provider (ISP) (e.g. tmnet, maxis, aanet or etc) is because your IP property settings. This is how to solve this problem.

1. Start-> Control Panel -> Network Connections

2. Right click on the connection icon then go to Properties


3. A new prompt will come out as figure below

 

4. Click on Internet Protocol (TCP/IP) then click on Properties and a new prompt will come out.



5. Enter you IP address and click OK. Click Ok again to Internet connections prompt. (Where to get the IP address? I will put up another section soon. :))

6. Usually after that, an internet connection is established! Yeay~ 

Read more...

Introducing Latex


Here's the thing, after a year in my research year was the last time I used words for any official matter with regards to publication. What is Latex? I am not going to go into the detail of the construction of Latex. It is enough for you to know that it is an alternative document preparation system somewhat like Words but with more benefits to start using it.

My personal pro statements for Latex:
1. Better control on how you would like your document to look like.
2. Excellent in Maths equations.
3. Perfect for referencing.
4. Could change the whole paper layout by only changing one line. Believe it!!!
5. Positioning images couldn't be a whole lot easier! <-- I just hate when Words start changing the layout and all. And not to forget to mention how I hate the auto style. Grrrr~
And saying that, the cons of Latex would be:
1. The learning curve can be high at first. But once you get hold onto it, you never want to use words again! Trust me. I am a convert! :)
2. Because you have more control hence the need for longer 'text' for table and maths equation.
You guys have just got to try it for yourself to decide. I might be wrong. You might found Words is still the best. So if you want to start using Latex, hence, this post is intended to help you to setup your computer with Latex.

1. Go to Miktex webpage to download the 'package'. There are also installation guide here. This package has the library. Make sure you choose the mirror site that is best for your location.

2. Install the package. Note it is important that you choose either Yes or No (but not "Ask me first") for the option "Install missing packages on-the-fly". This usually takes sometime. Go get yourself a cup of coffee or play with the cat and then come back again. If you got this error "latex foo" this could mean that you might have not done this.

Now, having Miktex along is not enough. You need to have a text editor. There are plenty to go with. I am using a free based editor called the TexnicCenter.

3. So, go to TexnicCenter webpage to download the installer.

4. Once the setup has finished, you need to connect TexnicCenter to Miktex. To enter the path you need point to C:\Programm Files\MikTeX 2.7\miktex\bin.

5. Then make sure the Latex -> pdf has been selected. This is to inform the type of output form you want from TexnicCenter. You could also choose ghostscript.

6. Complete with the setup wizard. And there you have it, you could start using Latex!

Oh wait a minute, what should you do with a new blank page? To start with, I would suggest that you find yourself a .tex file. Usually, for different conferences or journals, they will give their preferred latex form i.e. you can download the .tex file. An example is the latex8.tex and the image below shows a snippet of the latex8.tex. Don't be put off by the look of it. Yes, don't judge the book by it's cover. It might look like a whole lot of coding thing, but the truth is, you just have to assume you are looking on a normal notepad with only some funny text (syntax command).


To try and see what is published click on "1". And to View the generated .pdf file click "2". (note: I would recommend you do "1" a few times instead of only once and then only "2")

With that you have just successfully work on your first latex document! Yeay!!! :D I will touch on the command in my next latex entry. Cheers! Happy experimenting! ;)

Read more...

Internet connection trouble shooting

You thought you have connected to an internet connection (through wireless or cable) i.e. you got the message "Local area connected" or "Wireless connection connected". However, when you click on your internet browser (e.g. internet explorer, firefox, chrome or etc), you got an error message as shown below.




There could be many reasons to this problem. But the usual case besides network connection problem from your internet service provider (ISP) (e.g. tmnet, maxis, aanet or etc) is because your IP property settings. This is how to solve this problem.


1. Start-> Control Panel -> Network Connections

2. Right click on the connection icon then go to Properties


3. A new prompt will come out as figure below


4. Click on Internet Protocol (TCP/IP) then click on Properties and a new prompt will come out.


5. Enter you IP address and click OK. Click Ok again to Internet connections prompt. (Where to get the IP address? I will put up another section soon. :))

6. Usually after that, an internet connection is established! Yeay~

Read more...

Followers



Stats

  © Blogger template Shush by Ourblogtemplates.com 2009

Back to TOP