I am using pdfTeX and I have in my text an example which just is a kind of a short story. What I want is:
- The story should be visually distinct from the normal text, by frame or background colour.
- I would like to place margin notes like note 1, note 2 beside that story so that I can refer to them later. These notes are part of the story, so inside frame or with the same background colour.
- Ideally, I would like latex to make the label and reference from and to these notes but as the number of notes is rather small I guess I could do that by hand.
I would like to use the tcolorbox package perhaps with the marginnote package
but I can't get them do what I want. Also looked at minipage but no success
either.
I added an example how it almost should look like, only the step's in the margin should get inside the box.
\documentclass[12pt]{article}
\usepackage[many]{tcolorbox}
\usepackage{marginnote}
\usepackage{lipsum}
\tcbuselibrary{skins,breakable}
\newtcolorbox{story}[1][]{
enhanced,
breakable,
pad at break=2mm,
left=2mm,right=30mm,
colback=white,colframe=black!50!yellow,
drop fuzzy midday shadow=black!50!yellow,
width={0.95\textwidth},
frame hidden,
segmentation hidden,
before=\par\vspace*{2mm},after=\par\bigskip,
title=#1}%
\begin{document}
\lipsum[1]
\begin{story}[Some story]
Some text comes\footnote{a footnote} here just\marginnote{1. step} for demo.
\lipsum[1]
\end{story}
\lipsum[1]
\end{document}




\documentclass{...}and ending with\end{document}. – cfr May 20 '14 at 02:52