Skip to main content

Questions tagged [box]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
25 views

Unable to prevent touching ticklabels in 3D plot

To prevent touching ticklabels, I want to raise the first zticklabel in my 3D plot. Despite I am successfully using this approach in 2D plots, it does not seem to work in 3D plots. For illustration ...
albert's user avatar
  • 1,017
1 vote
1 answer
60 views

How to put a text inside a box within a boxed environment?

I have the following LaTeX code, which makes use of a boxed environment. I want to put some of the text within a dashed and normal box, but it throws an error. Any ideas how to achieve this? \...
pixel's user avatar
  • 1,370
5 votes
1 answer
93 views

How implement a drop cap with boxes

I'm trying to implement a "drop cap", not to use it (I know there is a package to do it), but to practice some box things. So far I have this written: \parindent=0pt \newdimen\pdim \def\...
gxono's user avatar
  • 142
0 votes
1 answer
60 views

Reproducing Python/Programming Code Blocks with modification

I want to be able to reproduce this environment within the context of exam correction. One clue I found is the usage of the bclogo package. https://ctan.org/pkg/bclogo Howerver, I would like to ...
Mouadh Ben Salah's user avatar
0 votes
1 answer
59 views

How to create a frame with two parts

I am trying to create a frame with two parts. Both connected like in the picture below. I want to use it to write whatever I want in it and I do not need any counters. I want to do the counters myself....
user292225's user avatar
3 votes
2 answers
113 views

How do I put colored text boxes in latex? (In math environment)

I am trying to do something like in the picture attached, if someone knows how to please let me know. The goal is to draw two boxes around two terms of this equation in two different colors. I don't ...
Gregorio Biagi's user avatar
4 votes
1 answer
114 views

Equations in two columns and in box does not look too good

First of all, let see what I want. It is the two upper box with two equations in each. and the two boxes at the bottom are what I get from the following LaTeX code: \documentclass[12pt,letterpaper]{...
M. Lemelin's user avatar
2 votes
1 answer
101 views

Writing multiple equations in a box

I want to write a set of equations with some text like in the following format It should have: Box spanning the complete text width Ability to use enumerate or some alternative Ability to write ...
rnp's user avatar
  • 45
1 vote
1 answer
70 views

How to impose the color's title in a tcolorbox

Is there a way to specify the color of title section of a \tcolorbox to be the same as the main color of the box itself ? For example I am running this script : \documentclass{article} \usepackage[...
Waxler's user avatar
  • 860
-1 votes
2 answers
84 views

How do you get a black-colored border around a bounding box? [closed]

Below, we see an example of the \bbox command. $$ \bbox[5px,border:2px solid red] { e^x=\lim_{n\to\infty} \left( 1+\frac{x}{n} \right)^n \qquad (2) } $$ Note that the color for the borders of the ...
IdleCustard's user avatar
  • 1,250
1 vote
3 answers
86 views

Hyperref only one box around text with line break and not two boxes in twentysecondcv

I use the hyperref package and the corresponding \href{}{} command and would like to adjust the box which is drawn around the text. In more detail, in the picture below you can see a link for address, ...
m0byn's user avatar
  • 27
3 votes
1 answer
321 views

Creating square tick box in exam

Like title, I want to create square box like this but \checkboxes in exam just create circle. Can anyone help me T.T \documentclass[10pt,a4paper]{exam} \usepackage{amsmath} \usepackage{amssymb} \...
user307596's user avatar
0 votes
1 answer
57 views

How to align the center of terms on left hand side of equations in 'aligned' environment in latex

In latex I defined a new environment called 'myequation'. Here for left hand side terms, their end points are aligned. I want to align center points of left hand side terms instead of their end ...
Igris's user avatar
  • 101
4 votes
3 answers
255 views

Applying \MakeUppercase on \makebox makes text disappear

Here is a MWE of the problem: \documentclass{article} \begin{document} \makebox[4cm][l]{This is a test.} \MakeUppercase{\makebox[4cm][l]{This is a test.}} \end{document} Which results in: The logs ...
donjuardo's user avatar
1 vote
0 answers
47 views

Aligning latex3 boxes side by side

I'm building a token list by adding dynamically generated boxes to it inside a map-function, but the result only looks correct when it's inside a paragraph or a table cell. When they are the first ...
meide's user avatar
  • 1,175
2 votes
1 answer
79 views

How do I align content inside a latex3 box?

With \makebox I would just pass [r], but how do I do it in latex3? No matter whether I use fills or flush/ragged etc, the contents stay left-aligned. I suspect the updated width does not adjust the ...
meide's user avatar
  • 1,175
0 votes
4 answers
86 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 ...
MTecknology's user avatar
2 votes
1 answer
108 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} \...
ngduchieu1903's user avatar
1 vote
1 answer
140 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} \...
iman fathema's user avatar
2 votes
2 answers
209 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: \...
Karlo's user avatar
  • 3,257
0 votes
0 answers
43 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 ...
IdleCustard's user avatar
  • 1,250
4 votes
2 answers
261 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 ...
d3vel's user avatar
  • 41
1 vote
0 answers
32 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 ...
Paco89's user avatar
  • 11
0 votes
1 answer
32 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 ...
Keelan's user avatar
  • 5,445
0 votes
1 answer
560 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 ...
Adam's user avatar
  • 4,714
3 votes
1 answer
88 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 ...
AlphaCentauri's user avatar
0 votes
0 answers
122 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,...
Shi's user avatar
  • 55
2 votes
1 answer
205 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} \...
Daniel James's user avatar
1 vote
1 answer
101 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 ...
wkirschenmann's user avatar
0 votes
1 answer
218 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 ...
jianxiong zhao's user avatar
-1 votes
1 answer
100 views

drawing box with latex [closed]

I want to write something like in the attached file. Any help will be appreciated.
Fatma Belabed's user avatar
2 votes
2 answers
80 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{...
azimut's user avatar
  • 863
0 votes
1 answer
130 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 ...
beaver's user avatar
  • 65
0 votes
0 answers
28 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 ...
detta's user avatar
  • 1
1 vote
1 answer
148 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{...
Seagoon's user avatar
  • 51
6 votes
4 answers
453 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{...
coucou's user avatar
  • 61
1 vote
1 answer
184 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} ...
mmAsks's user avatar
  • 11
3 votes
2 answers
192 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 ...
nhck's user avatar
  • 760
0 votes
2 answers
39 views

Add box at the end of environment on the footer

Here's my current environment: \documentclass{report} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % ...
SingularisArt's user avatar
1 vote
2 answers
209 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 "...
user avatar
2 votes
1 answer
98 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 ...
Emil_M's user avatar
  • 23
2 votes
2 answers
90 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 ...
Bob_Yue's user avatar
  • 21
0 votes
1 answer
30 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\...
user3037237's user avatar
2 votes
1 answer
93 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 ...
M0M0's user avatar
  • 423
4 votes
2 answers
656 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 ...
Lone Learner's user avatar
  • 3,256
0 votes
2 answers
406 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 ...
Nicolas's user avatar
  • 161
1 vote
1 answer
190 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'. \...
Educ's user avatar
  • 4,392
0 votes
1 answer
246 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 ...
Antonello's user avatar
3 votes
2 answers
257 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? \...
Waxler's user avatar
  • 860
0 votes
1 answer
162 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}...
abdellah qal's user avatar

1
2 3 4 5 6