Re: [NTG-context] rotating some pages of a pdf

2017-01-04 Thread Cesar Romani

Thanks, it works fine.

I noticed that the resolution of the rotated pages decreases. Is there
any possibility to maintain or increase the resolution of the rotated
pages?

Many thanks in advance,

--
Cesar

___
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
___

Re: [NTG-context] rotating some pages of a pdf

2017-01-04 Thread Hans Hagen

On 1/4/2017 9:31 PM, Cesar Romani wrote:

I'm using the following code, rotate.tex, to rotate all the pages of
file.pdf, using: context --input=file.pdf --rotation=45 rotate.pdf

rotate.tex
==
\getfiguredimensions [\getdocumentargument{input}]
\starttext
  \dorecurse{\noffigurepages}
{\startTEXpage
  \externalfigure
[\getdocumentargument{input}]
[page=\recurselevel,
 orientation=\getdocumentargument{rotation}]
\stopTEXpage}
\stoptext

How could I use this code to rotate, say, the page five, 7º clockwise,
and the page twenty, 15º counterclockwise?


\starttext

  \dorecurse{\noffigurepages}
{\startTEXpage
  \doifelsesomething{\getdocumentargument{r\recurselevel}} {%
  \externalfigure
[\getdocumentargument{input}]
[page=\recurselevel,
 orientation=\getdocumentargument{r\recurselevel}]
} {%
  \externalfigure
[\getdocumentargument{input}]
[page=\recurselevel,
 orientation=\getdocumentargument{rotation}]
}%
\stopTEXpage}

\stoptext


--r5=7 --r20=15 --rotation=45

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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
___

[NTG-context] rotating some pages of a pdf

2017-01-04 Thread Cesar Romani

I'm using the following code, rotate.tex, to rotate all the pages of
file.pdf, using: context --input=file.pdf --rotation=45 rotate.pdf

rotate.tex
==
\getfiguredimensions [\getdocumentargument{input}]
\starttext
  \dorecurse{\noffigurepages}
{\startTEXpage
  \externalfigure
[\getdocumentargument{input}]
[page=\recurselevel,
 orientation=\getdocumentargument{rotation}]
\stopTEXpage}
\stoptext

How could I use this code to rotate, say, the page five, 7º clockwise,
and the page twenty, 15º counterclockwise?

Many thanks in advance,

--
Cesar

___
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
___

Re: [NTG-context] floatcombination alignment has changed?

2017-01-04 Thread Christoph Reller
Hi,

I have come up with a simpler MWE which shows the problem more explicitly:

\setupcaptions[number=no]

\starttext

\startplacefigure[location=right]
  \startfloatcombination
\placefigure{A Cow}{\externalfigure[cow.pdf]}
\placefigure{Another Cow}{\externalfigure[cow.pdf]}
  \stopfloatcombination
\stopplacefigure
\input ward

\startplacefigure[location=right,title=A Single Cow]
  \externalfigure[cow.pdf]
\stopplacefigure
\input ward

\stoptext

In the latest version of ConTeXt, the floatcombination is shoved to
the left and overlaps the text which is also shoved to the left and
narrowed down to a minimum. The single figure, on the other hand, is
shoved correctly to the right and the text is at the left.

In earlier versions of ConTeXt, the floatcombination is correctly
shoved to the right. The reason for this change could be line 490 of
pack-com.mkiv (in the definition of \pack_combinations_start_float).
If I delete \dontleavehmode from this line then the correct layout is
restored.

Since I don't want to maintain my own version of ConTeXt, I very much
would appreciate If anyone could tell me how to get the correct layout
back, or fix this issue in ConTeXt.

Your effort is genuinely appreciated!

Christoph
___
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
___