Skip to main content

All Questions

Tagged with
1 vote
0 answers
48 views

New environment as a single box [closed]

I am making my new environment for headings. It is as follows: \documentclass[a4paper,12pt]{article} \usepackage[utf8]{inputenc} \begin{document} \newlength{\headspace} \setlength{\headspace}{3mm ...
Vladimir's user avatar
  • 589
0 votes
0 answers
33 views

Savebox inside \newcommand vs \newenvironment [duplicate]

I have created a way to save answers to the exercises and generate them automatically later. Still, savebox doesn't seem to work inside an environment, while working fine inside a command. I'm working ...
Arysto-Krzysztof's user avatar
3 votes
4 answers
103 views

Why is a box seemingly emptied after closing an environment

I'm attempting to fill a box, within an environment, to be used after the environment is closed, similar to how \begin{lrbox}{\boxname} ... \end{lrbox} works. However, for some reason it seems that ...
Ramon's user avatar
  • 133
1 vote
2 answers
781 views

Default text in tcolorbox body

I'd like to define a tcolorbox environment, e.g., \newtcolorbox{mybox}{ enhanced, boxrule=0pt,frame hidden, borderline west={3pt}{0pt}{Peach}, colback=Peach!5, sharp corners } But I would like for ...
ChasingUG's user avatar
1 vote
1 answer
73 views

conditional vertical space-command within environment

I am trying to find a way to get LaTeX to insert a different amount of vertical space depending on how much text there is in a specific environment: For two single lines I'd like one kind of space (...
Florian's user avatar
  • 2,919
7 votes
2 answers
10k views

Ideas for presenting the research question?

I know this is a very open question, however I am looking for some impressions as I am totally unsure in what style I can do this. I am writing my bachelor thesis right now and I want to present my ...
SRel's user avatar
  • 1,343
1 vote
1 answer
336 views

Making a restatable boxed theorem

This is probably very simple to do, but I am trying to write restatable theorems with boxes around them. Looking at this answer, box around theorem statement, I get a way to put boxes around a theorem,...
Ollie's user avatar
  • 13
0 votes
0 answers
1k views

Can we make a better shaded/framed/boxed environment?

I have grown quite fond of Donald Arseneau's framed package. However, there are a few tweaks I would like to add, but not sure how. Whether to merge the two environments framed and shaded, or modify ...
Matt's user avatar
  • 417
6 votes
3 answers
260 views

Wrapping tikz environment with savebox

I wanted to build an environment that allows to save tikz pictures as boxes. This is the code that I tried: \documentclass{standalone} \usepackage{tikz} \begin{document} \newenvironment{...
bennofs's user avatar
  • 183
1 vote
1 answer
70 views

Inclosing \section in \vbox failed with: "Something's wrong--perhaps a missing \item. }"

I wanna put some complex commands (e.g. \section and \chapter) inside a box (\vbox) so later I can compute the height of the block contains the text. Here is the full example: \documentclass[11pt]{...
jiun's user avatar
  • 193
2 votes
2 answers
886 views

How to prevent reference to enumeration inside new environment?

I defined a guidancebox envirenment, which is similar to the longtable environment, only with a different counter/ caption tag and reference label. This works fine, except if I use enumerate inside ...
Tim van Dam's user avatar
0 votes
1 answer
296 views

Create a special small box or environment for highlighting special content such examples, reference and links?

I am trying to create a box or a coloured section with a border and a logo, something like this warning section: Or like this, not so nice, code link: Which is repeated during the book for ...
G M's user avatar
  • 2,255
0 votes
1 answer
70 views

How to create a quote environment where you can stuff something next to it?

At the most basic level I want to be able to do something like this: \begin{quote}[5.5.2] This is some text that will come out like a quote. \end{quote} So that it will come out something like ...
Jay's user avatar
  • 815
2 votes
3 answers
6k views

Creating an environment in LaTeX

I would like to create a custom environment that lets me write text into a gray box. Basically this: \begin{center} \noindent\fcolorbox{black}{gray!30}{% \parbox{33em}{% \vspace{15pt} ...
YvesCB's user avatar
  • 23
1 vote
1 answer
203 views

Framed \newenvironment without new packages

Is there a solution to make a frame around an environment without using any new packages? (with boxes or something)
user131525's user avatar

15 30 50 per page