Promote Your Blog
Google

Saturday, December 22, 2012

How to Put Text Watermark in LaTex

Package

\usepackage {draftwatermark}

Package Options


  • \usepackage [firstpage] {draftwatermark}
  • \usepackage [nostamp] {draftwatermark}


Commands to Modify Watermark Properties


  • \SetWatermarkText {Confidential} % default is DRAFT

  • \SetWatermarkText {\textsc{Confidential}} % For changing text style

  • \SetWatermarkLightness {0.5} % any real number

  • \SetWatermarkScale{4} % Default is 1.2

  • \SetWatermarkFontSize {2cm} % Max is 5 cm

  • \SetWatermarkAngle {30} % Default is 45 deg

  • \SetWatermarkColor [rgb] {0.7,0,0} % Color spec

  • \SetWatermarkColor [red] % package color is required with usenames option

  • \SetWatermarkColor [gray] {0.5} % gray level

Notes

1. \SetWatermarkColor is not working in my texlive installation, although its given in official documentation of   draftwatermark package. Somebody suggested to update LaTex installation as colored watermark came in Jan, 2012

2. Notice that Commands begin with capital S like \Set and Watermark is a single word with only W in capital but m small

3. It works for textual watermark. For image watermarks, wait for my next post on same.

Computer Science to Impress Your Valentine in 2013

Here's a trick to impress your Valentine. Just type in this maths equation in the Google searchbar:

"sqrt(cos(x))*cos(300x)+sqrt(abs(x))-0.7)*(4-x*x)^0.01, sqrt(6-x^2), -sqrt(6-x^2) from -4.5 to 4.5"

 and wait for the magic to unfold. 

Wednesday, November 28, 2012

How to Write an Application Using Letter Class of Latex



\documentclass{letter}
\signature{Your Name\\ \hspace*{1cm}Your Designation}


%address{Street \\ City \\ Country}
\date{} %to avoid printing date on top
\begin{document}
\begin{letter}{To, \vspace*{0.5cm}\\ The Person, \\ Company, \\ Address, \\ City-PIN \\ \vspace*{1cm} \textbf{Subject: My Application Subject:}}
\opening{Respected Sir or Madam,}
\begin{enumerate}
\item Your Contents in list or paragraph form
\item
\item
\item
\item
\end{enumerate}
\hspace*{4cm} Thanking You,
\begin{flushright}
\closing{Yours Sincerely,}
\end{flushright}
\vspace*{-1cm} Dated: \today
%\ps{P.S. Here goes your ps.}
\encl{
\begin{enumerate}
\item
\item
\end{enumerate}
}
\end{letter}
\end{document}

Note:

  1. Red colored text to be replaced with your particulars
  2. Comment green text if you don't want current date to be inserted
  3. Modify this template to suit your style

Thursday, July 5, 2012

Microsoft's Approach to Application Lifecycle Management

Although, Microsoft is a late entrant into Application Lifecycle Management (ALM) products but according to Gartner's report, Microsoft is now leading ahead all its competitors.

Following figure shows how different products (MS Project, Visual Studio, Sharepoint, Office etc.) are integrated through Team Foundation Server (TFS) to deliver support for full ALM covering Project Management, Requirements Management, Version Control, Test Case Management, Build Automation, and Reporting.




The salient features of Visual Studio versions shown in above figure are given in figure below:

Friday, May 11, 2012

How to Make Fancy Page Headers and Footers in Latex

To make your reports/books have fancy pages, follow these simple steps:

1. Before \begin{document}, declare this package to be used:
\usepackage{fancyhdr}

2. All pages do not have fancy style (like Acknowledgment & Table of Contents pages}. So, before those pages, write
\thispagestyle{empty}

3. For pages, where fancy headers & footers are required, declare this intent by writing:
\pagestyle{empty}

4. Clear default settings for header & footer by
\fancyhead{}
\fancyfoot{}

5. Here is a LaTex code sample for fancy header & footer
\lhead {"My Doc Name"}
\chead{"--Draft--"}
\rhead{\thepage}

\lfoot{"My Project"}
\cfoot{"--Ver No.--"}
\rfoot{"\thepage"}

l,c,r indicates left, centre, right of head or foot as the case be

6. You can also use,
\fancyfoot[RO,LE]{\thepage}
\fancyhead[CO,CE]{"--Draft--"}

R-->Right
L-->Left
C-->Center

E-->Even Page No.
O-->Odd Page No.

More to come about fancy pages in next post....

Friday, March 23, 2012

How To Continue Numbering in Enumerate From Previous List?

To pause and resume, enumerate using following (taken from a website and works wonderfully)

\newcounter{tempcounter}

\begin{document}

\begin{enumerate}
\item first;

\item second;
\setcounter{tempcounter}{\value{enumi}}
\end{enumerate}

This is a paragraph.

\begin{enumerate}
\setcounter{enumi}{\value{tempcounter}}
\item third;

\item and so on...
\end{enumerate}
\end{document}

Remember, \newcounter{tempcounter} goes before \begin{document}

How To Change Page Orientation From Portrait To Landscape

Default page style is Portrait in LaTex. You can change it to Landscape using:

\usepackage{lscape}

\newpage
\begin{landscape}
.....
.....
.....
\end{landscape}
\newpage

After \end{landscape}, page orientation will again be default one i.e. Portrait