Creating equally spaced quote & header












1














I want to create a heading for worksheets I will make. I want space for their name, the course, etc. in the upper leftmost space of the page (based on the page dimensions) and a TV/Movie quote in the upper rightmost space of the page.



To do this, I thought to use minipage to accomplish this as follows:



begin{minipage}{0.6textwidth}
textbf{Name:} makebox[3in]{hrulefill} \
textbf{Course} \
textbf{Worksheet #1} \
end{minipage}
begin{minipage}{0.4textwidth}
{em ``This is a quote that someone definitely said.'' } \
struthfill --H.P. Blabbermouth, That One Show You Know
end{minipage}


enter image description here



At first glance, this works. But when you add more to the upperleft material or when the quote is longer, they offset each other so that they are no longer in the uppermost corners (like in the image below). Is there a way of making sure they always appear in the top left/right corner of the page?



enter image description here










share|improve this question









New contributor




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




















  • Welcome to TeX.SE!
    – Kurt
    29 mins ago
















1














I want to create a heading for worksheets I will make. I want space for their name, the course, etc. in the upper leftmost space of the page (based on the page dimensions) and a TV/Movie quote in the upper rightmost space of the page.



To do this, I thought to use minipage to accomplish this as follows:



begin{minipage}{0.6textwidth}
textbf{Name:} makebox[3in]{hrulefill} \
textbf{Course} \
textbf{Worksheet #1} \
end{minipage}
begin{minipage}{0.4textwidth}
{em ``This is a quote that someone definitely said.'' } \
struthfill --H.P. Blabbermouth, That One Show You Know
end{minipage}


enter image description here



At first glance, this works. But when you add more to the upperleft material or when the quote is longer, they offset each other so that they are no longer in the uppermost corners (like in the image below). Is there a way of making sure they always appear in the top left/right corner of the page?



enter image description here










share|improve this question









New contributor




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




















  • Welcome to TeX.SE!
    – Kurt
    29 mins ago














1












1








1







I want to create a heading for worksheets I will make. I want space for their name, the course, etc. in the upper leftmost space of the page (based on the page dimensions) and a TV/Movie quote in the upper rightmost space of the page.



To do this, I thought to use minipage to accomplish this as follows:



begin{minipage}{0.6textwidth}
textbf{Name:} makebox[3in]{hrulefill} \
textbf{Course} \
textbf{Worksheet #1} \
end{minipage}
begin{minipage}{0.4textwidth}
{em ``This is a quote that someone definitely said.'' } \
struthfill --H.P. Blabbermouth, That One Show You Know
end{minipage}


enter image description here



At first glance, this works. But when you add more to the upperleft material or when the quote is longer, they offset each other so that they are no longer in the uppermost corners (like in the image below). Is there a way of making sure they always appear in the top left/right corner of the page?



enter image description here










share|improve this question









New contributor




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











I want to create a heading for worksheets I will make. I want space for their name, the course, etc. in the upper leftmost space of the page (based on the page dimensions) and a TV/Movie quote in the upper rightmost space of the page.



To do this, I thought to use minipage to accomplish this as follows:



begin{minipage}{0.6textwidth}
textbf{Name:} makebox[3in]{hrulefill} \
textbf{Course} \
textbf{Worksheet #1} \
end{minipage}
begin{minipage}{0.4textwidth}
{em ``This is a quote that someone definitely said.'' } \
struthfill --H.P. Blabbermouth, That One Show You Know
end{minipage}


enter image description here



At first glance, this works. But when you add more to the upperleft material or when the quote is longer, they offset each other so that they are no longer in the uppermost corners (like in the image below). Is there a way of making sure they always appear in the top left/right corner of the page?



enter image description here







vertical-alignment






share|improve this question









New contributor




TinyTim 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




TinyTim 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








edited 51 mins ago









Werner

439k659641657




439k659641657






New contributor




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









asked 1 hour ago









TinyTimTinyTim

83




83




New contributor




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





New contributor





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






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












  • Welcome to TeX.SE!
    – Kurt
    29 mins ago


















  • Welcome to TeX.SE!
    – Kurt
    29 mins ago
















Welcome to TeX.SE!
– Kurt
29 mins ago




Welcome to TeX.SE!
– Kurt
29 mins ago










1 Answer
1






active

oldest

votes


















0














You need to use a [t]op-aligned minipages to ensure that they are always aligned appropriately:



enter image description here



documentclass{article}

begin{document}

noindent
begin{minipage}[t]{0.6textwidth}
textbf{Name:} hrulefill ~~ par
textbf{Course} par
textbf{Worksheet #1}
end{minipage}%
begin{minipage}[t]{0.4textwidth}
raggedright
{itshape ``This is a quote that someone definitely said.''} par
raggedleft
--H.P. Blabbermouth, That One Show You Know
end{minipage}

end{document}





share|improve this answer





















  • I use minipage so often in the case where I put it is where I want it that I leave out the float options---so often I'd forgotten it had them. Thank you for the simple solution!
    – TinyTim
    41 mins ago










  • @TinyTim: They aren't floating specifications, but anchor points.
    – Werner
    17 mins 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
});


}
});






TinyTim 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%2f469481%2fcreating-equally-spaced-quote-header%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









0














You need to use a [t]op-aligned minipages to ensure that they are always aligned appropriately:



enter image description here



documentclass{article}

begin{document}

noindent
begin{minipage}[t]{0.6textwidth}
textbf{Name:} hrulefill ~~ par
textbf{Course} par
textbf{Worksheet #1}
end{minipage}%
begin{minipage}[t]{0.4textwidth}
raggedright
{itshape ``This is a quote that someone definitely said.''} par
raggedleft
--H.P. Blabbermouth, That One Show You Know
end{minipage}

end{document}





share|improve this answer





















  • I use minipage so often in the case where I put it is where I want it that I leave out the float options---so often I'd forgotten it had them. Thank you for the simple solution!
    – TinyTim
    41 mins ago










  • @TinyTim: They aren't floating specifications, but anchor points.
    – Werner
    17 mins ago
















0














You need to use a [t]op-aligned minipages to ensure that they are always aligned appropriately:



enter image description here



documentclass{article}

begin{document}

noindent
begin{minipage}[t]{0.6textwidth}
textbf{Name:} hrulefill ~~ par
textbf{Course} par
textbf{Worksheet #1}
end{minipage}%
begin{minipage}[t]{0.4textwidth}
raggedright
{itshape ``This is a quote that someone definitely said.''} par
raggedleft
--H.P. Blabbermouth, That One Show You Know
end{minipage}

end{document}





share|improve this answer





















  • I use minipage so often in the case where I put it is where I want it that I leave out the float options---so often I'd forgotten it had them. Thank you for the simple solution!
    – TinyTim
    41 mins ago










  • @TinyTim: They aren't floating specifications, but anchor points.
    – Werner
    17 mins ago














0












0








0






You need to use a [t]op-aligned minipages to ensure that they are always aligned appropriately:



enter image description here



documentclass{article}

begin{document}

noindent
begin{minipage}[t]{0.6textwidth}
textbf{Name:} hrulefill ~~ par
textbf{Course} par
textbf{Worksheet #1}
end{minipage}%
begin{minipage}[t]{0.4textwidth}
raggedright
{itshape ``This is a quote that someone definitely said.''} par
raggedleft
--H.P. Blabbermouth, That One Show You Know
end{minipage}

end{document}





share|improve this answer












You need to use a [t]op-aligned minipages to ensure that they are always aligned appropriately:



enter image description here



documentclass{article}

begin{document}

noindent
begin{minipage}[t]{0.6textwidth}
textbf{Name:} hrulefill ~~ par
textbf{Course} par
textbf{Worksheet #1}
end{minipage}%
begin{minipage}[t]{0.4textwidth}
raggedright
{itshape ``This is a quote that someone definitely said.''} par
raggedleft
--H.P. Blabbermouth, That One Show You Know
end{minipage}

end{document}






share|improve this answer












share|improve this answer



share|improve this answer










answered 51 mins ago









WernerWerner

439k659641657




439k659641657












  • I use minipage so often in the case where I put it is where I want it that I leave out the float options---so often I'd forgotten it had them. Thank you for the simple solution!
    – TinyTim
    41 mins ago










  • @TinyTim: They aren't floating specifications, but anchor points.
    – Werner
    17 mins ago


















  • I use minipage so often in the case where I put it is where I want it that I leave out the float options---so often I'd forgotten it had them. Thank you for the simple solution!
    – TinyTim
    41 mins ago










  • @TinyTim: They aren't floating specifications, but anchor points.
    – Werner
    17 mins ago
















I use minipage so often in the case where I put it is where I want it that I leave out the float options---so often I'd forgotten it had them. Thank you for the simple solution!
– TinyTim
41 mins ago




I use minipage so often in the case where I put it is where I want it that I leave out the float options---so often I'd forgotten it had them. Thank you for the simple solution!
– TinyTim
41 mins ago












@TinyTim: They aren't floating specifications, but anchor points.
– Werner
17 mins ago




@TinyTim: They aren't floating specifications, but anchor points.
– Werner
17 mins ago










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










draft saved

draft discarded


















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













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












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
















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.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • 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%2f469481%2fcreating-equally-spaced-quote-header%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

A CLEAN and SIMPLE way to add appendices to Table of Contents and bookmarks

Calculate evaluation metrics using cross_val_predict sklearn

Insert data from modal to MySQL (multiple modal on website)