Questions tagged [fbox]

The tag has no usage guidance.

3
votes
2answers
80 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
177 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{...
1
vote
2answers
57 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
38 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
60 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
186 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
45 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
64 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
44 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
56 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
30 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
55 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
177 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
306 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
466 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
31 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
847 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
1answer
65 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
259 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
104 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
272 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
54 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
191 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
555 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
274 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
429 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
129 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
67 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
37 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
339 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 \...