{framed} is about framed document elements, e.g., boxes and environments. A popular package is {mdframed}.
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?
0
votes
0answers
27 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
...
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.
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
121 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 ...
36
votes
8answers
4k views
Highlight elements in the matrix
I have a matrix and need to highlight some elements in the matrix. I have found how to highlight a single element (I want to put the cell in the square):
$$ A = \begin{bmatrix}
\fbox{0} & ...
2
votes
2answers
80 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.
...
11
votes
2answers
10k views
Attractive Boxed Equations
I often used \boxed{...} from the AMS math package to place a box around important equations. However, this approach often produces somewhat awkward looking output. Consider
\documentclass{article}
...
12
votes
3answers
352 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 ...
14
votes
2answers
580 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 ...
8
votes
2answers
142 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
92 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 ...
16
votes
1answer
402 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 ...
4
votes
1answer
71 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
627 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 ...
7
votes
3answers
2k views
LaTeX is putting a border around my figures
I'm trying to embed a few images in a figure, but LaTeX keeps putting a border around three of the sides. Is there any way for me to keep it from adding this border?
The code that I used to create ...
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?
1
vote
0answers
55 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
1answer
56 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
2answers
188 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
127 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
145 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
86 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 ...
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 ...
6
votes
1answer
311 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 ...
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 ...
5
votes
1answer
983 views
Boxed equation with empheq: adding text outside box
I'm trying to have a box around my align environment, so I do the following:
\usepackage{empheq}
\begin{empheq}[box=\fbox]{align}
equations
\end{empheq}
This works fine, but I would like to have ...
0
votes
2answers
59 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}
...
5
votes
1answer
146 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
74 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
134 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 ...
2
votes
2answers
123 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 ...
12
votes
2answers
660 views
Gray box around figure with a separate gray box around caption
My university requires that all figures in a thesis follow this pattern:
I'm very new to LaTeX, so far my best attempt has been this:
\begin{SCfigure}
\colorbox{darkgray}{
...
5
votes
2answers
83 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 ...
9
votes
5answers
336 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.
2
votes
1answer
89 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 ...
2
votes
1answer
186 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 ...
3
votes
2answers
207 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
87 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 ...
6
votes
3answers
174 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 ...
4
votes
2answers
162 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 ...
12
votes
4answers
928 views
Creating stackoverflow like tags
I'm trying to create stackoverflow like tags. Currently I'm using an \fbox{text} to create the tags, which works, but not all boxes have the same height (it seems that letters like 'p' make a box take ...
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 ...
13
votes
1answer
499 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 ...
4
votes
1answer
212 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 ...
3
votes
2answers
132 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.
...
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 \\
...
7
votes
3answers
177 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 ...




