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

{framed} is about framed document elements, e.g., boxes and environments. A popular package is {mdframed}.

1
vote
1answer
12 views

Vertical spacing between \framebox-ed elements of list

I'm new to this stuff, but I am trying to create an alphabetical list where the elements are in one column with a box around it and a line between each element (I want to be able to print it and cut ...
1
vote
1answer
46 views

Longtable breaks when in a leftbar environment from the 'framed' package

I'm having problems combining the framed package with the longtable package. In the example below, if I comment out the \begin{leftbar}... \end{leftbar} then the table works correctly. But when I add ...
2
votes
0answers
138 views

ConTeXt: How to enforce spacing below a columnsetspan?

I'm using columnsets with floating columnsetspans, and I would like to enforce a small amount of vertical space below a columnsetspan and the following text, outside the frame. Here are some example ...
5
votes
3answers
163 views

How to add frame around section using titlesec?

I want exact this section style but I am unable to add frame around it. Could you please help me? Here is my code snippet : \documentclass[10pt,a4paper,twoside]{report} \usepackage{blindtext} \...
1
vote
1answer
31 views

Align framed environment boxes accurately

I'm trying to draw a figure consisting of two boxes, using the framed environment, aligned side by side, each containing a small header and an align* environment. I'd like some symmetry. I.E. that the ...
5
votes
1answer
152 views

Leftbar without indentation

I'd like to use the leftbar command from the framed package to put a line next to some parts of text. The only problem I have with the command is that it indents the text in question, as illustrated ...
64
votes
11answers
31k views

Highlight elements in the matrix

I have a matrix and need to highlight some elements in the matrix. I have found how to highlight a single element (I want to put the cell in the square): $$ A = \begin{bmatrix} \fbox{0} & \fbox{0}...
3
votes
1answer
67 views

How to put a color-filled frame around a caption in longtable?

I would like to put a color-filled frame (for example with tcolorbox package) around the caption of a longtable, which I put into \endlastfoot. I used the answer to this question: Boxed caption and ...
0
votes
1answer
35 views

Adjust Frame Option of pdfpages-Package

I'm currently writing a report for university and want to include some pdf documents as appendices. I'm using pdfpages (of course) to include these pdfs but i ran into one small problem: I scaled the ...
1
vote
3answers
97 views

Framed boxed text with “continued” text on page break

I need to write a boxed text as like as: Currently, I am using \documentclass{book} \usepackage{framed} \begin{document} \begin{framed} \section{Box 15...} ... \end{framed} \end{document} Please ...
4
votes
1answer
421 views

Text edge and shadow with tikz

I have this code: \documentclass[twoside,fleqn]{book} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[italian]{babel} \usepackage[most]{tcolorbox} \usepackage{tikz} \usetikzlibrary{...
3
votes
1answer
48 views

How do I put a box around a part of a formula?

The question is in the title: How do I put a box around a part of a formula? Consider the case in which I want to put a box around the second line of the following equation: \begin{equation} \begin{...
1
vote
1answer
70 views

Broken build if a too big picture is included in a framed environment, how to insert “horizontal slices” rather?

This produces about 5000 pages before crashing: \documentclass{article} \usepackage{framed} \usepackage{graphicx} \begin{document} \begin{framed} \noindent\includegraphics[height=35cm]{example-...
3
votes
3answers
81 views

How can I put every `verbatim` environment inside a `Shaded` environment by changing the preamble only?

Unfortunately, I have a lot of TeX code which should look different that it does not, but I cannot modify its code body. However, I can modify the preamble and for example, I have learned that I can ...
1
vote
1answer
32 views

How to force not longer displayed or add ellipsis at the end when a vbox is exceeded

Like this \documentclass{article} \usepackage{lipsum} \begin{document} \frame{\vbox to .3\textheight{ \lipsum[1]\lipsum[10]\ }} \end{document} i only need the text within the frame
4
votes
1answer
32 views

How to adjust the horizontal spacing/ margins in custom framed title

I would like to increase the space between the left and right edges of a framed chapter title. I am very new to LaTeX, and am struggling with the package documentation. How can I set text margins ...
1
vote
1answer
85 views

What environment to draw frame/box compatible with floats

I want to draw a text-width frame/box around a paragraph of text, like this I used framed environment from framed package \documentclass{article} \usepackage{framed} \begin{document} \textbf{...
3
votes
1answer
3k views

Remove border of a framebox

I would like to insert an inline box. I have tried this: \usepackage{color} \definecolor{shadecolor}{rgb}{1,.8,.3} \begin{document} {\setlength{\fboxsep}{0pt} \framebox{\setlength{\fboxsep}{5pt}\...
1
vote
1answer
47 views

How to make slide in latex

I want to create a presentation about English Tense in latex. Till now I create three slide. 1st slide is a title slide. 2nd slide is for Content slide,3rd is a outline slide of my full presentation. ...
1
vote
1answer
57 views

Consecutive numbering in theorem enviroments, inside framed boxes

I want to write propositions, lemmas, theorems, corollaries inside the chosen boxes and definitions NOT inside boxes, all of them with consecutive numbering. I searched for similar posts and I found ...
1
vote
1answer
38 views

Framebox - two rows

Please how to set two rows in a framebox? \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[czech,english]{babel} \begin{document} \framebox[\...
0
votes
1answer
69 views

change color in shaded environment

I'd like to switch color in a shaded environment (package framed.sty). Something like that : \definecolor{shadecolor}{1 0 0} \begin{shaded} This line is red \switch{yellow} and this line is yellow ...
1
vote
1answer
36 views

How to force a framed box not to be cut by the end of page

I would like to know how to keep a whole framed box on the same page. I am finishing a manuscript and I am quite afraid to move the text before/after to check this. I take this example, from here. ...
1
vote
1answer
35 views

How to box the last (or one) line of an aligned set of equations? [duplicate]

I am trying to get the last equation in a list of aligned equations boxed, however this is more challenging than I thought it might be. I would like to be able to do it with the box both including ...
0
votes
1answer
40 views

Conflict between \captionof and mdframed

I'm using the minted package to generate highlighted code snippets. Because I want all minted environments to be wrapped with mdframed, I added the following to the preamble. \usepackage{mdframed} \...
1
vote
1answer
128 views

Format frame of listings

please, how should I set frame of listlings like line not line at bottom and dash on sides. Thank you \documentclass[12pt,a4paper]{report} \usepackage[left=2cm,right=2cm,top=2.5cm,bottom=2.5cm]{...
3
votes
2answers
104 views

How to highlight a line of text (with colored background) with animation in beamer?

There are several ways to highlight a line of text with colored background in beamer, for example, using framed or mdframed. How to animate this highlight, i.e., filling the background color from ...
2
votes
1answer
48 views

How could I remove space after framed figure's caption and text follows it?

I have following code: \documentclass[10pt,journal,compsoc]{IEEEtran} \hyphenation{op-tical net-works semi-conduc-tor} \usepackage{graphics} \usepackage{mdframed} \usepackage{tikz} \usepackage{...
5
votes
2answers
130 views

ConTeXt and Metafun: Framed enumeration with counter as part of overlay

How do you make an enumeration where the enumeration counter appears within a frame decorated with Metafun? The idea is to have something similar to an example on pg. 144 of the Metafun manual: ...
2
votes
1answer
55 views

Creating double-framed table in document header

I am pretty new to TeX and right now I am facing a challenge in creating double-framed table in header of my document. Intended goal is in image: Combining answer here: Create Double line Border in ...
5
votes
1answer
97 views

ConTeXt and Metafun: Using environment variables inside overlay

I would like to draw a custom frame for the framed environment using Metafun. I am currently hard-coding the frame color within the Metafun definition. However, I would like the Metafun frame to ...
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
2answers
89 views

How to frame text of different lines

I'm trying to reproduce this: I was able to reproduce everything but the frame below "John sleeps": I first tried using gb4e, but I didn't find a solution. Now, my examples are written by hand, ...
1
vote
1answer
51 views

Auto-cross lines in framebox

Some text in a paragraph may need frame out of them, and this framed text may cross lines. \framebox seems not be able to do that. How to get this effect as shown on the attached figure which is ...
2
votes
1answer
167 views

different color shading for each theorem type

There are lots of comments around the Internet about how to colorize theorems in LaTeX, and many are beyond my grasp in complexity. For the moment, I'm using a fairly simple pattern which lets me ...
3
votes
1answer
213 views

How can I add some caption to parbox

I am using \noindent\fbox{% \parbox{\textwidth}{% text }% } For a box around text like this: How can I add some caption and use this caption as reference in text? Somethink like ...
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.
24
votes
2answers
15k views

How to continue the framed text box on multiple pages?

I am using framed package to create text boxes using begin{framed} and end{framed}. My problem is that my framed box goes on for two pages, and I don't want the text box to complete itself at the end ...
2
votes
2answers
539 views

How to achieve custom line breaking of URLs in a 'framed' environment?

I have a long line, which could be a url but is not always a url so I cant use url/burl package. I want to specify where to break (at &), and how to do it. Long line: long-example-url.com/foo....
0
votes
1answer
207 views

Beamer: framed box for frame title

I prepared the following source \documentclass[10pt,fleqn,xcolor=svgnames]{beamer} \setbeamercolor{background canvas}{bg=Green!10} \setbeamercolor{frametitle}{fg=Brown,bg=Yellow!20} \setbeamercolor{...
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
2
votes
2answers
580 views

Adding border around figure and caption

There is a Word-based submission guideline that shows following formatting for figures: Note that there is a border around both the Figure and the caption. Question: What's the most elegant way to ...
13
votes
2answers
2k views

How to create Multilevel Colored Boxes using tcolorbox/any other package?

tcolorbox Manual provides the following example: Can anybody please suggest me how to create exactly this type of box - The no. of rows to add must be flexible(It seems that tcolorbox has no option ...
0
votes
0answers
22 views

empheq equation flows out of column bounds [duplicate]

I am using the boxed equation format shown here. However, it flows out of column bounds when following the IEEE journal format as shown in image. \documentclass{article} \usepackage{color} \...
4
votes
2answers
57 views

How to add a space between the frame of an image and the image itself?

I have an image in my document and I am trying to add a space between the frame of the image and the image itself. I tried to search but I didn't find results serve the purpose. The following code to ...
1
vote
2answers
75 views

How to align framed equations over the whole page?

I wrote the following text (you can find the code below). I boxed my equations using the \boxed command. As you can see, because of the different text in front and behind the boxes, they are aligned ...
1
vote
1answer
39 views

how to expand a frame to the rest of the page

I have some introduction text and a figure at the end of the first page. Now I want to place a framed notes box between those parts, that may go over to the next page. But I want the frame to fill the ...
0
votes
1answer
62 views

Tasks Package Framed Label

Here I need the task package option that allows lists to be distributed horizontally in the order shown below. And I need the enumitem package option that let me wildly format the item labels. Is ...
4
votes
1answer
373 views

Independent text within a box that spans entirely pagewidth as shown, How to?

I'm a new user (I used to ask some questions here but it's long time ago) and have a problem about an example box created by tcolorbox on scrbook class. I would like to ask all guru some questions as ...
89
votes
4answers
195k views

Attractive Boxed Equations

I often used \boxed{...} from the AMS math package to place a box around important equations. However, this approach often produces somewhat awkward looking output. Consider \documentclass{article} ...