KorigamiK / doc-korigamik

A LaTeX document class for typesetting documents for university or school projects and lab reports.
https://ctan.org/pkg/korigamik
GNU General Public License v3.0
2 stars 0 forks source link

How to include a logo on the cover page using this class? #2

Open aradnix opened 1 year ago

aradnix commented 1 year ago

While the documentation is being prepared, I would like to know how the command to insert the logo works because I don't understand it.

From the code, I understand that there is a command called \logoimage that is programmed to use three arguments that can also be commands:

\logoimagepth
\logoimagescale
\logolabel

So, the logo command is built in this way :

\includegraphics[scale=\@logoimagescale]{\@logoimagepath}
    \Large {\\ \textbf{\@logolabel}}

But how to make this work for the user?, I'm probably overcomplicating myself, but I've tried a few things, but I can't figure out how to make it work.

KorigamiK commented 1 year ago

Hi, I'm glad that you are trying out my class. You can use the commands in the following way:

The \logoimage command takes 3 arguments:

\logoimage{logo.png}{0.6}{My logo label}

It is advised that you fill out all these fields yourself or you will see the placeholder text and images. You can leave some fields blank too if you don't want anything there or each command separately.

KorigamiK commented 1 year ago

As a side-note, you can try changing and experimenting with the following parameters as well:

\title{Operating Systems}
\titlelabel{Lab Report}
\author{John Doe}
\rollno{asdf0123}
\semester{4th}
\semester{4th}
\course{Summer'09}
\bottomnote{Department of Computer Science \& Engineering}
\header{Header text}
aradnix commented 1 year ago

Hi, I'm glad that you are trying out my class. You can use the commands in the following way:

The \logoimage command takes 3 arguments:

  • logoimagepath - The path the the image file
  • logoimagescale - The scale factor for the image
  • logolabel - The title below the logo
\logoimage{logo.png}{0.6}{My logo label}

It is advised that you fill out all these fields yourself or you will see the placeholder text and images. You can leave some fields blank too if you don't want anything there or each command separately.

It worked. Well, one more thing to add to the pending documentation.

aradnix commented 1 year ago

As a side-note, you can try changing and experimenting with the following parameters as well:

\title{Operating Systems}
\titlelabel{Lab Report}
\author{John Doe}
\rollno{asdf0123}
\semester{4th}
\semester{4th}
\course{Summer'09}
\bottomnote{Department of Computer Science \& Engineering}
\header{Header text}

Yes, I had already realized this possibility, in any case, to give it more versatility, it would be interesting if some of these fields were optional, such as \rollno or one of the \semesters.

KorigamiK commented 1 year ago

Yeah, I think I can add that