Questions tagged [fbox]
The fbox tag has no usage guidance.
79
questions
0
votes
1
answer
38
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 ...
0
votes
1
answer
35
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 ...
1
vote
1
answer
57
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}{\...
0
votes
0
answers
21
views
Textbox above header line
does anyone know how to do this on the header of latex? It is solid fbox directly above the header line. Photo Ctto.
7
votes
3
answers
266
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*\...
1
vote
1
answer
39
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 ...
1
vote
3
answers
125
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{...
1
vote
0
answers
46
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 ...
0
votes
1
answer
28
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 ...
0
votes
2
answers
155
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} ...
1
vote
1
answer
39
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, ...
1
vote
1
answer
66
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 ...
1
vote
2
answers
109
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 ...
1
vote
1
answer
69
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}{.}%
{...
1
vote
1
answer
41
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[...
0
votes
0
answers
22
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, ...
1
vote
1
answer
30
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}
...
0
votes
1
answer
57
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, ...
0
votes
1
answer
36
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. ...
0
votes
3
answers
293
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 ...
0
votes
2
answers
108
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 ...
0
votes
1
answer
230
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 ...
0
votes
1
answer
69
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 ...
2
votes
2
answers
99
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 ...
2
votes
1
answer
52
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 ...
3
votes
2
answers
489
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 ...
0
votes
1
answer
55
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}}}
\...
0
votes
1
answer
124
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 ...
1
vote
2
answers
109
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}{
...
4
votes
1
answer
197
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.
0
votes
1
answer
360
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
\...
1
vote
1
answer
748
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 ...
0
votes
0
answers
90
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 ...
1
vote
1
answer
132
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?
-1
votes
1
answer
36
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 ...
1
vote
1
answer
88
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}#...
0
votes
1
answer
137
views
tight tcolorboxes
I want something like a tcolorbox but that it's width and heigth is just as large as its content, I mean that the margin of the box is as tight as possible and the box is centered, is important too ...
0
votes
1
answer
83
views
Misalignment between fbox and rest of the text
When defining the width of an fbox as \textwidth-2\fboxsep-2\fboxrule, it still sticks out a bit with respect to the rest of the text. Is there a width/length that I'm missing?
\documentclass{article}...
0
votes
1
answer
55
views
Preamble: something is suppressing fbox containing instructions at top of math worksheet
Here's the instructions that aren't appearing when I compile in overleaf:
\fbox{\fbox{\parbox{\dimexpr\textwidth-4\fboxsep-4\fboxrule}{
\textbf {Simplify by expansion and steps shown in class. ...
4
votes
2
answers
742
views
How to move \fbox vertically, or how to frame \vbox or \vtop and move it vertically (through the baseline) without changing the size of the box?
I need to be able to move a \vtop or \vbox vertically without changing the box size, but it gets stuck at the baseline (you can pad the contents of the box up or down but you can't seem to move the ...
4
votes
1
answer
1k
views
tikzpicture padding
I don't get where the mysterious white space around this mwe-tikzpicture comes from:
\documentclass{article}
\usepackage{amsmath}
\usepackage{tikz}
\usepackage{pgfplots}
\usetikzlibrary{arrows.meta}
...
0
votes
0
answers
473
views
\fbox has very thick lines
fbox gives very thick line in sublime text editor with sumatra pdf
but in texmaker with sumatra gives normal thin lines--why is this?
\begin{tikzpicture}
[remember picture, overlay] \draw[line width=...
0
votes
2
answers
213
views
Exam question with \fbox
I'm trying to replicate this format for my exam questions, but I really don't know how to do it. I tried with \fbox, but I can't put "QUESTION 2" on the box :
\qformat{
\fbox{\parbox{5.5in}{\...
0
votes
1
answer
546
views
How to make a box with grey color background using fbox in latex
how to make a box with grey color background using fbox in latex?
I have the following code but have no idea how to change the background into grey color.
\fbox{$\phantom{\num{665}}$}
Appreciate ...
1
vote
0
answers
25
views
Aligning two images, one with border and one without
I want to align two images using \minipage. One of the images has already some sort of border on its own. To the second image i'd like to add one, using \fbox.
Without the border from \fbox the two ...
2
votes
0
answers
1k
views
fbox of parbox of textwidth length is too wide
I was implementing the code found in this Q/A How to put a long piece of text in a box? to create a command for a paragraph text inside a framed box. However the box goes too far into the margin ...
5
votes
1
answer
568
views
Easy border for tikz and forest
Using \fbox around forest creates unwanted horizontal paddings to my graphs:
\documentclass{scrbook}
\usepackage{tikz}
\usepackage[linguistics]{forest}
\begin{document}
\begin{figure}[bth]
\...
3
votes
2
answers
1k
views
Align Fbox to the left and text to the right
I m a beginner with LaTex and I don't really understand how to align an FBox to the left with an image inside and some text to the right.
Current implementation without boxing:
\noindent\begin{...
4
votes
4
answers
444
views
How can I make a vertical rule that extends to the edges of an fbox?
Consider the following MWE:
\documentclass{minimal}
\begin{document}
\fbox{some text \vrule{} more text}
\fbox{some text \vrule{} more deep text}
\fbox{some text \vrule{} more $\int$ tall text}
\end{...
2
votes
2
answers
304
views
How to add boxed text at bottom of first page?
I need to add some boxed text at the bottom of the first page. If placed anywhere on the first page the box should appear at the bottom of the first page. Please help me. I tried the following code
\...