Questions tagged [box]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
22 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
53 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
150 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
46 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
49 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
26 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
50 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
424 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
35 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
44 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
33 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
104 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
152 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
85 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
51 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
122 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
48 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
61 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
82 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
61 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
52 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
208 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
36 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
92 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
236 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
171 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
60 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
315 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
129 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
49 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
238 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
128 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
37 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
192 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
730 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
155 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
255 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
56 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
134 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
418 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
102 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
111 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
65 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
244 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
66 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
228 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
263 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{...