Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- \documentclass[twoside]{article}
- \usepackage{lipsum}
- \usepackage{wrapfig}
- \setlength{\wrapoverhang}{\marginparwidth}
- \addtolength{\wrapoverhang}{\marginparsep}
- \usepackage[left=1in,right=2.5in,top=1in,bottom=1in]{geometry}
- \begin{document}
- \lipsum[1]
- \begin{wrapfigure}[11]{O}{6.3cm}
- \vspace{-10pt} %% If needed
- This is a margin note getting wrapped with the text and going into margin as well.
- In \verb!\begin{wrapfigure}[8]{O}[2cm]{6cm}!, \texttt{[8]} denotes the number of line space in the margin note, \texttt{{O}} is the alignment, \texttt{[2cm]} is amount by which the note goes in to the margin (called over hang) and \texttt{{6cm}} is the width.
- \vspace{10pt} %% If needed
- \end{wrapfigure}
- \lipsum[2-3]
- \clearpage
- \lipsum[3]
- \begin{wrapfigure}[11]{O}{6.3cm}
- % \vspace{-10pt} %% If needed
- This is a margin note getting wrapped with the text and going into margin as well.
- In \verb!\begin{wrapfigure}[8]{O}[2cm]{6cm}!, \texttt{[8]} denotes the number of line space in the margin note, \texttt{{O}} is the alignment, \texttt{[2cm]} is amount by which the note goes in to the margin (called over hang) and \texttt{{6cm}} is the width.
- % \vspace{10pt} %% If needed
- \end{wrapfigure}
- \lipsum[4-5]
- \end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement