ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Placement of figures
@ 2022-01-13 17:29 Willi Egger via ntg-context
  2022-01-24 22:58 ` Fwd: " Willi Egger via ntg-context
  0 siblings, 1 reply; 2+ messages in thread
From: Willi Egger via ntg-context @ 2022-01-13 17:29 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Willi Egger

[-- Attachment #1: Type: text/plain, Size: 459 bytes --]

Hi all,

I have a project with my brother in which 5 foto’s are placed with the XY arrangement in a row. Now we see, that the floats are not placed all on the correct position. I tried all kind of things, but I am not able to fix them in the desired position. — When using the key location=top, all figures are placed correctly. This does not work with location=center.

I attach the sources in this mai and will send the compiled file in a next mail.

[-- Attachment #2: stops.dat --]
[-- Type: application/octet-stream, Size: 234 bytes --]

Kienastenwies;47.355100 / 8.600956;621.8;217
Zweiackerstrasse;47.356964 / 8.598041;619.8;229
Loorenstrasse;47.357020 / 8.598115;602.5;159
Berghaldenstrasse;47.358696 / 8.589995;601.7;167
Zentrum Witikon;47.358520 / 8.586097;584.6;176

[-- Attachment #3: test-placefigures.tex --]
[-- Type: application/octet-stream, Size: 1587 bytes --]

% ConTeXt file
% filename: test-placefigures.tex

\usemodule[t][folding]
\useMPlibrary[dum]
\usemodule[database]


\usetypescriptfile[iwona-medium]
\usetypescript[iwona-medium]
\setupbodyfont[iwona-medium,8pt]

\mainlanguage[de]

\setuptolerance[tolerant,stretch]

\setuppagenumbering[location={footer,right},alternative=singlesided]%,alternative=doublesided]

\setupcaption[figure][number=no]

\setupwhitespace[medium]

\definepapersize[HochformatSeite]
    [width=70mm,
     height=110mm]

\definepapersize[Mypaper]
		[width=350mm,
		 height=110mm]

\setuppapersize[HochformatSeite][Mypaper]

\setuplayout
    [topspace=5.0mm,
     height=middle,
     header=0mm,
     footer=3mm,
     backspace=5.0mm,
     width=middle,
     margin=0mm,
     marking=on,
     location=middle]

\setuppaper[nx=5,ny=1,dx=0pt,dy=0pt]
\setuparranging[XY]

\setupTABLE[column][1][align=right,width=30mm,frame=off]
\setupTABLE[column][2][align=left,width=30mm,frame=off]

\defineseparatedlist
	[Busstopdata]
	[command=\FillIn,
   separator={;}]

\define[4]\FillIn%
	{\page
    {\tfc\bf {#1}}
    \godown[2\lineheight]%[5mm]
    \startplacefigure
        [location=center,title=,number=]
        {\externalfigure[dummy][height=60mm,width=60mm]}
    \stopplacefigure
    \godown[5mm]
    \bTABLE
        \bTR \bTD Winkel zu Nord: \eTD \bTD {#4}° \eTD \eTR
        \bTR \bTD GPS-Koordinaten: \eTD \bTD {#2} \eTD \eTR
        \bTR \bTD Höhe: \eTD \bTD {#3} m \eTD \eTR
    \eTABLE
    \page}

\processseparatedfile[Busstopdata][stops.dat]

[-- Attachment #4: Type: text/plain, Size: 62 bytes --]



May be somebody can give me a hint how to solve this.

Willi

[-- Attachment #5: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Fwd:  Placement of figures
  2022-01-13 17:29 Placement of figures Willi Egger via ntg-context
@ 2022-01-24 22:58 ` Willi Egger via ntg-context
  0 siblings, 0 replies; 2+ messages in thread
From: Willi Egger via ntg-context @ 2022-01-24 22:58 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Willi Egger


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

Hi,

I spent this evening again on this issue. It appears that it does not matter, whether the pages are made up with means of the \FilliIn-macro or typed completely page by page. I also tried to use the layer-mechanism. All attempts result in the same misplacement:

odd side of the paper: page 4,14,24, have all the \framed placed considerably lower than the rest
even side of the paper: page 6,16,26 are placed considerably higher than the rest of the pages.

I have really no clue what this is about. — Unfortunately I can not print the book in this way, the movement of the pictures is too visible.

I would really appreciate any hint for improvement.

KR
Willi

> Begin forwarded message:
> 
> From: Willi Egger via ntg-context <ntg-context@ntg.nl <mailto:ntg-context@ntg.nl>>
> Subject: [NTG-context] Placement of figures
> Date: 13 January 2022 at 18:29:25 CET
> To: mailing list for ConTeXt users <ntg-context@ntg.nl <mailto:ntg-context@ntg.nl>>
> Cc: Willi Egger <context@boede.nl <mailto:context@boede.nl>>
> Reply-To: mailing list for ConTeXt users <ntg-context@ntg.nl <mailto:ntg-context@ntg.nl>>
> 
> Hi all,
> 
> I have a project with my brother in which 5 foto’s are placed with the XY arrangement in a row. Now we see, that the floats are not placed all on the correct position. I tried all kind of things, but I am not able to fix them in the desired position. — When using the key location=top, all figures are placed correctly. This does not work with location=center.
> 
> I attach the sources in this mai and will send the compiled file in a next mail.


> 
> 
> May be somebody can give me a hint how to solve this.
> 
> Willi___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
> 
> maillist : ntg-context@ntg.nl <mailto:ntg-context@ntg.nl> / http://www.ntg.nl/mailman/listinfo/ntg-context <http://www.ntg.nl/mailman/listinfo/ntg-context>
> webpage  : http://www.pragma-ade.nl <http://www.pragma-ade.nl/> / http://context.aanhet.net <http://context.aanhet.net/>
> archive  : https://bitbucket.org/phg/context-mirror/commits/ <https://bitbucket.org/phg/context-mirror/commits/>
> wiki     : http://contextgarden.net <http://contextgarden.net/>
> ___________________________________________________________________________________


[-- Attachment #1.2.1: Type: text/html, Size: 4774 bytes --]

[-- Attachment #1.2.2: stops.dat --]
[-- Type: application/octet-stream, Size: 234 bytes --]

Kienastenwies;47.355100 / 8.600956;621.8;217
Zweiackerstrasse;47.356964 / 8.598041;619.8;229
Loorenstrasse;47.357020 / 8.598115;602.5;159
Berghaldenstrasse;47.358696 / 8.589995;601.7;167
Zentrum Witikon;47.358520 / 8.586097;584.6;176

[-- Attachment #1.2.3: Type: text/html, Size: 501 bytes --]

[-- Attachment #1.2.4: test-placefigures.tex --]
[-- Type: application/octet-stream, Size: 1587 bytes --]

% ConTeXt file
% filename: test-placefigures.tex

\usemodule[t][folding]
\useMPlibrary[dum]
\usemodule[database]


\usetypescriptfile[iwona-medium]
\usetypescript[iwona-medium]
\setupbodyfont[iwona-medium,8pt]

\mainlanguage[de]

\setuptolerance[tolerant,stretch]

\setuppagenumbering[location={footer,right},alternative=singlesided]%,alternative=doublesided]

\setupcaption[figure][number=no]

\setupwhitespace[medium]

\definepapersize[HochformatSeite]
    [width=70mm,
     height=110mm]

\definepapersize[Mypaper]
		[width=350mm,
		 height=110mm]

\setuppapersize[HochformatSeite][Mypaper]

\setuplayout
    [topspace=5.0mm,
     height=middle,
     header=0mm,
     footer=3mm,
     backspace=5.0mm,
     width=middle,
     margin=0mm,
     marking=on,
     location=middle]

\setuppaper[nx=5,ny=1,dx=0pt,dy=0pt]
\setuparranging[XY]

\setupTABLE[column][1][align=right,width=30mm,frame=off]
\setupTABLE[column][2][align=left,width=30mm,frame=off]

\defineseparatedlist
	[Busstopdata]
	[command=\FillIn,
   separator={;}]

\define[4]\FillIn%
	{\page
    {\tfc\bf {#1}}
    \godown[2\lineheight]%[5mm]
    \startplacefigure
        [location=center,title=,number=]
        {\externalfigure[dummy][height=60mm,width=60mm]}
    \stopplacefigure
    \godown[5mm]
    \bTABLE
        \bTR \bTD Winkel zu Nord: \eTD \bTD {#4}° \eTD \eTR
        \bTR \bTD GPS-Koordinaten: \eTD \bTD {#2} \eTD \eTR
        \bTR \bTD Höhe: \eTD \bTD {#3} m \eTD \eTR
    \eTABLE
    \page}

\processseparatedfile[Busstopdata][stops.dat]

[-- Attachment #1.2.5: Type: text/html, Size: 1601 bytes --]

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

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2022-01-24 22:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-13 17:29 Placement of figures Willi Egger via ntg-context
2022-01-24 22:58 ` Fwd: " Willi Egger via ntg-context

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