Jaspreet Sarao | 7 Feb 2012 15:56
Picon

logo in .cls file

I have made a new class for report.
But have a problem.
I wanted to add  logo in class file for title page.
As I know for including image we require graphicx package, but when I
included it in class file it gave an error.
Please help me

--
Jaspreet sarao
email: jaspritsarao@...
Blog: jaspreetsarao.wordpress.com
_______________________________________________
Home:        http://www.tug.org.in/
TeX FAQ:     http://www.tex.ac.uk/faq
unsubscribe: http://tug.org/mailman/listinfo/tugindia

Jitender Singh | 8 Feb 2012 04:41
Picon

Re: logo in .cls file

To use graphics package in class/package you need to use
\usepackage{graphicx}
\RequirePackage{graphics}
in your class file. See www.latex-project.org/guides/clsguide.pdf for details.
Regards,

On Tue, Feb 7, 2012 at 8:26 PM, Jaspreet Sarao
<jaspritsarao@...> wrote:
> I have made a new class for report.
> But have a problem.
> I wanted to add  logo in class file for title page.
> As I know for including image we require graphicx package, but when I
> included it in class file it gave an error.
> Please help me
>
>
> --
> Jaspreet sarao
> email: jaspritsarao@...
> Blog: jaspreetsarao.wordpress.com
> _______________________________________________
> Home:        http://www.tug.org.in/
> TeX FAQ:     http://www.tex.ac.uk/faq
> unsubscribe: http://tug.org/mailman/listinfo/tugindia

--

-- 
Regards!
Jitender Singh

_______________________________________________
(Continue reading)

Jitender Singh | 8 Feb 2012 04:42
Picon

Re: logo in .cls file

Correction: \RequirePackage{graphicx}

On Wed, Feb 8, 2012 at 9:11 AM, Jitender Singh <jsinghdrdo@...> wrote:
> To use graphics package in class/package you need to use
> \usepackage{graphicx}
> \RequirePackage{graphics}
> in your class file. See www.latex-project.org/guides/clsguide.pdf for details.
> Regards,
>
> On Tue, Feb 7, 2012 at 8:26 PM, Jaspreet Sarao
<jaspritsarao@...> wrote:
>> I have made a new class for report.
>> But have a problem.
>> I wanted to add  logo in class file for title page.
>> As I know for including image we require graphicx package, but when I
>> included it in class file it gave an error.
>> Please help me
>>
>>
>> --
>> Jaspreet sarao
>> email: jaspritsarao@...
>> Blog: jaspreetsarao.wordpress.com
>> _______________________________________________
>> Home:        http://www.tug.org.in/
>> TeX FAQ:     http://www.tex.ac.uk/faq
>> unsubscribe: http://tug.org/mailman/listinfo/tugindia
>
>
>
(Continue reading)

Jaspreet Sarao | 8 Feb 2012 14:15
Picon

Re: logo in .cls file

On Wed, Feb 8, 2012 at 9:12 AM, Jitender Singh <jsinghdrdo@...> wrote:
> Correction: \RequirePackage{graphicx}
>
Yes. I know about this package.

BTW My problem is solved. :)
There was a minor mistake in code. :/
Sorry for this.

Before I was trying to make an element named logo.
But now I just use the following code :

\RequirePackage{graphicx}
\includegraphics{image.png}

But I want to know why logo element didn't worked.
I am working on it.
I want to create this element because other institute can also use this class.

Thanks everyone for replying.
--
Jaspreet sarao
email: jaspritsarao@...
Blog: jaspreetsarao.wordpress.com
_______________________________________________
Home:        http://www.tug.org.in/
TeX FAQ:     http://www.tex.ac.uk/faq
unsubscribe: http://tug.org/mailman/listinfo/tugindia

(Continue reading)


Gmane