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
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
|
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
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
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 withinitexmf -uon the command line.)
– Ulrike Fischer
2 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
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
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
input
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 withinitexmf -uon the command line.)
– Ulrike Fischer
2 hours ago
|
show 13 more comments
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 withinitexmf -uon 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
|
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');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
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 2 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');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
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');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
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');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
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');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
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
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 -uon the command line.)– Ulrike Fischer
2 hours ago