# Make a floating box anchored to text using inline code [closed]

I'm trying to make an Organizer, including a weekly planner, based on one I found on the net using tex. I've managed, until now, to make some changes to adapt it to my needs and, for example, include my country holydays next to the day and month on the weekly planner. Now I'm trying to make a grey shadow behind the day planning lines only on the holydays and Sundays. This planner uses a python program to make the year macros and it would be easier for me to include this "shadow" anchored to the holyday text and using inline code. Is there any way to do this?

the macro is something like this:

% Weekly Planner macros for 2019

\LeftPageWP{1}{31 Dezembro - \scriptsize{Véspera de Ano Novo}}{1 Janeiro - \scriptsize{Ano Novo}}{2 Janeiro}{3 Janeiro}
\RightPageWP{4 Janeiro}{5 Janeiro}{6 Janeiro}{Dezembro}{\MonthTblDecPrev}{Janeiro}{\MonthTblJan}{Fevereiro}{\MonthTblFeb}


This "macro" is then used by a weekly planner tex file and then by a main tex file.

My idea was to include this "shadow" code inline on the macro file itself, next to the name of the holyday (\scriptsize{Ano Novo}) in order for it to be read by the tex processor.

the picture of what I want is something like this:

• Sorry, I am completely lost. Please provide us with am minimal working example, i.e. a compilable document that starts with \documentclass, ends with \end{document} and illustrates your point. – user121799 Dec 30 '18 at 3:05
• (\scriptsize{Ano Novo})  would make a full size ( but a script size ) and all following text – David Carlisle Dec 30 '18 at 9:10