Questions tagged [framed]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
48 views

Unwanted indentation in framed section headings in LaTex Exam

I'm writing a document using Latex's Exam class where I'd like to make framed section headings, in order to reproduce a pre-existent document. I was able to draw frames with titlesec package with the ...
Paulo Santiago's user avatar
2 votes
2 answers
66 views

Capital letters in frameboxes

I'm trying to insert capital letters into frameboxes. Every time I use the letter Q on its own or in a string of capital letters, the frameboxes gets stretched vertically compared to the other letters'...
Therizinosaurus cheloniformis's user avatar
0 votes
0 answers
7 views

How to make \newframedtheorem{}{} with different color bar?

I am creating this \newframedtheorem{frm-ex}{Example} and \newframedtheorem{frm-excalculus}{Example} The result is both creating frame with same color of green. Can I change so the other is blue or ...
Freya the Goddess's user avatar
0 votes
1 answer
143 views

ConTeXt: Round corner for fieldset with title

Background I'm looking to stylize an HTML fieldset-like environment to would allow consecutive "concurrent" sections to appear in the document. Using version 2023.07.18 22:07. Output Example ...
Dave Jarvis's user avatar
  • 11.4k
2 votes
1 answer
67 views

Indented vertical lines in list, (as seen in 99 Variations on a Proof by P. Ording)

I'd like to replicate this: I'm having trouble with the indented vertical line, everything else is just a list, I think. I tried a couple of leftbar and lists environments; but leftbar is not ...
Lisica's user avatar
  • 21
1 vote
1 answer
59 views

Frame in block in poster

I am trying to make some changes in GeoURV Poster template. There is a file beamerthemeGeoURV.sty inside this template, where the blocks are defined as follows \setbeamertemplate{block begin}{ \vskip....
blahblah's user avatar
0 votes
1 answer
27 views

How to get a few paragraphs framed such that the frame is exactly as wide at the surrounding text and stays completely on the one page?

Let's say we want to get one or two paragraphs of text into a visible framed such that: the total width of the frame (including its borders) is the exactly same as the width of the surrounding text (...
AlMa0's user avatar
  • 439
1 vote
1 answer
43 views

Command \leftbar already defined after using \usepackage{framed}

\documentclass{article} \usepackage[utf8]{inputenc} \usepackage{polski} \usepackage{framed} \usepackage{mathtools} \usepackage{amsthm} \usepackage{letltxmacro} \LetLtxMacro\amsproof\proof \...
anon's user avatar
  • 111
1 vote
1 answer
27 views

In Multicol environment using solution box, equation overruns box

The code creates a 3 column math solution set with the step-by-step solutions framed in a box. For problem #4, the equation over-runs the box. I tried reducing the font from 12 pt to 11 pt. \...
Siuslaw Math's user avatar
1 vote
0 answers
46 views

Add a vertical line centered inside a framebox

I would like to have a vertical line inside my framebox. So my framebox should be divided into two equal halves. I haven't found anything about it in the forum yet. Here is a code snippet. \...
wayne's user avatar
  • 601
0 votes
2 answers
79 views

Box left aligned

I use in my manuskript two latex constructs to draw a frame around a text which I would need left aligned without changing \parindent before and after the box. But both of them are printed at the ...
hjele's user avatar
  • 113
2 votes
1 answer
30 views

Framed float environment containing title and body text and outer caption

I am writing in the report document class and am trying to reproduce the following result (from p. 20 of https://eprint.iacr.org/2016/505.pdf). I want to produce a framed float containing a bold ...
Thomas Skovlund Hansen's user avatar
1 vote
1 answer
108 views

Framed text with title on the left margin

I am trying to type a margin note (in book format) on the left side with a line underneath, but "perpendicular" to the main text as shown in the attachment below: \documentclass[12pt]{...
Doc's user avatar
  • 41
0 votes
0 answers
21 views

Shaded environment with different heights at the beginning of shaded area

I created an environment to shade some text I deem important. However, what I have within this environment can vary from a simple paragraph to an actual section or subsection. The problem is that the ...
aaragon's user avatar
  • 3,049
0 votes
0 answers
21 views

Table lost when inside shaded frame

I try to have a table inside a frame shaded environment. The MWE actually works fine, but when I try to compile it in the document I'm writing, I get the error: LaTeX Error: Float(s) lost. I tried ...
aaragon's user avatar
  • 3,049
5 votes
1 answer
159 views

ConTeXt: How do align my cows in the margin vertically?

In my MWE, I put 2 cows in the margin. Top cow: I understand why the cow juts above the margin. Can I move the cow down (while still using an \inmargin), so that the top of the cow is at the top of ...
Stanley's user avatar
  • 351
2 votes
1 answer
59 views

ConTeXt: Why are my start-stop frames offset to the right?

In my MWE, I place 4 frames on the layer in 4 different ways. The 2 frames from the start-stop versions of the command are offset about 1.5 mm to the right of the other 2 frames. Why? \showframe \...
Stanley's user avatar
  • 351
2 votes
1 answer
73 views

How do I insert a small title into the middle of the top graphical line of a frame like environment containing alltt?

I require an environment to layout lines of text with line ending control (like poetry), with proper kerning and inter-word spacing, within a frame that can span pages, such that a small title can be ...
fundagain's user avatar
  • 107
2 votes
0 answers
86 views

Space between framedtext boxes in a column

I have a problem with framedtexts. What I want to achieve are framedtext boxes laying one below another, so the vertical distance between them is always the same (I want it to be zero, so there is no ...
spamerinsider's user avatar
0 votes
1 answer
27 views

Framed boxes with borders that take up no space (like the effect of `outline` CSS property)

I would like to make some simple schemas using stacked or overlapping framed boxes with content. I could almost use a table instead, but I do not see how to do some of the "overlaps" in a ...
Alexey's user avatar
  • 2,007
1 vote
1 answer
27 views

Why is framed ignoring the caption?

I'm trying to get a right justified image that is all bounded by a box. The problem is that the framed box is excluding the figure caption, and only framing the image: \begin{wrapfigure}{r}{0.5\...
user3037237's user avatar
1 vote
1 answer
99 views

How to Add a Frame Box Around Section, Subsection, and Subsubsection Numbering

To make it seem like the following, I would like to add a frame box to the numbering of each section, subsection, and subsubsection. but the following code doesn't seem to work for 'subsubsection'. \...
Educ's user avatar
  • 4,236
0 votes
2 answers
48 views

\textcolor is reset after page break in shaded environment from framed package

Text color is being reset after any page break in the middle of a shaded enviroment. After searching through some other questions, I did not find my answer since: I'd rather not have to change to ...
raquelhortab's user avatar
1 vote
0 answers
53 views

marginnote and framed - workaround fails with lualatex

I have this code in my 12 year old Tex files that I currently like to upgrade such that they work with lualatex. I load this code in order to fix a problem with marginnote and framed. Unfortunately I ...
Matthias Pospiech's user avatar
4 votes
1 answer
103 views

Extra vertical space in shaded theorem if ended with displaymath or itemize

I have created custom shaded theorems but when ended with displaymath or itemize/enumerate environment, there is extra vertical space. Here is the MWE: \documentclass{article} \usepackage{amsthm} \...
btshepard's user avatar
  • 670
0 votes
1 answer
491 views

How do I write a note in a framed box?

How do I write a note that looks like a sticky note? I used the command \framebox but I runs out of space on the page and part of the text disappears. Is there a better way to do it? Here's a sample ...
PoliceProgrammer's user avatar
0 votes
1 answer
51 views

Algorithm2e: framed environment shifts line numbers

I want to have a box in my algorithm, and for that I'm using framed environment. However, it also shifts line numbers: \documentclass{article} \usepackage[vlined,ruled,linesnumbered]{algorithm2e} \...
Dmitry's user avatar
  • 240
3 votes
2 answers
206 views

Align shaded box to top of page

I have a page that has a shaded box at the top. How do I get the shaded box to align with the top of the page frame? There's a bit of a gap. My code: \documentclass[10pt]{book} \usepackage[showframe]{...
Thomas Oellrich's user avatar
0 votes
1 answer
66 views

Align shaded box to bottom of page

I have a page that has a table at the top and a shaded box at the bottom. How to get the shaded box to align with the bottom of the page frame? I've tried \vfill, but that doesn't seem to work. My ...
Thomas Oellrich's user avatar
0 votes
1 answer
38 views

Change qedsymbol and font shape within a ntheorem framed environment

Good morning: After a lot of proofs changing variables and parameters as suggested in the documentation of ntheorem package and others, I'm not been able to replace the qedsymbol with \blacksquare and ...
Luis Subirana's user avatar
0 votes
1 answer
128 views

Restrict box to one column [closed]

I have this box created using framed. I have a one column format. As a result of which the box spans over entire column. I want to have two columns, such that this box occupies half of what it is ...
kl_divergence's user avatar
2 votes
2 answers
254 views

How to align tcolorbox with margin just like shaded does?

\documentclass{article} \usepackage{color,framed,tcolorbox} \definecolor{shadecolor}{RGB}{241, 241, 255} \begin{document} Shaded environment can align exactly with page margin: \begin{shaded}...
Piko Mone's user avatar
1 vote
2 answers
127 views

How to insert a margin inside a double frame parbox?

I simply would like to insert a bit of space inside my parbox, but the following mess up with the frames: \documentclass{article} \begin{document} \begin{center} \fbox{ \setlength\fboxsep{...
nowox's user avatar
  • 1,335
1 vote
1 answer
67 views

Frame for a box depending on the position in the page

I would like to write a command \begin{myFramedBox} ... \end{myFramedBox} such that: If the block inside \begin{myFramedBox} ... \end{myFramedBox} is at the beginning of the page, then it is printed ...
Colas's user avatar
  • 6,658
0 votes
1 answer
61 views

Problem bringing the commutative diagram inside the question and answer frame

I can not put the commutative diagram under the frame: \documentclass{amsart} \usepackage{latexsym,amsmath} \usepackage{tabularx, environ} \usepackage{wasysym,latexsym,amsmath,amssymb,mathrsfs} \...
Ri-Li's user avatar
  • 113
0 votes
2 answers
143 views

Defining a new environment with desired properties

How can I define an environment that looks like the following? So there's a color surrounding box and an image embedded in it. This is what I have so far: \newenvironment{rmd-details}[0]{\par\...
Taylor's user avatar
  • 123
0 votes
1 answer
75 views

Captioning images within a framed environment?

I have an image within a framed environment and would like to caption it. Using the figure environment crashes the compiler \documentclass[a4paper]{article} \usepackage[a4paper, total={170mm,257mm}, ...
Poseidaan's user avatar
  • 101
1 vote
0 answers
68 views

How to make a beamer template with this format?

i'm trying to convert a \documentclass{article} into a \documentclass{beamer}, but keeping the structure. The image above is the result I got working with the class article. It's exactly what I want, ...
Pedro Italo's user avatar
1 vote
0 answers
198 views

Footnote in framed environment

Some time ago I asked how I can use footnote environment and got good advise. But I had also the question what will happen if I need to use 2 or more footnote. I knew that I will meet such problem in ...
Aleks Kleyn's user avatar
2 votes
0 answers
71 views

material swapped with \subsection in AMS document classes

I today saw very interesting case when subsection started by shaded environment \documentclass{amsbook}%{amsart} \usepackage{xcolor} \usepackage{framed} \newtheorem{theorem}{Theorem}[section] \...
Aleks Kleyn's user avatar
2 votes
1 answer
152 views

Custom framed environment, vertical lines

I'm using the code below (which I got off this website: https://jevon.org/wiki/Fancy_Quotation_Boxes_in_Latex) to generate this I want to have the left-hand vertical bar repeated on the right-hand ...
Jonathan Newman's user avatar
1 vote
1 answer
56 views

How to break lines automatically in my framed section headings?

With the following code, I get this output: \documentclass{book} \usepackage{tikz} \usepackage{lipsum} \usepackage[explicit]{titlesec} \titleformat{\section}[hang] {\normalfont\Large\bfseries} {% \...
Vahid Damanafshan's user avatar
2 votes
0 answers
39 views

Whacky multicol pagination in the (md)framed environment(s)

This is a typical recommendation letter (minimally formatted) that includes questions and \mdframed responses in a \multicol environment. I have also included other things I typically include inside ...
psb_david_petty's user avatar
1 vote
0 answers
312 views

Framing an equation and equation array (boxed)

I want to nicely put equations and equations arrays inside a box or a frame. I also like to align objects in align environment like in the eqnarray environment [r|c|l], see example below. Working ...
Triceratops's user avatar
3 votes
2 answers
237 views

Problem creating a copy of \includegraphics

I've edited this to more clearly state my question. I've had some wonderful suggestions, but they are all pointing at something that's working just fine. I am trying to define a macro \embedimage ...
David Hoelzer's user avatar
3 votes
2 answers
172 views

ntheorem - indentation at beginning of chapter

I am writing a document using the book class, which, by design, does not indent the first line of the chapter/section/subsection. I noticed that if I start a chapter with a framed theorem then, for ...
Manlio's user avatar
  • 490
2 votes
1 answer
246 views

Vertical space of shaded box

I use package framed to color background of part of the text. I put attention that shaded environment uses extra space before and after colored box. In search how to reduce this space, I found macro \...
Aleks Kleyn's user avatar
0 votes
0 answers
25 views

framed.sty deletes a following \label command when filling the last page of a document

Under certain circumstances, when using framed.sty, a \label command that occurs after a framed environment is lost, and nothing gets written to the .aux file. For this to happen, the framed material ...
Phil Hirschhorn's user avatar
3 votes
2 answers
199 views

How to draw a frame with an "external padding"?

I want to draw a frame around a part of the text so that the margins around this part of the text are not affected. Below is a solution with the help of tcolorbox. I've found this solution by trying-...
Colas's user avatar
  • 6,658
1 vote
1 answer
118 views

How may I change the color of lines in macro \framebox?

In \framebox I do not see any color options. I have trying to look at its definition using \show to define a new command but what \show shows does not provide any help
Richard's user avatar
  • 200

1
2 3 4 5
13