Tuesday, June 29, 2010

Using Conditional Paragraphs

The conditional Paragraphs works in the same manner as a piece of code with some condition works in C++.
Here also in Open Office we need to specify some sort of condition So, that a paragraph is hide and if condition goes wrong other paragraph will be hide.
BUT We want to have whole text in report and some of the text need not to be there in my presentation.
So, for that Go to OOwriter and after that
Select the paragraph which you want to hide. Then,
Go to
1)Insert->Section
You will see a screen as follow:

2)Make a section
3)Insert some condition that hides your paragraph
i.e. here insert condition Doc!=Report
4)Then click on Insert.
Making The Condition True / False
For making condition True / False so as to hide or unhide the paragraph You need to :
1) Go to Insert->Fields->Other
You will be prompted to following window:

2) Click on Variable tab after that allot name to your variable . Here we need variable Doc.
3) After that select format which is to be text.
4)Next enter value for variable which is Report if you want report and presentation if you want presentation. Check Invisible Box otherwise it will insert variable too.
After that you need to change just this value for report / presentation.

Thursday, June 24, 2010

Using Styles & Formatting, Conditional paragraphs in OOwriter

OK Friends till now whatever i had discussed i think is new for you. Even when i heard about LaTeX i can not even pronounce it in write way. But i think it is a great thing means how easy it is by changing just a single option you can have both your report as well as presentation in no time.

You can have most complicated equations in your document also. See below:

But, This all can be done in Open Office. Means you can change your report to presentation using just oowriter.

In Open Office writer there is option in,

Format->Styles&Formatting

where you will find different styles you can opt.

We need not to define font size,type and extra characteristics for a page title.
Just choose style Title and after that when enter is pressed automatically subtitle starts with it's different style and after that your text body goes on with normal 12 pt. size and so on. This is what you need to choose some sort of styles.

You can opt for presentation style for your your presentation.

2) The second part includes conditional paragraph which is good feature that is used when document is to be made look at different conditions.

Means we can set different paragraphs for documents that seems to be more elaborated.

and for presentation some what text can set different which is more precise.

This weightage of the contents is controlled by conditional paragraphs.

Wednesday, June 23, 2010

Using pdfscreen package in LaTeX

Today i am going to discuss with you that how you are able to get both print form and screen viewable document by changing single option in this pdfscreen package. You just need to include following code in preamble part:-

\documentclass[a4paper,11pt]{article}
\usepackage{xspace,colortbl}
\usepackage[screen,panelleft,gray,paneltoc,sectionbreak]{pdfscreen}
\margins{.75in}{.75in}{.75in}{.75in}
\screensize{6.25in}{8in}
\overlay{lightsteelblue.pdf }
\begin{document}
in the very third line if you change screen to print format it will make a form called print which acts as your report format.
\screensize is used when you need to view it on your screen or in short you can say that you want to make presentation.
\sectionbreak is used so that a pagebreak can be inserted in your screen view after you write each section.
If you want to view example click on PRINT and SCREEN
But let me clear you one thing if you are going to compile it on texmaker it will surely give you problem you may try but each time you will not get desired
output see my output which i got when i was using texmaker SEE.
So, from my this experience i will prefer to use console mode for tex compilation rather than gui softwares for compiling tex files.
So, follow the same command which i discussed on the JUNE 4 i.e.
using command $pdflatex file.tex
Then you will get desired output. Also preferably use Acro reader in ubuntu to view your pdf files.

Sunday, June 20, 2010

DruTeX


DruTeX is a powerful LaTeX module for Drupal. It can be used to display mathematics written in LaTeX as images inline with other text, or separately as a downloadable pdf.

It is having following features:

* rendering of maths or arbitrary LaTeX via latex + ImageMagic / dvipng
* support of classical LaTeX-math environments like $x^2$, \[ x^2 \]
* some plain latex2html and html2latex facilities (no external program
needed)
* pdf generation of nodes (with LaTeX)
* highly-configurable input formats
* security-enhanced modes (to allow even anonymous users to write latex)
* Drupal / LaTeX UTF-8 (utf8) support
* Able to remotely render LaTeX on a foreign server if your primary server doesn't support LaTeX

Click Here for download DruTeX module

Friday, June 18, 2010

LaTeX Online compiler

Till now I had discussed how to Use LaTeX by installing LaTeX based gui softwares on your sytem. but you can also have Online LaTeX compilers for getting pdf outputs from your LaTeX code.

See Here::

Go To LaTeX Online Compiler

Wednesday, June 16, 2010

HOW TO CREATE REPORT AND PRESENTATION OF A SAME TOPIC IN SHORT TIME


Hello Everyone here i am going to discuss with you people that how to create a report of topic and more than that how to create presentation from that report..

I am discussing the task given to me by my Prof. Dr. H.S. Rai during summer training 2010. I was allowed to do use any software any script. But i selected the Latex..

As I had already discussed about the basic of LaTeX typesetting system and if you forgot you can refer to above posts..

So, To do this task you firstly need..(Remember i am using Ubuntu 10.04 )

1) A LaTeX based graphical editor I installed Texmaker. You can Download from here....

2) After that you have to create your .tex file in this editor that lokks like a report. Get its code from here..

3) Quick build it using F1 key.. You can have your .dvi file from which you can make pdf file for your report that look like here..

4) Hence Your Report is prepared... Yes if someone thinks that there is lt of botheration about commands then don't panic LaTeX editor will help you and if still think then remember one thing you just need to change only one or two commands to make a presenation no text copying, no resetting...

For any difficulties and question make a comment and you will be serviced.

5) Now to make presentation the very first requirement is to install \documentclass{beamer}.

Install it using command in terminal
sudo apt-get install latex-beamer

Now you are all set download presenation file source code in .tex format from here

Here you can see in slide.tex we have insert

\documentclass{beamer} which is used to make your presentation..

\frame is used to start a new slide

if you want to write something in the slide then there is

\frame{
\frametitle{titlename}
\begin{}
your data goes here
\end{}}

Rest of things are same as of report format . You just need to change only above information.
Save it and compile to have .dvi and .pdf file
See the output file here

Saturday, June 12, 2010

EXTRACTING YOUR DOCUMENT FILE


Have You ever tried to extract your .doc or .odt or any document file. Obviously Ans is No. Because we can't imagine that a single document file can contain so many files and folders.. But yes it is true....

(I am using Ubuntu here so discussed accordingly Ubuntu)
1) Say you have made a file named sample.odt
2) Right click on it select Open with archive manager and extract all files..

See snapshot below

You can find a number of files named .xml these are all eXtensible Markup Language file these files include your data as well as style sheet in xml format
once you have changed style sheet and zipped the files back you can get new file with entire different structure...

Friday, June 11, 2010

PROS AND CONS OF LaTeX


Ok I had showed you hoe LaTeX worked and now i am going to discuss the pros and cons of LaTeX::

PROS:- Firstly Discussing the pros, I would like to mention that why i loved to do work in LaTeX because of::

1) TeX has the beauty in its output

Yes it is true that we are not able to get the output simultaneously means output is shown only at end of file.. but indeed it has best output than those heavy word processors..

a) Kerning is used to measure out the beauty of your document

Kerning

is the process of selectively adjusting the spacing between letters pairs to improve the overall appearance of text. Examples of letter pairs that need kerning treatment are AV, AY, PA, and AT.Popular word processors either lack support for kerning tables or disable kerning by default..

See below::

Produced by Word

Produced by LaTeX

b) Common ligatures

A good typesetting programme should always use contextual intelligence and substitution tables to determine whether ligatures are needed. Common ligatures are essential to professionally typeset text.

See below::

Correct use of Ligatures by LaTeX

Incorrect use of Ligatures by word processors

c)Transparency

The fonstpec package allows you to set font transparency in your XƎTeX source.

See below::

Alpha transparency

2)TeX is fast.

3)The output can be anything that is you can have input in any format it may be html, rtf, pdf or even device independent..

4)TeX is free

5)TeX runs anywhere

6)TeX is the standard.

7)TeX is stable

Thursday, June 10, 2010

Detailed Command Set of LaTeX


Now after I had done the basics of LaTeX I also want to discuss the enlarged version of various commonly used commands which are described below:::

Click Here for Command List

You can also view the power of Latex by seeing the document on this below link....

Example

The document you have seen is made in Latex that is completely coded not made in any type of word processor, ppt softwares, drawing tools etc. All the mathematical Tools and symbols have been designed using LaTeX codes....

So, Major Idea Behind Use of LaTeX is to reduce the overhead of copying information frm one software to other when you need conversion between various formats.
But using LaTeX you can do that without any overhead. Some of you might think that "How the overhed is get reduced although code is to be written so long with so many commands??????".
But Let me clear one thing it doesn't really when we are talking of say 1 or 2 pages but it matters really when you are about going to change structure of your document of nearly say 100-200 pages like mostly your e-books..... So, instead of the shifting of your doc you can just simply Type your document using commands of LaTeX and get a device independent file. Isn't it amazing.

Ok If till now i would not be able to set your mind towards Latex, Let me show you another thing which surely change ur mind setup:::

That is Graphical Version Of LaTeX..........

Also See Link below that alows you to create ppt from a simple file using LaTeX

See Link Below


Wednesday, June 9, 2010

Structure and Command Set Of LaTeX


After the Installation and overview i am going to discuss some of the basic commands that are used to desing your document using latex
Given below is small structure code is
%%Remember every command should start with a backslash
%%this doc is produced from latex %%comment section
\documentclass{type}[optional] %%type tells what type of doc. whether article,journal etc. and optional part tells about various options like article size etc.
\usepackage{package_name} %% to include some of the packages needed for additional functions to be performed.....
\begin{section} %%this section begins your major piece of document
\begin{subsection1}
\begin{subsection2} %%subsection starts here
\end{subsection2} %%corresponding subsection starts here
\end{subsection1}
\end{section} %%main section ends here
Above discussed is just a simple basic structure of your Latex Program and produce .dvi file when is compiled. I am writing here a simple code in .tex format
which you can copy and can compile to Let know about basic idea behind LaTeX use.
%%Program to write code for printing String Helloin C++ using LaTeX
\documentclass{article}[a4paper]
\begin{Program}
\textbf{Program 1:- to write code for printing String Hello in C++ using LaTeX}
\begin{itemize}
\item \#include\textless iostream.h\textgreater
\item \#include\textless conio.h \textgreater
\item void main()
\item \{
\item cout\textless\textless ``Helloo... Word";
\item getch();
\item \}
\end{itemize}
\end{Program}
After that copy it save it using gedit in test.tex format and then using command

latex test.tex

then .dvi file is made and after that made pdf from that. (I have discussed earlier)

Tuesday, June 8, 2010

Installing LaTeX and How To use LaTeX

After the Introduction we are ready to go through LaTeX. Install any linux distribution you want.. (I am hereby using Ubuntu 10.04 Lucid Lynx).Follow the Following steps to get the desired document in various formats without much effort done.

1) Go to terminal and type
$ sudo apt-get install texlive-latex-base

2) your Latex will be installed on your system and you can check for manual page by typing man latex in terminal.

3) To do very next step now we should stick this to our mind that the document we are going to produce is written in any type of editor whether it may be your most common usable editor Gedit or you can use emac by installing first emac into your system using command
$ sudo apt-get install emac


4) After you have written your document it is to be embedded with some set of commands that Latex uses so as to give a structure to your Piece written.
Note that whenever you wish your document to be looked into some other style just change these set of commands.

5) When you have done all these things save your piece of code with .tex format say test.tex

6) Go to terminal type latex path of the file test.tex
Or pdflatex path of the file test.tex
for producing pdf file simultaneously.


7) If you see something like this then 3 more files will be created namely test.dvi, test.aux and test.log
8) test.dvi is viewable and is device independent(dvi) from dvi means whether you open this file for screen viewing or for printing doesn't matter...
9)After that we can have pdf image format or postscript format .ps from this .dvi file, you just need to type in terminal
$ dvipdf hello.dvi hello.pdf for .dvi to pdf conversion.
$ dvips hello.dvi -o hello.psfor .dvi to .ps file.
$ ps2pdf hello.ps hello.pdf for .ps to pdf conversion

Monday, June 7, 2010

It's the very first day for me to work on project and i am quite excited to do it with full efforts. The thing i found that a document that we usually use to write in word processors like open office, ms office are basiccaly consisted of two parts
1) Document Contents
2) Style sheet of Doucument

The Style Sheet of Document is sheet consisting of all the different formatting options like whether a line is bold or italicised etc.

So, If we are able to edit that sheet than we can make a simple text document to a charming and graphically enhanced presentation and that too without copying text into your presentation softwares.

One question arises that how can we able to edit a css(cascading style sheet) for a document. This solution has been provided by Mr. Donald Knuth who developed a language called TEX(pronounced /ˈtɛx/ as in Greek, often /tɛk/ in English)which provides a typesetting system that allows you to write your document as well as presentation from it by just changing commands not the text.

Latex(pronounced /ˈleɪtɛk/, /ˈleɪtɛx/, /ˈlɑːtɛx/, or /ˈlɑːtɛk/) is document markup language based on typesetting system. I hereby discuss how to use latex and its various commands that let you design your document of your own choice.

We all have studied Mathematics in Secondary levels. Had you ever noticed that how sign of integration, psi and chi etc. are used. Check it out your any word processor you can find only limited set of mathematical symbols. To overcome this problem Latex was designed and now it has become so popular that most of publisher uses it when they need typesetting of a document.

For a moment click on LOGO given below to see a logo created with latex::::

LOGO

With simple wordprocessor you cant create such a logo for this there is Latex.
Make your .tex file with Latex file get it compiled by latex tool in your system and then convert to format of your choice. the .tex file contains some set of commands that describe the structure of the logo.

So, You have to make effort only once while designing your .tex file with suitable editor. After that if you want to change your file view like you want your file look like presentation you just need to change some commands, recompile it and get output. No Need of Changing text, no need of moving text, no need of copying and pasting. So, It's quite useful.