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
27 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
votes
0answers
45 views

Production of a slanted box [closed]

Is there a command for making a slanted box? If there is, I imagine it would be something like:
1
vote
1answer
67 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
48 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
112 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
33 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
53 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
71 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
50 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
37 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
156 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
32 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
74 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
190 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
164 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
44 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
263 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
36 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
77 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
46 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
144 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
123 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
31 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
129 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
409 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
112 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
235 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
52 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
99 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
336 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
80 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
71 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
60 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
203 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
55 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
167 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
207 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
182 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
129 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
44 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
51 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 ...
2
votes
1answer
35 views

Extract values only from a box not the pt

My codes are below: \documentclass{book} \usepackage{graphicx} \newbox\fightbox \newcount\fightcount \newcommand{\test}[1]{ \setbox\fightbox=\vbox{#1}%184.99pt } \begin{document} \test{\...
3
votes
2answers
337 views

How to put wedge and vee inside box?

I want to put \wedge and \vee in a box like in the image. I have tried \framebox, but didnt work.
1
vote
1answer
43 views

Colorized words are overlap and outside the box in lstlisting

Like as topic - "Colorized words are overlap and outside the box in lstlisting" I declared this: \documentclass[a4paper,12pt,titlepage,headsepline,footsepline,hidelinks]{scrartcl} \usepackage[...
0
votes
1answer
159 views

Labeled box within equation environment

I wish to create a box within an equation environment, which I can then label. The idea is to emphasize certain portions of the equation and interpret what these parts are doing for me. Ideally, I'll ...
3
votes
1answer
219 views

Fullwidth Note-Box (tikzpicture) in and tufte-book like layout with margins

I am trying to create a special box for tables/pictures/text that spans the while width of the page, where the page's geometry is set to provide a margin (left/right alternating with odd/even). I ...
2
votes
1answer
90 views

Metapost: get the radius of circle box

Followed is a small code. I want to get the radius of circle box. If I put the last sentence before the drawboxed command, the compilation failed due to unknown pair. It looks like only after drawing ...