Re: [NTG-context] recursion in a table

2022-05-01 Thread Aditya Mahajan via ntg-context
On Sun, 1 May 2022, Henning Hraban Ramm via ntg-context wrote:

> Hi,
> I was playing with the example from 
> https://wiki.contextgarden.net/Scaling_Rotating_Mirroring_Clipping#Location_parameter
>  
> and tried to put it in a tabulate:
> 
> 
> \useMPlibrary[dum]
> \setupexternalfigures[width=3em,height=2em,frame=on,]
> 
> %\def\TXT{\ruledhbox{\bf(XyX)}}
> \def\TXT{\externalfigure[pic]}
> 
> \starttabulate[|l|l|l|l|l|l|]
>  \NC\NC normal\NC depth\NC fit\NC broad\NC high\NC\NR
>  \HL
> \dostepwiserecurse{0}{359}{45}{%
> %\expanded{\setuprotate[rotation=\recurselevel]}
>  \NC{\expanded{\recurselevel}˚}%

Untested, but I think that you might need:

\expanded{\NC \recurselevel \noexpand\NC ... }

> This works, but \recurselevel is always 0. I know I must expand it (like 
> in the original example), but I can’t make it work within the tabulation.
> In the first column, \expanded{\recurselevel} stays 0, and 
> rotation=\expanded{\recurselevel} gives an error, while the \setuprotate 
> line has no effect (if I remove "rotation=\recurselevel", of course).
> 
> How would that work?

Remind me of a more-than-a-decade-old discussion on the mailing list, 
summarized here:

https://adityam.github.io/context-blog/post/tex-programming/

> Also, \HL doesn’t work at the end, and the second line of the error 
> message makes no sense:

I find that in such cases, using Lua (CLD) is the simplest solution

Aditya___
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] recursion in a table

2022-05-01 Thread Henning Hraban Ramm via ntg-context

Hi,
I was playing with the example from 
https://wiki.contextgarden.net/Scaling_Rotating_Mirroring_Clipping#Location_parameter 
and tried to put it in a tabulate:



\useMPlibrary[dum]
\setupexternalfigures[width=3em,height=2em,frame=on,]

%\def\TXT{\ruledhbox{\bf(XyX)}}
\def\TXT{\externalfigure[pic]}

\starttabulate[|l|l|l|l|l|l|]
\NC\NC normal\NC depth\NC fit\NC broad\NC high\NC\NR
\HL
\dostepwiserecurse{0}{359}{45}{%
%\expanded{\setuprotate[rotation=\recurselevel]}
\NC{\expanded{\recurselevel}˚}%

\NC{\ruledhbox{X\rotate[location=normal,rotation=\recurselevel]{\TXT}X}}%
\NC{\ruledhbox{X\rotate[location=depth,rotation=\recurselevel] 
{\TXT}X}}%
\NC{\ruledhbox{X\rotate[location=fit,rotation=\recurselevel] 
{\TXT}X}}%
\NC{\ruledhbox{X\rotate[location=broad,rotation=\recurselevel] 
{\TXT}X}}%
\NC{\ruledhbox{X\rotate[location=high,rotation=\recurselevel] 
{\TXT}X}}%

  \NC\NR}
%\HL % error
\stoptabulate


This works, but \recurselevel is always 0. I know I must expand it (like 
in the original example), but I can’t make it work within the tabulation.
In the first column, \expanded{\recurselevel} stays 0, and 
rotation=\expanded{\recurselevel} gives an error, while the \setuprotate 
line has no effect (if I remove "rotation=\recurselevel", of course).


How would that work?

Also, \HL doesn’t work at the end, and the second line of the error 
message makes no sense:

"""
I expect to see \noalign only after the \cr of an alignment.
Proceed, and I'll ignore this case.
mtx-context | fatal error: return code: 1
"""

Hraban
___
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] upload

2021-10-22 Thread Hans Hagen via ntg-context

On 10/21/2021 9:13 PM, Pablo Rodriguez via ntg-context wrote:

On 10/21/21 8:04 PM, Hans Hagen via ntg-context wrote:

Hi,

I cleaned up some more backend code.  There were some mails about dates
and such and although the date field in setupinteraction works ok a more
drastic overload is doen with directives. The reason is that the fact
that we can set the date (and traler) is only because it permits
generating pdf files that can be compared. No date as a bad idea anyway.

\setupinteraction[title=My Title]
% \enabledirectives[backend.date=2034-06-07]


Many thanks for the new version, Hans.

Is there a way to add time and timezone in backend.date?


Pablo : transparencies should work again (wrong alias fixed).


Many thanks for this fix too.

Sorry for insisting, but could you check what is wrong with an extra
blank space in rotated imposition
(https://mailman.ntg.nl/pipermail/ntg-context/2021/103909.html)?

.. it was not really a minimal example ...

\showframe

\starttext
\topskip4cm
\rotate[rotation=90] 
{\externalfigure[A3page.pdf][page=1,width=\textheight]}\page


\rotate[rotation=270]{\externalfigure[A3page.pdf][page=2,width=\textheight]}\page
\rotate[rotation=90] 
{\externalfigure[A3page.pdf][page=1,width=\textheight]}\page


\rotate[rotation=270]{\externalfigure[A3page.pdf][page=2,width=\textheight]}\page
\stoptext

so, you need to wrap it, like

\startpagemakeup \rotate[rotation=90] 
{\externalfigure[A3page.pdf][page=1,width=\textheight]}\stoppagemakeup
\startpagemakeup 
\rotate[rotation=270]{\externalfigure[A3page.pdf][page=2,width=\textheight]}\stoppagemakeup
\startpagemakeup \rotate[rotation=90] 
{\externalfigure[A3page.pdf][page=1,width=\textheight]}\stoppagemakeup
\startpagemakeup 
\rotate[rotation=270]{\externalfigure[A3page.pdf][page=2,width=\textheight]}\stoppagemakeup


and not make it 'sort of text that breaks or not across the page'. Now 
it is an interesting question why ... (spoiler: nice animation:)


\starttext
\topskip4cm
\dostepwiserecurse{0}{360}{1}{

\rotate[rotation=#1]{\externalfigure[A3page.pdf][page=1,width=\textheight]}
}
\stoptext

so we probably cross some threshold with some angles and because these 
are basically lines, we then get an interplay woth topskip, maxdepth etc 
(which normally goes unnoticed)


the good news is that you can play with it because rotate is normally 
configured for inline usage (so we get depth and height) you can use the 
location parameter to do otherwise:


% normal default depth fit broad high middle

\starttext
\topskip4cm
\dostepwiserecurse{0}{360}{1}{

\ruledhbox{\rotate[rotation=#1,location=high]{\externalfigure[A3page.pdf][page=1,width=\textheight]}}
}
\stoptext

irr it's actually shown somewhere in a manual but the source also has this

% \dostepwiserecurse{0}{360}{10}
%   {\startlinecorrection[blank]
%\hbox
%      {\expanded{\setuprotate[rotation=\recurselevel]}%
%   \traceboxplacementtrue
%   \hbox to .2\hsize{\hss\ruledhbox{\rotate[location=depth] 
{\ruledhbox{\bfb  (depth)%
%   \hbox to .2\hsize{\hss\ruledhbox{\rotate[location=fit] 
{\ruledhbox{\bfb(fit)%
%   \hbox to .2\hsize{\hss\ruledhbox{\rotate[location=broad] 
{\ruledhbox{\bfb  (broad)%
%   \hbox to 
.2\hsize{\hss\ruledhbox{\rotate[location=normal]{\ruledhbox{\bfb 
(normal)%
%   \hbox to .2\hsize{\hss\ruledhbox{\rotate[location=high] 
{\ruledhbox{\bfb   (high)}

%\stoplinecorrection}

% \def\Test{\ruledhbox{%
% \def\DemoX{\vl\kern.5\emwidth\vl}%
% \kern\emwidth\ruledhpack{\green\rotate[rotation=20] 
{\ruledhpack{\DemoX}}}%
% \kern\emwidth\ruledhpack{\blue \rotate[rotation=0] 
{\ruledhpack{\DemoX}}}%
% \kern\emwidth\ruledhpack{\red  \rotate[rotation=-20] 
{\ruledhpack{\DemoX}}}%
% \kern\emwidth\ruledhpack{\green\rotate[rotation=200] 
{\ruledhpack{\DemoX}}}%
% \kern\emwidth\ruledhpack{\blue \rotate[rotation=180] 
{\ruledhpack{\DemoX}}}%
% \kern\emwidth\ruledhpack{\red 
\rotate[rotation=-200]{\ruledhpack{\DemoX}}}%

% \kern\emwidth}}

% \startTEXpage[offset=10pt,align=middle]
%     \setuprotate[location=fit] \Test \par 
{\infofont\setstrut\strut fit}     \par
%     \setuprotate[location=depth]   \Test \par 
{\infofont\setstrut\strut depth}   \par
%     \setuprotate[location=broad]   \Test \par 
{\infofont\setstrut\strut broad}   \par
%     \setuprotate[location=high]\Test \par 
{\infofont\setstrut\strut high}    \par
%     \setuprotate[location=middle]  \Test \par 
{\infofont\setstrut\strut middle}  \par
%     \setuprotate[location=default] \Test \par 
{\infofont\setstrut\strut default} \par

% \stopTEXpage

so, not a bug but a features (that code hasn't been touched for ages, 
apart from maybe some lmtx interface adaptation), and if it's not in the 
wiki .. you know what to do now


Hans

-

Re: [NTG-context] Is it possible to define a custom imposition schema? (sure it is, but how?)

2012-05-29 Thread Willi Egger
Hi Marco,

If I understand correctly what you need is a system which is basically based on 
booklet-printing but each booklet should be restricted to 16 pages.
In this case you might try 

\setuparranging[2*2*4]

This scheme put two pages on the front and two pages on the backside of a sheet 
of paper. Then it uses 4 sheets to complete the section.

Willi
On May 29, 2012, at 7:06 PM, Marco Pessotto wrote:

> 
> Hello there.
> 
> I'd need a custom imposition schema, just like the 2*4*2, but first the
> sheets will be folded, then inserted in signatures of 16 pages, and then
> finally bound. (They said the machine can fold only one sheet).
> 
> I came up with 3 "solutions" (or 3 hacks, as you wish):
> 
> 1. psutils/pstops 
> 
> 2. layers
> 
> 3. hack page-imp.mkiv
> 
> 
> 1. The first solution would be the faster, but after spending a day on
> it I gave up, because I have endless issue with cropped pages, paper
> dimension not correctly set, and I only scratched the surface. I don't
> know if exists some support for psutils (doesn't look so), but I have
> the feeling that software is pretty dead.
> 
> 2. Layers: I'm attaching the code below. Does it seem sensible, or is
> there a better way to do it? (I'll create a template from that, and will
> loop over every 16 pages with the usual perl hack). It seems to work,
> even if visually it looks a bit shifted to right (I can adjust
> it manually). [An alternate approach could be just various \hbox, but
> maybe the layer solution is better for absolute positioning]
> 
> 3. page-imp.mkiv would be the best solution (obviously). I've dug a bit
> into the code, but I'm in deep waters. I can't understand where the
> sequence of the pages is defined. the \pusharrangedpageSCHEMA seems just
> to define the position inside the page, not the sequence of the shipped
> out page. Also, what are \c_page_marks_nx and \c_page_marks_ny?  Any
> hint about how this machinery works?
> 
> 
> Thanks
> 
> Best wishes
> 
> 
> % start draft
> 
> \definepapersize[carta][width=320mm,height=440mm]
> \setuppapersize[carta][carta]
> \setuplayout
>   [topspace=0pt,
>   backspace=0pt,
>   header=0pt,
>   footer=0pt,
>   margin=0pt,
>   marking=on,
>   width=320mm,
>   height=440mm,
>   location=middle]
> 
> \setuppagenumbering[alternative=doublesided,location=]
> \setuprotate[location=depth,rotation=180]
> 
> % \showframe
> 
> \starttext
> 
> % page one
> 
> \definelayer[PageLayer1][position=no]
> \setuplayer
>   [PageLayer]
>   [preset=topleft,
>height=\paperheight,width=\paperwidth]
> 
> \setlayer[PageLayer1][x=0mm,y=0mm]{
> \rotate{
>  \externalfigure[libretto.pdf][page=13]
>}
> }
> \setlayer[PageLayer1][x=160mm,y=0mm]{
> \rotate{
>  \externalfigure[libretto.pdf][page=4]
>}
> }
> \setlayer[PageLayer1][x=0mm,y=220mm]{
>  \externalfigure[libretto.pdf][page=16]
> }
> \setlayer[PageLayer1][x=160mm,y=220mm]{
>  \externalfigure[libretto.pdf][page=1]
> }
> \placelayer[PageLayer1]
> 
> %%% page 2
> 
> \definelayer[PageLayer2][position=no]
> \setuplayer
>   [PageLayer]
>   [preset=topleft,
>option=test,
>height=\paperheight,width=\paperwidth]
> 
> \setlayer[PageLayer2][x=0mm,y=0mm]{
> \rotate{
>  \externalfigure[libretto.pdf][page=3]
>}
> }
> \setlayer[PageLayer2][x=160mm,y=0mm]{
> \rotate{
>  \externalfigure[libretto.pdf][page=14]
>}
> }
> \setlayer[PageLayer2][x=0mm,y=220mm]{
>  \externalfigure[libretto.pdf][page=2]
> }
> \setlayer[PageLayer2][x=160mm,y=220mm]{
>  \externalfigure[libretto.pdf][page=15]
> }
> \placelayer[PageLayer2]
> 
> %page 3
> 
> \definelayer[PageLayer3][position=no]
> \setuplayer
>   [PageLayer]
>   [preset=topleft,
>option=test,
>height=\paperheight,width=\paperwidth]
> 
> \setlayer[PageLayer3][x=0mm,y=0mm]{
> \rotate{
>  \externalfigure[libretto.pdf][page=9]
>}
> }
> \setlayer[PageLayer3][x=160mm,y=0mm]{
> \rotate{
>  \externalfigure[libretto.pdf][page=8]
>}
> }
> \setlayer[PageLayer3][x=0mm,y=220mm]{
>  \externalfigure[libretto.pdf][page=12]
> }
> \setlayer[PageLayer3][x=160mm,y=220mm]{
>  \externalfigure[libretto.pdf][page=5]
> }
> \placelayer[PageLayer3]
> 
> % page 4
> \definelayer[PageLayer4][position=no]
> \setuplayer
>   [PageLayer]
>   [preset=topleft,
>option=test,
>height=\paperheight,width=\paperwidth]
> 
> \setlayer[PageLayer4][x=0mm,y=0mm]{
> \rotate{
>  \externalfigure[libretto.pdf][page=7]
>}
> }
> \setlayer[PageLayer4][x=160mm,y=0mm]{
> \rotate{
>  

[NTG-context] Is it possible to define a custom imposition schema? (sure it is, but how?)

2012-05-29 Thread Marco Pessotto

Hello there.

I'd need a custom imposition schema, just like the 2*4*2, but first the
sheets will be folded, then inserted in signatures of 16 pages, and then
finally bound. (They said the machine can fold only one sheet).

I came up with 3 "solutions" (or 3 hacks, as you wish):

1. psutils/pstops 

2. layers

3. hack page-imp.mkiv


1. The first solution would be the faster, but after spending a day on
it I gave up, because I have endless issue with cropped pages, paper
dimension not correctly set, and I only scratched the surface. I don't
know if exists some support for psutils (doesn't look so), but I have
the feeling that software is pretty dead.

2. Layers: I'm attaching the code below. Does it seem sensible, or is
there a better way to do it? (I'll create a template from that, and will
loop over every 16 pages with the usual perl hack). It seems to work,
even if visually it looks a bit shifted to right (I can adjust
it manually). [An alternate approach could be just various \hbox, but
maybe the layer solution is better for absolute positioning]

3. page-imp.mkiv would be the best solution (obviously). I've dug a bit
into the code, but I'm in deep waters. I can't understand where the
sequence of the pages is defined. the \pusharrangedpageSCHEMA seems just
to define the position inside the page, not the sequence of the shipped
out page. Also, what are \c_page_marks_nx and \c_page_marks_ny?  Any
hint about how this machinery works?


Thanks

Best wishes


% start draft

\definepapersize[carta][width=320mm,height=440mm]
\setuppapersize[carta][carta]
\setuplayout
   [topspace=0pt,
   backspace=0pt,
   header=0pt,
   footer=0pt,
   margin=0pt,
   marking=on,
   width=320mm,
   height=440mm,
   location=middle]

\setuppagenumbering[alternative=doublesided,location=]
\setuprotate[location=depth,rotation=180]

% \showframe

\starttext

% page one

\definelayer[PageLayer1][position=no]
\setuplayer
   [PageLayer]
   [preset=topleft,
height=\paperheight,width=\paperwidth]

\setlayer[PageLayer1][x=0mm,y=0mm]{
\rotate{
  \externalfigure[libretto.pdf][page=13]
}
}
\setlayer[PageLayer1][x=160mm,y=0mm]{
\rotate{
  \externalfigure[libretto.pdf][page=4]
}
}
\setlayer[PageLayer1][x=0mm,y=220mm]{
  \externalfigure[libretto.pdf][page=16]
}
\setlayer[PageLayer1][x=160mm,y=220mm]{
  \externalfigure[libretto.pdf][page=1]
}
\placelayer[PageLayer1]

%%% page 2

\definelayer[PageLayer2][position=no]
\setuplayer
   [PageLayer]
   [preset=topleft,
option=test,
height=\paperheight,width=\paperwidth]

\setlayer[PageLayer2][x=0mm,y=0mm]{
\rotate{
  \externalfigure[libretto.pdf][page=3]
}
}
\setlayer[PageLayer2][x=160mm,y=0mm]{
\rotate{
  \externalfigure[libretto.pdf][page=14]
}
}
\setlayer[PageLayer2][x=0mm,y=220mm]{
  \externalfigure[libretto.pdf][page=2]
}
\setlayer[PageLayer2][x=160mm,y=220mm]{
  \externalfigure[libretto.pdf][page=15]
}
\placelayer[PageLayer2]

%page 3

\definelayer[PageLayer3][position=no]
\setuplayer
   [PageLayer]
   [preset=topleft,
option=test,
height=\paperheight,width=\paperwidth]

\setlayer[PageLayer3][x=0mm,y=0mm]{
\rotate{
  \externalfigure[libretto.pdf][page=9]
}
}
\setlayer[PageLayer3][x=160mm,y=0mm]{
\rotate{
  \externalfigure[libretto.pdf][page=8]
}
}
\setlayer[PageLayer3][x=0mm,y=220mm]{
  \externalfigure[libretto.pdf][page=12]
}
\setlayer[PageLayer3][x=160mm,y=220mm]{
  \externalfigure[libretto.pdf][page=5]
}
\placelayer[PageLayer3]

% page 4
\definelayer[PageLayer4][position=no]
\setuplayer
   [PageLayer]
   [preset=topleft,
option=test,
height=\paperheight,width=\paperwidth]

\setlayer[PageLayer4][x=0mm,y=0mm]{
\rotate{
  \externalfigure[libretto.pdf][page=7]
}
}
\setlayer[PageLayer4][x=160mm,y=0mm]{
\rotate{
  \externalfigure[libretto.pdf][page=10]
}
}
\setlayer[PageLayer4][x=0mm,y=220mm]{
  \externalfigure[libretto.pdf][page=6]
}
\setlayer[PageLayer4][x=160mm,y=220mm]{
  \externalfigure[libretto.pdf][page=11]
}
\placelayer[PageLayer4]

\stoptext




-- 
Marco

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


Re: [NTG-context] Two rotates on the same line

2011-08-17 Thread Hans Hagen

On 17-8-2011 12:40, Cecil Westerhof wrote:

I am still expanding my knowledge of ConTeXt. At the moment I am playing
with \rotate. When using:
 \rotate[rotation=42]{Tekst kan ook worden geroteerd.}
 \rotate[rotation=-42]{In elke richting die je maar wilt.}

This is displayed as:
 /
 \

I would like it displayed as:
 /\


see other mails

you can also set 'location' to one of

depth fit broad high middle default

an example from the source:

% \dostepwiserecurse{0}{360}{10}
%   {\startlinecorrection[blank]
%\hbox
%  {\expanded{\setuprotate[rotation=\recurselevel]}%
%   \traceboxplacementtrue
%   \hbox to .2\hsize{\hss\ruledhbox{\rotate[location=depth] 
{\ruledhbox{\bfb  (depth)%
%   \hbox to .2\hsize{\hss\ruledhbox{\rotate[location=fit] 
{\ruledhbox{\bfb(fit)%
%   \hbox to .2\hsize{\hss\ruledhbox{\rotate[location=broad] 
{\ruledhbox{\bfb  (broad)%
%   \hbox to 
.2\hsize{\hss\ruledhbox{\rotate[location=normal]{\ruledhbox{\bfb 
(normal)%
%   \hbox to .2\hsize{\hss\ruledhbox{\rotate[location=high] 
{\ruledhbox{\bfb   (high)}

%\stoplinecorrection}

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] ConTeXt-ifying Kile

2008-01-02 Thread Matija Šuklje
ariable[name]
# \plusone
# \plustwo
\position(numbers){text}
\positiontext[name]{text}
# \prependtoks
# \processaction
# \processallactionsinset
\processblocks[names][names]
# \processcommacommand
# \processcommalist
# \processfirstactioninset
\processpage[names][yes|no]
# \processXMLbuffer
# \processXMLelement
# \processXMLfile
# \processXMLfilegrouped
# \product
\program[name]
# \project
# \protect
\publication[reference]
\quotation{text}
\quote{text}
\ran{text}
# \readfile
\ref[t|p|r|s|e][reference]
\reference[reference]{text}
\referral[options]
\referraldate
\register[text]{register+register+register}
\reservefloat[options][text][references]{text}
\reset[names]
# \resetlayer
\resetmarking[name]
\rightaligned{text}
\Romannumerals{text}
\romannumerals{text}
\rotate[settings]{text}
# \saveXMLasdata
# \saveXMLdata
# \saveXMLelement
# \sbox
\scale[options]{text}
# \scratchbox
# \scratchcounter
# \scratchdimen
# \scratchskip
\screen
\section[references]{text}
\seeregister[text]{text}{text+text+text}
\selectblocks[names][names][critererium]
\selectpaper[options]
\selectversion
# \setcollector
# \setevalue
# \setevariables
# \setflag
# \setfontstrut
# \setgvalue
# \setgvariables
# \setlayer
# \setlayerframed
# \setlocalhsize
# \setstrut
\settextvariable[name]{text}
\setupalign[options]
\setuparranging[options]
# \setupattachments
\setupbackground[options]
\setupbackgrounds[position][position][state][settings]
\setupblackrules[options]
\setupblank[options]
\setupblock[names][options]
\setupbodyfont[options]
\setupbodyfontenvironment[settings][settings]
\setupbottom[settings][settings]
\setupbottomtexts[text|margin|edge][text|section|date|mark|pagenumber][text|section|date|mark|pagenumber]
\setupbuffer[name][options]
\setupbuttons[state][settings]
\setupcapitals[title=yes|no][sc=yes|no]
\setupcaption[name][settings]
\setupcaptions[options]
\setupclipping[options]
\setupcolor[name]
\setupcolors[options]
\setupcolumns[options]
\setupcombinations[options]
\setupcombinedlist[name][levels and options]
\setupcomment[options]
\setupdescriptions[names][options]
# \setupencoding
\setupenumerations[names][settings]
\setupexternalfigures[options]
\setupfield[name][label|horizontal|vertical|frame][settings]
\setupfields[names][reset|label|horizontal|vertical|frame][options][settings][settings]
\setupfillinlines[options]
\setupfillinrules[options]
\setupfloat[name][options]
\setupfloats[options]
\setupfloatsplitting[options]
# \setupFLOWcharts
# \setupFLOWlines
# \setupFLOWshapes
# \setupfontsynonym
\setupfooter[text|margin|edge][options]
\setupfootertexts[text|margin|edge][text|section|date|mark|pagenumber][text|section|date|mark|pagenumber]
\setupfootnotedefinition[settings]
\setupfootnotes[options]
\setupforms[method=HTML|FDF]
\setupformulae[options]
\setupframed[options]
\setupframedtexts[options]
\setuphead[sections][options]
\setupheader[text|margin|edge][options]
\setupheadertexts[text|margin|edge][text|section|date|mark|pagenumber][text|section|date|mark|pagenumber]
\setupheadnumber[section][number|+number|-number]
\setupheads[options]
\setupheadtext[language code][name=text]
\setuphyphenmark[sign=-|--|---|( )|=|/]
\setupindentations[names][options]
\setupindenting[none|small|medium|big|next|first|normal|odd|even|dimension]
\setupinmargin[left|right|number][options]
\setupinteraction[options]
\setupinteractionbar[options]
\setupinteractionscreen[options]
\setupinterlinespace[reset|small|medium|auto|big|on|off][options]
\setupitemgroup[name][number|each][options][options]
\setupitems[options]
\setuplabeltext[language code][name=text]
\setuplanguage[language code][settings]
# \setuplayer
\setuplayout[options]
\setuplegend[options]
\setuplinenumbering[options]
\setuplines[options]
\setuplinewidth[dimension]
\setuplist[names][options]
\setupmakeup[name][options]
\setupmarginblocks[options]
\setupmarginrules[level=number|rulethickness=dimension]
\setupmarking[name][options]
\setupnarrower[options]
\setupnumbering[options]
\setupoppositeplacing[options]
\setupoutput[names]
\setuppagenumber[number][state=start|stop|keep]
\setuppagenumbering[options]
\setuppagetransitions[options]
\setuppalet[name]
\setuppaper[options]
\setuppapersize[typesetting papersize][printing papersize]
\setupparagraphnumbering[options]
\setupparagraphs[name][number|each][options]
\setuppositioning[options]
\setupprofiles[options]
\setupprograms[directory=text]
\setuppublications[options]
\setupquote[options]
\setupreferencelist[names][options]
\setupreferencing[options]
\setupregister[singular][name][options]
\setuprotate[options]
\setuprule[name][options]
# \setups
\setupscreens[options]
\setupsection[name][name][options]
\setupsectionblock[name][options]
\setupsorting[name][options]
\setupspacing[broad|packed]
\setupstrut[yes|no|cap|text]
\setupsubpagenumber[options]
\setupsymbolset[name]
\setupsynchronization[state=start|stop]
\setupsynchronizationbar[options]
\setupsynonyms[name][options]
\setupsystem[options]
\setuptab[options]
#

Re: [NTG-context] rotate problem

2005-12-21 Thread Hans Hagen

Henning Hraban Ramm wrote:


Am 2005-12-20 um 23:15 schrieb Hans Hagen:

I'm thinking about utilizing border fonts and how to make  
automatic  frames for use with \framed (I guess that's still too  
hard for me,  but let's see...)



think backgrounds and leaders:

if needed i can add something like Border to supp-fun or so ...

probably some scaling is involved as well


Thank you very much!

I'm just playing around with your code und found that rotate seems to  
set its angle globally:

In
\definesymbol [CC ulp7][\CeltSymbol{81}]
\definesymbol [CC urp7][{\rotate[270]{\CeltSymbol{81}}}]
\definesymbol [CC lrp7][{\rotate[180]{\CeltSymbol{81}}}]
\definesymbol [CC llp7][{\rotate[90]{\CeltSymbol{81}}}]
each of the rotated symbols is rotated 90�

What can I do?


use rotation=270 instead -)

in your case, also play with:

% \dostepwiserecurse{0}{360}{10}
%   {\startlinecorrection[blank]
%\hbox
%  {\expanded{\setuprotate[rotation=\recurselevel]}%
%   \traceboxplacementtrue
%   \hbox to .2\hsize{\hss\ruledhbox{\rotate[location=depth] 
{\ruledhbox{\bfb  (depth)%
%   \hbox to .2\hsize{\hss\ruledhbox{\rotate[location=fit]   
{\ruledhbox{\bfb(fit)%
%   \hbox to .2\hsize{\hss\ruledhbox{\rotate[location=broad] 
{\ruledhbox{\bfb  (broad)%
%   \hbox to 
.2\hsize{\hss\ruledhbox{\rotate[location=normal]{\ruledhbox{\bfb 
(normal)%
%   \hbox to .2\hsize{\hss\ruledhbox{\rotate[location=high]  
{\ruledhbox{\bfb   (high)}

%\stoplinecorrection}

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


Re: [NTG-context] rotated accented character

2005-08-18 Thread Hans Hagen

Mojca Miklavec wrote:



Hello,

I would like to define an accented rotated character e,
"schwagrave". The following definition fails because of two reasons:
- rotate rotates around the middle of the baseline (I would like to
place the rotated e at the same place where it was before)
- buildtextaccent doesn't like the box produced by rotation



there are many ways to rotate ...

% \dostepwiserecurse{0}{360}{10}
%   {\startlinecorrection[blank]
%\hbox
%      {\expanded{\setuprotate[rotation=\recurselevel]}%
%   \traceboxplacementtrue
%   \hbox to .2\hsize{\hss\ruledhbox{\rotate[location=depth] 
{\ruledhbox{\bfb  (depth)%
%   \hbox to .2\hsize{\hss\ruledhbox{\rotate[location=fit]   
{\ruledhbox{\bfb(fit)%
%   \hbox to .2\hsize{\hss\ruledhbox{\rotate[location=broad] 
{\ruledhbox{\bfb  (broad)%
%   \hbox to 
.2\hsize{\hss\ruledhbox{\rotate[location=normal]{\ruledhbox{\bfb 
(normal)%
%   \hbox to .2\hsize{\hss\ruledhbox{\rotate[location=high]  
{\ruledhbox{\bfb   (high)}

%\stoplinecorrection}



-
 Hans Hagen | PRAGMA ADE
 Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-

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


Re: [NTG-context] bug in latest ConTeXt?

2004-07-07 Thread Hans Hagen
Idris Samawi Hamid wrote:
Hi,
Was anyone able to look at this?
:-)

the rotate macro was cleaned up (arb
location=depth|fit|broad|high
% \dostepwiserecurse{0}{360}{10}
%   {\startlinecorrection[blank]
%\hbox
%  {\expanded{\setuprotate[rotation=\recurselevel]}%
%   \traceboxplacementtrue
%   \hbox to .2\hsize{\hss\ruledhbox{\rotate[location=depth] 
{\ruledhbox{\bfb  (depth)%
%   \hbox to .2\hsize{\hss\ruledhbox{\rotate[location=fit]   
{\ruledhbox{\bfb(fit)%
%   \hbox to .2\hsize{\hss\ruledhbox{\rotate[location=broad] 
{\ruledhbox{\bfb  (broad)%
%   \hbox to 
.2\hsize{\hss\ruledhbox{\rotate[location=normal]{\ruledhbox{\bfb 
(normal)%
%   \hbox to .2\hsize{\hss\ruledhbox{\rotate[location=high]  
{\ruledhbox{\bfb   (high)}
%\stoplinecorrection}

Best
Idris
On Fri, 02 Jul 2004 12:51:58 -0600, Idris Samawi Hamid 
<[EMAIL PROTECTED]> wrote:

Hi syndicate,
I have found a serious problem in the latest ConTeXt: when using
\rotate[]{}, \raise does not seem to work probably. Consider the
following example, simplified from a larger macro:
=test-rotate-c.tex
\def\cupd{\leavevmode\rotate[rotation=180]{c}} % ConTeXt dependent!
\def\HAMZAH{\leavevmode\raise.9ex\hbox{\txx\cupd}{}}
\def\AYN   {\leavevmode\raise.9ex\hbox{\txx c}{}}
\def\'{\HAMZAH}
\def\`{\AYN}
\starttext
\`ish\=a\'
\stoptext
=
In ConTeXt-2003.2.11, both the `c' and the rotated `c' appear at
the same height. In the latest ConTeXt the rotated `c' is not as
high as the normal `c'.
Please advise;-)
  Best
  Idris




--
-
 Hans Hagen | PRAGMA ADE
 Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context