ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* text on every page howto
@ 2018-02-02 11:41 dr. Hans van der Meer
  2018-02-02 13:08 ` Otared Kavian
  0 siblings, 1 reply; 2+ messages in thread
From: dr. Hans van der Meer @ 2018-02-02 11:41 UTC (permalink / raw)
  To: NTG ConTeXt


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

I would like to put a (rotated) text on every page in the margin.
Please, how do I accomplish this?

Hans van der Meer



[-- Attachment #1.2: Type: text/html, Size: 1261 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 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

* Re: text on every page howto
  2018-02-02 11:41 text on every page howto dr. Hans van der Meer
@ 2018-02-02 13:08 ` Otared Kavian
  0 siblings, 0 replies; 2+ messages in thread
From: Otared Kavian @ 2018-02-02 13:08 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Hi,

I think the following can solve your problem, but I don’t know whether it is the optimal way to achieve what you are looking for: in any case you can play with the dimensions used here as an example, in order to find the correct location.

Best regards: OK
%% begin rotated-text.tex
\define\myrotatedtext{%
	\rotate[rotation=90]{%
	\scale[width=50mm]{\startcolor[darkred] my rotated text\stopcolor}
	}
	}
	
\definelayer[myrotatedlayer]
	[width=30mm,
	height=100mm,
	repeat=yes]

\setlayer[myrotatedlayer]
	[x=180mm,y=100mm]
	{\myrotatedtext}
		 

\setupbackgrounds[page][background=myrotatedlayer]

\starttext

\input knuth

\stoptext
%% end rotated-text.tex



> On 2 Feb 2018, at 12:41, dr. Hans van der Meer <havdmeer@ziggo.nl> wrote:
> 
> I would like to put a (rotated) text on every page in the margin.
> Please, how do I accomplish this?
> 
> Hans van der Meer
> 
> 
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________


[-- Attachment #1.2: Type: text/html, Size: 4677 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 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:[~2018-02-02 13:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-02 11:41 text on every page howto dr. Hans van der Meer
2018-02-02 13:08 ` Otared Kavian

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