NicklasVraa / LiX

Compose papers, dissertations, textbooks, novels, newspapers etc. quicker using abstractions to the standard LaTeX document classes - or create your own classes easily.
GNU General Public License v3.0
201 stars 10 forks source link

\fig command undefined #6

Closed lucalevi closed 10 months ago

lucalevi commented 10 months ago

I am using the class novella to write a book, and this is the beginning of my main.tex file:

\documentclass{novella} \usepackage{quoting}

In a chapter, I want to insert a figure, and I am doing it in this way: \fig{fig:myfigurer}{0.5}{myfigure.jpeg}

I get an error when compiling: undefined control sequence, referencing the command \fig above. How to properly insert an image using the class novella? Thanks!

Note: I am compiling offline using TeXshop. Other command like those to modify the style (bold, italics...) of the text work

NicklasVraa commented 10 months ago

If I remember correctly, the novella class does not import the figure part of LiX. This was a design decision, as novellas tend not to have figures.

You can easily modify the novella class to also import that part by adding figures to \RequirePackage[basics, ...]{lix}

lucalevi commented 10 months ago

It worked indeed! Just added \RequirePackage[..., figures]{lix} to the class novella.cls and here I am, with a nice figure at the top of my chapter! Thanks Nicklas! ;)