Questions tagged [framed]

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

2
votes
2answers
211 views

ConTeXt: Frame entire section of pandoc-generated document

Background Using pandoc to convert a Markdown document into ConTeX and would like to frame a section. Problem Using \beforesection and \aftersection with \starttextbackground and its stopper only ...
0
votes
0answers
15 views

Resizing paper to 19x26

How to write in a format 19x26. The printer said to change my paper format and make it 19x26. The current format is A4 paper and the documentclass: book
1
vote
1answer
21 views

mdframed: title and subtitle

I would need to recreate the same frame as the one proposed at this page mdframed: Put a line below the frame title and give it a shaded background with the only exception of adding a subtitle with ...
18
votes
3answers
24k views

Boxed equation with number

My minimum working example: \documentclass{report} \usepackage{amsmath} \begin{document} \begin{center} \boxed{K_{k+1}=P_ka_{k+1}^T(a_{k+1}P_ka_{k+1}^T+I_N)^{-1}} \end{center} \end{document} The ...
0
votes
0answers
52 views

ConTeXt: Dynamically setting frame width around section using \structureuservariable

I would like to generate graphical sections (for poster/slides) where the section is bounded by a frame and the section title itself also has a graphic around it. However, I would like to generate ...
28
votes
5answers
22k views

Draw true page border

Is there a way to draw a rectangle around every page? The problem is that my document (a Ph.D. thesis) is in a funny format (16x24cm). So to print it centered on A4 paper (for reviewing) I played ...
6
votes
2answers
106 views

ConTeXt: MetaPost graphic in overlay setups shifts between pages

Background A line is being drawn using MetaPost on an overlay, which is used as the background for a framed layer. The layer is embedded within a setups so that a dot's position on the timeline is ...
1
vote
1answer
18 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
54 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
143 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 ...
4
votes
3answers
196 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
34 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
181 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
73 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
40 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
150 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
445 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
49 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
86 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
94 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
35 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
37 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
100 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
52 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
62 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
54 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
89 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
37 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
42 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
44 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
176 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
126 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
52 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
133 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
66 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
109 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
273 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
101 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
55 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
223 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 ...
2
votes
1answer
270 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
557 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.
25
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
541 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
235 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{...
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
2
votes
2answers
722 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 ...