Feeds:
Posts
Comments

Posts Tagged ‘creating new command in Latex’


To create the Customs command’s in Latex we use \newcommand ¬†command, ¬†simply type the following code to create the new command

\newcommand{\manoj}{This is my new command}

when you execute the above command by running \manoj it print This is my new command

for instance,

\documentclass{article}

\begin{document}

\author{Manoj Gautam}

\title{Making new Command in Latex}

\date{may 2 1990}

\maketitle

\section{Simply calling the new command}

\newcommand{\manoj}{This is my new command}

\manoj is writing some post about latex

\end{document}

 

 

Advertisements

Read Full Post »

%d bloggers like this: