Which are the advantages/disadvantages of includestandalone?Conflict between color, graphicx and libertineTwo figures side by side with text wrappingIncluding .tex files that need a different style file than the main textHow to make the (COMPLETE) preamble of a Standalone document available to a `Main Document`?I cannot add pictures to my document using latex and texstudioStandalone proper alignment of plotsTikz external files and pdfGraphicx Displays File Path, not ImageWhen using inputdocument_with_tikz.tex the paths inside document_with_tikz.tex getting wrongPicture created with standalone looks quite different than the original one
What defines a person who is circumcised "of the heart"?
Why "strap-on" boosters, and how do other people say it?
Coloring lines in a graph the same color if they are the same length
Why is a weak base more able to deprotonate a strong acid than a weak acid?
How to safely discharge oneself
Department head said that group project may be rejected. How to mitigate?
Is it safe to redirect stdout and stderr to the same file without file descriptor copies?
Variable does not Exist: CaseTrigger
Shell builtin `printf` line limit?
Is it OK to look at the list of played moves during the game to determine the status of the 50 move rule?
Salesforce bug enabled "Modify All"
Is there a filesystem that keep track of all version without snapshot?
Nunc est bibendum: gerund or gerundive?
Can diplomats be allowed on the flight deck of a commercial European airline?
Is the default 512 byte physical sector size appropriate for SSD disks under Linux?
Johnson-Nyquist noise for a lossy inductor?
AD: Unable to perform remote desktop logon
How to tease a romance without a cat and mouse chase?
Can a UK national work as a paid shop assistant in the USA?
Does the fact that we can only measure the two-way speed of light undermine the axiom of invariance?
Is ideal gas incompressible?
Is a world with one country feeding everyone possible?
Is my company merging branches wrong?
How to remove unwanted horizontal line from diagbox
Which are the advantages/disadvantages of includestandalone?
Conflict between color, graphicx and libertineTwo figures side by side with text wrappingIncluding .tex files that need a different style file than the main textHow to make the (COMPLETE) preamble of a Standalone document available to a `Main Document`?I cannot add pictures to my document using latex and texstudioStandalone proper alignment of plotsTikz external files and pdfGraphicx Displays File Path, not ImageWhen using inputdocument_with_tikz.tex the paths inside document_with_tikz.tex getting wrongPicture created with standalone looks quite different than the original one
I've just found out that the command
includestandalone[<options>]<file>
exists.
Which are its advantages/disadvantages with respect to the includegraphics<file> of the output image?
For example, if I have myfile.tex:
documentclassstandalone
usepackagetikz
begindocument
begintikzpicture
node[fill=red]A;
endtikzpicture
enddocument
with includestandalone I have to put in the preamble of the main file all the packages present in the standalone preamble:
documentclassarticle
usepackagetikz
usepackagestandalone
begindocument
includestandalonemyfile
enddocument
whereas if I only include the output, of course, I don't need them:
documentclassarticle
usepackagegraphicx
begindocument
includegraphicsmyfile
enddocument
graphics standalone
add a comment |
I've just found out that the command
includestandalone[<options>]<file>
exists.
Which are its advantages/disadvantages with respect to the includegraphics<file> of the output image?
For example, if I have myfile.tex:
documentclassstandalone
usepackagetikz
begindocument
begintikzpicture
node[fill=red]A;
endtikzpicture
enddocument
with includestandalone I have to put in the preamble of the main file all the packages present in the standalone preamble:
documentclassarticle
usepackagetikz
usepackagestandalone
begindocument
includestandalonemyfile
enddocument
whereas if I only include the output, of course, I don't need them:
documentclassarticle
usepackagegraphicx
begindocument
includegraphicsmyfile
enddocument
graphics standalone
5
Looking at the package code ofstandaloneit looks like it checks the modification time of the.texfile and if it is newer than that of the.pdffile then it starts a standalone job to update the.pdffile. It looks like the externalisation thing in TikZ. So I'd say that an advantage is that it updates the file if necessary. There's probably much more than that, but this is what I saw by quickly looking into the code.
– Phelype Oleinik
3 hours ago
1
@PhelypeOleinik Thank you, you could also write an answer if you like.
– CarLaTeX
3 hours ago
5
As I understand it it is in effect a variation of the principles of subfiles. That is the subfiles are potentially compilable standalone OR can be included in which case they are not only physically cropped area but also tex is cropped from begindocument to enddocument thus why it needs the preambles to be included for those imported commands
– KJO
3 hours ago
@KJO Thanks, you could write an answer, too, if you like.
– CarLaTeX
3 hours ago
add a comment |
I've just found out that the command
includestandalone[<options>]<file>
exists.
Which are its advantages/disadvantages with respect to the includegraphics<file> of the output image?
For example, if I have myfile.tex:
documentclassstandalone
usepackagetikz
begindocument
begintikzpicture
node[fill=red]A;
endtikzpicture
enddocument
with includestandalone I have to put in the preamble of the main file all the packages present in the standalone preamble:
documentclassarticle
usepackagetikz
usepackagestandalone
begindocument
includestandalonemyfile
enddocument
whereas if I only include the output, of course, I don't need them:
documentclassarticle
usepackagegraphicx
begindocument
includegraphicsmyfile
enddocument
graphics standalone
I've just found out that the command
includestandalone[<options>]<file>
exists.
Which are its advantages/disadvantages with respect to the includegraphics<file> of the output image?
For example, if I have myfile.tex:
documentclassstandalone
usepackagetikz
begindocument
begintikzpicture
node[fill=red]A;
endtikzpicture
enddocument
with includestandalone I have to put in the preamble of the main file all the packages present in the standalone preamble:
documentclassarticle
usepackagetikz
usepackagestandalone
begindocument
includestandalonemyfile
enddocument
whereas if I only include the output, of course, I don't need them:
documentclassarticle
usepackagegraphicx
begindocument
includegraphicsmyfile
enddocument
graphics standalone
graphics standalone
edited 3 hours ago
Phelype Oleinik
27.8k54793
27.8k54793
asked 4 hours ago
CarLaTeXCarLaTeX
36.7k557159
36.7k557159
5
Looking at the package code ofstandaloneit looks like it checks the modification time of the.texfile and if it is newer than that of the.pdffile then it starts a standalone job to update the.pdffile. It looks like the externalisation thing in TikZ. So I'd say that an advantage is that it updates the file if necessary. There's probably much more than that, but this is what I saw by quickly looking into the code.
– Phelype Oleinik
3 hours ago
1
@PhelypeOleinik Thank you, you could also write an answer if you like.
– CarLaTeX
3 hours ago
5
As I understand it it is in effect a variation of the principles of subfiles. That is the subfiles are potentially compilable standalone OR can be included in which case they are not only physically cropped area but also tex is cropped from begindocument to enddocument thus why it needs the preambles to be included for those imported commands
– KJO
3 hours ago
@KJO Thanks, you could write an answer, too, if you like.
– CarLaTeX
3 hours ago
add a comment |
5
Looking at the package code ofstandaloneit looks like it checks the modification time of the.texfile and if it is newer than that of the.pdffile then it starts a standalone job to update the.pdffile. It looks like the externalisation thing in TikZ. So I'd say that an advantage is that it updates the file if necessary. There's probably much more than that, but this is what I saw by quickly looking into the code.
– Phelype Oleinik
3 hours ago
1
@PhelypeOleinik Thank you, you could also write an answer if you like.
– CarLaTeX
3 hours ago
5
As I understand it it is in effect a variation of the principles of subfiles. That is the subfiles are potentially compilable standalone OR can be included in which case they are not only physically cropped area but also tex is cropped from begindocument to enddocument thus why it needs the preambles to be included for those imported commands
– KJO
3 hours ago
@KJO Thanks, you could write an answer, too, if you like.
– CarLaTeX
3 hours ago
5
5
Looking at the package code of
standalone it looks like it checks the modification time of the .tex file and if it is newer than that of the .pdf file then it starts a standalone job to update the .pdf file. It looks like the externalisation thing in TikZ. So I'd say that an advantage is that it updates the file if necessary. There's probably much more than that, but this is what I saw by quickly looking into the code.– Phelype Oleinik
3 hours ago
Looking at the package code of
standalone it looks like it checks the modification time of the .tex file and if it is newer than that of the .pdf file then it starts a standalone job to update the .pdf file. It looks like the externalisation thing in TikZ. So I'd say that an advantage is that it updates the file if necessary. There's probably much more than that, but this is what I saw by quickly looking into the code.– Phelype Oleinik
3 hours ago
1
1
@PhelypeOleinik Thank you, you could also write an answer if you like.
– CarLaTeX
3 hours ago
@PhelypeOleinik Thank you, you could also write an answer if you like.
– CarLaTeX
3 hours ago
5
5
As I understand it it is in effect a variation of the principles of subfiles. That is the subfiles are potentially compilable standalone OR can be included in which case they are not only physically cropped area but also tex is cropped from begindocument to enddocument thus why it needs the preambles to be included for those imported commands
– KJO
3 hours ago
As I understand it it is in effect a variation of the principles of subfiles. That is the subfiles are potentially compilable standalone OR can be included in which case they are not only physically cropped area but also tex is cropped from begindocument to enddocument thus why it needs the preambles to be included for those imported commands
– KJO
3 hours ago
@KJO Thanks, you could write an answer, too, if you like.
– CarLaTeX
3 hours ago
@KJO Thanks, you could write an answer, too, if you like.
– CarLaTeX
3 hours ago
add a comment |
1 Answer
1
active
oldest
votes
This is one advantage, I do not claim it is the most important one. It goes in the same direction as the comments by Phelype and KJO, and is essentially copied from here. Consider this subfile sub.tex.
documentclass[tikz]standalone
begindocument
ifstandalone
tikzsetmy style/.style=line width=3pt
fi
begintikzpicture
draw[->,my style] (0,1cm)--++(4,-5);
endtikzpicture
enddocument
If you compile it, you get

However, you can also embed and modify it in a main document.
documentclassarticle
usepackagestandalone
usepackagetikz
begindocument
beginfigure[h]
tikzsetmy style/.style=line width=15pt
includestandalone[mode=tex]sub
captionVersion 1.
endfigure
beginfigure[h]
tikzsetmy style/.style=red, line width=7pt
includestandalone[mode=tex]subcaptionVersion 2.
endfigure
enddocument

As you can see, you can manipulate it from outside which you can't if you use includegraphics.
1
+1, interesting!
– CarLaTeX
2 hours ago
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%2f491645%2fwhich-are-the-advantages-disadvantages-of-includestandalone%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
This is one advantage, I do not claim it is the most important one. It goes in the same direction as the comments by Phelype and KJO, and is essentially copied from here. Consider this subfile sub.tex.
documentclass[tikz]standalone
begindocument
ifstandalone
tikzsetmy style/.style=line width=3pt
fi
begintikzpicture
draw[->,my style] (0,1cm)--++(4,-5);
endtikzpicture
enddocument
If you compile it, you get

However, you can also embed and modify it in a main document.
documentclassarticle
usepackagestandalone
usepackagetikz
begindocument
beginfigure[h]
tikzsetmy style/.style=line width=15pt
includestandalone[mode=tex]sub
captionVersion 1.
endfigure
beginfigure[h]
tikzsetmy style/.style=red, line width=7pt
includestandalone[mode=tex]subcaptionVersion 2.
endfigure
enddocument

As you can see, you can manipulate it from outside which you can't if you use includegraphics.
1
+1, interesting!
– CarLaTeX
2 hours ago
add a comment |
This is one advantage, I do not claim it is the most important one. It goes in the same direction as the comments by Phelype and KJO, and is essentially copied from here. Consider this subfile sub.tex.
documentclass[tikz]standalone
begindocument
ifstandalone
tikzsetmy style/.style=line width=3pt
fi
begintikzpicture
draw[->,my style] (0,1cm)--++(4,-5);
endtikzpicture
enddocument
If you compile it, you get

However, you can also embed and modify it in a main document.
documentclassarticle
usepackagestandalone
usepackagetikz
begindocument
beginfigure[h]
tikzsetmy style/.style=line width=15pt
includestandalone[mode=tex]sub
captionVersion 1.
endfigure
beginfigure[h]
tikzsetmy style/.style=red, line width=7pt
includestandalone[mode=tex]subcaptionVersion 2.
endfigure
enddocument

As you can see, you can manipulate it from outside which you can't if you use includegraphics.
1
+1, interesting!
– CarLaTeX
2 hours ago
add a comment |
This is one advantage, I do not claim it is the most important one. It goes in the same direction as the comments by Phelype and KJO, and is essentially copied from here. Consider this subfile sub.tex.
documentclass[tikz]standalone
begindocument
ifstandalone
tikzsetmy style/.style=line width=3pt
fi
begintikzpicture
draw[->,my style] (0,1cm)--++(4,-5);
endtikzpicture
enddocument
If you compile it, you get

However, you can also embed and modify it in a main document.
documentclassarticle
usepackagestandalone
usepackagetikz
begindocument
beginfigure[h]
tikzsetmy style/.style=line width=15pt
includestandalone[mode=tex]sub
captionVersion 1.
endfigure
beginfigure[h]
tikzsetmy style/.style=red, line width=7pt
includestandalone[mode=tex]subcaptionVersion 2.
endfigure
enddocument

As you can see, you can manipulate it from outside which you can't if you use includegraphics.
This is one advantage, I do not claim it is the most important one. It goes in the same direction as the comments by Phelype and KJO, and is essentially copied from here. Consider this subfile sub.tex.
documentclass[tikz]standalone
begindocument
ifstandalone
tikzsetmy style/.style=line width=3pt
fi
begintikzpicture
draw[->,my style] (0,1cm)--++(4,-5);
endtikzpicture
enddocument
If you compile it, you get

However, you can also embed and modify it in a main document.
documentclassarticle
usepackagestandalone
usepackagetikz
begindocument
beginfigure[h]
tikzsetmy style/.style=line width=15pt
includestandalone[mode=tex]sub
captionVersion 1.
endfigure
beginfigure[h]
tikzsetmy style/.style=red, line width=7pt
includestandalone[mode=tex]subcaptionVersion 2.
endfigure
enddocument

As you can see, you can manipulate it from outside which you can't if you use includegraphics.
answered 2 hours ago
marmotmarmot
128k6162308
128k6162308
1
+1, interesting!
– CarLaTeX
2 hours ago
add a comment |
1
+1, interesting!
– CarLaTeX
2 hours ago
1
1
+1, interesting!
– CarLaTeX
2 hours ago
+1, interesting!
– CarLaTeX
2 hours ago
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%2f491645%2fwhich-are-the-advantages-disadvantages-of-includestandalone%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
5
Looking at the package code of
standaloneit looks like it checks the modification time of the.texfile and if it is newer than that of the.pdffile then it starts a standalone job to update the.pdffile. It looks like the externalisation thing in TikZ. So I'd say that an advantage is that it updates the file if necessary. There's probably much more than that, but this is what I saw by quickly looking into the code.– Phelype Oleinik
3 hours ago
1
@PhelypeOleinik Thank you, you could also write an answer if you like.
– CarLaTeX
3 hours ago
5
As I understand it it is in effect a variation of the principles of subfiles. That is the subfiles are potentially compilable standalone OR can be included in which case they are not only physically cropped area but also tex is cropped from begindocument to enddocument thus why it needs the preambles to be included for those imported commands
– KJO
3 hours ago
@KJO Thanks, you could write an answer, too, if you like.
– CarLaTeX
3 hours ago