Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I have an article in which I'd like to use margin notes near some text (some minor headings, equivalent with a subsubsubsection).

In some cases that text runs on two lines. I'd like the margin note to be vertically align with the first line of those two, not the second (as it happens now as seen in the screenshot).

alt text

Is it possible? Many thanks in advance.

\usepackage{mparhack}
\reversemarginpar

% <snip>
\textbf{Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.} 
\marginpar{\sc{\small{Case~1}}}
share|improve this question
add comment

2 Answers

up vote 7 down vote accepted

Wouldn't moving the \marginpar to the front of your text work for you? E.g., \newcommand{\mysubsubsub}[2]{\textbf{\marginpar{\sc{\small{#1}}}#2}}.

share|improve this answer
    
It would, indeed. Thank you. –  wishihadabettername Nov 9 '10 at 13:06
add comment

Usually it helps to place the marginpar content near the beginning of the considered paragraph.

\documentclass[11pt,a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{mparhack}

\reversemarginpar

\begin{document}
  \textbf{Lorem\marginpar{\textmd{\textsc{\small Case 1}}} ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.} 
\end{document}
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.