Skip to main content

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
1 vote
1 answer
41 views

Extra space within framed tikzpicture

I don't know why there is that extra space inside the frame, to the right of the graph. What am I doing wrong? \documentclass[a4paper,12pt]{memoir} \settrimmedsize{11in}{210mm}{*} \setlength{\...
juanuni's user avatar
  • 2,029
2 votes
2 answers
23 views

The colorframed package adds extra vertical space at the end when inside another environment

The colorframed package (and its predecessor framed) adds extra vertical space when inside another environment. \documentclass{article} \usepackage[dvipsnames]{xcolor} \usepackage{colorframed} \...
ltcomdata's user avatar
  • 935
0 votes
1 answer
109 views

I need the LaTex code for thist figure. I have tried many times but are some issues

here is the code \documentclass{article} \usepackage{tikz} % Define a new command for drawing rectangles with specified width and height \newcommand{\myrectangle}[6]{\draw (0,0) rectangle (#1,#2);} \...
shahid khan's user avatar
0 votes
0 answers
65 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
86 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
18 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
221 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
2 votes
1 answer
74 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
194 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
51 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 (...
user avatar
1 vote
1 answer
96 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
40 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
58 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
  • 685
0 votes
2 answers
156 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
  • 155
2 votes
1 answer
38 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
153 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
  • 51
0 votes
0 answers
24 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,051
0 votes
0 answers
26 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,051
5 votes
1 answer
179 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
  • 371
2 votes
1 answer
74 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
  • 371
2 votes
1 answer
83 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
91 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
41 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,161
0 votes
1 answer
30 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
191 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,392
0 votes
2 answers
49 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
65 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
121 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
  • 680
0 votes
1 answer
771 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
66 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
277 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
94 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
44 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
153 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
411 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
205 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,417
1 vote
1 answer
69 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,872
0 votes
1 answer
78 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
175 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
90 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
70 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
262 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
79 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
213 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
58 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
43 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
434 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
276 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
2 votes
2 answers
220 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
  • 492
2 votes
1 answer
308 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

1
2 3 4 5
13