Generalmarginal notes outside the page

LaTeX specific issues not fitting into one of the other forums of this category.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

marginal notes outside the page

Post by Stefan Kottwitz »

Hi warrence,

concerning the lengths the geometry manual might be informative too.

Stefan
LaTeX.org admin

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

warrence
Posts: 16
Joined: Mon May 05, 2008 10:43 pm

marginal notes outside the page

Post by warrence »

thank you stefan and gmedina, that's quite interesting. unfortunatly it's not quite what i wanted.
actually i have some trouble with this:

Code: Select all

\newcommand*{\theoremframe}[1]{\noindent\fbox{\hspace{\parindent}\parbox{\textwidth-2\parindent}{#1} \hspace{\parindent}}\\}
which i use as a frame for a theorem environment ("amsthm"-package). this frame is wider than the textwidth, because the frames add some extra horizontal space. i could not figure out which length i have to subtract from the parbox-width to make it work...

@localghost:
This head-word makes me suggest you the hyphenat package. Perhaps it can solve the problem.
what problem do you mean? hyphenation works fine, because i use

Code: Select all

\selectlanguage
in all of the documents including the header-files.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

marginal notes outside the page

Post by Stefan Kottwitz »

Hi warrance,

the lengths you are looking are \fboxsep and \fboxrule, see here.
Substracting them should solve it:

Code: Select all

\newcommand*{\theoremframe}[1]{\noindent\fbox{\hspace{\parindent}%
\parbox{\textwidth-2\parindent-2\fboxsep-2\fboxrule}{#1}\hspace{\parindent}}\\}
You may notice I also removed one space near the end.

Stefan
LaTeX.org admin
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

marginal notes outside the page

Post by gmedina »

You can easily frame your theorems using the ntheorem package. You could also be interested in the empheq package.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
warrence
Posts: 16
Joined: Mon May 05, 2008 10:43 pm

Re: marginal notes outside the page

Post by warrence »

oh... amazing. i'll check these packages out. looks promising!
thanks alot :)
Post Reply