Re: [NTG-context] Printing problem

2023-03-17 Thread Pablo Rodriguez via ntg-context
On 3/16/23 12:49, Mikael Sundqvist via ntg-context wrote:
> [...] 
> So, a request: If you have an easy access to a printer, can you print
> this page and report back if all of it comes out, or what is
> happening?

Hi Mikael,

a friend printed the file on a Canon 4235i (from Windows 10 with Acrobat
Reader DC), there were no printing problems and the result is
high-quality output (as I would expect from many ConTeXt-generated
documents).

Just in case it might help,

Pablo

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

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


Re: [NTG-context] rotated headers in natural tables

2023-03-17 Thread Wolfgang Schuster via ntg-context

Henning Hraban Ramm via ntg-context schrieb am 15.03.2023 um 19:15:

Hi!

In my table, I want the header texts to be 90˚ rotated and aligned to 
the bottom of their cell. I couldn’t find an option to do that.

Tried \dontleavehmode or \hfill in my \RtH macro to no avail.
Is it possible?


\define[1]{\RtH}{\rotate{#1}}

\starttext

\setupTABLE[offset=3pt]
\setupTABLE[header][background=color,backgroundcolor=yellow,align=bottom]
\bTABLE
\bTABLEhead
\bTR \bTH\RtH{animal}\eTH \bTH\RtH{size}\eTH \bTH\RtH{weight}\eTH 
\bTH\RtH{average speed}\eTH \eTR


You can change the vertical alignment in a framed (and therefore also
natural tables and extreme tables) with align=high, align=low and 
align=lohi.


\bTR[align={middle,low},strut=no]
    \bTH \dontleavehmode\rotate{animal} \eTH
    \bTH \dontleavehmode\rotate{size} \eTH
    \bTH \dontleavehmode\rotate{weight} \eTH
    \bTH \dontleavehmode\rotate{average speed} \eTH
\eTR

\dontleavehmode is only needed when you set horizontal alignment
(align=middle) and strut=no ensures there is no extra space at the bottom
of the cells (remove the setting to see the difference).

Wolfgang

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

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


Re: [NTG-context] Absolute positioning of \startcombination... \stopcombination

2023-03-17 Thread Keith McKay via ntg-context
Thanks for your reply Pablo. I didn't see it till just now because for 
some reason it ended up in my junk folder, along with a number of other 
ConTeXt messages. You will probably have seen my reply to the list with 
the three solutions, now we have four!


Yep, I know that A4 is the default page size and I always start with 
that but sometimes I play about with page sizes when typesetting and so 
can just change when coding.


In the document I'm working on, some pages will only contain images 
and/or combination of images so I went down the Layers route since this 
also allows me to absolutely position these images on the page.


Thanks again for your help!

Best Wishes

Keith McKay

On 16/03/2023 17:58, Pablo Rodriguez via ntg-context wrote:

On 3/16/23 17:59, Keith McKay via ntg-context wrote:

Hi,

I would like to position a combination of images where the centre of the
combination coincides with the centre of the text area of a page.

Hi Keith,

I think the following sample might achieve what you want:

   \showframe
   \setupexternalfigures[location={default}]
   \setuplayout
 [backspace=2.5cm,
 topspace=1cm,
 height=28cm,
 width=17cm,
 header=0cm,
 footer=0.75cm,
 ]
   \definelayer[test3]
   %[x=.5\paperwidth, y=.5\paperheight]
   [x=.5\textwidth, y=.5\textheight]
   %\setupbackgrounds[page]
   \setupbackgrounds[text]
   [background=test3]
   \starttext
   \setlayer[test3][location={middle}]
  \framed[offset=overlay]{{\startcombination[nx=3,ny=1,distance=15mm]
 {\externalfigure[cow][width=15mm]}{}
 \rotate[rotation=90]{\externalfigure[cow][width=15mm]}{}
 {\externalfigure[cow][width=15mm]}{}
  \stopcombination}}
   \null
   \stoptext

BTW, A4 portrait is the default page size.

\setupbackgrounds is the standard way to place layers.

Page and text centering would require different positions (I have
commented out the option for page centering).

I hope it helps (since I’m not sure I’m getting your point here),

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

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

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

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


Re: [NTG-context] Absolute positioning of \startcombination... \stopcombination

2023-03-17 Thread Keith McKay via ntg-context

Hi,

I've experimented this morning with the solutions suggested by Wolfgang 
and Alan in reply to my post.


The solution is really quite simple as suggested by Wolfgang i.e. 
\centerbox{..}.  I have applied this to the code and I now have three 
different solutions to my initial problem. The Joy of ConTeXt!


Thanks again Wolfgang and Alan.

Best Wishes

Keith McKay

Here is the code showing the three solutions which others may find useful.

\setuppapersize[A4,portrait]%[A4,portrait]

\setuplayout

[backspace=2.5cm,

topspace=1cm,

height=28cm,

width=17cm,

header=0cm,

footer=0.75cm,

]

\setuppagenumbering[state=start,alternative=doublesided,location=margin]

\useMPlibrary [dum]

\starttext

%%% Me %%%

\showframe [text] [text]

\definelayer[test3]

\setlayer[test3][]

\centerbox{

{\startcombination[nx=3,ny=1,distance=15mm,after=,location=middle]

{\externalfigure[dummy]}{}

\rotate[rotation=90]{\externalfigure[dummy]}{}

{\externalfigure[dummy][]}{}

\stopcombination}

}

\flushlayer[test3]

\page

%%% Wolfgang %%%

\centerbox

{\bTABLE[frame=off,offset=7.5mm,align={middle,lohi}]

\bTR

\bTD

\externalfigure[dummy]

\eTD

\bTD

\rotate[rotation=90]{\externalfigure[dummy]}

\eTD

\bTD

\externalfigure[dummy]

\eTD

\eTR

\eTABLE}

\page

%%% Alan %%%

\centerbox{

\startparagraph [align=middle]

\startframed [frame=off,offset=\zeropoint]

\startcombination [nx=3,ny=1,distance=15mm,after=,location=middle]

{\externalfigure[dummy]}{}

\rotate[rotation=90]{\externalfigure[dummy]}{}

{\externalfigure[dummy][]}{}

\stopcombination

\stopframed

\stopparagraph

}

\stoptext

On 16/03/2023 19:50, Keith McKay wrote:

Thanks Wolfgang and Alan! I will experiment with them tomorrow.
Best Wishes
Keith McKay

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

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