Skip to content

Support for \graphicspath within another *sty-package #1513

Closed
@thethinker990

Description

I created my own *sty-Package with the basic information which all my documents need like folder structure, colors, etc.

In this file I defined \graphicspath{{./img/}} and in my main file it says "image not found". If I put the command directly into my main file it's working.

*tex

\documentclass{article}
\usepackage{mwe-graphicspath}
\begin{document}
	\includegraphics{lion.png}
\end{document}

*sty

\ProvidesPackage{mwe-graphicspath}[2021/01/13 v1.0 my mwe-graphicspath package]
	\RequirePackage{graphicx}
	\graphicspath{{./img/}}
\endinput

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions