How to vertically wrapped page around formula?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
2
down vote

favorite












thank you for your time.



I wonder if it is possible to render one phrase only in latex and make sure the document is wrapped around the phrase (no bigger that it need to be)? I know you can set the size of a document with the package geometry but I would prefer for it to be somewhat automatic as I want to incorporate this in a script.



example being the entire document: this the entire document
Thank you for you time and help










share|improve this question







New contributor




NRagot is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.















  • 3




    sounds like you are looking for the standalone documentclass. Can you post the code for your equation?
    – samcarter
    4 hours ago











  • this is exactly that. Thank you, I had no clue such thing existed, I thought that latex was only an article like document maker. I(ve put your answer.
    – NRagot
    4 hours ago










  • never underestimate the abilities of latex :)
    – samcarter
    3 hours ago














up vote
2
down vote

favorite












thank you for your time.



I wonder if it is possible to render one phrase only in latex and make sure the document is wrapped around the phrase (no bigger that it need to be)? I know you can set the size of a document with the package geometry but I would prefer for it to be somewhat automatic as I want to incorporate this in a script.



example being the entire document: this the entire document
Thank you for you time and help










share|improve this question







New contributor




NRagot is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.















  • 3




    sounds like you are looking for the standalone documentclass. Can you post the code for your equation?
    – samcarter
    4 hours ago











  • this is exactly that. Thank you, I had no clue such thing existed, I thought that latex was only an article like document maker. I(ve put your answer.
    – NRagot
    4 hours ago










  • never underestimate the abilities of latex :)
    – samcarter
    3 hours ago












up vote
2
down vote

favorite









up vote
2
down vote

favorite











thank you for your time.



I wonder if it is possible to render one phrase only in latex and make sure the document is wrapped around the phrase (no bigger that it need to be)? I know you can set the size of a document with the package geometry but I would prefer for it to be somewhat automatic as I want to incorporate this in a script.



example being the entire document: this the entire document
Thank you for you time and help










share|improve this question







New contributor




NRagot is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











thank you for your time.



I wonder if it is possible to render one phrase only in latex and make sure the document is wrapped around the phrase (no bigger that it need to be)? I know you can set the size of a document with the package geometry but I would prefer for it to be somewhat automatic as I want to incorporate this in a script.



example being the entire document: this the entire document
Thank you for you time and help







geometry scripts






share|improve this question







New contributor




NRagot is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question







New contributor




NRagot is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question






New contributor




NRagot is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 4 hours ago









NRagot

415




415




New contributor




NRagot is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





NRagot is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






NRagot is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







  • 3




    sounds like you are looking for the standalone documentclass. Can you post the code for your equation?
    – samcarter
    4 hours ago











  • this is exactly that. Thank you, I had no clue such thing existed, I thought that latex was only an article like document maker. I(ve put your answer.
    – NRagot
    4 hours ago










  • never underestimate the abilities of latex :)
    – samcarter
    3 hours ago












  • 3




    sounds like you are looking for the standalone documentclass. Can you post the code for your equation?
    – samcarter
    4 hours ago











  • this is exactly that. Thank you, I had no clue such thing existed, I thought that latex was only an article like document maker. I(ve put your answer.
    – NRagot
    4 hours ago










  • never underestimate the abilities of latex :)
    – samcarter
    3 hours ago







3




3




sounds like you are looking for the standalone documentclass. Can you post the code for your equation?
– samcarter
4 hours ago





sounds like you are looking for the standalone documentclass. Can you post the code for your equation?
– samcarter
4 hours ago













this is exactly that. Thank you, I had no clue such thing existed, I thought that latex was only an article like document maker. I(ve put your answer.
– NRagot
4 hours ago




this is exactly that. Thank you, I had no clue such thing existed, I thought that latex was only an article like document maker. I(ve put your answer.
– NRagot
4 hours ago












never underestimate the abilities of latex :)
– samcarter
3 hours ago




never underestimate the abilities of latex :)
– samcarter
3 hours ago










1 Answer
1






active

oldest

votes

















up vote
3
down vote













Ok, the comment from samcarter allowed me to find what I needed on the internet. The standalone document class is the one. This page has everything : How to make a standalone document with one equation?.



Thank you



Even though the one in the link seems awfully similar to mine, I wont erase my question since to find the one in the link you have to know the standalone class (Unless asked otherwise of course). Good day to all.




edit:
As requested, here is the result
enter image description here

from



documentclassstandalone
begindocument
$
displaystyle
int_a^x f(t)dt = lim_n rightarrow +infty sum_k=0^n fracx - an fleft(k fracx - an + aright)
$
enddocument


Notice the use of $ displaystyle ... $ instead of $$ ... $$; it is because the standalone class doesn't accept $$ by default for being in crop mode. Going into preview mode only wrap the text vertically and not horizontally which is even better for me. If that is no problem for you however, just replace the line documentclassstandalone by documentclass[preview]standalone from which the class allow the use of $$.






share|improve this answer










New contributor




NRagot is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

















  • you should show us your solution ...
    – Zarko
    4 hours ago










  • very well, I'll update immediately
    – NRagot
    4 hours ago











  • even better, ask @samcarte that (s)he extend her/his comment to an answer ...
    – Zarko
    3 hours ago










  • @S.lama Not necessary to ask me, I'm fine with you posting an answer yourself. As a improvement you could include a small sample document with the formula from your question.
    – samcarter
    3 hours ago











  • @S.lama Nice answer! You might want to avoid $$ altogether, see tex.stackexchange.com/questions/503/why-is-preferable-to
    – samcarter
    3 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',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);






NRagot is a new contributor. Be nice, and check out our Code of Conduct.









 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f455044%2fhow-to-vertically-wrapped-page-around-formula%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
3
down vote













Ok, the comment from samcarter allowed me to find what I needed on the internet. The standalone document class is the one. This page has everything : How to make a standalone document with one equation?.



Thank you



Even though the one in the link seems awfully similar to mine, I wont erase my question since to find the one in the link you have to know the standalone class (Unless asked otherwise of course). Good day to all.




edit:
As requested, here is the result
enter image description here

from



documentclassstandalone
begindocument
$
displaystyle
int_a^x f(t)dt = lim_n rightarrow +infty sum_k=0^n fracx - an fleft(k fracx - an + aright)
$
enddocument


Notice the use of $ displaystyle ... $ instead of $$ ... $$; it is because the standalone class doesn't accept $$ by default for being in crop mode. Going into preview mode only wrap the text vertically and not horizontally which is even better for me. If that is no problem for you however, just replace the line documentclassstandalone by documentclass[preview]standalone from which the class allow the use of $$.






share|improve this answer










New contributor




NRagot is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

















  • you should show us your solution ...
    – Zarko
    4 hours ago










  • very well, I'll update immediately
    – NRagot
    4 hours ago











  • even better, ask @samcarte that (s)he extend her/his comment to an answer ...
    – Zarko
    3 hours ago










  • @S.lama Not necessary to ask me, I'm fine with you posting an answer yourself. As a improvement you could include a small sample document with the formula from your question.
    – samcarter
    3 hours ago











  • @S.lama Nice answer! You might want to avoid $$ altogether, see tex.stackexchange.com/questions/503/why-is-preferable-to
    – samcarter
    3 hours ago















up vote
3
down vote













Ok, the comment from samcarter allowed me to find what I needed on the internet. The standalone document class is the one. This page has everything : How to make a standalone document with one equation?.



Thank you



Even though the one in the link seems awfully similar to mine, I wont erase my question since to find the one in the link you have to know the standalone class (Unless asked otherwise of course). Good day to all.




edit:
As requested, here is the result
enter image description here

from



documentclassstandalone
begindocument
$
displaystyle
int_a^x f(t)dt = lim_n rightarrow +infty sum_k=0^n fracx - an fleft(k fracx - an + aright)
$
enddocument


Notice the use of $ displaystyle ... $ instead of $$ ... $$; it is because the standalone class doesn't accept $$ by default for being in crop mode. Going into preview mode only wrap the text vertically and not horizontally which is even better for me. If that is no problem for you however, just replace the line documentclassstandalone by documentclass[preview]standalone from which the class allow the use of $$.






share|improve this answer










New contributor




NRagot is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

















  • you should show us your solution ...
    – Zarko
    4 hours ago










  • very well, I'll update immediately
    – NRagot
    4 hours ago











  • even better, ask @samcarte that (s)he extend her/his comment to an answer ...
    – Zarko
    3 hours ago










  • @S.lama Not necessary to ask me, I'm fine with you posting an answer yourself. As a improvement you could include a small sample document with the formula from your question.
    – samcarter
    3 hours ago











  • @S.lama Nice answer! You might want to avoid $$ altogether, see tex.stackexchange.com/questions/503/why-is-preferable-to
    – samcarter
    3 hours ago













up vote
3
down vote










up vote
3
down vote









Ok, the comment from samcarter allowed me to find what I needed on the internet. The standalone document class is the one. This page has everything : How to make a standalone document with one equation?.



Thank you



Even though the one in the link seems awfully similar to mine, I wont erase my question since to find the one in the link you have to know the standalone class (Unless asked otherwise of course). Good day to all.




edit:
As requested, here is the result
enter image description here

from



documentclassstandalone
begindocument
$
displaystyle
int_a^x f(t)dt = lim_n rightarrow +infty sum_k=0^n fracx - an fleft(k fracx - an + aright)
$
enddocument


Notice the use of $ displaystyle ... $ instead of $$ ... $$; it is because the standalone class doesn't accept $$ by default for being in crop mode. Going into preview mode only wrap the text vertically and not horizontally which is even better for me. If that is no problem for you however, just replace the line documentclassstandalone by documentclass[preview]standalone from which the class allow the use of $$.






share|improve this answer










New contributor




NRagot is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









Ok, the comment from samcarter allowed me to find what I needed on the internet. The standalone document class is the one. This page has everything : How to make a standalone document with one equation?.



Thank you



Even though the one in the link seems awfully similar to mine, I wont erase my question since to find the one in the link you have to know the standalone class (Unless asked otherwise of course). Good day to all.




edit:
As requested, here is the result
enter image description here

from



documentclassstandalone
begindocument
$
displaystyle
int_a^x f(t)dt = lim_n rightarrow +infty sum_k=0^n fracx - an fleft(k fracx - an + aright)
$
enddocument


Notice the use of $ displaystyle ... $ instead of $$ ... $$; it is because the standalone class doesn't accept $$ by default for being in crop mode. Going into preview mode only wrap the text vertically and not horizontally which is even better for me. If that is no problem for you however, just replace the line documentclassstandalone by documentclass[preview]standalone from which the class allow the use of $$.







share|improve this answer










New contributor




NRagot is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this answer



share|improve this answer








edited 2 hours ago









BambOo

2,762324




2,762324






New contributor




NRagot is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









answered 4 hours ago









NRagot

415




415




New contributor




NRagot is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





NRagot is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






NRagot is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











  • you should show us your solution ...
    – Zarko
    4 hours ago










  • very well, I'll update immediately
    – NRagot
    4 hours ago











  • even better, ask @samcarte that (s)he extend her/his comment to an answer ...
    – Zarko
    3 hours ago










  • @S.lama Not necessary to ask me, I'm fine with you posting an answer yourself. As a improvement you could include a small sample document with the formula from your question.
    – samcarter
    3 hours ago











  • @S.lama Nice answer! You might want to avoid $$ altogether, see tex.stackexchange.com/questions/503/why-is-preferable-to
    – samcarter
    3 hours ago

















  • you should show us your solution ...
    – Zarko
    4 hours ago










  • very well, I'll update immediately
    – NRagot
    4 hours ago











  • even better, ask @samcarte that (s)he extend her/his comment to an answer ...
    – Zarko
    3 hours ago










  • @S.lama Not necessary to ask me, I'm fine with you posting an answer yourself. As a improvement you could include a small sample document with the formula from your question.
    – samcarter
    3 hours ago











  • @S.lama Nice answer! You might want to avoid $$ altogether, see tex.stackexchange.com/questions/503/why-is-preferable-to
    – samcarter
    3 hours ago
















you should show us your solution ...
– Zarko
4 hours ago




you should show us your solution ...
– Zarko
4 hours ago












very well, I'll update immediately
– NRagot
4 hours ago





very well, I'll update immediately
– NRagot
4 hours ago













even better, ask @samcarte that (s)he extend her/his comment to an answer ...
– Zarko
3 hours ago




even better, ask @samcarte that (s)he extend her/his comment to an answer ...
– Zarko
3 hours ago












@S.lama Not necessary to ask me, I'm fine with you posting an answer yourself. As a improvement you could include a small sample document with the formula from your question.
– samcarter
3 hours ago





@S.lama Not necessary to ask me, I'm fine with you posting an answer yourself. As a improvement you could include a small sample document with the formula from your question.
– samcarter
3 hours ago













@S.lama Nice answer! You might want to avoid $$ altogether, see tex.stackexchange.com/questions/503/why-is-preferable-to
– samcarter
3 hours ago





@S.lama Nice answer! You might want to avoid $$ altogether, see tex.stackexchange.com/questions/503/why-is-preferable-to
– samcarter
3 hours ago











NRagot is a new contributor. Be nice, and check out our Code of Conduct.









 

draft saved


draft discarded


















NRagot is a new contributor. Be nice, and check out our Code of Conduct.












NRagot is a new contributor. Be nice, and check out our Code of Conduct.











NRagot is a new contributor. Be nice, and check out our Code of Conduct.













 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f455044%2fhow-to-vertically-wrapped-page-around-formula%23new-answer', 'question_page');

);

Post as a guest













































































Comments

Popular posts from this blog

Long meetings (6-7 hours a day): Being “babysat” by supervisor

Is the Concept of Multiple Fantasy Races Scientifically Flawed? [closed]

Confectionery