ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* alignment of figures
@ 2002-03-15 16:34 Karsten Hachmeister
  2002-03-15 17:40 ` Hans Hagen
  0 siblings, 1 reply; 12+ messages in thread
From: Karsten Hachmeister @ 2002-03-15 16:34 UTC (permalink / raw)


Hi,

I want to place one figures in the text and margin area, so that it is
larger than the textarea.

          text          margin
+---------------------+--------+
| text text text text |        |
|                     |        |
| +--------------------------+ |
| | figure                   | |
| +--------------------------+ |
|           figure 1           |
|                     |        |
| text text text text |        |
| text text text text |        |

I have tried two methods to reach this, but I have problems with both.

1. I used this command:

   \placefigure
   [left][fig:figure]
   {figure}
   {\externalfigure[figure][width=1.333\textwidth]}

The picture is placed like the example above, but the next paragraph is
placed right of the figure.

2. I used this command:

   \placefigure
   [][fig:figure]
   {figure}
   {\leftaligned{\externalfigure[figure][width=1.333\textwidth]}}

The picture is placed like the example above, but the caption of the figure
is in the middle of the text area, so it is not in the middle of the figure.

Is there a special command I haven't found or how can I realize this?

--
Karsten Hachmeister

----------------------------------------------------------------------------
  E-Mail: Mailingliste@Hachmeister.org
Homepage: www.Hachmeister.org
----------------------------------------------------------------------------


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: alignment of figures
  2002-03-15 16:34 alignment of figures Karsten Hachmeister
@ 2002-03-15 17:40 ` Hans Hagen
  0 siblings, 0 replies; 12+ messages in thread
From: Hans Hagen @ 2002-03-15 17:40 UTC (permalink / raw)
  Cc: Mailingliste, ConTeXt

At 05:34 PM 3/15/2002 +0100, Karsten Hachmeister wrote:
>Hi,
>
>I want to place one figures in the text and margin area, so that it is
>larger than the textarea.
>
>           text          margin
>+---------------------+--------+
>| text text text text |        |
>|                     |        |
>| +--------------------------+ |
>| | figure                   | |
>| +--------------------------+ |
>|           figure 1           |
>|                     |        |
>| text text text text |        |
>| text text text text |        |
>
>I have tried two methods to reach this, but I have problems with both.
>
>1. I used this command:
>
>    \placefigure
>    [left][fig:figure]
>    {figure}
>    {\externalfigure[figure][width=1.333\textwidth]}
>
>The picture is placed like the example above, but the next paragraph is
>placed right of the figure.
>
>2. I used this command:
>
>    \placefigure
>    [][fig:figure]
>    {figure}
>    {\leftaligned{\externalfigure[figure][width=1.333\textwidth]}}
>
>The picture is placed like the example above, but the caption of the figure
>is in the middle of the text area, so it is not in the middle of the figure.
>
>Is there a special command I haven't found or how can I realize this?

Of course there is a special command that is undocumented since rather new 
and under construction; given that you have the beta:

\def\FullWidth{\dimexpr(\textwidth+\marginwidth+\margindistance)}

\definefloat [MarginAndText] [MarginAndText] [figure]
\setupfloat  [MarginAndText] [width=\FullWidth,location=inner]

\setupcaptions
   [align={right,broad},
    width=max]

\input tufte

\placeMarginAndText{}{}

\input tufte

.. gives a bit of insight.

Hans
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                                   fall-back web server: 
www.pragma-ade.nl
-------------------------------------------------------------------------


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: alignment of figures
  2005-10-24 14:22       ` Jörg Hagmann
@ 2005-10-25 18:40         ` Willi Egger
  0 siblings, 0 replies; 12+ messages in thread
From: Willi Egger @ 2005-10-25 18:40 UTC (permalink / raw)


Hi Jörg,

Sorry I am not capable to give you an appropriate answer to your 
questions. I had a look at your doc. It is impressive! - With which 
environment are you preparing the chemical formulae?
I was wondering whether it would be nicer to have the shortcuts like 
"Pa" in the outer margin. I suggest this, because in your case after 
binding the document, you will have difficulties to see the shortcuts as 
prominent elements (sorry this is the bookbinder speaking).


Kind regards

Willi

Jörg Hagmann wrote:

> Answering one of my own questions:
>
>> The subsection heads should be capitals. Setting textstyle=cap 
>> doesn't do anything. Setting style=cap gives an error (see end of 
>> message). style=slanted works, commands (\cap, \kap) don't work. 
>> \cap{some text} used in the text works.
>
>
> style=\sc works.
>
> Cheers, Jörg.
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>ntg-context mailing list
>ntg-context@ntg.nl
>http://www.ntg.nl/mailman/listinfo/ntg-context
>  
>

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: alignment of figures
  2005-10-25  7:23       ` Taco Hoekwater
  2005-10-25  8:00         ` Hans Hagen Test
@ 2005-10-25  9:46         ` Jörg Hagmann
  1 sibling, 0 replies; 12+ messages in thread
From: Jörg Hagmann @ 2005-10-25  9:46 UTC (permalink / raw)


Thanks for the suggestions.

> I think it only visually behaves correct because of some whitespace
> to the right, and it is probably just centered (just like the others).

By whitespace, I assume, space outside the figure boundaries is  
meant? I always make sure the boundaries do not extend the objects of  
the figure itself.

> Something along these lines may help:
>
>  \placefigure[whatever-ref]{}
>      {\hbox to \hsize
>         {\doifrightpageelse{\hss}{}%
>          \hbox to 1.2\hsize{!\hss Stuff\hss!}%
>          \doifrightpageelse{}{\hss}}}

Thanks, I'll try that.

> - move the chapter number to the outer margin
> - make it much bigger, maybe dark gray (or red since you use red)
> - add a bit more space after the chapter header
>
> that way it stands out better

I agree! Thanks for the suggestion

> how do you make the chemical pictures?

I use "Chemdraw", save as .pict and finish it in Illustrator. I will  
eventually look into PPCHTEX, but at the moment struggling with  
ConTEXt is all I can do. There is a problem with my method: the  
formula saved as .pict look awful (bonds shifted, atoms not aligned  
etc.) and I have to correct everything by hand in Illustrator. I am  
sure PPCHTEX would do a better job. On the other hand, if I switch  
the formulae should look the same (bondlength, thickness, font etc.)  
as the ones I already did (and don't want to do again). I suppose  
that's feasable?

Thanks again, Joerg.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: alignment of figures
  2005-10-25  7:23       ` Taco Hoekwater
@ 2005-10-25  8:00         ` Hans Hagen Test
  2005-10-25  9:46         ` Jörg Hagmann
  1 sibling, 0 replies; 12+ messages in thread
From: Hans Hagen Test @ 2005-10-25  8:00 UTC (permalink / raw)


Taco Hoekwater wrote:

>>
>> I placed the pdf file of one unfinished chapter on 
>> www.ogbasel.ch/book.html <http://www.ogbasel.ch/book.html> (3.5 MB). 
>> Note that Fig. 3.12 happens to be the way I want it. Why this 
>> particular figure chose to behave I don't know, putting nothing after 
>> \placefigure[] and most options [left,right,inner etc.) don't make a 
>> difference.
>
>
> Interesting looking document. :-)


indeed! btw, did you consider a chapter head that used the margin as 
well? i.e.

- move the chapter number to the outer margin
- make it much bigger, maybe dark gray (or red since you use red)
- add a bit more space after the chapter header

that way it stands out better

how do you make the chemical pictures?

Hans

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: alignment of figures
  2005-10-24 10:46     ` Jörg Hagmann
  2005-10-24 14:22       ` Jörg Hagmann
@ 2005-10-25  7:23       ` Taco Hoekwater
  2005-10-25  8:00         ` Hans Hagen Test
  2005-10-25  9:46         ` Jörg Hagmann
  1 sibling, 2 replies; 12+ messages in thread
From: Taco Hoekwater @ 2005-10-25  7:23 UTC (permalink / raw)


Jörg Hagmann wrote:
> Dear Hans and Taco,
> 
> Thanks for the answers. I'll read "details.pdf" again...
> 
> I placed the pdf file of one unfinished chapter on 
> www.ogbasel.ch/book.html <http://www.ogbasel.ch/book.html> (3.5 MB). 
> Note that Fig. 3.12 happens to be the way I want it. Why this particular 
> figure chose to behave I don't know, putting nothing after 
> \placefigure[] and most options [left,right,inner etc.) don't make a 
> difference.

Interesting looking document. :-)

I think it only visually behaves correct because of some whitespace
to the right, and it is probably just centered (just like the others).

Something along these lines may help:

  \placefigure[whatever-ref]{}
      {\hbox to \hsize
         {\doifrightpageelse{\hss}{}%
          \hbox to 1.2\hsize{!\hss Stuff\hss!}%
          \doifrightpageelse{}{\hss}}}

You still have to fiddle a bit to integrate with the other figures,
but this should get yet you started. Note that this "solution"
depends on  \setuppagenumbering[alternative=doublesided], it won't
work for singlesided documents.

Taco

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: alignment of figures
  2005-10-24 10:46     ` Jörg Hagmann
@ 2005-10-24 14:22       ` Jörg Hagmann
  2005-10-25 18:40         ` Willi Egger
  2005-10-25  7:23       ` Taco Hoekwater
  1 sibling, 1 reply; 12+ messages in thread
From: Jörg Hagmann @ 2005-10-24 14:22 UTC (permalink / raw)



[-- Attachment #1.1: Type: text/plain, Size: 331 bytes --]

Answering one of my own questions:

> The subsection heads should be capitals. Setting textstyle=cap  
> doesn't do anything. Setting style=cap gives an error (see end of  
> message). style=slanted works, commands (\cap, \kap) don't work.  
> \cap{some text} used in the text works.

style=\sc works.

Cheers, Jörg.



[-- Attachment #1.2: Type: text/html, Size: 1343 bytes --]

[-- Attachment #2: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: alignment of figures
  2005-10-24  7:34   ` Hans Hagen Test
@ 2005-10-24 10:46     ` Jörg Hagmann
  2005-10-24 14:22       ` Jörg Hagmann
  2005-10-25  7:23       ` Taco Hoekwater
  0 siblings, 2 replies; 12+ messages in thread
From: Jörg Hagmann @ 2005-10-24 10:46 UTC (permalink / raw)



[-- Attachment #1.1: Type: text/plain, Size: 3517 bytes --]

Dear Hans and Taco,

Thanks for the answers. I'll read "details.pdf" again...

I placed the pdf file of one unfinished chapter on www.ogbasel.ch/ 
book.html (3.5 MB). Note that Fig. 3.12 happens to be the way I want  
it. Why this particular figure chose to behave I don't know, putting  
nothing after \placefigure[] and most options [left,right,inner etc.)  
don't make a difference.

The setuparea contains:

%Textfigures (on the inside up to 0.5/textwidth)
\setupfloat[figure][criterium=0.5\textwidth,default=inner]
\setupcaption[figure][style=\ssx]

I tried to add a second criterium (bigger than \textwidth), but not  
surprisingly my inventions and guesses weren't successful.  
Interventions within the text itself (\placefigure[....] and  
\setupfloat[figure][....]) also didn't work.

Lectures start this week, and I want to distribute some chapters as  
handouts in order to get feedback. This explains my bothering you  
with another question:

The subsection heads should be capitals. Setting textstyle=cap  
doesn't do anything. Setting style=cap gives an error (see end of  
message). style=slanted works, commands (\cap, \kap) don't work. \cap 
{some text} used in the text works.
This is how I'm setting up the heads:

\def\BookchapterCommand#1#2{\framed[frame=off,rightframe=on]{#1\space} 
\framed[frame=off]{\space#2}}
\setuphead[chapter][command=\BookchapterCommand,page=right]
\setuphead[subsection][style=cap (THIS IS WHERE I'M HAVING  
PROBLEMS),number=no]
\setuphead[subsubsection][style=slanted,number=no,after=\nowhitespace]

Thanks a lot, Jörg.

This is the error message when inserting style=cap:

) (./figures_book.tex) (./Mydefinitions.tex) (./book.tuo) (./book.tuo)
(./book.tuo) (./book.tuo) (./book.tuo) (./book.tuo) (./book.tuo) (./ 
book.tuo)
(./book.tuo) (./book.tuo) (./book.tuo) (./book.tuo) (./book.tuo)
fonts          : using map file: cbgreek.map
fonts          : using map file: texnansi-public-lm.map
fonts          : using map file: original-public-vnr.map
fonts          : using map file: original-public-csr.map
fonts          : using map file: original-public-plr.map
fonts          : using map file: original-public-lm.map
fonts          : using map file: original-ams-euler.map
fonts          : using map file: original-ams-cmr.map
fonts          : using map file: texnansi-base.map
fonts          : using map file: t5-base.map
fonts          : using map file: qx-base.map
fonts          : using map file: 8r-base.map
fonts          : using map file: ec-base.map
fonts          : using map file: ec-public-lm.map
fonts          : using map file: original-base.map
systems        : begin file book at line 45
(./digestion/digestion_chapter.tex
chapter        : 1 Verdauung und Resorption
section        : 1.1 Vorbereitung in Mund und Magen
! Argument of \getvalue has an extra }.
<inserted text>
                 \par
<to be read again>
                    }
\uppercased ...d \xdef \@@expanded {\uppercase {#1
                                                   }}}\@@expanded
\dodosmallcapped ...alize \cap@@uppercase {#1{#2}}
                                                   \egroup
\doplaceheadtext ... {\??ko #1}\c!style \getvalue
                                                   {\??ko #1\c! 
command } {} {...

\dodododosomekop ...mber ]{\finalsectionnumber }}}
                                                   \writesection {#1} 
{-}{#4}\...
l.5 \subsection {Der Speichel}

?

[-- Attachment #1.2: Type: text/html, Size: 5106 bytes --]

[-- Attachment #2: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: alignment of figures
  2005-10-24  7:15 ` Jörg Hagmann
  2005-10-24  7:34   ` Hans Hagen Test
@ 2005-10-24  7:58   ` Taco Hoekwater
  1 sibling, 0 replies; 12+ messages in thread
From: Taco Hoekwater @ 2005-10-24  7:58 UTC (permalink / raw)


Jörg Hagmann wrote:
> I would appreciate an answer by somebody who knows, even if it is to  
> tell me that it can't be done. Thanks a lot, Jörg.

Perhaps you could post what you have so far. It is definately
possible.

Taco

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: alignment of figures
  2005-10-24  7:15 ` Jörg Hagmann
@ 2005-10-24  7:34   ` Hans Hagen Test
  2005-10-24 10:46     ` Jörg Hagmann
  2005-10-24  7:58   ` Taco Hoekwater
  1 sibling, 1 reply; 12+ messages in thread
From: Hans Hagen Test @ 2005-10-24  7:34 UTC (permalink / raw)


� wrote:

> Dear list members,
>
> Sorry to insist. I have figures extending the width of the text  
> (which is 14cm). I want them to be aligned with the the textblock at  
> the inside, sticking out into the outer margin (which is 2.5cm). I  
> tried all the commands I could find or think of, but nothing worked  
> (most of them did'nt affect the actual position, i.e. the picture  
> extending textwidth on both sides to the same extent).
>
> I would appreciate an answer by somebody who knows, even if it is to  
> tell me that it can't be done. Thanks a lot, J�rg.

see details.pdf manual

Hans

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: alignment of figures
  2005-10-19 13:19 Jörg Hagmann
@ 2005-10-24  7:15 ` Jörg Hagmann
  2005-10-24  7:34   ` Hans Hagen Test
  2005-10-24  7:58   ` Taco Hoekwater
  0 siblings, 2 replies; 12+ messages in thread
From: Jörg Hagmann @ 2005-10-24  7:15 UTC (permalink / raw)


Dear list members,

Sorry to insist. I have figures extending the width of the text  
(which is 14cm). I want them to be aligned with the the textblock at  
the inside, sticking out into the outer margin (which is 2.5cm). I  
tried all the commands I could find or think of, but nothing worked  
(most of them did'nt affect the actual position, i.e. the picture  
extending textwidth on both sides to the same extent).

I would appreciate an answer by somebody who knows, even if it is to  
tell me that it can't be done. Thanks a lot, Jörg.

On Oct 19, 2005, at 3:19 PM, Jörg Hagmann wrote:

> Dear list members,
>
> I want to have figures arranged as follows:
> 1. Figures smaller than 0.5 textwidth at the inner margin, text  
> flowing arround figure.
> 2. Between 0.5 and 1*textwidth in the middle, no text flowing.
> 3.Figures wider than textwidth aligned with the inner margin of the  
> textblock and sticking out into the (wide) outer margin.
>
> I found out how to do the first 2 (from "Details") but couldn't  
> figure out the last one. Any suggestions? Thanks a lot.
> Jörg_______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>

^ permalink raw reply	[flat|nested] 12+ messages in thread

* alignment of figures
@ 2005-10-19 13:19 Jörg Hagmann
  2005-10-24  7:15 ` Jörg Hagmann
  0 siblings, 1 reply; 12+ messages in thread
From: Jörg Hagmann @ 2005-10-19 13:19 UTC (permalink / raw)


Dear list members,

I want to have figures arranged as follows:
1. Figures smaller than 0.5 textwidth at the inner margin, text  
flowing arround figure.
2. Between 0.5 and 1*textwidth in the middle, no text flowing.
3.Figures wider than textwidth aligned with the inner margin of the  
textblock and sticking out into the (wide) outer margin.

I found out how to do the first 2 (from "Details") but couldn't  
figure out the last one. Any suggestions? Thanks a lot.
Jörg

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2005-10-25 18:40 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-15 16:34 alignment of figures Karsten Hachmeister
2002-03-15 17:40 ` Hans Hagen
2005-10-19 13:19 Jörg Hagmann
2005-10-24  7:15 ` Jörg Hagmann
2005-10-24  7:34   ` Hans Hagen Test
2005-10-24 10:46     ` Jörg Hagmann
2005-10-24 14:22       ` Jörg Hagmann
2005-10-25 18:40         ` Willi Egger
2005-10-25  7:23       ` Taco Hoekwater
2005-10-25  8:00         ` Hans Hagen Test
2005-10-25  9:46         ` Jörg Hagmann
2005-10-24  7:58   ` Taco Hoekwater

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).