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
13 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 ...
5
votes
3answers
168 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 ...
1
vote
1answer
47 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 ...
5
votes
1answer
154 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 ...
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 ...
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
3answers
98 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 ...
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
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
39 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
70 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
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 ...
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
1answer
36 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
41 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
137 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]{...
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{...
3
votes
2answers
107 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 ...
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
57 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
101 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
201 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
90 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
53 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
176 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
215 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
413 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
1answer
210 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
360 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
597 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 ...
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
378 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 ...
1
vote
2answers
38 views

Creating a frame within a table

I would like to put a frame/box around certain elements within a table of mine, for example, I have a table ala \begin{tabular}{ |c|l| *{3}{>{\centering\arraybackslash}p{2em}} |c|c|c| } \hline ...
1
vote
1answer
52 views

A semi-rectangle frame

I was wondering how it is possible to enclose a block of text or a word in a semi-rectangle frame. For clarity, I attach a picture in which a word: solution's frames are the subject of the question.
0
votes
1answer
47 views

Particular headings to create using LaTeX

I would like to create the following heading using LaTeX: May anyone please advise on the code to do so? In particular, I would like to capture The color The border The shadow Thank you!
2
votes
1answer
47 views

How to prevent “leftbar” from breaking “marinpar”?

I'm using the \leftbarcommand provided by the package framed to highlight margin notes. Unfortunately leftbar seems to somehow break the calculation of the margin width once a comment is inserted ...
0
votes
1answer
103 views

Draw a rounded corner frame on all pages using tikz package

I made a standard frame. It should appears on all pages of my document. \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{tikz} \usetikzlibrary{calc} \usepackage{eso-pic} \...
1
vote
1answer
67 views

Frame around document title, error with mdframed

I have added a frame around my document title using mdframed. The document compiles and displays properly but keeps throwing the following error: Something's wrong--perhaps a missing \item. \end ...
0
votes
1answer
52 views

How to setup two columns vith vertical separator in framed figure

How to put in two columns mode verbatim (block) text with vertical line in framed box, in figure. The problem is that when the two columns are put in frame the vertical line disappears \...
0
votes
1answer
26 views

How to make this frame around my sections fullwidth?

The code \documentclass{book} \usepackage{lipsum,xcolor} \makeatletter \def\section{\@ifstar\unnumberedsection\numberedsection} \def\numberedsection{\@ifnextchar[%] \...
2
votes
1answer
132 views

How to make a frame like below picture?

Where to find or how to make a frame like below picture with optional width and height?