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'm trying to make a left-sided margin note. As per the LaTeX wiki, I tried using \reversemarginpar but that didn't solve anything--it didn't make a margin note at all. I also tried \marginpar[left text/right text]{%my text} to no avail. I tried using two other packages, marginnote and mparhack, but again, those didn't solve my problem. I'd post my code, but since I'm having issues with my laptop's internet, I'm using my iPad to access the internet. Maybe there are some pre-reqs that I'm not incorporating (perhaps I have to further define something in the preamble...), but I would appreciate any help and also an example of how to use the margin command successfully in LaTeX. Thanks in advance!

EDIT:

I managed to connect to the ethernet, so here's my code:

\documentclass{article}

\usepackage{amssymb}
\usepackage{wasysym}
\usepackage[top=2cm, bottom=1.3cm, left=2.5cm, right=2.5cm]{geometry}
\usepackage{tensor}
\usepackage{enumitem}
\usepackage{outlines}
\usepackage{ulem}

\begin{document}
  \title{\vspace{-0.9in}\uline{Chapter 13 - Chromosomal Rearrangements and Changes in Chromosome Number}}
  \author{A. Uthor}
  \date{}  
  \maketitle
  \thispagestyle{empty}
  \pagestyle{empty}
  \vspace*{-1.5cm}

\section*{\Large Types:}
\begin{outline}[enumerate]
\1 Duplications
\1 Deletions
\1 Inversions
\1 Translocations
\end{outline}

%some text I deleted just to keep this short

\textbf{semisterility} $\rightarrow$ diminished fertility of translocation heterozygotes by at least 50\%
\reversemarginpar{Why does Mendel's 2$\mathrm{^{nd}}$ require viability of offspring?}

\end{document}
share|improve this question
1  
Can you narrow down the problem by including at least the errors you get or misalignment problems etc. shown on your compiled document? –  percusse Mar 29 '11 at 22:50
    
You don't really have the % in the %my text part, do you? It would make TeX ignore the text and cause an error because of the missing }. –  Martin Scharrer Mar 29 '11 at 22:50
2  
You really need to post your code. \reversemarginpar is a command that, when issued, forces all \marginpars created after to be put on the opposite side of normal (that is, on the left instead of right for single sided documents, and on the inside edge as opposed to the outside edge for double sided documents). But it sounds like you want to dynamically switch sides as you go along? Like having some margin notes on the left and others on the right? (Lastly, a comment on asking questions: it helps to make your question title more descriptive.) –  Willie Wong Mar 29 '11 at 22:54
    
@ Martin Scharrer - No, I don't really have the % in my original code. –  Halime Mar 30 '11 at 2:14
    
@ Wille Wong - No, I do not want to switch sides (have the margin note be left or right as I go along, if that's what you mean). I'd just like the margin note to remain consistently on the left side. I'm sorry if my title is not quite descriptive... –  Halime Mar 30 '11 at 2:17
show 3 more comments

1 Answer

up vote 6 down vote accepted

The \reversemarginpar command cannot be used to typeset the marginal notes; as Willie Wong mentioned in a comment, all \reversemarginpar does is to force all subsequent marginal notes to be put on the opposite side. To typeset your marginal notes, you can use the standard \marginpar command or, even better, you can use the \marginnote command provided by the marginnote package: an example including some of your code:

\documentclass{article}
\usepackage{amssymb}
\usepackage{wasysym}
\usepackage[top=2cm, bottom=1.3cm, left=2.5cm, right=2.5cm]{geometry}
\usepackage{tensor}
\usepackage{enumitem}
\usepackage{outlines}
\usepackage{ulem}
\usepackage{marginnote}

\reversemarginpar

\title{\vspace{-0.9in}\uline{Chapter 13 - Chromosomal Rearrangements and Changes in Chromosome Number}}
\author{A. Uthor}
\date{}  

\begin{document}

\section*{\Large Types:}
\begin{outline}[enumerate]
\1 Duplications
\1 Deletions
\1 Inversions
\1 Translocations
\end{outline}

 \textbf{semisterility} $\rightarrow$ diminished fertility of translocation heterozygotes by at least 50\% \marginnote{Why does Mendel's 2$\mathrm{^{nd}}$ require viability of offspring?}

\end{document}

You must compile several times to see the marginal note in its final position.

On a side note, can I ask you why do you use the outlines package? It is not part of TeX Live or MiKTeX, and the enumitem package (which you are also loading) offers you more possibilities (in my opinion) to customize your lists.

share|improve this answer
    
@ Gonzalo Medina: Thanks! It actually worked the first time I complied. Thanks again for your help! –  Halime Mar 30 '11 at 3:08
    
@ Gonzalo Medina: Oh, the reason why I'm using the outlines package is because I'm making an outline and I find it less messy than using having to start a new enumerate for a new sublevel. Since I'm still learning how to use LaTeX, I sort of have this propensity to just keep all the packages I've ever used in my preamble just in case. Whatever I don't use, I delete before I compile the final document. –  Halime Mar 30 '11 at 3:33
    
@Halime: For outlining, you may want to have a look at org mode for emacs. It has LaTeX exporting capabilities, so it might be helpful for you. –  Dror Mar 30 '11 at 9:44
    
@Dror: My sister uses emacs so I'll look into it. Thanks! –  Halime Apr 4 '11 at 9:47
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.