input{} command inside custom .sty packageHow to use the import package?Relative path issue with epslatexHow...
Why "Having chlorophyll without photosynthesis is actually very dangerous" and "like living with a bomb"?
What is the intuition behind short exact sequences of groups; in particular, what is the intuition behind group extensions?
Is it legal for company to use my work email to pretend I still work there?
How can I prevent hyper evolved versions of regular creatures from wiping out their cousins?
How do conventional missiles fly?
Is "remove commented out code" correct English?
Twin primes whose sum is a cube
Why is Collection not simply treated as Collection<?>
Combinations of multiple lists
How to model explosives?
If human space travel is limited by the G force vulnerability, is there a way to counter G forces?
Stopping power of mountain vs road bike
Infinite Abelian subgroup of infinite non Abelian group example
Why is consensus so controversial in Britain?
How to draw the figure with four pentagons?
UK: Is there precedent for the governments e-petition site changing the direction of a government decision?
Does a druid starting with a bow start with no arrows?
Brothers & sisters
How do I write bicross product symbols in latex?
What does it mean to describe someone as a butt steak?
Does casting Light, or a similar spell, have any effect when the caster is swallowed by a monster?
Doing something right before you need it - expression for this?
prove that the matrix A is diagonalizable
What's the difference between 'rename' and 'mv'?
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 input{file} 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
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
NeedsTeXFormat{LaTeX2e}[1994/06/01]
ProvidesPackage{sdlibV1}[14/03/2019 custom package]
newifif@all@allfalse
DeclareOption{all}{@alltrue}
ProcessOptionsrelax
input{basic_packages} %<-- this input
%input{basic_macros} also not useful for the question
if@all
%stuff, not useful here
fi
endinput
basic_packages.tex
RequirePackage[table,dvipsnames,named]{xcolor}
RequirePackage{tikz}
RequirePackage[utf8]{inputenc}
RequirePackage[T1]{fontenc}
RequirePackage{siunitx}
RequirePackage{enumitem}
RequirePackage{multicol}
RequirePackage{tabu}
RequirePackage{makecell}
RequirePackage{array}
Document
documentclass{report}
usepackage{sdlibV1}% <-- package loaded here
usepackage[margin=1.5cm]{geometry}
begin{document}
subfile{calcul_integral}% I've tried removing those, and only using "hello world"
subfile{algebre_lineaire}
subfile{equations_differentielles}
end{document}
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
|
show 13 more comments
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
NeedsTeXFormat{LaTeX2e}[1994/06/01]
ProvidesPackage{sdlibV1}[14/03/2019 custom package]
newifif@all@allfalse
DeclareOption{all}{@alltrue}
ProcessOptionsrelax
input{basic_packages} %<-- this input
%input{basic_macros} also not useful for the question
if@all
%stuff, not useful here
fi
endinput
basic_packages.tex
RequirePackage[table,dvipsnames,named]{xcolor}
RequirePackage{tikz}
RequirePackage[utf8]{inputenc}
RequirePackage[T1]{fontenc}
RequirePackage{siunitx}
RequirePackage{enumitem}
RequirePackage{multicol}
RequirePackage{tabu}
RequirePackage{makecell}
RequirePackage{array}
Document
documentclass{report}
usepackage{sdlibV1}% <-- package loaded here
usepackage[margin=1.5cm]{geometry}
begin{document}
subfile{calcul_integral}% I've tried removing those, and only using "hello world"
subfile{algebre_lineaire}
subfile{equations_differentielles}
end{document}
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
Where are these files placed in the file system in relation to each other?
– daleif
5 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
5 hours ago
Note that LaTeX does not really have a notion of libraries, so please explain exactly what you have done.
– daleif
5 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 usepackage{sdlibV1} 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
5 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 withinitexmf -uon the command line.)
– Ulrike Fischer
4 hours ago
|
show 13 more comments
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
NeedsTeXFormat{LaTeX2e}[1994/06/01]
ProvidesPackage{sdlibV1}[14/03/2019 custom package]
newifif@all@allfalse
DeclareOption{all}{@alltrue}
ProcessOptionsrelax
input{basic_packages} %<-- this input
%input{basic_macros} also not useful for the question
if@all
%stuff, not useful here
fi
endinput
basic_packages.tex
RequirePackage[table,dvipsnames,named]{xcolor}
RequirePackage{tikz}
RequirePackage[utf8]{inputenc}
RequirePackage[T1]{fontenc}
RequirePackage{siunitx}
RequirePackage{enumitem}
RequirePackage{multicol}
RequirePackage{tabu}
RequirePackage{makecell}
RequirePackage{array}
Document
documentclass{report}
usepackage{sdlibV1}% <-- package loaded here
usepackage[margin=1.5cm]{geometry}
begin{document}
subfile{calcul_integral}% I've tried removing those, and only using "hello world"
subfile{algebre_lineaire}
subfile{equations_differentielles}
end{document}
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
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
NeedsTeXFormat{LaTeX2e}[1994/06/01]
ProvidesPackage{sdlibV1}[14/03/2019 custom package]
newifif@all@allfalse
DeclareOption{all}{@alltrue}
ProcessOptionsrelax
input{basic_packages} %<-- this input
%input{basic_macros} also not useful for the question
if@all
%stuff, not useful here
fi
endinput
basic_packages.tex
RequirePackage[table,dvipsnames,named]{xcolor}
RequirePackage{tikz}
RequirePackage[utf8]{inputenc}
RequirePackage[T1]{fontenc}
RequirePackage{siunitx}
RequirePackage{enumitem}
RequirePackage{multicol}
RequirePackage{tabu}
RequirePackage{makecell}
RequirePackage{array}
Document
documentclass{report}
usepackage{sdlibV1}% <-- package loaded here
usepackage[margin=1.5cm]{geometry}
begin{document}
subfile{calcul_integral}% I've tried removing those, and only using "hello world"
subfile{algebre_lineaire}
subfile{equations_differentielles}
end{document}
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
input
edited 4 hours ago
Klue
asked 5 hours ago
KlueKlue
284
284
Where are these files placed in the file system in relation to each other?
– daleif
5 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
5 hours ago
Note that LaTeX does not really have a notion of libraries, so please explain exactly what you have done.
– daleif
5 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 usepackage{sdlibV1} 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
5 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 withinitexmf -uon the command line.)
– Ulrike Fischer
4 hours ago
|
show 13 more comments
Where are these files placed in the file system in relation to each other?
– daleif
5 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
5 hours ago
Note that LaTeX does not really have a notion of libraries, so please explain exactly what you have done.
– daleif
5 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 usepackage{sdlibV1} 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
5 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 withinitexmf -uon the command line.)
– Ulrike Fischer
4 hours ago
Where are these files placed in the file system in relation to each other?
– daleif
5 hours ago
Where are these files placed in the file system in relation to each other?
– daleif
5 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
5 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
5 hours ago
Note that LaTeX does not really have a notion of libraries, so please explain exactly what you have done.
– daleif
5 hours ago
Note that LaTeX does not really have a notion of libraries, so please explain exactly what you have done.
– daleif
5 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 usepackage{sdlibV1} 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
5 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 usepackage{sdlibV1} 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
5 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
4 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
4 hours ago
|
show 13 more comments
1 Answer
1
active
oldest
votes
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
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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
add a comment |
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
add a comment |
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
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
answered 4 hours ago
KlueKlue
284
284
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
Where are these files placed in the file system in relation to each other?
– daleif
5 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
5 hours ago
Note that LaTeX does not really have a notion of libraries, so please explain exactly what you have done.
– daleif
5 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 usepackage{sdlibV1} 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
5 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 -uon the command line.)– Ulrike Fischer
4 hours ago