input command inside custom .sty packageHow to use the import package?Relative path issue with epslatexHow to merge several tex files so that they have one table of contents/List of tables & figuresUsing latexmk with multiple tex files in the directorynew inputfile Package, Command wrapper: microtype .tex with reserved symbolsTruncate compilation of an “input” fileinput and graphicx - look for images where file is locatedHow to compile input files separately from the main fileFile paths not relative to main.tex but relative to subfileCreating a multi-file project using figures from a different directory

Why does Arabsat 6A need a Falcon Heavy to launch

Can a virus destroy the BIOS of a modern computer?

Combinations of multiple lists

How much of data wrangling is a data scientist's job?

Why is it a bad idea to hire a hitman to eliminate most corrupt politicians?

Why "Having chlorophyll without photosynthesis is actually very dangerous" and "like living with a bomb"?

Withdrawals from HSA

What is going on with Captain Marvel's blood colour?

Emailing HOD to enhance faculty application

I would say: "You are another teacher", but she is a woman and I am a man

How can saying a song's name be a copyright violation?

Should I tell management that I intend to leave due to bad software development practices?

1960's book about a plague that kills all white people

What is the word for reserving something for yourself before others do?

Cronab fails because shell path not found

Diode datasheet reading

Is it unprofessional to ask if a job posting on GlassDoor is real?

What to put in ESTA if staying in US for a few days before going on to Canada

Assassin's bullet with mercury

What killed these X2 caps?

Twin primes whose sum is a cube

What's the difference between 'rename' and 'mv'?

If human space travel is limited by the G force vulnerability, is there a way to counter G forces?

Why doesn't H₄O²⁺ exist?



input command inside custom .sty package


How to use the import package?Relative path issue with epslatexHow to merge several tex files so that they have one table of contents/List of tables & figuresUsing latexmk with multiple tex files in the directorynew inputfile Package, Command wrapper: microtype .tex with reserved symbolsTruncate compilation of an “input” fileinput and graphicx - look for images where file is locatedHow to compile input files separately from the main fileFile paths not relative to main.tex but relative to subfileCreating a multi-file project using figures from a different directory













1















Here's my setup :



  • Two PCs (one desktop and one laptop)

  • Two installations of Texmaker and MikTex (exactly the same versions)

i've created my own package (.sty file) and this package uses external files (that are located in the same directory as the pacakge. the files are added via the input... command



I've used the package for quite a while on both PCs flawlessly and now the laptop throws an error at compilation (of the document which uses the package)



LaTeX Error: File 'basic_packages.tex' not found. Type X...


I've managed to understand what's going on :



  • The desktop interprets "input..." as "go look for the file at the package's directory

  • the laptop looks for the file at the document's directory. Of course i want the included file to stay with the package.

Here are my codes (simplified)



package



NeedsTeXFormatLaTeX2e[1994/06/01]
ProvidesPackagesdlibV1[14/03/2019 custom package]

newifif@all@allfalse
DeclareOptionall@alltrue


ProcessOptionsrelax


inputbasic_packages %<-- this input
%inputbasic_macros also not useful for the question

if@all
%stuff, not useful here
fi

endinput


basic_packages.tex



RequirePackage[table,dvipsnames,named]xcolor
RequirePackagetikz
RequirePackage[utf8]inputenc
RequirePackage[T1]fontenc
RequirePackagesiunitx
RequirePackageenumitem
RequirePackagemulticol
RequirePackagetabu
RequirePackagemakecell
RequirePackagearray


Document



documentclassreport
usepackagesdlibV1% <-- package loaded here

usepackage[margin=1.5cm]geometry

begindocument
subfilecalcul_integral% I've tried removing those, and only using "hello world"
subfilealgebre_lineaire
subfileequations_differentielles
enddocument


Paths of files :



Document : HEIG-VDCoursMath2Notes



sdlibV1.sty and basic_packages.text : HEIG-VDNotesLaTexpackagestexlatexsdlibV1



(The packages folderhas been configured correctly as a package "source")
What i've also tried :



  • Checking pdflatex's command

  • Using a temp document (standalone, without anything in it, just a "hello world")

  • using include command (did not work at all)

  • putting all my included files (16 elements) inside the .sty file, it worked but it's absolutely disgusting









share|improve this question
























  • Where are these files placed in the file system in relation to each other?

    – daleif
    3 hours ago











  • the "document" file is anyhwere (doesn't really matter) the library and included file are in a dedicated folder. (which has been made so that it's recognized as a library)

    – Klue
    3 hours ago











  • Note that LaTeX does not really have a notion of libraries, so please explain exactly what you have done.

    – daleif
    3 hours ago











  • yeah sorry, i'm still a bit new so the vocab hadn't time to sink in that much. I've created a .sty file (sdlibV1.sty) and i've used the usepackagesdlibV1 to "load" it. So it's more of a package than a library i guess (i tend to get confused coming from C programming)

    – Klue
    3 hours ago







  • 1





    just saw that you have miktex. Then you need to update the FNDB (in the miktex console, user mode, menu tasks, or with initexmf -u on the command line.)

    – Ulrike Fischer
    2 hours ago















1















Here's my setup :



  • Two PCs (one desktop and one laptop)

  • Two installations of Texmaker and MikTex (exactly the same versions)

i've created my own package (.sty file) and this package uses external files (that are located in the same directory as the pacakge. the files are added via the input... command



I've used the package for quite a while on both PCs flawlessly and now the laptop throws an error at compilation (of the document which uses the package)



LaTeX Error: File 'basic_packages.tex' not found. Type X...


I've managed to understand what's going on :



  • The desktop interprets "input..." as "go look for the file at the package's directory

  • the laptop looks for the file at the document's directory. Of course i want the included file to stay with the package.

Here are my codes (simplified)



package



NeedsTeXFormatLaTeX2e[1994/06/01]
ProvidesPackagesdlibV1[14/03/2019 custom package]

newifif@all@allfalse
DeclareOptionall@alltrue


ProcessOptionsrelax


inputbasic_packages %<-- this input
%inputbasic_macros also not useful for the question

if@all
%stuff, not useful here
fi

endinput


basic_packages.tex



RequirePackage[table,dvipsnames,named]xcolor
RequirePackagetikz
RequirePackage[utf8]inputenc
RequirePackage[T1]fontenc
RequirePackagesiunitx
RequirePackageenumitem
RequirePackagemulticol
RequirePackagetabu
RequirePackagemakecell
RequirePackagearray


Document



documentclassreport
usepackagesdlibV1% <-- package loaded here

usepackage[margin=1.5cm]geometry

begindocument
subfilecalcul_integral% I've tried removing those, and only using "hello world"
subfilealgebre_lineaire
subfileequations_differentielles
enddocument


Paths of files :



Document : HEIG-VDCoursMath2Notes



sdlibV1.sty and basic_packages.text : HEIG-VDNotesLaTexpackagestexlatexsdlibV1



(The packages folderhas been configured correctly as a package "source")
What i've also tried :



  • Checking pdflatex's command

  • Using a temp document (standalone, without anything in it, just a "hello world")

  • using include command (did not work at all)

  • putting all my included files (16 elements) inside the .sty file, it worked but it's absolutely disgusting









share|improve this question
























  • Where are these files placed in the file system in relation to each other?

    – daleif
    3 hours ago











  • the "document" file is anyhwere (doesn't really matter) the library and included file are in a dedicated folder. (which has been made so that it's recognized as a library)

    – Klue
    3 hours ago











  • Note that LaTeX does not really have a notion of libraries, so please explain exactly what you have done.

    – daleif
    3 hours ago











  • yeah sorry, i'm still a bit new so the vocab hadn't time to sink in that much. I've created a .sty file (sdlibV1.sty) and i've used the usepackagesdlibV1 to "load" it. So it's more of a package than a library i guess (i tend to get confused coming from C programming)

    – Klue
    3 hours ago







  • 1





    just saw that you have miktex. Then you need to update the FNDB (in the miktex console, user mode, menu tasks, or with initexmf -u on the command line.)

    – Ulrike Fischer
    2 hours ago













1












1








1








Here's my setup :



  • Two PCs (one desktop and one laptop)

  • Two installations of Texmaker and MikTex (exactly the same versions)

i've created my own package (.sty file) and this package uses external files (that are located in the same directory as the pacakge. the files are added via the input... command



I've used the package for quite a while on both PCs flawlessly and now the laptop throws an error at compilation (of the document which uses the package)



LaTeX Error: File 'basic_packages.tex' not found. Type X...


I've managed to understand what's going on :



  • The desktop interprets "input..." as "go look for the file at the package's directory

  • the laptop looks for the file at the document's directory. Of course i want the included file to stay with the package.

Here are my codes (simplified)



package



NeedsTeXFormatLaTeX2e[1994/06/01]
ProvidesPackagesdlibV1[14/03/2019 custom package]

newifif@all@allfalse
DeclareOptionall@alltrue


ProcessOptionsrelax


inputbasic_packages %<-- this input
%inputbasic_macros also not useful for the question

if@all
%stuff, not useful here
fi

endinput


basic_packages.tex



RequirePackage[table,dvipsnames,named]xcolor
RequirePackagetikz
RequirePackage[utf8]inputenc
RequirePackage[T1]fontenc
RequirePackagesiunitx
RequirePackageenumitem
RequirePackagemulticol
RequirePackagetabu
RequirePackagemakecell
RequirePackagearray


Document



documentclassreport
usepackagesdlibV1% <-- package loaded here

usepackage[margin=1.5cm]geometry

begindocument
subfilecalcul_integral% I've tried removing those, and only using "hello world"
subfilealgebre_lineaire
subfileequations_differentielles
enddocument


Paths of files :



Document : HEIG-VDCoursMath2Notes



sdlibV1.sty and basic_packages.text : HEIG-VDNotesLaTexpackagestexlatexsdlibV1



(The packages folderhas been configured correctly as a package "source")
What i've also tried :



  • Checking pdflatex's command

  • Using a temp document (standalone, without anything in it, just a "hello world")

  • using include command (did not work at all)

  • putting all my included files (16 elements) inside the .sty file, it worked but it's absolutely disgusting









share|improve this question
















Here's my setup :



  • Two PCs (one desktop and one laptop)

  • Two installations of Texmaker and MikTex (exactly the same versions)

i've created my own package (.sty file) and this package uses external files (that are located in the same directory as the pacakge. the files are added via the input... command



I've used the package for quite a while on both PCs flawlessly and now the laptop throws an error at compilation (of the document which uses the package)



LaTeX Error: File 'basic_packages.tex' not found. Type X...


I've managed to understand what's going on :



  • The desktop interprets "input..." as "go look for the file at the package's directory

  • the laptop looks for the file at the document's directory. Of course i want the included file to stay with the package.

Here are my codes (simplified)



package



NeedsTeXFormatLaTeX2e[1994/06/01]
ProvidesPackagesdlibV1[14/03/2019 custom package]

newifif@all@allfalse
DeclareOptionall@alltrue


ProcessOptionsrelax


inputbasic_packages %<-- this input
%inputbasic_macros also not useful for the question

if@all
%stuff, not useful here
fi

endinput


basic_packages.tex



RequirePackage[table,dvipsnames,named]xcolor
RequirePackagetikz
RequirePackage[utf8]inputenc
RequirePackage[T1]fontenc
RequirePackagesiunitx
RequirePackageenumitem
RequirePackagemulticol
RequirePackagetabu
RequirePackagemakecell
RequirePackagearray


Document



documentclassreport
usepackagesdlibV1% <-- package loaded here

usepackage[margin=1.5cm]geometry

begindocument
subfilecalcul_integral% I've tried removing those, and only using "hello world"
subfilealgebre_lineaire
subfileequations_differentielles
enddocument


Paths of files :



Document : HEIG-VDCoursMath2Notes



sdlibV1.sty and basic_packages.text : HEIG-VDNotesLaTexpackagestexlatexsdlibV1



(The packages folderhas been configured correctly as a package "source")
What i've also tried :



  • Checking pdflatex's command

  • Using a temp document (standalone, without anything in it, just a "hello world")

  • using include command (did not work at all)

  • putting all my included files (16 elements) inside the .sty file, it worked but it's absolutely disgusting






input






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 2 hours ago







Klue

















asked 3 hours ago









KlueKlue

284




284












  • Where are these files placed in the file system in relation to each other?

    – daleif
    3 hours ago











  • the "document" file is anyhwere (doesn't really matter) the library and included file are in a dedicated folder. (which has been made so that it's recognized as a library)

    – Klue
    3 hours ago











  • Note that LaTeX does not really have a notion of libraries, so please explain exactly what you have done.

    – daleif
    3 hours ago











  • yeah sorry, i'm still a bit new so the vocab hadn't time to sink in that much. I've created a .sty file (sdlibV1.sty) and i've used the usepackagesdlibV1 to "load" it. So it's more of a package than a library i guess (i tend to get confused coming from C programming)

    – Klue
    3 hours ago







  • 1





    just saw that you have miktex. Then you need to update the FNDB (in the miktex console, user mode, menu tasks, or with initexmf -u on the command line.)

    – Ulrike Fischer
    2 hours ago

















  • Where are these files placed in the file system in relation to each other?

    – daleif
    3 hours ago











  • the "document" file is anyhwere (doesn't really matter) the library and included file are in a dedicated folder. (which has been made so that it's recognized as a library)

    – Klue
    3 hours ago











  • Note that LaTeX does not really have a notion of libraries, so please explain exactly what you have done.

    – daleif
    3 hours ago











  • yeah sorry, i'm still a bit new so the vocab hadn't time to sink in that much. I've created a .sty file (sdlibV1.sty) and i've used the usepackagesdlibV1 to "load" it. So it's more of a package than a library i guess (i tend to get confused coming from C programming)

    – Klue
    3 hours ago







  • 1





    just saw that you have miktex. Then you need to update the FNDB (in the miktex console, user mode, menu tasks, or with initexmf -u on the command line.)

    – Ulrike Fischer
    2 hours ago
















Where are these files placed in the file system in relation to each other?

– daleif
3 hours ago





Where are these files placed in the file system in relation to each other?

– daleif
3 hours ago













the "document" file is anyhwere (doesn't really matter) the library and included file are in a dedicated folder. (which has been made so that it's recognized as a library)

– Klue
3 hours ago





the "document" file is anyhwere (doesn't really matter) the library and included file are in a dedicated folder. (which has been made so that it's recognized as a library)

– Klue
3 hours ago













Note that LaTeX does not really have a notion of libraries, so please explain exactly what you have done.

– daleif
3 hours ago





Note that LaTeX does not really have a notion of libraries, so please explain exactly what you have done.

– daleif
3 hours ago













yeah sorry, i'm still a bit new so the vocab hadn't time to sink in that much. I've created a .sty file (sdlibV1.sty) and i've used the usepackagesdlibV1 to "load" it. So it's more of a package than a library i guess (i tend to get confused coming from C programming)

– Klue
3 hours ago






yeah sorry, i'm still a bit new so the vocab hadn't time to sink in that much. I've created a .sty file (sdlibV1.sty) and i've used the usepackagesdlibV1 to "load" it. So it's more of a package than a library i guess (i tend to get confused coming from C programming)

– Klue
3 hours ago





1




1





just saw that you have miktex. Then you need to update the FNDB (in the miktex console, user mode, menu tasks, or with initexmf -u on the command line.)

– Ulrike Fischer
2 hours ago





just saw that you have miktex. Then you need to update the FNDB (in the miktex console, user mode, menu tasks, or with initexmf -u on the command line.)

– Ulrike Fischer
2 hours ago










1 Answer
1






active

oldest

votes


















0














The problem has been solved !



After changes to a package (and/or files included by it) the following command in the MikTex console (ran as admin)



initexmf -u --admin





share|improve this answer























    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "85"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f483227%2finput-command-inside-custom-sty-package%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    The problem has been solved !



    After changes to a package (and/or files included by it) the following command in the MikTex console (ran as admin)



    initexmf -u --admin





    share|improve this answer



























      0














      The problem has been solved !



      After changes to a package (and/or files included by it) the following command in the MikTex console (ran as admin)



      initexmf -u --admin





      share|improve this answer

























        0












        0








        0







        The problem has been solved !



        After changes to a package (and/or files included by it) the following command in the MikTex console (ran as admin)



        initexmf -u --admin





        share|improve this answer













        The problem has been solved !



        After changes to a package (and/or files included by it) the following command in the MikTex console (ran as admin)



        initexmf -u --admin






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 2 hours ago









        KlueKlue

        284




        284



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f483227%2finput-command-inside-custom-sty-package%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            acmart: Multiple authors: all with same affiliation, one author an additional affiliationHow to Write Names of Multiple Authors with Shared Affiliation in ACM 2017 Template?Multiple authors with different primary affiliation, but same additional affiliationSame affiliation for all authors without extra packagesIOS-Book-Article.cls: one author with multiple affiliationacmart: Shared Author AffiliationMultiple authors with different primary affiliation, but same additional affiliationAuthor affiliation with only 1 authorAdding Multiple Authors with Different Affiliation in LaTeX ArticleLaTeX: Multiple authors stays on same lineHow to Label Multiple Authors with Same DescriptionHow to make two authors use the same affiliationTwo authors with same affiliation on finished front page

            How to write “ä” and other umlauts and accented letters in bibliography?Accents in BibTeXSorting references with special characters alphabeticallyUse ae ligature in bibliographyEastern European nameInverted circumflex in BibTexBibTex, non-ascii initials and nameptr fproblems with accent in LatexHow to add a Ø to my bibliography from Jabref?References without accentsTroubles when trying to cite St“omer-Verlet in ”title" field of a bib entryComprehensive list of accented charactersHow to type the letter “i” with two dots (diaeresis) in math mode?Problem with glossary text and accented lettersSpecial character in bibliographyAccented letters, Unicode and LaTeX accentsHow to stop natbib from modifying bibliography styleCitation of a paper with non-standard characters by BibtexWrite accented characters to file using writeHow to group the bibliography alphabetically, if some surnames start with “accented” characters?How can I automatically capitalize significant words in my bibliography?

            Problem using RevTeX4-1 with “! Undefined control sequence. @bibitemShut”