input{} command inside custom .sty packageHow to use the import package?Relative path issue with epslatexHow...
Is the Joker left-handed?
Why are electrically insulating heatsinks so rare? Is it just cost?
A reference to a well-known characterization of scattered compact spaces
Is it inappropriate for a student to attend their mentor's dissertation defense?
Why is the 'in' operator throwing an error with a string literal instead of logging false?
In a Spin are Both Wings Stalled?
Can a rocket refuel on Mars from water?
Western buddy movie with a supernatural twist where a woman turns into an eagle at the end
How much of data wrangling is a data scientist's job?
How badly should I try to prevent a user from XSSing themselves?
Did Shadowfax go to Valinor?
I'm flying to France today and my passport expires in less than 2 months
Why is the ratio of two extensive quantities always intensive?
Can I ask the recruiters in my resume to put the reason why I am rejected?
What does it mean to describe someone as a butt steak?
I Accidentally Deleted a Stock Terminal Theme
Watching something be written to a file live with tail
Do I have a twin with permutated remainders?
UK: Is there precedent for the governments e-petition site changing the direction of a government decision?
Python: return float 1.0 as int 1 but float 1.5 as float 1.5
How to show the equivalence between the regularized regression and their constraint formulas using KKT
Forgetting the musical notes while performing in concert
prove that the matrix A is diagonalizable
1960's book about a plague that kills all white people
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
4 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
4 hours ago
Note that LaTeX does not really have a notion of libraries, so please explain exactly what you have done.
– daleif
4 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
4 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
3 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 3 hours ago
Klue
asked 4 hours ago
KlueKlue
284
284
Where are these files placed in the file system in relation to each other?
– daleif
4 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
4 hours ago
Note that LaTeX does not really have a notion of libraries, so please explain exactly what you have done.
– daleif
4 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
4 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
3 hours ago
|
show 13 more comments
Where are these files placed in the file system in relation to each other?
– daleif
4 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
4 hours ago
Note that LaTeX does not really have a notion of libraries, so please explain exactly what you have done.
– daleif
4 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
4 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
3 hours ago
Where are these files placed in the file system in relation to each other?
– daleif
4 hours ago
Where are these files placed in the file system in relation to each other?
– daleif
4 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
4 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
4 hours ago
Note that LaTeX does not really have a notion of libraries, so please explain exactly what you have done.
– daleif
4 hours ago
Note that LaTeX does not really have a notion of libraries, so please explain exactly what you have done.
– daleif
4 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
4 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
4 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
3 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
3 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 3 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
4 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
4 hours ago
Note that LaTeX does not really have a notion of libraries, so please explain exactly what you have done.
– daleif
4 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
4 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
3 hours ago