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 [fbox]

The tag has no usage guidance.

2
votes
1answer
51 views

Borders of fbox

How can we write words on a border of \fbox in LaTeX like this Hope image is clear.
4
votes
3answers
133 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, ...
1
vote
1answer
32 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
54 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
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
26 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
40 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
52 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
122 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
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 \...
6
votes
2answers
341 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
30 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
599 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
25 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
2answers
61 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
231 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
88 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
194 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
49 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
111 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
394 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
218 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[...
3
votes
2answers
351 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
102 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
62 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
36 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
311 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 \...