Questions tagged [framed]

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

612 questions
96
votes
7 answers

How to put a framed box around text + math environment

I am looking for something like \fbox but it seems that you cannot use it when a math environment is included. However its not only a math environment (then you could use \boxed I know) but also text, I need to be in a…
bios
35
votes
4 answers

How to draw a frame box around an arbitrary large piece of text/figures/whatever?

The command fbox{...} can be used to draw a box around a piece of text, and apparently also a figure. However, I've not been able to use it if the "text" contains environments such as minipages and center. So, how does one draw a framed box around…
gablin
  • 17,006
19
votes
2 answers

Regarding the leftbar environment

Does anyone know how to control the width and color of the left bar in the leftbar environment?
user1999
  • 1,464
17
votes
2 answers

How to create a warning box like this (see the figure to get the idea)?

Scenario I want to create a warning box (or pitfall box) that satisfies the following creteria: It can be broken across pages. It can contain images, displayed equations, begin{minipage}, \begin{multicols} and \lstinputlisting. It occupies the…
Display Name
  • 46,933
16
votes
3 answers

\begin{framed} with background-color

Does anybody know how to set the background-color of a framed element? \begin{framed} Let me have a background :( \end{framed}
Frank Roth
  • 263
  • 1
  • 2
  • 5
9
votes
4 answers

Creating simple frames

I want some of my text to be "framed". So far, I have horizontal lines generated by the \separate command in the following MWE: \documentclass{article} \newcommand\separate{\medskip\hrule\medskip} % nice page-long underscores \begin{document} Here…
jamaicanworm
  • 29,114
9
votes
2 answers

LaTex: Adding cell padding to a text frame

I'm trying to create a box as below in LaTeX. \framebox[40em][c]{ I certify that the work presented in the dissertation is my own unless referenced. } I want a little bit padding between the text and the frame as shown in figure. I tried \vspace…
7
votes
2 answers

niceframe border gets cut when the content spans multiple pages

I am trying to dress up my pages with curlyframe of niceframe but is seems that it cannot support multiple pages. Am I missing some option for that? Can I place the curly lines at the edges of every page without having to wrap it around the…
6
votes
1 answer

File icon (folded corner rectangle) frame around text

I would like to present code listings with a "file icon box". Something like this: I'm aware of listings package allowing rectangle frames. My interest is in the specific shape of the frame. I think it is not specific to source code. If it does not…
6
votes
1 answer

Snugshade Environment too wide

I'm using the snugshade environment to draw a quote box, but it's a little to wide and not flush with the text on both sides. I have absolutely no idea if i can fix this with this environment or if i have to use something else - which i would not…
w00t
  • 63
6
votes
2 answers

Nested boxes of different thickness

I would like to create nested boxes in LaTeX that look like this: I know how to create the outside boxes, but I don't know how to create the thick black box inside.
6
votes
1 answer

How to create a text box that can be styled globally?

I'm writing a thesis and would like to add a box with text at the beginning of each chapter summarising main points. At the moment I'm using framed with itemize within it, which looks okay and does the job, but I would like to make it look nicer. At…
FLK
  • 63
5
votes
1 answer

Vector frame on all pages

I would like a regular frame about 0.5cm outside the text margin for every page in a report. I have checked different options such as the Wallpaper package, Showframe package and the showframe option of Geometry. I've also seen one-page only…
5
votes
1 answer

Fit frame to (flushright) text

I would like the frame to fit the text…
5
votes
1 answer

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…
SvanN
  • 562
1
2 3