Questions tagged [fbox]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
2 answers
69 views

Capital letters in frameboxes

I'm trying to insert capital letters into frameboxes. Every time I use the letter Q on its own or in a string of capital letters, the frameboxes gets stretched vertically compared to the other letters'...
Therizinosaurus cheloniformis's user avatar
2 votes
2 answers
71 views

Right alignment of minipages inside fbox

I am using fbox together with minipage, inside the minipage I have multicols and enumerate environments. Its not a big issue but I noticed the boxes are not aligned on the right. I tried using \...
Rhandley's user avatar
  • 381
2 votes
1 answer
103 views

How to make a minipage break over two pages<

I have an example of communication in mz document in a separate frame, for which I used fbox + minipage. How can I make it break over 2 pages? MWE below, I left all packages used, in case they ...
Koroks's user avatar
  • 21
0 votes
1 answer
29 views

How to get a few paragraphs framed such that the frame is exactly as wide at the surrounding text and stays completely on the one page?

Let's say we want to get one or two paragraphs of text into a visible framed such that: the total width of the frame (including its borders) is the exactly same as the width of the surrounding text (...
AlMa0's user avatar
  • 479
1 vote
0 answers
29 views

custom lists with features

Here I'm providing the most basic possible example of a custom \list. I would like either the boxes to be visible, or draw boxes of the same size as those used by the engine I'm using, which is luatex....
user1850133's user avatar
0 votes
0 answers
60 views

\fbox around equation solution causing log error: Missing $ inserted

stack community! No log error before I inserted \fbox to surround the solution to a multi-step equation, no errors. Applied the \box as shown here: &\fbox{\boldsymbol{x = \-3\pm 3i\sqrt{3} \qquad ...
Siuslaw Math's user avatar
2 votes
1 answer
86 views

Increasing natural height of minipage / fbox

I would like to define an environment encapsulated by a box where I am able to insert unspecified content (text, equations etc.), but where I can increase the natural height of the box. A minimum ...
DavidH's user avatar
  • 79
0 votes
0 answers
23 views

Is it possible to have cropmarks for every single one of my {minipage} environments?

Scenario I'm printing labels, or rather nametags. Eight of those fit on one A4 paper. Current approach My current approach is to create a {minipage} environment inside an \fbox. I then set the \...
polemon's user avatar
  • 3,525
1 vote
2 answers
120 views

Adding padding and border to a figure without extending space?

I've added a border an padding to a figure. When I try to match the its width with the text I end up having a wider image than I intended. Is there a way to add border and padding without increasing ...
killthepixelnow's user avatar
4 votes
1 answer
57 views

Nested enumerate with `\fbox{enumi}` stops incrementing

I wanted to have boxes around my item labels of enumerate. I created a new command: \newcommand{\sqenumi}{\protect\fbox{\arabic{enumi}}} This way, I can get what I want with \begin{enumerate}[label=\...
Nora NICOLAS's user avatar
0 votes
1 answer
51 views

Why do I get "!Missing $ inserted" error when I use math mode inside \fbox{} command?

I wanted to create a box around of the theory which I'm going to present so I typed the following code: \fbox{\textbf{ΘΕΩΡΙΑ} $$a^x= \theta \iff x=log_\alpha \theta$$ $$log_\alpha 1=0$$ $$log_\alpha \...
Chris H.'s user avatar
1 vote
1 answer
82 views

why adding \fbox around \includegraphics makes it lose the centering when using tex4ht?

in tex4ht, when doing \centering \includegraphics[width=0.6\textwidth]{example-image-a} The image comes out centered. But when adding fbox, the images no longer is centered \centering \fbox{\...
Nasser's user avatar
  • 20.7k
1 vote
1 answer
34 views

How to reduce the gap between a table (CO Mapping table) and /fbox environment (for instructions)?

The gap between the table and instructions is too much. I would like to reduce it significantly. Kindly help. \documentclass[12pt,a4paper,addpoints,answers]{exam} % import packages \usepackage[utf8]{...
Saurabh Kumar Pandey's user avatar
1 vote
2 answers
105 views

line numbers (lineno) with non-standard paragraphs

I am using the article class with the lineno package, to provide line numbers, and would like to highlight certain paragraphs with a vertical bar, as in the example below. How can I keep the line ...
Ingmar's user avatar
  • 6,650
2 votes
2 answers
433 views

fbox without vspace

I am going to give a definition of a problem as follows. \newcommand{\defproblem}[3]{ \vspace{4mm} \noindent\fbox{ \parbox{0.98\textwidth}{ #1 \\ \textbf{...
Blanco's user avatar
  • 303
1 vote
1 answer
62 views

Want to add optional parameter to adjust tightness of \mybox

Following up on @Roman Starkov's \mybox definition for a tight \fbox (How to put a framed box around text + math environment), I'd like to add an optional parameter to adjust the pt allowance around ...
RosesBouquet's user avatar
0 votes
1 answer
68 views

How to position multiple objects inside a fbox by relative X/Y position

I'm very new to LaTeX would like to ask some advice on how to position elements inside a fixed size box. Fox each element I know the X/Y relative position to a box corner. When I try to use spacing to ...
576i's user avatar
  • 113
1 vote
1 answer
94 views

How to Redefine the fbox Command to Increase the Default Space Between It and the Beginning of the Subsequent Sentence

Here is a MWE that displays the use of the \fbox command in multiple paragraphs: \documentclass{book} \usepackage{lipsum} \usepackage{xcolor} \begin{document} \parskip 10pt \Large {\color{red}{\...
DDS's user avatar
  • 8,491
7 votes
3 answers
328 views

Centering an Initfamily Letter within a Colorbox and Sizing It for Use as a Two-Color Lettrine

Consider the code \documentclass{book} \usepackage{lettrine} \usepackage{lmodern} \usepackage{xcolor} \usepackage{scalefnt} \usepackage[tracking=true]{microtype} \input GoudyIn.fd \newcommand*\...
DDS's user avatar
  • 8,491
1 vote
1 answer
51 views

Appropriate \minipage width

I was using minipage inside fbox, and got an overfull hbox. I know that it is common practice to set the width of minipage inside fbox as \dimexpr\linewidth-2\fboxrule-2\fboxsep, but the hbox is still ...
WishofStar's user avatar
1 vote
3 answers
164 views

How to Directly Import Better Example Images for MWEs

For the purpose of asking questions on this site related to images, I know that I can directly call in a basic non-descriptive image in the following manner: \documentclass{article} \usepackage{...
DDS's user avatar
  • 8,491
1 vote
0 answers
104 views

How can I use fbox to enclose multiple items inside enumerate environment?

I'm learning natural deduction in my logic class, and I need to write proofs according to the style shown below. I tried to use \fbox inside the enumerate environment, but it seems like that I can ...
utnd03's user avatar
  • 11
0 votes
1 answer
34 views

Side-by-side figures with pseudocode in fboxes of same height

I have two pieces of pseudocode that I want to be in side-by-side figures, encapsulated each in their own fbox and these fboxes should have the same height. Any advice on how to do this? I'm pasting ...
Jelani Nelson's user avatar
0 votes
2 answers
312 views

Is there a way have breakable framed boxes?

Here is a command I have: \newcommand{\numbox}[2]{$^{\circled{#1}}${\fbox{#2}}} What it does is boxing and numbering a text. However I for the box to break nicely across lines. In command \fbox{text} ...
Atahan Haznedar's user avatar
1 vote
1 answer
68 views

breakable box with varwidth

PROBLEM Build an environment to put some text in some boxes that should be both breakable across a page and adapt to text width. Unfortunately, packages mdframed and tcolorboxes have the first option, ...
brodegon's user avatar
  • 217
1 vote
1 answer
83 views

Suppress counting of fbox, parbox, minipage as table

I am running into an issue where either the fbox, parbox, or minipage is being counted as a table. As an example, I have added sample code that is similar to my setup. This code results in the first ...
Kelsey Urgo's user avatar
1 vote
2 answers
194 views

Align text outside of fbox with text inside of fbox

I'm trying to replicate the following: I was able to create a similar fbox, but I'm not understanding how can I align the text outside of the fbox with the text inside of it. The closest I got, as ...
CGnew's user avatar
  • 11
1 vote
1 answer
152 views

Border to fit reference \cite{book}

How can I put or resize a fbox to fit a reference \cite{author} like this? \usepackage{xcolor} \usepackage[hidelinks]{hyperref} \begin{document} \newcommand{\cfbox}[2]{% \colorlet{currentcolor}{.}% {...
кестеняво's user avatar
1 vote
1 answer
174 views

why a line containing `\fbox` in my code is not working?

I have this line in my code: \fbox{\ker(r \lambda)_* \cong\mathbb{Z}/p^{a+t-\min\{a,b\}}} And this is my document from the beginning \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[...
Happy's user avatar
  • 363
0 votes
0 answers
36 views

Placing a paragraph into a textbox

I am busy helping someone to write a book using texstudio, and I am trying to add a specific paragraph into a textbox as a sort of short story within the book. I used the minipage method to do so, ...
ZaanWELLIES96's user avatar
1 vote
1 answer
38 views

How to avoid visual artifacts between fbox and graphics?

I'd like a simple black border around my images: \documentclass{article} \usepackage{graphicx} \usepackage{calc} \usepackage{mwe} \setlength{\parindent}{0pt} \setlength{\fboxsep}{0pt} \begin{document} ...
bers's user avatar
  • 5,384
0 votes
1 answer
75 views

Text out of fbox

What I'm trying to do is to put an equation inside an fbox. Here's my MWE: \documentclass[12pt]{article} \usepackage[italian]{babel} \usepackage[utf8x]{inputenc} \usepackage{amsmath, amsthm, amssymb, ...
LukeTheWolf's user avatar
0 votes
1 answer
128 views

Removing Padding of Subfigure

When dealing with subfigures, I always like to have things as much aligned as possible. For that I use a fbox to see where boundaries are and I constantly have issues with space I can't get rid of. ...
Eduardo Reis's user avatar
0 votes
3 answers
800 views

Set `\fboxsep` only for `\fbox` but not `\boxed`

I’m using both \fbox and \boxed but for different uses. When I use \fbox, I need it to have \fboxsep set to -0.5pt, but when I used \boxed I want a \fboxsep of 2pt. Is there a way to do that? EDIT: As ...
Archange's user avatar
  • 1,348
0 votes
2 answers
265 views

How to place boxed text next to an image of the same height?

I'd like to mimic the following style: having an image of an author next to a textbox of the same height. However, my attempt is humorously unsettling: It appears that the aspect-ratio of my face ...
Graviton's user avatar
  • 103
0 votes
1 answer
731 views

Full page width box and icon to highlight paragraph

How can a box (like fbox or adjustbox) be stretched to the full page width to highlight a specific paragraph in the text? The definition should work without hardcoding geometry margins that were ...
Martin's user avatar
  • 842
0 votes
1 answer
168 views

Make Box Around Page Red

I have used … \usepackage{fancybox} \fancypage{}{\fbox} … to put a box around my text on every page including header and footer. It looks how I want it, except for the color. How do I make it red ...
jellyjiggling's user avatar
2 votes
2 answers
112 views

I have made the image of the attached capture using a Microsoft Word table. How could I get a similar result in Latex? Is it posible overlap boxes?

\[\boxed{{x_1}\quad {x_2}\quad {x_3}}\quad {x_4}\quad \boxed{{x_5}\quad {x_6}\quad {x_7}}\quad \cdots \] I have made the image of the attached capture using a Microsoft Word table. How could I get a ...
Jesús Álvarez Lobo's user avatar
2 votes
1 answer
145 views

On the saturation of fontsize

Below I wrote a code using the grid package showing: When the fontsize is 20 the height of the parenthesis is 20 points, which is what we expect. When the fontsize is 40 the height of the parenthesis ...
Aria's user avatar
  • 1,523
3 votes
2 answers
891 views

Font Size and fbox Size

When we set the fontsize to be 20 points I am wondering which size of the fbox bonding box enclosing a letter is 20 points. To understand I write a code as below and there are two main questions I ...
Aria's user avatar
  • 1,523
1 vote
1 answer
209 views

wrapping pictures with box

\documentclass{article} \usepackage{graphicx} \usepackage{fancybox} \graphicspath{ {d:/pics/} } \begin{document} \begin{figure} \fbox{\centerline{\includegraphics[scale=0.25]{example-image-a}}} \...
Kain's user avatar
  • 127
0 votes
1 answer
616 views

Formatting tables inside minipage

I want to create a document with three tables inside minipage environments. See MWE below. While I do get three tables side by side, the contents of these tables overlap. One way to get rid of these ...
Suman's user avatar
  • 235
1 vote
2 answers
238 views

Image with border and fill

I'm trying to insert an image with a rectangular border, and that rectangular border has a gray color, something like this: This is my code: \begin{figure} \lineskip=-\fboxrule \textcolor{Orange}{ ...
Iván Vega's user avatar
4 votes
1 answer
319 views

How can we to create an exercise environment like this:

How can we to create an exercise environment like this: I tried \definecolor{orange}{rgb}{1,0.7,0} \fboxset{rounded,border-color=orange} But it wasn't success.
NKellira's user avatar
  • 199
0 votes
1 answer
887 views

How can I remove the border of \fbox?

I don't want to change the colors, I want to remove. Part of my code: \fboxsep=0pt \noindent\fbox{% \begin{minipage}{0.48\linewidth} \scalefont{1.1} \centering \...
RxT's user avatar
  • 111
1 vote
1 answer
2k views

How to enumerate with two columns inside a box?

I'm trying to figure out how to insert a enumerated list with two columns inside a box with minimal waste of space. The code outputs the first items of each column unaligned among themselves and ...
redgrapejuice's user avatar
0 votes
0 answers
162 views

Insert boxed prooftree inside prooftree

I'm trying to typeset proof trees with bussproof (usepackage{bussproofs}, available on CTAN). My personal favorite notation for explaining the rule of introduction of implications is with boxes, but I ...
Béranger Seguin's user avatar
1 vote
1 answer
224 views

fbox typing in Latex

Whats the Latex code for inserting a small boxes at the end of a remark sentence like the ones in the image above?
Volvoman's user avatar
-1 votes
1 answer
48 views

How to colour a specific border frame

There is many help about how to insert frame for images and how to colour them, but I couldn't find anything about how to colour blue just the top frame, red the right-frame and so on. I would ...
UnPerrito's user avatar
  • 190
1 vote
1 answer
159 views

Losing alignment with fbox

I am using this command to put a box around stuff. \newcommand{\cfbox}[1]{% {\color{black}% \setlength\fboxsep{0pt}\fbox{ \begin{varwidth}{\dimexpr\columnwidth-2} \leavevmode{\color{black}#...
Pyrrhic Buddha's user avatar