How can I get a small box at the right hand side of the document as in the figure below: enter image description here

My initial attempt failed:

\textbf{Time: 2:30 PM}

Thank you.

  • 1
    Welcome to TeX.SE. While code snippets are useful in explanations, it is always best to compose a fully compilable MWE that illustrates the problem including the \documentclass and the appropriate packages so that those trying to help don't have to recreate it. – Peter Grill Dec 7 at 5:59
up vote 3 down vote accepted

You can specify the text width=3cm, or use tcbox{} along with a table:

enter image description here


  • The showframe package was used just to show the page margins. It is not needed in your actual use case.




    \begin{tcolorbox}[text width=3cm]
        \textbf{Time: 2:30 PM}

        Date: & 11/12/2018 \\
        Time: & 2:30 PM    \\


Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.