Questions tagged [box]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
28 views

How do I box an equation array?

I want to have an equation array (the environment eqnarray) contained in a box. The only way I know is to use the \boxed command. This works for \begin{eqnarray} \boxed{1+1}&=&2 \end{eqnarray}...
1
vote
1answer
54 views

How do I get a text box with thicker, non-rounded solid corners?

I am looking in discussions, but I have not found, a solution to obtain a text box that has the characteristic of having solid corners, that is, a text box with fine lines but the corners of the four ...
0
votes
1answer
34 views

Make box in alignment mode

I have written this equation in alignment mode. But now I want to box this whole expression. What command should I use? Any Idea? \begin{align*} I=&\frac{1}{|\mathrm{det \, \textbf{A}}|} \sum_{m_{...
1
vote
3answers
61 views

small box wrapped by large box

I want to create two boxes as in diagram, how to make it in latex
0
votes
0answers
46 views

Box design with tikz or tcolorbox

I found this box template in the tcolor box document, but didn't know the design. Can you share the sample with me? or maybe help me design it myself. thanks
4
votes
3answers
101 views

Enclosing list in a box

When I try to enclose a list in a box \fbox{ \parbox{\textwidth}{ \begin{enumerate}[label=Step \Roman*] \item item 1\\ \item item 2 \\ \item item 3 \\ \item item 4 \\ \...
4
votes
1answer
83 views

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

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

Border color only on boxed equation

Starting from this question \boxed border color I wanted to color only the box, but I also have number colored. Without to use mdframed, tcolorbox, or other package is there a very simple alternative (...
2
votes
2answers
129 views

TikZ automate numbered box-form

I am creating a numbered box-form for limited-word writing exercise where one unit represents one character. Each unit has an upper box and lower box. The upper box will house the character, and the ...
2
votes
0answers
122 views

Get next chunk of text (of specified size) contained in a macro

Let's say we have a lot of text to be typeset contained in a single macro, let's call it \myverylongtext \newcommand{\myverylongtext}{ This is some really long text: \blindtext[4]. And it ...
0
votes
0answers
52 views

Is there any ways to show the bounding boxes of a TeX text?

I want to add bounding box to all texts (title/section/paragraph/footer) in the tex, but don't change anything else (for example the indentation, margin ...). In other words, I want to putting ...
0
votes
0answers
23 views

How to input a box around questions in .cls file

I have this .cls template and I want to know how to wrap questions in a box % Assignment class for homework and exams. ...
0
votes
1answer
40 views

Define \pagestyle having “Boxed” Content for Memoir Class

Please tell me how to design a page (to be coded in the \pagestyle design code) in which only "text area" is boxed. Margins, header and footer must of out of this box. Plus i want to control the ...
0
votes
0answers
29 views

IguanaTex - Ghost Script bounding box

The following code is running without any problems in Texmaker. However, when I run in in IguanaTex (I already change the engine to PdfLaTeX, which I learned while trying to find an answer here), I ...
0
votes
0answers
37 views

How to display the index-number of the current box

In LaTeX (or maybe in TeX), how one can get notified about the "index" to the current LaTeX or TeX-box? For example, say an empty page is created in LaTeX; we firstly add a paragraph and then a ...
4
votes
2answers
65 views

Align equalities using stackrel

I have a code block looking like this \begin{align*} ||Ty - Tz||_w &\stackrel{\text{Satz 4.3}}{=} \sup_{t \in I}e^{-2L(t-t_0)}||(Ty)(t) - (Tz)(t)||_\infty \\ &\stackrel{\phantom{Satz ...
0
votes
1answer
33 views

How do I get this small empty box? [duplicate]

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: ...
3
votes
1answer
51 views

Adjusting minipage's width to avoid line breaks

For foo and baz, widthof return sensible/nonsensible values. When the width of the minipage wrapped around foo and baz is set to these numbers, neither has the desired width, that is, the width of the ...
6
votes
5answers
376 views

Create a box using the tcolorbox package or any other? (image)

I would like to make a box like the figure below. Can you assist me with text code using tcolorbox? Thanks
0
votes
1answer
29 views

Get the height of optional text

I would like to create a cover page with latex, with optional fields, such that other fields get their position depending on whether the optional field exists or not. I found the trick of using \...
3
votes
1answer
56 views

How to customize the hight of a bclogo box?

Here are two bclogo boxes whose hights are not the same. \documentclass[xcolor=table,usenames,dvipsnames,svgnames]{beamer} \usepackage[tikz]{bclogo} \begin{document} \begin{frame}{} \begin{columns} ...
5
votes
2answers
91 views

Tikz – Box/frame arround Text with interruption

does somebody know a trick for creating a box/frame lite this around a text like this: I guess it could be working best with tikz. Here is the code for the text (without frame): \documentclass{...
0
votes
1answer
68 views

Using tcolorbox, but the color is not exactly the right color

I am using the following code \documentclass[oneside]{book} \usepackage[utf8]{inputenc} \usepackage{tcolorbox} \usepackage{xcolor} \newtcolorbox{tbox}[3][] { colframe = #2!25, colback = #...
1
vote
2answers
67 views

How can I put a pyblock in a box?

I'm learning using PythonTeX and I have a problem. I would like to put a pyblock inside a box on my document, I tried this two things, but TeXMaker never ends compiling Option 1: \documentclass{...
2
votes
1answer
83 views

How to put a box in aligned equations?

Can someone help me with the following question? I'm writing an equation like this: \begin{align*} a =& b - c \\ -& d - e \end{align*} How can I put a box around the part b - c \\ ...
0
votes
0answers
26 views

text inside a vbox disappearing in the page

I am using the below vbox I want to insert a large amount of text , unfortunately the text does not continue to next page. For example, If the text length is 20 lines , only the first 10 lines appear ...
2
votes
2answers
116 views

Add textbox on every page in the book

I want to put the textbox in the right of every odd page, and left of every even page. I don't know how to do that. This is my code. \documentclass[a4paper,twoside,12pt]{book} \usepackage[left=3cm,...
5
votes
1answer
160 views

Question about exercise 17.16 in TeXbook

The answer to the exercise is: \def\sqr#1#2{{\vcenter{\vbox{ \hrule height.#2pt \hbox{\vrule width.#2pt height#1pt \kern#1pt \vrule width.#2pt} \hrule height.#2pt}}}} \def\square{\mathchoice\...
3
votes
1answer
110 views

How to create a colored textbox in beamer?

AI am trying to use the following to create a box (preferably with no title) in a beamer presentation. Unfortunately, it does not work! How should I modify it to make it work. FYI: it works for a ...
1
vote
1answer
84 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
50 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
126 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. ...
14
votes
2answers
528 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
44 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
56 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
40 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
128 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
271 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
125 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
56 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
144 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
73 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
79 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
113 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
88 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
73 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
359 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
39 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
143 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 ...