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

learn more… | top users | synonyms

10
votes
5answers
598 views

Is there any package similar to verbatim but with support for icons?

I am looking for a package that provides verbatim environments but also supports different background color, frame style and icons (tips, error, warning etc.) shown on the upper-left corner.
4
votes
2answers
2k views

Putting pseudocode in a framed box

I added some pseudocode to my document in this style: \usepackage{algpseudocode} \begin{algorithmic}[1] \If {$i\geq maxval$} \State $i\gets 0$ \Else \If {$i+k\leq maxval$} \State $i\gets i+k$ ...
3
votes
1answer
263 views

How to avoid the break of framed/shaded?

I have a problem with the framed environment. I am writing a document (article), and several parts of it have a gray background. Unfortunately, when a new page comes, such a shaded environment is cut ...
4
votes
2answers
350 views

Removing vertical lines from the table header

This is what I already have, but for the moment. In the left corner and the right corner there are two little vertical lines, I don't want them, but I don't know how to delete them. Anyone who can ...
6
votes
3answers
418 views

Putting a coloured background behind text without adding whitespace

Consider this: I want to be able to highlight text like this without adding space around it -- so each word in the first line should line up with the corresponding word in the second line. (I know ...
1
vote
1answer
193 views

How can I add borders

Given this, how can I add a border around? \begin{ttfamily} \begin{lstlisting} g@g0001:~$ cd Desktop g@g0001:~/Desktop$ cat script.sh #!/bin/bash echo $1 `date` g@g0001:~/Desktop$ ./script.sh ...
6
votes
1answer
879 views

rounded corners using the framed package

Is it possible to create a frame, using the framed package, with rounded corners? I know for a fact that there are other packages such as the mdframed package but what I am looking for is an ...
6
votes
1answer
168 views

How to obtain the space left to bottom of page

Since it is impossible to use \vfill inside a framebox, is there any way of getting the current height position of text? I want to fill in a framebox so that it uses all the space left on a page, ...
4
votes
1answer
346 views

How to draw a simple 1mm thick page frame?

I'm trying to make a simple one-line 1mm thick page frame. Left line of that frame should be 2.5cm from edge and all other lines 0.5cm. Document includes tikz drawing, and text. The problem is that ...
1
vote
0answers
56 views

Drawing a box around certain parts of a matrix [duplicate]

Possible Duplicate: Highlight elements in the matrix i have a matrix: \begin{equation} \begin{bmatrix} 1 & 5 & 4 & 2 & 1 \\ 1 & 5 & 4 & 2 & 1 \\ ...
3
votes
2answers
674 views

Framebox with long paragraph and line break

I want to make a border to a paragraph, so I use \framebox to do it. But I have a problem that my paragraph is so long, I can't insert a line break and my paragraph cross the frame. ...
7
votes
3answers
615 views

Creating uniformly sized boxes around text

I want to put individual words in to boxes next to each other. I've used the \framebox command, but this has produced different sized boxes around each word. How could I get all the boxes to be the ...
13
votes
1answer
554 views

Design that imitate Google browser

I would like to write some tutorials about HTML, and I would like to do it efficiently without using too many screenshots. What I would like to obtain is a frame which looks like a web browser, such ...
3
votes
1answer
1k views

Adding figure in framed or shaded environment

I am currently using the shaded environment from the framed package for large calculation digressions in my papers. \usepackage{framed} \newenvironment{digression}[1]{\begin{shaded} ...
2
votes
1answer
148 views

Reduce the size of horizontal line

I want to reduce the size of horizontal line. \begin{frame} \restylealgo{boxed} \begin{algorithm}[H] \Setline \nl i\; \end{algorithm} \end{frame}
10
votes
1answer
199 views

fbox drawn incorrectly after \noindent

What's going on here that the first and last \fbox are not getting drawn correctly when immediately following \noindent? \documentclass{article} \usepackage{pst-node} \pagestyle{empty} ...
5
votes
1answer
451 views

colored full width box with some verbatim text inside?

I would like to create a text box of "reminders" for my readers. I'd like the box to be gray, go full text width, and have both normal and verbatim text in it. Reminder ensure blah blah ...
6
votes
2answers
208 views

Generate a square and line

how should i write a command to automatically place a box on the left side wherein this box can contain text and beside the box are lines which depends on an argument.
7
votes
1answer
301 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
197 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
447 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
414 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
237 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
210 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
692 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
428 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
421 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} ...
4
votes
1answer
236 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} ...
2
votes
2answers
2k 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
221 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
685 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 ...
18
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 ...
11
votes
4answers
2k 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
209 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
271 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 ...
7
votes
1answer
562 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
368 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 ...
12
votes
2answers
592 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
156 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
158 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$ ...
2
votes
1answer
7k 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
244 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
130 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
3k 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
39 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
835 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 ...
6
votes
1answer
290 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
203 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
308 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
522 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 ...