Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 72627
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T20:04:27+00:00 2026-05-10T20:04:27+00:00

I want to add items in a LaTeX-document. Say for example, that I want

  • 0

I want to add items in a LaTeX-document. Say for example, that I want add hints to the document. I create a command, so I can call something similar to this:

\hint{foocareful}{Be careful with foo!}{foo is a very precious item and can easily be broken. Be careful, especially don't throw foo.} 

This will be formatted in special way, to make it easy for the reader to recognize it as a hint. It gets a label, that can be referenced in the example with ‘foocareful’.

In the appendix I want to add a list of all hints with references to them. Something like:

\begin{enumerate}    ...    \item Be careful with foo! (\pageref{foocareful})    ... \end{enumerate} 

But naturally I don’t want to maintain this list by hand. How can I create automatically such a list?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T20:04:28+00:00Added an answer on May 10, 2026 at 8:04 pm

    One way to do it is to use the float package. I think that, at least, the floatrow package can also do what you want, and may also be more flexible. See you go, though.

    Here’s an example of something like you’re trying to do using float:

    \documentclass{article} \usepackage{float}  \floatstyle{boxed} \newfloat{hintbox}{H}{hnt} \floatname{hintbox}{Hint}  \newcommand\hint[2]{%   \begin{hintbox}     #2     \caption{#1}   \end{hintbox}}  \begin{document} \section{Hello}  \hint{Be careful with foo!\label{foocareful}}{%   foo is a very precious item and can easily be broken.    Be careful, especially don't throw foo.}  \hint{Don't worry about bar!\label{foocareful}}{%   Unlike foo, bar is pretty easily to get along with.}  \section{End}  \listof{hintbox}{List of Hints}  \end{document} 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 73k
  • Answers 73k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer You can do a OpenPrinter to retrieve a printer handle… May 11, 2026 at 1:58 pm
  • added an answer Licensed under MIT style: Objective-C implementation of the Flash Remoting… May 11, 2026 at 1:58 pm
  • added an answer LINQ is a query language - not an editing language.… May 11, 2026 at 1:58 pm

Related Questions

There is a select dropdown and I want to add "No selection" item to
How do I add a second item to order by with this? I want
I want to add a column to an existing legacy database and write a
I want to add a constant value onto an incoming bound integer. In fact
I have a MySQL query in which I want to include a list of
I want a simple class that implements a fixed-size circular buffer . It should
I recently tried to use an implementation of map in javascript to create a
OK I have a mySQL Database that looks something like this ID - an

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.