Questions tagged [box]
260 questions
9
votes
2 answers
How to put a box around text and add a string?
I have some \items that I would like to put in a box.
I would like the box to have 2 arguments that I can pass
color of the box
string for the box
Relevant Research:
I couldn't find anything relevant, but the nearest I could find was \parbox
How…
3kstc
- 931
- 6
- 22
8
votes
2 answers
How can I write in a box with fixed height?
I am using report class and have been using \framebox[\linewidth]{\rule{0pt}{2cm}} to create an empty box with a certain height. Now, I would like to write in that empty box. By referring to How can I write something in a box with…
Nadia
- 105
7
votes
1 answer
What does the \newbox command do?
I've searched everywhere on this website and google for a tutorial but I don't see many, which I thought it was weird.
I've found this page https://en.wikibooks.org/wiki/LaTeX/Boxes but it still doesn't explain what the newbox command does.
Rainb
- 217
4
votes
1 answer
How to move and size \colorbox
\Colorbox creates a box of color, right? Simple question: How can I control the size and the positioning of \colorbox (if possible in cm) ?
Additionally: can even the shape of colorbox be adjusted?
Leon
- 515
- 3
- 8
2
votes
1 answer
How to make StackExchange-esque quotation block in LaTeX?
I mean this one:
looks quite pretty. Optionally with a background.
Thanks in advance
Edit This may be a good way to start:
\documentclass[preview]{standalone}
\usepackage[most]{tcolorbox}
\newtcolorbox{mbox0}{standard jigsaw, opacityback=0.2,…
Leon
- 515
- 3
- 8
2
votes
2 answers
Draw a box with a number ins
I am whole new to LaTeX, and everything keep mess up when I tried drawing this thing. Can you guys help me out. Thank you so much.
Khoa Trinh
- 59
2
votes
1 answer
How to put a box around a non-indented paragraph in a text having a wide margin?
I have a non indented paragraph that I want to put a box around it. Do you know how to do it?
\documentclass[openany]{book}
\usepackage{amsbsy}
\usepackage{changepage}
\usepackage{geometry}
\geometry{paperheight=9.8125in,paperwidth=8in, left=.5in,…
Aria
- 1,523
2
votes
1 answer
how to get corners of the box in latex?
I have created a table in which I have to put this box, any idea how to get this box exactly shown in the image.
Praveen25488
- 85
2
votes
1 answer
1
vote
1 answer
Is there a way to automatically break boxes (e.g. \raisebox) at the end of the line?
I am new to LaTeX so I am thankful for any help:
Whenever you type normal text in LaTeX it automatically breaks onto the next line if the end of the line is reached. However if you use a box (such as \raisebox) towards the end of the line it forces…
Marvin
- 11
1
vote
1 answer
Changing the colour of a box to royal purple?
I'm quite new to overleaf, im looking to change a box to the color of royalpurple, the shade of Loughborough university's logo as the header color and a lighter version as the boxes background. Any values I edit turns the colors black or a color…
Miles Routledge
- 11
- 1
1
vote
3 answers
small box wrapped by large box
I want to create two boxes as in diagram, how to make it in latex
Thurein Minn
- 125
1
vote
1 answer
How do I get this small empty box?
I'm trying to copy over a question from my math homework to LaTeX, and can't figure out how to replicate this box between $G_1$ and $G_2$:
I've tried \qed, but that is always preceded with a space:
I've tried \fbox{}, but it is too low in the…
Josh Katofsky
- 121
0
votes
1 answer
How do I make a custom node using the height of the bounding box?
I've been playing around with custom arcs, but I can't seem to figure out how to set the arc radius automatically. Goal is to create a node that bounds two semi-circles and gets wider as needed
Links to the desired image at at the…
Dean C Wills
- 103
0
votes
2 answers
How to give color inside $\Box$
I want gray inside $\Box$. How can we do that?
I will use this as a caption of my figure like
\caption{ $\Box$ denotes ...}
Sanu
- 39