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

learn more… | top users | synonyms

7
votes
1answer
340 views

Redefining the \part environment to add a page border

How can I redefine the \part environment, in a book documentclass, to add a page border at the page margins? By the way, it must be possible (since everything is possible in LaTeX) to get a shaded ...
1
vote
1answer
318 views

Place framed text at top of page

I have chapters (using the standard "report" class), and I would like to place a frame of text - which gives succinct meta-details on the chapter - at the top of the first page of the chapter. What I ...
2
votes
1answer
586 views

How do I create a variant of the snugshade box from the framed package to wrap my definition environments in a blue box?

I'm already using snugshade to wrap my theorem environments in a grey box, but I'd like to have another bounding box just like snugshade to wrap my definitions in a blue box instead. Here is my ...
7
votes
1answer
528 views

lstlisting border bug when breaking lines

I have a certain bug regarding listings. I have used the \lstset command to configure my lstlisting environment. Somehow, when I have a line that is too long to fit into one row the listing breaks ...
2
votes
1answer
267 views

hbox out of margin, beamer

I wanna put a round image in a presentation il LaTeX out from the margin. I would like to show it just as a 1/4 of the image in the left bottom corner. I tried: \begin{frame} \tableofcontents ...
9
votes
2answers
251 views

Multicolumn block is narrower than the surrounding text

I need to typeset blocks of text in a multicolumn environment, with a title above, and framed with full line width. I'm using the multicol package for that. The issue I face is that the block of text ...
5
votes
1answer
874 views

Formatting – title with underline and box around paragraph

Can you help me please with formatting? I like this format: How can I define this title with grey underline (width of all page)? Font is sans serif (Arial). And how can I make grey box around some ...
3
votes
1answer
500 views

Wrapfig isn't working in my fcolorbox minipage

I'm trying to get text to wrap around my figure. This works fine in the main body of my text, but when I put it inside an \fcolorbox the text simply overwrites the image. I've reduced my code to the ...
2
votes
0answers
565 views

Problem with drawing borders around slides in latex beamer handouts with Adobe Reader [closed]

I am using the LaTeX beamer package and handoutWithNotes package to create a presentation with notes and rectangle around each slide. \documentclass[handout]{beamer} \usetheme{Madrid} ...
5
votes
1answer
268 views

nag complains about \centerline in environment “shaded” from package framed

Running this with Miktex, pdflatex, Windows, TeXnicCenter, everything fully up to date: \documentclass{article} \usepackage[l2tabu]{nag} \usepackage{xcolor} \usepackage{framed} ...
4
votes
2answers
3k views

Multiple border around page

I was thinking about giving a finishing touch to my resume by adding a border to the document in black color. I tried using \fancybox but not impressed with the output. ...
4
votes
1answer
237 views

How to frame/shade a whole section?

Simple Question, but it seems to tricky for me. I don't know how to redefine the sectioning in a way, that the whole content (incl. subsections, ...) assigned to one \section{...} command would be ...
20
votes
1answer
747 views

Highlight equations in a typographically correct manner

I am presenting a model composed of a dozens of equations, some of them requiring a somewhat lengthy derivation. The equation that continue the actual model appears progressively along the derivation ...
20
votes
1answer
1k views

framed or mdframed? (Pros/Cons)

I'm currently thinking about using shaded and framed sections in my document. But for now, I couldn't clarify the differences between framed and mdframed (or other packages). Although the ...
13
votes
4answers
3k views

lstlistings: framed code [closed]

I use lstlistings to write Pascal Code. I'd like my code to be numbered and framed. Here is what I have as of now : \lstset{numbers=left, numberstyle=\small, numbersep=8pt, frame = single, ...
4
votes
1answer
266 views

Using \underbrace interferes with frame around Listings

I am having some issue when it comes to use a frame around my listings. The usage of underbrace breaks the frame. Can anybody help out and let me know how to fix this? ...
5
votes
1answer
322 views

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 ...
9
votes
1answer
740 views

How to format an email conversation?

I am currently writing my thesis and need to include a bunch of email conversions. I am using classicthesis. I wonder, how you would format stacked conversions. Moreover, how would you deal with the ...
4
votes
1answer
509 views

How to create a Fancy Notes-Box in half of the Page along with text

I can draw the following type of Notes-Box: Can someone please suggest me how to draw this type of Notes-Box: The second one is different from the first one in 2 ways: We can add text below ...
13
votes
2answers
775 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 ...
2
votes
1answer
171 views

How to avoid that the \newenvironment text is placed on one single page

I am using the \newenvironment command for the first time and well it's causing troubles. I am using it for creating a new theorem environment \documentclass{article} \usepackage{amsmath, amssymb} ...
5
votes
1answer
174 views

Fit frame to (flushright) text

I would like the frame to fit the text inside? \documentclass[a4paper]{memoir} \usepackage{mdframed} \begin{document} \begin{flushright} \begin{framed} $\textsc{casregner}$ $(f(x)=g(x),x)|x>0$ ...
3
votes
1answer
9k views

Fix the height/length of a minipage

I have 2 columns in 1 slide. On the left hand, it is a tabbing inside a minipage in a framed. Some sentences are shown one by one by overlay, that results in the height/length of the whole minipage ...
1
vote
1answer
273 views

How to obtain Sweave(l) listings with rounded corners?

I downloaded the Sweavel.sty-File from here: http://biostat.mc.vanderbilt.edu/wiki/pub/Main/SweaveTemplate/Sweavel.sty Now, for a modern look, I would like to produce rounded corners in the R code ...
2
votes
0answers
144 views

Easy way to port environment defined in framed to mdframed? [closed]

I've been working on environment based on framed package, but wanted to port to mdframed due to fact that it plays better with footnotes and has more features and more active development. The issue is ...
7
votes
2answers
4k views

Colored frame for the framed environment

I'm using the framed environement to put a text in a framed box. I'm using it because I like its formating more than fbox. Now I would like to color the frame's border and I didn't find anything on ...
0
votes
0answers
40 views

(Badge printing) Why is there a margin in my framebox? [duplicate]

Possible Duplicate: Where are the necessary places to be appended with % to remove unwanted spaces? I am trying to create a LaTeX template for badge printing (for a conference), based on ...
4
votes
1answer
1k views

Beamer ovalbox frame thickness

I'm working with Beamer and I would like to create boxes with round corners. I use \ovalbox, but I would like to control the thickness of the line. How can I do this? I also tried \thinlines, but I ...
7
votes
1answer
364 views

Frame over multicol columnbreak

Hello everybody out there using TeX, Is there a possibility to draw a frame over a columnbreak when using for example the multicol package? I've already tried several possibilities and done ...
4
votes
1answer
215 views

How do I make a framed coffin with correct alignment?

I'm playing with coffins for a title page and would like to have a square framed box that aligns with the topline and baseline of text within a rotated coffin. I have a couple of issues with this so ...
10
votes
3answers
377 views

How do you put a character in the margin (using an environment)

I'm using framed to create a little callout box for tips and other information in a book. So for it's going well however I cannot get the icon (using ding) to sit in the margin. It currently looks ...
5
votes
3answers
606 views

Command enclosing content of custom environment

I want to create an environment that wraps the content in a command so that I can write this: \begin{mybox} content \end{mybox} and get this: \psshadowbox{content} When doing it as a custom ...
8
votes
2answers
3k views

How do I make one minipage the same size as another?

I'm writing a LaTeX document into which I want to put two boxes, in a row next to each other, which will contain varying length content. I want each box to be the same height, and that height needs ...
6
votes
1answer
3k views

How to control the vertical height of boxes

I would like to create boxes where I can control the height of the boxes. Right now I have used the command. \colorbox{calcclr}\makebox[\textwidth-2\fboxsep][l]{#1}}} This gives me a box that ...
2
votes
1answer
676 views

How to create protocol flows inside a centred box?

Could you please give some directions how to create the following figure in latex? It is the situation of describing a two parties protocol centered in a box. It is like a 3X4 table but i have ...
3
votes
2answers
1k views

Trying to put a box around a collection of subfigures

I'm trying to have a bounding box around the following figure: \begin{figure}[htp] \begin{center} \subfigure[Process with no error]{\label{noerror}\includegraphics[width=1.5in]{noerror-process}} ...
1
vote
1answer
385 views

I can't move my box I made

Here is the problem, I made a box using \begin{tabular}[b]{|l|} \hline example \\ \hline \end{tabular} I have the [b] meaning bottom, but the position never changes ... In general how do I ...
6
votes
2answers
709 views

CSS border-top, border-bottom, border-right LaTeX equivalent

Is there an equivalent in LaTeX to the CSS border-top, border-bottom, border-right properties? I would like to underline and overline text with with a border on the right, not simply underline or ...
10
votes
1answer
347 views

Is it possible to frame text using a graphic border

I've got a document where in a few cases I'm using the framed package and a single \begin{framed} <text> \end{framed} to visually separate text that is something akin to commentry on the main ...
4
votes
1answer
234 views

Text environment with vertical header and border

I have no experience with creating latex environments, so I hope that someone would be so kind helping me trying to create a new text environment with a border and a vertical header to the right of ...
3
votes
1answer
770 views

How to set frame size in a listing

I'm trying to put a frame around my code, but the frame has the wrong dimension. How can I set them right? ...
5
votes
1answer
1k views

How do I remove padding from a framed box?

I am unable to use mdframed on my server so I am currently creating a framed box like this: \usepackage{framed} \begin{document} \begin{framed} \small{ \noindent \textbf{Key Results}:blah blah blah ...
4
votes
2answers
242 views

Placing long table inside \shadowbox

I have a multi-page table produced by long table package and I want to put each page of the longtable inside \shadowbox. Here is what I have tried: \documentclass{article} \usepackage{fancybox} ...
2
votes
1answer
434 views

Redefine \emph inside theorem using \newshadedtheorem from ntheorem

Using the ntheorem package, the definition of \newshadedtheorem overwrites the \theoremprework, which I wanted to use to redefine \emph inside a custom shaded theorem. The definition of ...
3
votes
1answer
199 views

Indenting text framed by a vertical rule

I would like to know how to modify the LaTeX based answer to this question so that the text left margin would be increased by a given amount. I've tried to change the value of \leftmargin, ...
7
votes
1answer
735 views

framed frame in beamer?

Below is an example of the layout I am trying to make for a beamer presentation: just a simple rounded black frame in which I could insert some contents (e.g. text or images). I have looked at ...
18
votes
2answers
493 views

How to make mdframed ignore descenders in last line

How can we make mdframed to ignore the descenders of the last line in the calculation of the innerbottomsep. In my eyes there are two reasons to desire this: Inner margin The optical bottom sep is ...
6
votes
1answer
475 views

Framed answer environment

I am trying to write a simple environment for the solutions of assessments I give. The code below defines such an environment: \newenvironment{answerenv}[1][Answer]{% Sets the default "Answer" but ...
4
votes
2answers
860 views

How to make this using LaTeX?

I have the following page from the book Mastering your PhD - P. Gosling and B. Noordam (Springer 2006), page 42: Now I wish to make this in LaTeX. I'm in particular interested in how we can make the ...
14
votes
2answers
6k views

How to highlight important parts (with a gray background)

In the below link http://www.math.uiowa.edu/~goodman/algebrabook.dir/bookmt.pdf the author highlights anything which is important using a greyish color background. For example, if you see ...