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













6















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









share|improve this question



















  • 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






  • 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















6















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









share|improve this question



















  • 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






  • 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













6












6








6


1






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









share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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 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





    @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





    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





    @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










1 Answer
1






active

oldest

votes


















2














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



enter image description here



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


enter image description here



As you can see, you can manipulate it from outside which you can't if you use includegraphics.






share|improve this answer


















  • 1





    +1, interesting!

    – CarLaTeX
    2 hours ago











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
);



);













draft saved

draft discarded


















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









2














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



enter image description here



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


enter image description here



As you can see, you can manipulate it from outside which you can't if you use includegraphics.






share|improve this answer


















  • 1





    +1, interesting!

    – CarLaTeX
    2 hours ago















2














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



enter image description here



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


enter image description here



As you can see, you can manipulate it from outside which you can't if you use includegraphics.






share|improve this answer


















  • 1





    +1, interesting!

    – CarLaTeX
    2 hours ago













2












2








2







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



enter image description here



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


enter image description here



As you can see, you can manipulate it from outside which you can't if you use includegraphics.






share|improve this answer













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



enter image description here



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


enter image description here



As you can see, you can manipulate it from outside which you can't if you use includegraphics.







share|improve this answer












share|improve this answer



share|improve this answer










answered 2 hours ago









marmotmarmot

128k6162308




128k6162308







  • 1





    +1, interesting!

    – CarLaTeX
    2 hours ago












  • 1





    +1, interesting!

    – CarLaTeX
    2 hours ago







1




1





+1, interesting!

– CarLaTeX
2 hours ago





+1, interesting!

– CarLaTeX
2 hours ago

















draft saved

draft discarded
















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

Canceling a color specificationRandomly assigning color to Graphics3D objects?Default color for Filling in Mathematica 9Coloring specific elements of sets with a prime modified order in an array plotHow to pick a color differing significantly from the colors already in a given color list?Detection of the text colorColor numbers based on their valueCan color schemes for use with ColorData include opacity specification?My dynamic color schemes

Invision Community Contents History See also References External links Navigation menuProprietaryinvisioncommunity.comIPS Community ForumsIPS Community Forumsthis blog entry"License Changes, IP.Board 3.4, and the Future""Interview -- Matt Mecham of Ibforums""CEO Invision Power Board, Matt Mecham Is a Liar, Thief!"IPB License Explanation 1.3, 1.3.1, 2.0, and 2.1ArchivedSecurity Fixes, Updates And Enhancements For IPB 1.3.1Archived"New Demo Accounts - Invision Power Services"the original"New Default Skin"the original"Invision Power Board 3.0.0 and Applications Released"the original"Archived copy"the original"Perpetual licenses being done away with""Release Notes - Invision Power Services""Introducing: IPS Community Suite 4!"Invision Community Release Notes

François Viète Contents Biography Work and thought Bibliography See also Notes Further reading External links Navigation menup. 21Google Bookspp. 75–77Google BooksDe thou (from University of Saint Andrews)ArchivedGoogle BooksGoogle BooksGoogle BooksGoogle booksGoogle Bookscc-parthenay.frL'histoire universelle (fr)Universal History (en)ArchivedAdsabs.harvard.eduPagesperso-orange.frArchive.orgChikara Sasaki. Descartes' mathematical thought p.259Google BooksGoogle BooksGoogle Bookspp. 152 and onwardGoogle BooksGoogle BooksScribd.comGoogle Books1257-7979Google BooksGoogle BooksGoogle BooksGoogle BooksGoogle BooksGoogle BooksGallica.bnf.frGoogle BooksGoogle Books"François Viète"Francois Viète: Father of Modern Algebraic NotationThe Lawyer and the GamblerAbout TarporleySite de Jean-Paul GuichardL'algèbre nouvelle"About the Harmonicon"cb120511976(data)1188044800000 0001 0913 5903n82164680ola2013766880073431702w6vt1sb70287374827140948071409480