How to check which command was used to load a .sty file?
up vote
0
down vote
favorite
I have a .sty
file that may be loaded using the command usepackage
(in LaTeX) or the command input
(in LaTeX or Plain TeX).
Is there any way that within the .sty
file to check which command was used to load the file?
pdftex
New contributor
add a comment |
up vote
0
down vote
favorite
I have a .sty
file that may be loaded using the command usepackage
(in LaTeX) or the command input
(in LaTeX or Plain TeX).
Is there any way that within the .sty
file to check which command was used to load the file?
pdftex
New contributor
3
usepackage will define the csnamever@nameofyoursty.sty
. You could test for it.
– Ulrike Fischer
2 days ago
You can also check the used format (provided your package should behave the same in LaTeX independent on the used method to load it).
– Skillmon
2 days ago
You might take a look at @ifpackageloaded. Presumably it is set by usepackage, not input.
– John Kormylo
2 days ago
Thanks all, your explanations really solved my problem.
– Tisha Shusho
yesterday
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have a .sty
file that may be loaded using the command usepackage
(in LaTeX) or the command input
(in LaTeX or Plain TeX).
Is there any way that within the .sty
file to check which command was used to load the file?
pdftex
New contributor
I have a .sty
file that may be loaded using the command usepackage
(in LaTeX) or the command input
(in LaTeX or Plain TeX).
Is there any way that within the .sty
file to check which command was used to load the file?
pdftex
pdftex
New contributor
New contributor
edited 2 days ago
Sebastiano
8,29541754
8,29541754
New contributor
asked 2 days ago
Tisha Shusho
11
11
New contributor
New contributor
3
usepackage will define the csnamever@nameofyoursty.sty
. You could test for it.
– Ulrike Fischer
2 days ago
You can also check the used format (provided your package should behave the same in LaTeX independent on the used method to load it).
– Skillmon
2 days ago
You might take a look at @ifpackageloaded. Presumably it is set by usepackage, not input.
– John Kormylo
2 days ago
Thanks all, your explanations really solved my problem.
– Tisha Shusho
yesterday
add a comment |
3
usepackage will define the csnamever@nameofyoursty.sty
. You could test for it.
– Ulrike Fischer
2 days ago
You can also check the used format (provided your package should behave the same in LaTeX independent on the used method to load it).
– Skillmon
2 days ago
You might take a look at @ifpackageloaded. Presumably it is set by usepackage, not input.
– John Kormylo
2 days ago
Thanks all, your explanations really solved my problem.
– Tisha Shusho
yesterday
3
3
usepackage will define the csname
ver@nameofyoursty.sty
. You could test for it.– Ulrike Fischer
2 days ago
usepackage will define the csname
ver@nameofyoursty.sty
. You could test for it.– Ulrike Fischer
2 days ago
You can also check the used format (provided your package should behave the same in LaTeX independent on the used method to load it).
– Skillmon
2 days ago
You can also check the used format (provided your package should behave the same in LaTeX independent on the used method to load it).
– Skillmon
2 days ago
You might take a look at @ifpackageloaded. Presumably it is set by usepackage, not input.
– John Kormylo
2 days ago
You might take a look at @ifpackageloaded. Presumably it is set by usepackage, not input.
– John Kormylo
2 days ago
Thanks all, your explanations really solved my problem.
– Tisha Shusho
yesterday
Thanks all, your explanations really solved my problem.
– Tisha Shusho
yesterday
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Tisha Shusho is a new contributor. Be nice, and check out our Code of Conduct.
Tisha Shusho is a new contributor. Be nice, and check out our Code of Conduct.
Tisha Shusho is a new contributor. Be nice, and check out our Code of Conduct.
Tisha Shusho is a new contributor. Be nice, and check out our Code of Conduct.
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%2f460473%2fhow-to-check-which-command-was-used-to-load-a-sty-file%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
3
usepackage will define the csname
ver@nameofyoursty.sty
. You could test for it.– Ulrike Fischer
2 days ago
You can also check the used format (provided your package should behave the same in LaTeX independent on the used method to load it).
– Skillmon
2 days ago
You might take a look at @ifpackageloaded. Presumably it is set by usepackage, not input.
– John Kormylo
2 days ago
Thanks all, your explanations really solved my problem.
– Tisha Shusho
yesterday