input{} command inside custom .sty packageHow to use the import package?Relative path issue with epslatexHow...
RG-213 Cable with electric strained wire as metallic shield of Coaxial cable
Fully-Firstable Anagram Sets
Why is it a bad idea to hire a hitman to eliminate most corrupt politicians?
Should I tell management that I intend to leave due to bad software development practices?
Watching something be written to a file live with tail
Does a druid starting with a bow start with no arrows?
Western buddy movie with a supernatural twist where a woman turns into an eagle at the end
Is it unprofessional to ask if a job posting on GlassDoor is real?
Brothers & sisters
Can I ask the recruiters in my resume to put the reason why I am rejected?
I'm flying to France today and my passport expires in less than 2 months
Where does SFDX store details about scratch orgs?
Twin primes whose sum is a cube
Etiquette around loan refinance - decision is going to cost first broker a lot of money
Infinite Abelian subgroup of infinite non Abelian group example
How can saying a song's name be a copyright violation?
How can I tell someone that I want to be his or her friend?
Is it legal for company to use my work email to pretend I still work there?
I Accidentally Deleted a Stock Terminal Theme
Could gravitational lensing be used to protect a spaceship from a laser?
Can I use a neutral wire from another outlet to repair a broken neutral?
What killed these X2 caps?
Facing a paradox: Earnshaw's theorem in one dimension
Is "remove commented out code" correct English?
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
6 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
6 hours ago
Note that LaTeX does not really have a notion of libraries, so please explain exactly what you have done.
– daleif
6 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 -u
on the command line.)
– Ulrike Fischer
5 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 5 hours ago
Klue
asked 6 hours ago
KlueKlue
284
284
Where are these files placed in the file system in relation to each other?
– daleif
6 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
6 hours ago
Note that LaTeX does not really have a notion of libraries, so please explain exactly what you have done.
– daleif
6 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 -u
on the command line.)
– Ulrike Fischer
5 hours ago
|
show 13 more comments
Where are these files placed in the file system in relation to each other?
– daleif
6 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
6 hours ago
Note that LaTeX does not really have a notion of libraries, so please explain exactly what you have done.
– daleif
6 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 -u
on the command line.)
– Ulrike Fischer
5 hours ago
Where are these files placed in the file system in relation to each other?
– daleif
6 hours ago
Where are these files placed in the file system in relation to each other?
– daleif
6 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
6 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
6 hours ago
Note that LaTeX does not really have a notion of libraries, so please explain exactly what you have done.
– daleif
6 hours ago
Note that LaTeX does not really have a notion of libraries, so please explain exactly what you have done.
– daleif
6 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
5 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
5 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 5 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
6 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
6 hours ago
Note that LaTeX does not really have a notion of libraries, so please explain exactly what you have done.
– daleif
6 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 -u
on the command line.)– Ulrike Fischer
5 hours ago