3
votes
3answers
119 views

No space before first section in framed box

I am looking for the correct way to lay out content in a framed box. In my opinion the space before the first section in a box looks odd in comparison to the same content at the start of a page. How ...
0
votes
0answers
32 views

Rounded corner box with shading [duplicate]

I wish to draw a rounded corner box (top-left side as a square, top-right side with 6pt radius curve and the bottom of two sides also with radius curve), in addition to that there should be shading, ...
4
votes
3answers
72 views

Floats Analogue of framed

I have very little experience with LaTeX. So, pardon my ignorance, but is there a float equivalent of \framebox? Ideally, I'd like a simple construct for framed text that I can position at the top ...
5
votes
1answer
164 views

Create box around text without creating a paragraph and with line breaking

I want to draw a box (no rounded corners, keep it simple ^^) around one or multiple words. There are two special things: 1) the box should support line break and 2) the box should not cover multiple ...
4
votes
1answer
85 views

how can I make an fbox like command with certain color, shape and width of border?

I am using a style file that has a certain color for section headers. I want to create a macro, which will behave the same like fbox, only: There will be some (predefined) padding below, above, ...
5
votes
3answers
1k views

I can't seem to get \fbox and \itemize to work together

I'm trying to place some text inside of a box, here's what I'm writing that is not working: \fbox{The \textit{two-step} model of XMCD: \begin{itemize} \item[In the \textit{first step}, circularly ...
10
votes
2answers
211 views

Multi-line box around a sentence in a paragraph

I am trying to draw a polygon box around a sentence within a paragraph. This box would wrap over multiple lines and terminate exactly at the end of the sentence (i.e. without white space filling the ...
1
vote
1answer
68 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 ...
5
votes
1answer
114 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 ...
3
votes
1answer
122 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. ...
7
votes
3answers
899 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 ...
6
votes
2answers
248 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.
2
votes
1answer
264 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 ...
4
votes
1answer
485 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
731 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 ...
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 ...
12
votes
3answers
12k views

Change border color of \fbox [duplicate]

Possible Duplicate: Is there an \arrayrulecolor-like command to change the rule color of \fbox? I'm using an \fbox to have a border around a minipage. \fbox{ ...
9
votes
3answers
566 views

Align text on top of a framebox

I am trying to create a series of boxes so that my students can input there id number for there final exam. \documentclass{article} \usepackage{amsmath} \usepackage{tikz} \newsavebox{\idbox} ...
17
votes
6answers
6k views

Text in squared box

I'd like to bot a square box around some text. I'd like to denote a labelled object of size 1, in combinatorics this is often symbolised by something like \boxed{1}. It would be nicer if the box was a ...
15
votes
1answer
1k views

How to choose which sides of the border to draw in a `framebox`?

If, for example, you only want to draw the top and bottom border of a box, or perhaps the left and bottom only, is there a simple package to do this or must one resort to using tables or heavy-weight ...
15
votes
1answer
9k views

How to draw frame with rounded corners around box

Is it possible to simply draw a frame around a box which has rounded corners, and be able to control frame width, frame color, frame radius, box background colour (preferably without having to use the ...
9
votes
2answers
2k views

Framed text with a float in it

I'd like to frame the text between \startfoo and \stopfoo, but there is a float in it. \documentclass{article} \begin{document} \startfoo \begin{figure}[h] some float with a \caption{...} ...
1
vote
1answer
162 views

Is there a “proper” way to fix alignment of text in a \framebox?

The \framebox command aligns its contents vertically centered, but this has a tendency to produce results that are extremely visually displeasing. Case in point: \documentclass{article} ...
4
votes
2answers
485 views

listings: framebox shows breaks in font

Using the listings package in LaTeX seems to put lines in the frame box. This happens for all frame box options and if I use a shadow box it is even more apparent... Is there any way I can stop this ...
0
votes
3answers
3k views

Margins in \framebox

I have the following code: \documentclass{article} \usepackage{tikz} \begin{document} \framebox{\begin{tikzpicture}[color=black, line width=0.4mm] \draw (0,0) rectangle (5mm,5mm); ...
2
votes
4answers
488 views

Debugging - any packages that will draw individual line (and word) frame boxes?

I was just wandering if there is a package (or an option to a package, like \usepackage[showframe]{geometry}) that could emphasize/draw borders(/lines/frame) around each (and every) word; and/or each ...
3
votes
1answer
671 views

pdfpages package and \fbox collision

There seems to be a collision between pdfpages package and other packages that use \fboxrule, \fboxsep, etc. Here is an example: Using frame=true: \documentclass[a4paper,11pt]{article} ...
1
vote
2answers
612 views

Latex escape interrupts frame of listing

I am (ab)using a framed listings environment include an enumeration environment (by escaping to latex). This compiles fine but in the resulting pdf the frame around the listing is interrupted. ...
1
vote
2answers
3k views

Questions about \fbox

I would like to put a text and a math formula inside a \fbox, but I got an error:ERROR: LaTeX Error: Something's wrong--perhaps a missing \item. Also the\\ did not work, so the text and the formula ...
13
votes
3answers
13k views

How to draw a colored framebox without filling the background?

I like to draw a \fbox{..} which is colored. The xcolor package gives \fcolorbox{<frame color>}{<background color>}{<text>} But this forces me to set a background color. I like ...
21
votes
2answers
34k 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} ...
7
votes
3answers
1k views

Extra space above boxed multi-line equation

Well, this question is not new. It was asked back in 2007 in texhax, and answered at the same time. However, I couldn't apply the patch as mentioned in the answer, so I decided to ask it here. ...
5
votes
1answer
2k 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 ...
8
votes
1answer
920 views

fancy text boxes like in Redhat documentation or mercurial book

I would like to have framed texts with an Icon on the side like the ones here http://www.centos.org/docs/5/html/5.5/Release_Notes/ar01s06.html or ...
2
votes
2answers
2k views

\fbox command destroys margin

I included a graphic the following way: \includegraphics[width=1\textwidth]{questionnaire1.png} Then I changed it so that a frame is drawn around the graphic: ...
9
votes
2answers
4k views

How to continue the framed text box on multiple pages?

I am using framed package to create text boxes using begin{framed} and end{framed}. My problem is that my framed box goes on for two pages, and I don't want the text box to complete itself at the end ...
8
votes
2answers
3k views

Vertical spacing of framed environment

Here is an MWE that shows the problem: \documentclass{article} \usepackage{framed} \setlength{\FrameSep}{3pt} \setlength{\parindent}{0pt} \begin{document} \fbox{Foo} \fbox{Foo} \begin{framed} Foo ...
7
votes
3answers
1k views

Stretching a framebox over the whole page

Does anyone know how to stretch a (framed) box down to the end of the page? In effect something like \documentclass{scrartcl} \begin{document} sometext ...
0
votes
1answer
570 views

framed-like boxes across pages [mathspec or biblatex packages]

I'm trying to find the code to get boxes like the ones we can enjoy in the mathspec or biblatex user guides. It seems to be based on the listings and framed packages. Here is a working minimal example ...
5
votes
2answers
2k views

Creating a shaded box with an outline

EDIT I'm attempting to create a box with a different background color. However, I've tried this and the box looks unpolished. So I would like to add a line that seperates the two background colors. ...
5
votes
5answers
13k views

How can I insert a newline in a framebox?

I have several frameboxes in my document, using the following command: \framebox(115,115){ R-Sq: \newline For example} I want to force a new line, but neither \newline or \\ appear to work. Is ...
3
votes
2answers
622 views

Is there an \arrayrulecolor-like command to change the rule color of \fbox?

The question has been written above.
6
votes
4answers
5k views

How to use the quote environment inside a \framebox?

Now I run into a problem with frameboxes. Why is the following not valid LaTeX code? \framebox{ The following text was taken from: \begin{quote} Erik Pickles: How it will end \end{quote} } I get ...
1
vote
1answer
355 views

Moving a framed environment to the left

I want to move the following remark environment, which nicely splits over pages :), towards the left so that it is not centered anymore. I have been unsuccessfully trying for a while: would you please ...
10
votes
6answers
1k views

Suggestions on how to place a sentence of text inside a box with a border around it

I have an "XYZ's Law" quote that I'd like to show somewhere on a page vertically centered in a box with some form of simple border around it. Basically I'm trying to achieve the LaTeX equivalent of ...
7
votes
3answers
2k views

Example box with automatic numbering?

Working with LaTeX, I was just wondering how do you create a box around a set of related text such as an example in a textbook? I found \framebox or \makebox, but I can't figure out how to make it ...