Figure* in two side mode

111 views
Skip to first unread message

Adrian Burd

unread,
May 29, 2008, 2:57:27 PM5/29/08
to tufte-latex
Hi,

Many thanks for a great class package. I've just started to use it for
all my class handouts. However, I am having
one problem that I've tried solving but can't see how to. I have some
long handouts that I want to print double sided
using a two side mode where the left page margin and the right page
margin are on different sides (like a normal
two sided mode in LaTeX - though this involves removing the asymmetric
option in the geometry class loaded by
the tufte-handout class). However, the figure* environment seems to
expect the margin to be on the right hand side of the
page.

Is there any way to make the figure* environment knowledgeable about
which page it is on and overhang either the
left or right margin accordingly?

Thanks,

Adrian

Kevin Godby

unread,
May 29, 2008, 3:37:37 PM5/29/08
to tufte...@googlegroups.com
Hello, Adrian.

And here I just went to the trouble of getting asymmetric and twoside
to work! :-)

If you edit the tufte-handout.cls file, you'll need to find all the instances of

\begin{adjustwidth}{}{-\@tufteh@overhang}%

and replace them with

\begin{adjustwidth}{\ifodd\c@page0pt\else-\@tufteh@overhang\fi}{\ifodd\c@page-\@tufteh@overhang\else0pt\fi}%

You'll find these in the following environment definitions: figure*,
table*, and fullwidth.

I suppose if enough people are eager for this type of layout, we could
add a package option for it.

--Kevin Godby

Kevin Godby

unread,
May 29, 2008, 3:42:32 PM5/29/08
to tufte...@googlegroups.com
Actually, looking at the adjustwidth docs again, you may be able to
simplify it to:

\begin{adjustwidth}[]{}{-\@tufteh@overhang}%

(with the addition of the empty empty brackets).

--Kevin Godby

Bil Kleb

unread,
May 29, 2008, 3:55:00 PM5/29/08
to tufte...@googlegroups.com
Kevin Godby wrote:
> Actually, looking at the adjustwidth docs again, you may be able to
> simplify it to:
>
> \begin{adjustwidth}[]{}{-\@tufteh@overhang}%
>
> (with the addition of the empty empty brackets).

To keep overhangs out of the gutter would seem to be
the proper thing to do as a twoside default.

Regards,
--
http://www.twitter.com/bil_kleb

Kevin Godby

unread,
May 29, 2008, 4:03:16 PM5/29/08
to tufte...@googlegroups.com
On Thu, May 29, 2008 at 2:55 PM, Bil Kleb <Bil....@nasa.gov> wrote:
> To keep overhangs out of the gutter would seem to be
> the proper thing to do as a twoside default.

Currently, the twoside option doesn't affect the margins -- the
marginpar space is always on the right-hand side of the page
regardless of whether the page is odd or even. This behavior is
comparable to Tufte's books.

In most other books, however, the marginpar space would be on the
outside margin in twoside mode. That is, the marginpar space would be
on the left side of the verso folio and on the right side of the recto
folio.

I have no qualms about adding an option for this behavior (since it's
traditional and pretty standard behavior). Suggestions on names for
the option?

We could make it the default behavior, but that would deviate from the
Tufte style.

Thoughts?

--Kevin

Adrian Burd

unread,
May 30, 2008, 9:54:02 AM5/30/08
to tufte-latex
Kevin and Bill,

Thanks for the tips! And sorry to cause all this trouble 8-)

> I have no qualms about adding an option for this behavior (since it's
> traditional and pretty standard behavior).  Suggestions on names for
> the option?
>
> We could make it the default behavior, but that would deviate from the
> Tufte style.

I would not want to see it as the default style unless the class
became tufte-book
rather than tufte-handout. However, I do think that making it an
option would be very
useful. It is not exactly the Tufte style, but it is in that spirit,
and I think it allows
the user who is not knowledgeable about LaTeX internals to make the
decision. Also,
similar styles seem to be quite popular in textbooks and longer
articles.

As for names, how about symmetric and asymmetric?

Adrian

Kevin Godby

unread,
May 30, 2008, 9:04:46 PM5/30/08
to tufte...@googlegroups.com
'allo.

On Fri, May 30, 2008 at 8:54 AM, Adrian Burd <adria...@yahoo.com> wrote:
>
> Kevin and Bill,
>
> Thanks for the tips! And sorry to cause all this trouble 8-)

No trouble at all!

> I would not want to see it as the default style unless the class
> became tufte-book
> rather than tufte-handout. However, I do think that making it an
> option would be very
> useful. It is not exactly the Tufte style, but it is in that spirit,
> and I think it allows
> the user who is not knowledgeable about LaTeX internals to make the
> decision. Also,
> similar styles seem to be quite popular in textbooks and longer
> articles.
>
> As for names, how about symmetric and asymmetric?

I've added a 'symmetric' option to the class that does all of this.
It's not the default behavior.

I keep meaning to get back to my Tufte-book style sometime. Much of
the code for the book and handout classes can be shared. Most of the
differences will be in some defaults. For instance, Tufte-book would
probably default to twoside, while handout may default to oneside.

Anyway, I've committed the `symmetric' option to svn now, so you can
check it out. Let me know if I screwed anything up.

Here's how `twoside' and `symmetric' play together:

* `twoside' will only adjust the running heads. Using the `twoside'
option will alternate the running heads between the left and right
pages of the spread.

* `symmetric' implicitly sets `twoside' so that the running heads
alternate. Additionally, it will alternate the placement of the
sidenotes and fixes the fullwidth and * environments to work properly.

Anything else I forgot?

--Kevin Godby

jay.f...@gmail.com

unread,
May 31, 2008, 11:42:08 AM5/31/08
to tufte-latex
Wow, that's great Kevin. I would love to see a tufte-book class.


On May 30, 6:04 pm, "Kevin Godby" <god...@gmail.com> wrote:
> 'allo.
>

Adrian Burd

unread,
Jun 2, 2008, 5:32:37 PM6/2/08
to tufte-latex
Hi Kevin,

That's wonderful! Thanks!

I'm loathe to bring it up, but the only issue I've come across is that
if a full text width figure or marginal comment appears at the top of
a page, LaTeX gets confused
if one is using the twoside and symmetric options. I noticed this with
a figure that was persistent in not going full width. It appeared at
the top of a page and if I
adjusted the text so that it appeared further down the page, then it
flipped out the full textwidth as it was meant to.

Adrian


On May 30, 9:04 pm, "Kevin Godby" <god...@gmail.com> wrote:
> 'allo.
>

Kevin Godby

unread,
Jun 2, 2008, 6:13:44 PM6/2/08
to tufte...@googlegroups.com
Hello, Adrian.

That does sound like an odd bug. If you could you send me some
example code that illustrates the behavior, I'd be happy to look into
it. If you prefer, you can email it to me directly at
<god...@gmail.com>.

Thanks!

--Kevin

Kevin Godby

unread,
Jun 2, 2008, 7:33:23 PM6/2/08
to tufte...@googlegroups.com
Okay, I committed a fix for this -- at least it worked for me. Can you test it?

The fix is to add the `strict' option to the chngpage package in
tufte-handout.cls.

--Kevin

Adrian Burd

unread,
Jun 3, 2008, 8:56:15 AM6/3/08
to tufte-latex
Hi Kevin,

That worked a charm! Many thanks!

Adrian


On Jun 2, 7:33 pm, "Kevin Godby" <god...@gmail.com> wrote:
> Okay, I committed a fix for this -- at least it worked for me.  Can you test it?
>
> The fix is to add the `strict' option to the chngpage package in
> tufte-handout.cls.
>
> --Kevin
>
Reply all
Reply to author
Forward
0 new messages