The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [fbox]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
2answers
37 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
1answer
36 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
0answers
15 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
0answers
39 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 ...
4
votes
1answer
130 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
2answers
167 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
4answers
181 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
2answers
74 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 \...
3
votes
3answers
43 views

How to stack frameboxes one next to another filling all available horizontal space

I'm writting a "cheat sheet" where I put a bunch of formulas and ideas inside frameboxes, stacked one after another. The issue is that paragraph indentation, the framebox separator and the framebox ...
2
votes
1answer
69 views

Borders of fbox

How can we write words on a border of \fbox in LaTeX like this Hope image is clear.
3
votes
3answers
256 views

Making an empty box next to text

I'm trying to recreate a document template thats in a PDF, in one portion of it, I need to create a box with a word of text next to it, like so: I've tried using functions like \fbox and \framebox, ...
2
votes
1answer
55 views

The size of character changed in fbox

The source is as in the following \documentclass[a4paper]{ctexart} \begin{document} \noindent 【 \setlength{\fboxsep}{0pt} \noindent \fbox{【} \end{document} The output looks like As you can see, ...
0
votes
1answer
78 views

Align Fbox to the left

I am trying to set space for my mathematics answer booklet. I want to align the box to the left of the page but when I use \parts or \enumerate the alignment shifts. I want to use the entire width of ...
0
votes
0answers
57 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
70 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
39 views

How can we make caption the appear inside of the fbox?

I would like a figure caption to appear inside of the same framed box other figure elements appear inside of. Below we have several nested environments. The ordering of the nesting is: figure > fbox > ...
2
votes
1answer
41 views

Do \fboxs float, or do they stay right where you put them?

Do \fboxs float, or do they stay right where you put them? Also, will LaTeX ever insert a page break midway through an \fbox?
1
vote
2answers
58 views

How can we Define our own Simple Environment for Source Code?

Inside of our document we wish to define a new environment for blocks of source code \newenvironment{srcblock}% % Define the environment Later, we will use the environment: \begin{srcblock} % use ...
2
votes
1answer
239 views

Getting R xtable to display within a LaTex 'minipage'

I have the following piece of R-markdown / latex / minipage combo code. What I am trying to do is get the xtable output to display within the minipage, along with other text paragraphs surrounding it....
5
votes
1answer
327 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 \...
6
votes
2answers
619 views

How to create two box side by side in latex without using tikzlibrary

I want to write down this code in latex. I write down a code for this but it not properly displayed as per the picture. My code \indent\fbox{$\Sigma=\Omega^{-1}$ \\ $\mu=\Omega^{-1}\xi$} What ...
2
votes
1answer
34 views

Narrow and (vertically and horizontally) centralised fbox

Does anyone know how I can create a Narrow and (vertically and horizontally) centralised \fbox, whose content is an array. For instance, I have the following code: \documentclass{article} \begin{...
5
votes
2answers
1k views

How to change the default border color of fbox? [duplicate]

I have a lot of figures inside an fbox. Unfortunately the default black is too strong for my advisor and I need to change the default border color to something more soft. I've done my research and so ...
1
vote
1answer
29 views

Beamer slide effects: including images with \includegraphics<n> leaves undesired space

I am just trying to insert different images of the same side in the same slide, so it gives the effect of just the image changing while the rest of the slide remains the same, including slide number. ...
1
vote
1answer
74 views

Error when using fbox numbering with tasks package

When I insert "\renewcommand{\labelenumi}{\bfseries \fbox{\arabic*}}" in the preamble, I receive an error "! Argument of \boxframe has an extra }.\par \item" but it's good If I don't insert that. My ...
4
votes
2answers
312 views

How to highlight some inline text using parbox?

I have some paragraphs to highlight for later edit in my latex document. For that I use the following code \newcommand{\hl}[1]{\noindent\colorbox{pink}{\parbox{\dimexpr\linewidth-2\fboxsep} {#1}}} ...
3
votes
1answer
128 views

Two Verbatims (fancyvrb) side by side with frame and uncovering lines

I'm wondering if there is a possibility to create in beamer two Verbatim environments side by side, each with the frame of the width of \textwidth and with gradually uncovering lines. More ...
0
votes
1answer
500 views

How to frame any environment like minipage and others? [duplicate]

How to frame an environment like \minipage and others in a frame box. Note: I tried \fbox and never worked, I always get errors This is my code \fbox{ \begin{minipage}{\linewidth} \small \begin{...
2
votes
1answer
60 views

lrbox doesn't work in math mode

I'm trying to create a custom environment, using which I'd be able to create a box around a certain part of an equation in math mode. I have tried to use lrbox to make it possible to use fbox. ...
0
votes
2answers
231 views

Text overflows tabular in minipage

I want to reproduce this output from the book Parameterized Complexity Theory by Flum and Grohe: I try using a minipage, and an fbox. However, the text overflows the box, and linebreaks do not work: ...
2
votes
1answer
721 views

How can I make a thin border around text

I am using \noindent\fbox{% \parbox{\textwidth}{% text }% } For a box around text like this: I want to make a morest thin border. I don't know how.
0
votes
2answers
331 views

Setting width of figure element in fbox / minipage

Following code is currently used to show a figure: \begin{figure}[ht] \lineskip=-\fboxrule \fbox{\begin{minipage}{\dimexpr\textwidth-2\fboxsep-2\fboxrule} \centering \includegraphics[...
2
votes
2answers
589 views

Add a specific space on top and bottom of a fbox

I have a figure which rounded by fbox, I am wondering how can I add a space only at the top and bottom of the image since \setlength{\fboxsep}{6pt}add space around the whole figure. Thank you
1
vote
2answers
150 views

How to surround text or values with dashed box within paragraph?

I need to put text and values inside a dashed box for focus purposes. within a paragraph, I have tested this Dashed box environment it's not my need I want it like this way
2
votes
1answer
79 views

Special underline/Partial box

I'm not exactly sure what to call this, but I'd like to know how to replicate the text decoration shown under the $n$ in the image. It seems a hooked underline or similar to, a partial box, but only ...
1
vote
0answers
39 views

new label in itemize/minipage/fbox not right

What can I do to fix this? This code: \documentclass[12pt]{article} \begin{document} \renewcommand\labelitemi{\rule{.3in}{.1pt}} \fbox{\begin{minipage}{3in} \begin{itemize} \item This looks good \...
8
votes
2answers
376 views

TikZ: How to set width of complicated TikZ-image to \textwidth?

I have one a bit complicated TikZ-image: As you can see, I want to put one single border around this TikZ-image. Due to optical harmony the border should have the exactly same outside dimension like \...