{framed} is about framed document elements, e.g., boxes and environments. A popular package is {mdframed}.
0
votes
0answers
29 views
How to surround portions of a tree with boxes
I need to group portions of a tree with boxes, and additionally label them, e.g. put "W1" on the side of the box, or in the top right corner of the box.
The result I want to achieve is somewhat ...
0
votes
0answers
33 views
Left margin for boxed option in algorithm2e
When I am using the boxed option in algorithm2e package, the left margin between the box border and the algorithm is 0. Is there any way to adjust this?
The package has been included as following
...
1
vote
1answer
31 views
How to set \framed to make the baseline of the whole \framed as same as the first line in this \framed in ConTeXt?
An simple example:
\starttext
\setupframed[align=right,frame=off,offset=none]
\framed{A\hskip3em\framed{B\\ C}}
\stoptext
How can I set the framed which contains B\\ C so that the baseline of ...
7
votes
2answers
135 views
Box around minted environment
I'm using the minted package to produce nice looking java-code but I would like to make a box around the code so it is easier to separate the code from the rest of the document.
What is the easiest ...
2
votes
2answers
86 views
Text in framed boxes with arrows [duplicate]
A question similar to How can I construct a page layout with framed boxes?
I need to construct a very simple flow chart with a few vertically and horizontally aligned boxes with arrows betweem them.
...
12
votes
3answers
363 views
How can I construct a page layout with framed boxes?
For a report I'm writing, I have got an MS Word template for a page that needs to be included. The page looks like this (print screen from Word):
However, there are a few things that makes me not ...
8
votes
2answers
150 views
Combining `tikzpicture` and `lstlisting`
I'm working on a custom lstlisting environment, in which I use TikZ to add a frame and a title. Because of the widespread curly braces of node I cannot use newenvironment, so I have to resort to ...
5
votes
1answer
96 views
Indented box that split in multiple pages
I am doing a document with exercises and corrections.
I would like the corrections to be easily remarkable so that no student read it by accident and get its exercise spoiled.
I have written an ...
8
votes
2answers
88 views
Boxed entries in matrices
I would like to create a formula or figure like this:
I tried it simply with the pmatrix environment and the \boxed command, but the spacing looked horrible. I think it might be done with TikZ, but ...
5
votes
1answer
51 views
boxed equation but framed only some sides
I need to box part of an equation, but I need the frame to be open one side. In the following MWE I would need the left part of the equation not to have the right frame of the box and the right part ...
4
votes
1answer
72 views
footnote inside mbox
I know very similar questions have been asked, but I couldn't find a solution to my problem.
My original problem started using the glossaries package, using an acronym inside the framed environment, ...
16
votes
2answers
629 views
Is it possible to create an adaptable golden ratio frame around equations?
I would like to create special frame around my equations. This frame should obey to the golden ratio rule. This means that its width divided by its height should give 1.61803398875.
If possible, the ...
1
vote
0answers
60 views
Globally set the justification in a framed box
I want to show the text from a Python Interpreter in a Windows console. This should be plain text (like you see in a command line terminal). I also want to show Python code snippets with highlighting. ...
2
votes
2answers
203 views
Create environment out of eqnarray with frame box
Could you help me to create an environment out of this code:
\smallskip\centering\framebox[0.9\textwidth]{
\begin{minipage}[c]{0.8\textwidth}
\begin{eqnarray}
I & = & ...
3
votes
1answer
129 views
lrbox with border in beamer
Can I have border around a \lrbox in beamer?
I have a minipage inside the lrbox.
I know I can use \fbox.
Update
Sorry for the confusion. I need a border around the block of data, it is inside a ...
1
vote
2answers
150 views
Drawing a rectangle box around code fragment
How to produce the effect of drawing a rectangle box surrounded the code, and put it in the figure? (Any methods including non-tikz-pgf method that helps is welcome)
0
votes
2answers
90 views
Creating a command similar to \vrule
Upon trying to create a new border similar to the \vrule command, I have the following:
\documentclass{article}
\usepackage{xcolor,framed,lipsum}
\def\bulletfill{\vbox to ...
4
votes
1answer
106 views
Highlight elements in the matrix (continued)
Using @Stefan Kottwitz's solution of Highlight elements in the matrix, is it possible to
select one single entry in the matrix? Where does one need to place the left and the right marks?
10
votes
2answers
106 views
Place a background relative to the position of an environment
I am trying to place a background that extends the entire page width and whose height depends on the height of the environment contained. For example, the following code provides something to what I ...
4
votes
3answers
193 views
Put a frame around all pages, except one, in a book
I am writing a book and would like to put a red, 5pt thick frame around all pages, except around one page in the middle of the book, which contains a figure that is bigger than the frame.
The frame ...
0
votes
2answers
63 views
How do I make frame environment play nice with \textbf?
I am getting a strange error message when I put textbf into a frame environment.
Minimal Example
\documentclass{article}
\listfiles
\begin{document}
\begin{frame}
\textbf{Lemma 1}
\end{frame}
...
4
votes
1answer
76 views
Help with a framed environment
Upon trying to create a framed environment using the framed package, I stumbled upon a problem I have not been able to resolve. What I am trying to achieve is the following:
Unfortunately with the ...
1
vote
2answers
146 views
framebox does not work for lstlisting environment
I am looking a way to wrap something with a frame. I try different approaches but finally choose to use fancybox package and minipage (because I need to control the width of the frame). It works ...
3
votes
1answer
105 views
Setting a wavy sidebar
Is there a way to have framed.sty's sidebar environment to use a long wavy line, constructed, for example, using the mathabx.sty's \lfilet variable-sized delimiter?
2
votes
2answers
130 views
Framed floats and background colors for captions
i wanted to edit my floats. Found the package floatrow and got the desired frames easily for them. Now i would like to add a backgroundcolor to the captions. The problem is that the \parbox, i ...
5
votes
2answers
85 views
Frame individual cells in a table
I'm aiming to make an RPG character sheet in LaTeX, but I'm having a little trouble with the boxes one usually asociates with this kind of thing. Is there a way to individualy frame table cells in ...
14
votes
2answers
588 views
A special example environment
How can I define an environment named "example" so that:
can be broken over pages
has a horizontal line above "Example \chap.\no" (e.g. Example 4.10),
and vertical line that is spread to the whole ...
2
votes
1answer
193 views
Numbering a “new theorem”
I have a (simple?) question. I use the ams theorem environment for most of my theorems, but I want to box my definitions and find here a nice way to do it, simpler for me than mdframed. My problem is ...
2
votes
1answer
60 views
Getting lbr frame lines in a listing up to the caption box above it
I have a document similar to this:
\documentclass[twoside,11pt,titlepage,a4paper]{report} %unterscheidung zwischen gerade und ungerade seite, 11pkt, kp, kp
\usepackage[T1]{fontenc} %inputcodierung
...
2
votes
1answer
93 views
Open ended frame with framed.sty
I made a frame using the framed package. When a pagebreak breaks it, it is divided in two separate frames. I would like the bottom and top of these two frames to be open, and an oframe option is ...
9
votes
5answers
337 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.
3
votes
2answers
215 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
94 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
164 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
179 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
143 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
323 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 ...
5
votes
1answer
147 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
219 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
50 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
135 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
184 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
500 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 ...
1
vote
1answer
267 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
88 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}
9
votes
1answer
117 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
209 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
147 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
169 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
96 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 ...
