2

How to fill all the left margin under headspace in Friggeri example with let's say lightgray.

The link : Implement Friggeri in ConTeXt

I add this to \setupmarginblock :

before={ \startframed[background=color,framecolor=gray, backgroundcolor=gray, width=\dimexpr \leftmarginwidth+\leftedgewidth+\leftedgedistance+\edgedistance\relax,
 height=\dimexpr\textheight+\bottomdistance+\footerdistance\relax]},after={\stopframed }

I can use TikZ ,but I know it is not recommended to do so for portability.

Thank you in advance

Aviroum
  • 1,504
  • There is nothing wrong with using tikz inside context. 99.9% of Tikz macros work in context as well. You get a slight speed penalty but that wouldn't matter for a small doc like a CV – Aditya Feb 25 '21 at 14:50

1 Answers1

2

You could abuse the layer mechanism and include an empty \framed. More info on layout and layers pages of ConTeXt Garden.

\definelayer[stripes][state=repeat]
\setlayer[stripes]%
    {\framed%
    [width=\dimexpr\backspace-\margindistance\relax,
     height=\paperheight,
     frame=off,
     background=color,
     backgroundcolor=gray]{}}

%Comment/remove this in the original format %\setupbackgrounds % [page] % [background=pagebackground]

\setupbackgrounds [page] [background={stripes,pagebackground}]

enter image description here

  • I defined a layer with the same options, but I thought it was wrong. I didn't know you could add both layers. Thanks (for the third time) . I accept your answer. – Aviroum Feb 23 '21 at 23:38