ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Subject: Re: line break
Date: Wed, 20 Jul 2005 14:02:22 +0200	[thread overview]
Message-ID: <42DE3D4E.6070306@wxs.nl> (raw)
In-Reply-To: <7ca589a651cd33aebd5a453616b23456@unibas.ch>

Jörg Hagmann wrote:

> Some time ago, I inquired about the problem of an unwanted linebreak.  
> The linebreak is inserted after an \inothermargin command, if at the  
> same time there is a figure occupying the margin and some part of the  
> textarea on the opposite side (a type of figure here called  
> "vignette"). When I run the .tex file (see below) on the wiki, I get  
> the same result as on my computer.
> Could somebody tell me whether there is an abvious mistake in what I  
> did or that's the way it is, and nothing can be done (I include the  
> complete setuparea, just to be sure).


you can put this in cont-new.tex (after \unprotect); it solves the 
problem but i'm not that sure if it does not introduce new ones

\def\dodoinmargin[#1][#2][#3][#4][#5]#6%
  {\bgroup
   \forgetall % otherwise sidefloat problems, added 2005/07/20         \postponefootnotes % group is (somehow) needed
   \doifinsetelse\v!low{#4}
     {\chardef\margincontentdisplacement\plusone}
     {\chardef\margincontentdisplacement\zerocount}%
   \doif\v!reverse{#2}
     {\swapmacros\dorightmarginblock\doleftmarginblock}%
   \processaction
     [#1]
     [   \v!left=>\let\next\doleftmarginblock,  % no swapping
        \v!right=>\let\next\dorightmarginblock, % no swapping
        \v!inner=>\def\next{\doinmarginswapped
\dorightmarginblock\doleftmarginblock },
        \v!outer=>\def\next{\doinmarginswapped
\doleftmarginblock\dorightmarginblock},
      \s!unknown=>\ifdubbelzijdig
                    \doifcommonelse{+,-}{#4}
                      {\def\next{\doinmarginswapped
\dorightmarginblock\doleftmarginblock }}
                      {\def\next{\doinmarginswapped
\doleftmarginblock \dorightmarginblock}}%
                  \else
                    \let\next\doleftmarginblock
                  \fi]%
   \next{#3}{#6}%
   \rawpagereference\s!mar{#5}% naar binnen ! ! ! !
   \flushnotes
   \egroup % don't forget the group
   \ignorespaces}


-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------

  parent reply	other threads:[~2005-07-20 12:02 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-13  9:07 Jörg Hagmann
2005-07-13 20:07 ` Hans Hagen
2005-07-14  7:24   ` Jörg Hagmann
2005-07-20 11:10     ` Jörg Hagmann
2005-07-20 11:43       ` Hans Hagen
2005-07-20 12:02       ` Hans Hagen [this message]
2005-07-21  8:25         ` Jörg Hagmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=42DE3D4E.6070306@wxs.nl \
    --to=pragma@wxs.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).