Questions tagged [box]
The box tag has no usage guidance.
250
questions
0
votes
4
answers
64
views
Underfull \hbox (badness 10000) in paragraph within nested minipages
I am generating a PDF using a .tex file of similar name.
Generating the PDF with pdflatex generates a number of Underfull \hbox (badness 10000) in paragraph at lines 539--542, with each set of line ...
2
votes
1
answer
90
views
Can anyone show me how I can create a box like this? [duplicate]
I'm new to Latex and I need to make box that looks exactly like this. I've tried using tcolorbox but it just doesn't look the same as
This is what I've had so far
\documentclass[oneside]{article}
\...
1
vote
1
answer
113
views
How to place a box within a box using tikz?
I would like to draw a diagram as below. So far, i wrote this. Can you please help me in modifying this code.
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{tikz, pgfplots}
\...
2
votes
2
answers
70
views
How to add vertical space inside a \framebox
Consider the MWE below. I would like to add some vertical space above the blue square, inside the framebox (indicated by red arrow).
Why is \vspace ignored? Which command should I use?
MWE:
\...
0
votes
0
answers
40
views
If you were the word "box" and a word beginning with a letter "m" to describe `\mbox` what might your English phrase be?
Note that English phrase "mathematics blackboard bold" is an example of a super-sequence of \mathbb which has the same meaning as \mathbb.
If you were the word "box" and a word ...
4
votes
2
answers
180
views
How to make a textbox with only corners appearant
I'm creating a maths course, and i want to make an environnement for the exemples with a textbox and to separe it from the rest of the page I would make the corner of the box appearing like in this ...
1
vote
0
answers
28
views
Instances of Background Boxes keep increasing with each Chapter/function call
I'm using the following MWE to create a PDF and when I edit the created PDF it reveals that with each chapter or \chapframe call the number of instances of boxes keep increasing. This can also be made ...
0
votes
1
answer
28
views
Row of frameboxes overflows the margin by one box
Why, when I have a row of \frameboxes, does pdflatex try to fit one too many on a line, overflowing the margin? In the example below I would expect the first line to have three boxes and the second ...
0
votes
1
answer
160
views
Put the header inside a box
I want to put the whole header of the document inside a box similar to the one created by the \fbox.
I don't want the box to include the main body or the footer.
How can I do that?
At this moment I ...
3
votes
1
answer
64
views
How to make a checklist with horizontal line connecting text to checkboxes?
With checklists, it can be hard to see what text corresponds to what checkbox. I'd like to have a horizontal line "connecting" the text to the boxes so that I can follow the text with my ...
0
votes
0
answers
99
views
How to draw flow diagram with different shapes in latex?
I want to draw a block diagram given below. I have tried to draw it using online help but it is not working.
Code:
\documentclass[border=10pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows,...
2
votes
1
answer
79
views
Manage Size and Colour of CheckBox in Latex
I want to be able to place parameters on the size of the box and be able to choose colour of the `checkbox function. Here is my Minimum Working Example:
\documentclass{article}
\usepackage{hyperref}
\...
1
vote
1
answer
80
views
Colored box from page limit to the end of chapter title in toc
I'd like to have colored boxes around the titles in my toc. The box should begin at the edge of the page and finish after the end of the chapter name.
I found many solutions for having a box going ...
0
votes
1
answer
107
views
How to type a BOX that occupies the size of a Chinese character symbol
If a Chinese character does not exist in the font, the resulting pdf document will not display the Chinese character correctly and will be replaced with a large box.
Just like this box down here:
The ...
-1
votes
1
answer
89
views
drawing box with latex [closed]
I want to write something like in the attached file.
Any help will be appreciated.
2
votes
2
answers
68
views
Wanted: Framed box with fixed width and centered content with manual linebreaks
I need a box with the following properties
framed
fixed width
content text is centered
manual line breaks in the content text are possible
The closest I have is:
\documentclass{article}
\usepackage{...
0
votes
1
answer
93
views
Why does the following use of \parbox not work? [closed]
\documentclass{article}
\begin{document}
\parbox[c][5cm][t]{\dimexpr\linewidth+1\fboxsep\fboxrule}{
\hrule width \hsize height 0pt
some text
}%
\end{document}
I am getting the error ! Missing ...
0
votes
0
answers
18
views
TeXstudio Find box gets partially invisible when starting to enter a search term
I have just installed TeXstudio + MiKTeX on Windows 10 and am trying to use Find & Replace. After I have entered the second or third symbol (no pattern found, it can go either way), the lower part ...
1
vote
1
answer
80
views
Horizontal lines (top and bottom of text) [closed]
I am a beginner and trying to re-create something that looks like the below. Please can someone help?
Thanks
If I use the following code
\begin{centering}
\hrule
\title{$title$}
\hrule
\end{...
6
votes
4
answers
304
views
Equation: boxed split inside align
How to box the second split environment ?
Bonus: to box only a part of the split environment content it so I can add a \Longleftrightarrow before the box.
MWE:
\documentclass{article}
\usepackage{...
1
vote
1
answer
76
views
How to create a "boxed" enviroment
What I want to achieve is a simple enviroment which is all contained in a box. The result would visually be equal to what this code outputs:
\newenvironment{myBoxedEnvironment}{}{}
\begin{document}
...
1
vote
1
answer
108
views
How to make the title sections in a tcolorbox raster the same height?
I am using the tcolorbox raster to display a couple of boxes.
One of my boxes has a longer title which breaks into a second line.
How can I make it that the red title on the left has the same title as ...
0
votes
2
answers
37
views
Add box at the end of environment on the footer
Here's my current environment:
\documentclass{report}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% ...
1
vote
2
answers
158
views
How `rotatebox` could be defined in plain TeX?
I was wondering if it is possible to define rotatebox in plain old TeX (without importing eplain, pstricks, miniltx or what not or using pdfrotate or other pdf-specific commands).
The word "...
2
votes
1
answer
77
views
Indent fancy quotation box in latex without list
I would like to create a box with the format of a Fancy Box, but the indentation of a quote environment. I have found this question, which concerns a similar problem, however the solution given in ...
2
votes
2
answers
73
views
How to align a symbol to center in "displayed equations"?
Goal
I want to align some equations separated by enumerate items, with :s lined up. The picture below is an example.
Since there are enumerate items between those equations, it might not be easy to ...
1
vote
1
answer
27
views
Why is framed ignoring the caption?
I'm trying to get a right justified image that is all bounded by a box. The problem is that the framed box is excluding the figure caption, and only framing the image:
\begin{wrapfigure}{r}{0.5\...
2
votes
1
answer
92
views
negative glue and hbox of same size do not cancel each other out
This code:
\hskip-1cm \hbox to 1cm{\hfil}\hbox to \hsize{\hfil Hello World}
\bye
yields
Overfull \hbox (20.0pt too wide) in paragraph at lines 1--2
Why is that? I would assume that applying negative ...
4
votes
2
answers
517
views
Is there any difference between \square and \Box?
Here is my document:
\documentclass{article}
\usepackage{amssymb}
\begin{document}
$ \square \Box $
\end{document}
Both produce boxes that look exactly similar to me. Is there any difference ...
0
votes
2
answers
215
views
Highlight text with gray box [closed]
How can I achieve the same gray box as in the below image? In particular there should be no internal padding and it should not break indentation when starting a new paragraph (cf. the indent of ...
1
vote
1
answer
97
views
How to Add a Frame Box Around Section, Subsection, and Subsubsection Numbering
To make it seem like the following, I would like to add a frame box to the numbering of each section, subsection, and subsubsection.
but the following code doesn't seem to work for 'subsubsection'.
\...
0
votes
1
answer
122
views
how to skip the title of a theorem?
I'm having problems with latex: I have a snippet that opens the theorem environment directly to me as in the code I published. That's when I am in "çç1" (this is a symbol I wrote to help you ...
2
votes
2
answers
184
views
Put a rounded corner box in a beamer template
I am trying to put a rounded corners box that contains an equation. I keep having an error: 'Missing $ inserted' and I don't understand why?
Could someone help me to figure it out please?
\...
0
votes
1
answer
105
views
remark boxes design
I found this box that I like for remarks and I want to put "remark" instead of!
Here is the .tex code with the pdf
\documentclass{article}
\usepackage[most]{tcolorbox}
\newtcolorbox{marker}...
0
votes
1
answer
387
views
Box design tikz
I found this box, but didn't know the design. Can you tell me which library or packages are used to design it. Thanks
1
vote
1
answer
172
views
How to create an empty box in Power Math Mode?
I want to create an empty box in power of a number. See attached image for reference.
How can I create a box in math mode?
0
votes
1
answer
222
views
Blend tikz gradient right color with background [duplicate]
I am trying to make a gradient box with text with the right color completely blend with the background. Here is my document.
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{...
0
votes
1
answer
88
views
Latex: auxiliary calculation
when I make auxiliary calculations using pen and paper, I make some sort of extra "box", which is open on one side and has some wave-like left side. For me, this is a clear and easy way to ...
0
votes
0
answers
57
views
How to create a similar box to be inserted in side notes?
I want to create some side notes similar to this one, but I have no idea what package should I use to design it ?
-1
votes
2
answers
197
views
How to box math in text without it going to display style while in the inline math environment?
So I'm trying to box something like $\frac{1}{10}$, but when I do $\boxed{1}{10}$, it puts the fraction in display style. However, this is not ideal for the formatting of my paper. How do I avoid this?...
1
vote
2
answers
341
views
drawing colored balls in urn
I want to draw and add these two boxes in my latex code
my code is
\documentclass[11pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath,amssymb,amsfonts,tikz}
\usepackage[paperheight=...
7
votes
2
answers
308
views
How to Specify Outline Thickness and Fill/Outline Colors?
This question asks for an extension of this answer. Consider the code:
\documentclass[12pt]{book}
\usepackage{xcolor}
\usepackage{cabin}
\usepackage{scalefnt}
\input pdf-trans
\font\f=qx-lmr10 at ...
0
votes
1
answer
965
views
Change text box to single column in a multicolumn document
I am trying to change a text box present within a multicolumn to onecolumn. But when I add \begin{multicols}{1} within box it doesn't change to one column. For instance, for figures one could use \...
0
votes
1
answer
492
views
Creating a box surrounded by text in Tcolorbox
How is it possible for me to put a box of adjustable size surrounded by a text in a latex document ?
For instance : my inspiration is from the yellow boxes in this image :
\documentclass{article}
\...
0
votes
1
answer
62
views
How to position multiple objects inside a fbox by relative X/Y position
I'm very new to LaTeX would like to ask some advice on how to position elements inside a fixed size box. Fox each element I know the X/Y relative position to a box corner.
When I try to use spacing to ...
0
votes
1
answer
113
views
Problem with Poker packages
I want to display playing cards in my document, but none of the poker packages I've tried are working (\usepackage{poker} nor \usepackage{pst-poker}). I am, in fact, able to compile (using XeLaTeX) ...
0
votes
1
answer
190
views
How to put a box around a single page? [duplicate]
I used nomencl and created a page of nomenclatures in my paper, I want to put this page and this page only into a box, while everything else are to remain the same.
I tried the following code I found ...
0
votes
1
answer
110
views
fcolorbox not wrapping text
I'm trying to get an fcolorbox to wrap my text according to the standard paragraph width. Here's what I have so far:
\documentclass{article}
\usepackage{xcolor}
\usepackage{lipsum}
\begin{document}
...
1
vote
1
answer
72
views
Aligning boxed equations in a specific way within subequations and rounding corners
I have the following code which uses code from online sources
\documentclass[]{article}
\usepackage{mathtools}
\usepackage{fancyhdr}
\usepackage{amssymb}
\usepackage{extramarks}
\usepackage{amsmath}
\...
3
votes
1
answer
166
views
Box repeat shape of word
Hi, is there any way how to make "box" follow shape of words?