Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [box]

The tag has no usage guidance.

1
vote
1answer
26 views

Color background of Confusion matrix

So I have found this wonderful confusion matrix on this thread. I was wondering how could I add color to the background of the different boxes. \documentclass{article} \usepackage{array} \usepackage{...
1
vote
1answer
25 views

How to create a box spanning across rows and columns of a table [duplicate]

Starting from this thread How to make box in a row of a table. I'm also aware of Highlight elements in the matrix I'm just wondering if there is any quick way like this to create a box spanning across ...
1
vote
1answer
35 views

Turning \answerline into a box in exam class

I've been a big fan of the exam class, and use it often to write tests. I'd like to be able to turn \answerline into a box instead, while retaining the ability to use answers to toggle the solutions. ...
13
votes
2answers
403 views

How to construct an hbox with negative height?

According to answer on exercise 12.10 in TeXbook, a box's height may be negative: Yes it did, but only because none of his boxes had a negative height or depth. But on p.77 it is said: The ...
0
votes
0answers
28 views

How can I do a box for biographies?

I would like to do a box with 2 biographies. I have a code that it works but the box results small: Like you see, the box is tight so I want to do it wider. %Formato \documentclass[a4paper]{...
1
vote
1answer
40 views

underoverlap: draw overlapping boxes around text/math?

I am trying to have overlapping boxes over a sequence of signs. Basically, in ABCDE I would have SB, BC, CD, etc. I tried with the underoverlap package, which has a code snippet for some overlapping ...
2
votes
1answer
31 views

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} \...
1
vote
2answers
92 views

How can I create such a form and write text inside it?

How can I create such a form and write text inside it?
1
vote
1answer
120 views

Add a box around text

I am trying to add text inside a box like this: ------------------------------------------------------------------------------- # This is the section I am looking to do. Paragraph here 1. point 1 1....
1
vote
1answer
76 views

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.
3
votes
4answers
50 views

How can I draw a line around text, but open on one side? [duplicate]

I'd like to do something similar to \boxed{whatever}, but with the box open one side. Something like the following. \documentclass{article} \begin{document} \[ \overline{\underline{abc |}} \] \end{...
3
votes
2answers
120 views

Maths Answer Book

Hi I trying to make an answer booklet for a mathematics exam which should look something similar as shown in the picture. I need space for writing answers as well as mark allocation for the question ...
0
votes
0answers
44 views

Ovalbox problem in corners, no smooth

I am using this command to make oval boxes: \usepackage{fancybox} \newcommand\codeBox[1]{ \setlength{\fboxsep}{1em} \setlength{\fboxrule}{0.01pt} \begin{center} \...
1
vote
1answer
55 views

Creating box on long enumeration

Hello so I want to make a box outside of enumeration: \noindent\fbox{ \parbox{\textwidth}{ \begin{enumerate} \item Matriks contoh merupakan matriks berukuran 2x2 seperti berikut: \\ $\...
1
vote
1answer
76 views

Tikz for drawing box flowchart

how can I draw something like this in Latex? I couldn't find anything in tikz examples....
1
vote
1answer
58 views

tikzpicture overlap an other using longtable and wrapfigure

Good morning! I 'm trying to: have a pgfplot inside a longtable, wrap the text (inside the table's cell) around this tikzpicture, have a theorem below the longtable, have the theorem inside a box. ...
1
vote
1answer
45 views

pythontex environments and savebox

I want to use the same code in several pythontex environments: \documentclass{article} \usepackage{pythontex} \begin{document} \begin{pyconsole} print('Hello \\LaTeX{} World!') \end{pyconsole} \...
4
votes
3answers
174 views

How to make a 0pt height box?

We can use \makebox[0pt]{text} to make a box that is logically 0pt width to external (as if nothing existed to the surroundings, while actually we can put whatever in it). My questions is---what is ...
1
vote
1answer
34 views

How to force not longer displayed or add ellipsis at the end when a vbox is exceeded

Like this \documentclass{article} \usepackage{lipsum} \begin{document} \frame{\vbox to .3\textheight{ \lipsum[1]\lipsum[10]\ }} \end{document} i only need the text within the frame
0
votes
1answer
82 views

Make a ribbon box with text in it

I'm pretty novice in LaTeX and use overleaf to write. Is there any way that I could do this kind of box with a arbitrary text in it that is not linked to any title or chapter - just a black box with ...
1
vote
1answer
23 views

List of all available parameters of \boxgs{arg1}{arg2} of “pdf-trans” package

An interesting box transformation I have found on the following page: https://tex.stackexchange.com/a/169549/26458 is pdf-trans package. It seems there is no manual available. Only example is provided....
13
votes
1answer
219 views

\savebox within tikzpicture results in an empty \savebox

Using \savebox within a tikzpicture environment seems wipe out the content of the \savebox. In the MWE below, the following macros define, measure and display the size of a \savebox: \newcommand*{\...
6
votes
2answers
170 views

Box to appear fully around equation

In the code below, I am only getting a box around part of my equation like this: How do I get the box to appear around the full equation? Thanks! CODE \documentclass{article} \usepackage{mathtools}...
4
votes
2answers
49 views

Align boxed equation to the left margin

I am attempting to left align a boxed equation but I failed. Can you help me align this boxed equation to the left margin:? Thank you! CODE \documentclass{article} \usepackage{mathtools} \...
5
votes
1answer
298 views

Place box around text and equation

I would like to get an output where I there is a box around the equation and text like this: I tried \mbox and \fbox but couldn't get it to work correctly. Thanks for your help! CODE \...
1
vote
1answer
37 views

How to force a framed box not to be cut by the end of page

I would like to know how to keep a whole framed box on the same page. I am finishing a manuscript and I am quite afraid to move the text before/after to check this. I take this example, from here. ...
1
vote
1answer
99 views

insert images in bclogo or other infobox packages

I would like to make an infobox that includes images. For the bclogo package I like the general appearance the most, but I can not find an option about inserting images other than inserting the own ...
0
votes
1answer
48 views

List of contentes and boxes. How to divide the page with many boxes for a report

I need a big hand. I'm trying to make a template for a report and the word file has many boxes on the first page. I managed to create the first boxes with a \fbox ambient and for the table of contents ...
2
votes
1answer
178 views

Adjust text spacing in tikz box

In the code given below (based off code found on GitHub), how do I go about reducing the distance from the text to the tikz box? CODE \documentclass{article} \usepackage[landscape]{geometry} \...
3
votes
2answers
126 views

Getting errors while trying to box a colored text + math with less than 6 lines of code

First time Latex user here I am trying to box a text plus math using the following code \documentclass[]{article} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{xcolor} \begin{document} \...
0
votes
1answer
33 views

Figure content way too large, overflows the page

I want to have text and figures side by side, to do so, I managed to get this code: \begin{figure}[] \subsubsection{\large Helpmate} \centering \makebox[0pt][c]{ \begin{minipage}[c]{...
-1
votes
1answer
155 views

Parallel box with different style in tcolorbox

with many help in this forum, i was created one box with box inside. i want to embed 3 boxes from link to my box: Varying Headerbox Color in baposter My box is attachment. Thanks \documentclass[...
7
votes
2answers
579 views

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 ...
2
votes
2answers
136 views

How to box and name a group of equations

I have the following group of equations: \begin{align*} T' & =kn \\ b' & =\tau n\\ n' & =-\tau b-kT \end{align*} I want to put these equations into one box and to put the ...
4
votes
2answers
244 views

Tikzpicture match box width and column width

I can't find a way to match the box width of a tikzpicture and the column width. Here is the code : \tikzstyle{mybox} = [draw=primary_shade3, fill=white, thick, rectangle, rounded corners, inner ...
4
votes
1answer
77 views

Box and Give Equation Number to a multiline mathematical equation

$I(a_1,a_2,a_3)=\displaystyle{\int\limits_{c_1-i\infty}^{c_1+i\infty}\mathrm{\frac{dz_1}{2\pi i}}\, \, \cdots\int\limits_{c_5-i\infty}^{c_5+i\infty}\mathrm{\frac{dz_5}{2\pi i}}(Q^2)^{z_1}(M^2)^{z_2} \...
1
vote
2answers
55 views

Two-line boxed equation

I want to box the following two-line single equation. I checked the existing posts to no avail. Appreciate any help. \documentclass[12 pt]{article} \usepackage{amsmath} \usepackage{enumerate} \...
0
votes
2answers
116 views

Colored bar next to text over multiple pages

I want to have something like this green box you can see in the image next to the text over multiple (~20) pages. Right now I solved this by using mdframed. The problem now is, that I cannot start ...
4
votes
2answers
387 views

Insert pictures inside a color box spanning the whole page width

This question led to a new package: clrstrip this is a very noob asking, as I do not use any graphics in LaTeX usually... I want to put pictures inside a color box : something like that with a ...
0
votes
2answers
91 views

Custom box environment with custom border

I try to make a kind of custom datatype which has a short ID a description and an owner comment. Using minipage with no border is not optimal because it is difficult to see the separation between ...
0
votes
1answer
94 views

Align a box vertically with a text

I want to align the text and the box as follows : Thank's for your help !
1
vote
1answer
63 views

How do I show a label outside a corner of \fbox?

I'm trying to typeset a diagram with two boxes and an arrow between them. I'd like the boxes to be labeled by some text (math text, e.g. \mathsf{C}) but the only way I found to do that is unsatisfying ...
0
votes
2answers
228 views

breakable box placement

Using the same code as in How to customize title of 'the breakable boxes inside breakable boxes'? with many thanks to @Ignasi, I encountered the following problems: An example: % !TeX ...
0
votes
1answer
63 views

Show bullets in parbix [duplicate]

I am trying to add bullets to each item. However, the itemize isnt showing the bullets. Could someone tell me what the issu is? Also how do I get the item to automatically fill the box and wrap? % ...
2
votes
1answer
207 views

various defined breakable boxes inside breakable box using overlapping

This is follow-up question of my previous question tcolorbox: It is possible to put breakable boxes behind each other (overlap)?. My question: how can I simulate various defined breakable boxes ...
0
votes
1answer
234 views

Beamer: framed box for frame title

I prepared the following source \documentclass[10pt,fleqn,xcolor=svgnames]{beamer} \setbeamercolor{background canvas}{bg=Green!10} \setbeamercolor{frametitle}{fg=Brown,bg=Yellow!20} \setbeamercolor{...
3
votes
2answers
195 views

Boxed and colored a two-line equation

I have the following mwe. I want to color and box only the equation except the equation number. I tried using {\color{} } and \mybox{} but they didn't work. Any help is much appreciated. \...
1
vote
1answer
151 views

How to make baseline visible?

I found this nice page with notes on LaTeX: https://unix4lyfe.org/tex-notes/#entry26 It gives this sample code: \def\vhb#1{\vbox{\hbox{#1}}} A vbox: \vbox{\vhb{eight}\vhb{gnat}} and a vtop: \vtop{\...
1
vote
1answer
48 views

bad box in align + cases mode

Do you have any aesthetically nice suggestion to solve the bad box given by the following formula? \documentclass[11pt, english, oneside, a4paper]{book} \usepackage{amsmath} \usepackage{enumerate} \...
0
votes
2answers
55 views

Box fitting content with linebreaks [duplicate]

So I'd like to do something along the line: \mybox{Some content on the first line \\ some content on the second line \\ and this boxes border are fitting the content} So I want a box around content ...