ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Mojca Miklavec <mojca.miklavec.lists@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: rotated (landscape) pages in portrait document
Date: Mon, 4 Oct 2010 00:57:54 +0200	[thread overview]
Message-ID: <AANLkTinESM7obqNNhnBb0gkmB3VdO2FM+rieka12JpVj@mail.gmail.com> (raw)
In-Reply-To: <14C8D292-66AB-410E-A5C8-9015B2DB8950@gmail.com>

On Fri, Oct 1, 2010 at 18:12, Wolfgang Schuster wrote:
>
> Am 01.10.2010 um 17:41 schrieb Mojca Miklavec:
>
>> Dear list,
>>
>> First one question: what is the MKIV-way of doing something like
>>
>> \startbuffer[a]
>> % set text width for formula somehow
>> \startformula\startalign
>> \NC a \NC = b \NR
>> \stopalign\stopformula
>> \stopbuffer
>>
>> \framed{\rotate[rotation=90]{\externalfigure[\jobname-a.tmp]}}
>>
>> possibly adjusting width of formula to actual width (even if that is
>> done manually)?
>
>
> Something like this?
>
> \startbuffer[a]
> \startTEXpage[width=\textheight]
> \startformula\startalign
> \NC a \NC = b \NR
> \stopalign\stopformula
> \stopTEXpage
> \stopbuffer
>
> \starttext
> \framed{\rotate[rotation=90]{\getbuffer[a]}}
> \stoptext

Nasty!

I would never even think that something like
    \rotate[rotation=90]{\startTEXpage[width=5cm] \input tufte \stopTEXpage}
would work.

I didn't need the width= parameter (in fact I wanted to have a
narrower formula, so I'm glad that this worked ...).

Related to your second suggestion (I still like formula for some
reason) ... do you have any idea why the spacing around formula is
broken? If I use \startTEXpage[width=...] or when I draw a frame
around formula the spacing is OK, only in this example it seems as if
formula was infinitely thin. A bug?

Thanks a lot,
    Mojca


\startbuffer[a]
\startTEXpage
\startformula\startalign[n=6,align={middle,middle,right,middle,left,left}]
\NC l \NC\hbox to 1em{}\NC m_l \NC\hbox to 1em{}\NC \text{orb.}\hbox
to 2em{} \NC Y_{lm}\NR
\NC 0 \NC\NC 0    \NC\NC s           \NC \frac{1}{2}\sqrt{\frac{
1}{π}}                     \NR
\NC 1 \NC\NC 0    \NC\NC p_z         \NC \frac{1}{2}\sqrt{\frac{
3}{π}}\frac{z}{r}          \NR
\NC 1 \NC\NC \pm1 \NC\NC p_x         \NC \frac{1}{2}\sqrt{\frac{
3}{π}}\frac{x}{r}          \NR
\NC   \NC\NC      \NC\NC p_y         \NC \frac{1}{2}\sqrt{\frac{
3}{π}}\frac{y}{r}          \NR
\NC 2 \NC\NC 0    \NC\NC d_{z^2}     \NC \frac{1}{4}\sqrt{\frac{
5}{π}}\frac{3z^2-r^2}{r^2} \NR
\NC 2 \NC\NC \pm1 \NC\NC d_{xz}      \NC
\frac{1}{2}\sqrt{\frac{15}{π}}\frac{xz}{r^2}       \NR
\NC   \NC\NC      \NC\NC d_{yz}      \NC
\frac{1}{2}\sqrt{\frac{15}{π}}\frac{yz}{r^2}       \NR
\NC 2 \NC\NC \pm2 \NC\NC d_{xy}      \NC
\frac{1}{2}\sqrt{\frac{15}{π}}\frac{xy}{r^2}       \NR
\NC   \NC\NC      \NC\NC d_{x^2-y^2} \NC
\frac{1}{4}\sqrt{\frac{15}{π}}\frac{x^2-y^2}{r^2}  \NR
\stopalign\stopformula
\stopTEXpage
\stopbuffer

\starttext

\bTABLE[orientation=90,width=\textwidth,align=lohi]
   \bTR
       \bTD
           \externalfigure[cow][width=10cm]
       \eTD
   \eTR
   \bTR
       \bTD\strut
           \getbuffer[a]
       \eTD
   \eTR
\eTABLE

\framed{\getbuffer[a]}

\stoptext
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2010-10-03 22:57 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-01 15:41 Mojca Miklavec
2010-10-01 16:12 ` Wolfgang Schuster
2010-10-03 22:57   ` Mojca Miklavec [this message]
2010-10-03 23:59     ` Hans Hagen
2010-10-04 13:37       ` Mojca Miklavec
2010-10-01 16:26 ` Wolfgang Schuster

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AANLkTinESM7obqNNhnBb0gkmB3VdO2FM+rieka12JpVj@mail.gmail.com \
    --to=mojca.miklavec.lists@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).