Hullo all, Maybe somebody can help me with this: I have a paragraph and an image in the outer margin, sticking slightly into the text area. On the opposite side, in the inner margin, I have two letters. What happens is that after the \inothermargin command I get a line break (not a new paragraph, but a line break). When I remove the image, the line break disappears. This is the code: \placevignette{}{\externalfigure[di_B12_marg][width=4cm]} Die Resorption des {\em wasserlˆslichen} Vitamins B\low{12} (= Cobalamin, s. Formel) f‰llt aus dem Rahmen: B\low{12} wird nur als Komplex mit dem \quotation{Intrinsic Factor}, einem Glycoprotein aus den Belegzellen des Magens, {\em im Ileum} aufgenommen (Intrinsic, weil der Faktor aus dem Kˆrper stammt -- dazu passend bezeichnet man B\low{12} auch als \quotation{Extrinsic Factor}).\inothermargin{\ssd Pa} Vitamin B\low{12} wird von Bakterien synthetisiert und stammt ausschliesslich aus tierischer Nahrung; Veganer/innen, die nicht nur auf Fleisch, sondern auch auf Eier und Milchprodukte verzichten, besitzen einen entsprechend niedrigen Vorrat des Vitamins. H‰ufigste Ursache f¸r die {\em perniziˆse An‰mie}, die klassische B\low{12}-Mangelkrankheit, ist allerdings nicht eine Fehlern‰hrung, sondern eine verminderte Resorption im Ileum, entweder weil dessen Schleimhaut entz¸ndet ist (Sprue), oder weil eine erkrankte Magenschleimhaut zuwenig Intrinsic Factor produziert. I call this type of figures vignette and defined it as follows: \definefloat[vignette][figure] \setupfloat[vignette][leftmargindistance=- \outermargintotal,rightmargindistance=- \outermargintotal,default={outer,none,low}] \setupcaption[vignette][number=no] Thanks for your help, Jörg
Jörg Hagmann wrote:
Hullo all,
Maybe somebody can help me with this:
I have a paragraph and an image in the outer margin, sticking slightly into the text area. On the opposite side, in the inner margin, I have two letters. What happens is that after the \inothermargin command I get a line break (not a new paragraph, but a line break). When I remove the image, the line break disappears.
works ok here can you make a minimal complete example (no funny encoding, just \"e kind of things) Hans ----------------------------------------------------------------- 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 -----------------------------------------------------------------
Dear Hans,
works ok here
can you make a minimal complete example
Assuming that means including the code before \starttext: \enableregime [il1] \mainlanguage [de] \usemodule[greek] \usemodule[units] \setuplayout[height=26.5cm,backspace=2cm,topspace=1.7cm,footer=1.2cm] \setupbodyfont[11pt] \setuppagenumbering[alternative=doublesided,location=footer] \setupheader[state=none] \setuptolerance[tolerant, stretch] \setupwhitespace[medium] \setupitemize[headstyle=italic] \definehead[Bookchapter][chapter] \setuphead[Bookchapter][page=yes,conversion=Character] \setuptables[bodyfont=small] %Figures partially in margin \definefloat[vignette][figure] \setupfloat[vignette][leftmargindistance=- \outermargintotal,rightmargindistance=- \outermargintotal,default={outer,none,low}] \setupcaption[vignette][number=no] %Figures digestion_chapter \setupexternalfigures[directory=./FIGURES/] \useexternalfigure[fig:acidsecr][di_acidsecr] \useexternalfigure[fig:di_cascade][di_cascade][width=0.5\textwidth] \useexternalfigure[fig:di_proteins][di_proteins] \useexternalfigure[fig:di_carbo][di_carbo][width=\textwidth] \useexternalfigure[fig:di_lipids][di_lipids] \setuptextrules[style=\ss] %\showframe \starttext \placevignette{}{\externalfigure[di_B12_marg][width=4cm]} Die Resorption des {\em wasserloeslichen} Vitamins B\low{12} (= Cobalamin, s. Formel) faellt aus dem Rahmen: B\low{12} wird nur als Komplex mit dem \quotation{Intrinsic Factor}, einem Glycoprotein aus den Belegzellen des Magens, {\em im Ileum} aufgenommen (Intrinsic, weil der Faktor aus dem Koerper stammt -- dazu passend bezeichnet man B\low{12} auch als \quotation{Extrinsic Factor}).\inothermargin{\ssd Pa} Vitamin B\low{12} wird von Bakterien synthetisiert und stammt ausschliesslich aus tierischer Nahrung; Veganer/innen, die nicht nur auf Fleisch, sondern auch auf Eier und Milchprodukte verzichten, besitzen einen entsprechend niedrigen Vorrat des Vitamins. Haeufigste Ursache fuer die {\em pernizioese Anaemie}, die klassische B\low{12}-Mangelkrankheit, ist allerdings nicht eine Fehlernaehrung, sondern eine verminderte Resorption im Ileum, entweder weil dessen Schleimhaut entzuendet ist (Sprue), oder weil eine erkrankte Magenschleimhaut zuwenig Intrinsic Factor produziert. \stoptext Thanks, Jörg.
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). Thanks a lot, Jörg. ------------------------------------------------------------
can you make a minimal complete example
\enableregime [il1] \mainlanguage [de] \usemodule[greek] \usemodule[units] \setuplayout[height=26.5cm,backspace=2cm,topspace=1.7cm,footer=1.2cm] \setupbodyfont[11pt] \setuppagenumbering[alternative=doublesided,location=footer] \setupheader[state=none] \setuptolerance[tolerant, stretch] \setupwhitespace[medium] \setupitemize[headstyle=italic] \definehead[Bookchapter][chapter] \setuphead[Bookchapter][page=yes,conversion=Character] \setuptables[bodyfont=small] %Figures partially in margin \definefloat[vignette][figure] \setupfloat[vignette][leftmargindistance=- \outermargintotal,rightmargindistance=- \outermargintotal,default={outer,none,low}] \setupcaption[vignette][number=no] %Figures digestion_chapter \setupexternalfigures[directory=./FIGURES/] \useexternalfigure[fig:acidsecr][di_acidsecr] \useexternalfigure[fig:di_cascade][di_cascade][width=0.5\textwidth] \useexternalfigure[fig:di_proteins][di_proteins] \useexternalfigure[fig:di_carbo][di_carbo][width=\textwidth] \useexternalfigure[fig:di_lipids][di_lipids] \setuptextrules[style=\ss] \showframe \starttext \placevignette{}{\externalfigure[di_B12_marg][width=4cm]} Die Resorption des {\em wasserloeslichen} Vitamins B\low{12} (= Cobalamin, s. Formel) faellt aus dem Rahmen: B\low{12} wird nur als Komplex mit dem \quotation{Intrinsic Factor}, einem Glycoprotein aus den Belegzellen des Magens, {\em im Ileum} aufgenommen (Intrinsic, weil der Faktor aus dem Koerper stammt -- dazu passend bezeichnet man B\low{12} auch als \quotation{Extrinsic Factor}).\inothermargin{\ssd Pa} Vitamin B\low{12} wird von Bakterien synthetisiert und stammt ausschliesslich aus tierischer Nahrung; Veganer/innen, die nicht nur auf Fleisch, sondern auch auf Eier und Milchprodukte verzichten, besitzen einen entsprechend niedrigen Vorrat des Vitamins. Haeufigste Ursache fuer die {\em pernizioese Anaemie}, die klassische B\low{12}-Mangelkrankheit, ist allerdings nicht eine Fehlernaehrung, sondern eine verminderte Resorption im Ileum, entweder weil dessen Schleimhaut entzuendet ist (Sprue), oder weil eine erkrankte Magenschleimhaut zuwenig Intrinsic Factor produziert. \stoptext
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).
It's a bug as the following small example shows: \useMPlibrary[dum] \setuppagenumbering[alternative=doublesided] \setupwhitespace[medium] \starttext \placefigure[right]{}{\externalfigure[dummy][width=2cm]} \input tufte \inothermargin{test} \input tufte \stoptext i must look into it Hans ----------------------------------------------------------------- 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 -----------------------------------------------------------------
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 -----------------------------------------------------------------
Thanks a lot! On Jul 20, 2005, at 2:02 PM, Hans Hagen wrote:
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 -----------------------------------------------------------------
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
participants (2)
-
Hans Hagen
-
Jörg Hagmann