# how can I make inverted letter

Please, is it possible to do this in Latex? Thank you.

-
What is meant by "inverted"? What I see in the image is blurry. Is there any other characteristic other than blurry which makes it inverted? –  Steven B. Segletes Aug 6 '14 at 12:12
Can you be more clear –  subham soni Aug 6 '14 at 12:13
I want to know how to do that title :) –  Zbynek Aug 6 '14 at 12:16
So you want a white letter on a black background? –  Torbjørn T. Aug 6 '14 at 12:17
yes. and black background united with the black line above –  Zbynek Aug 6 '14 at 12:20

## 2 Answers

By way of explanation, I build the top of the page with a stack. Some of the finer points of what I am doing are as follows:

• the \fboxsep is the border padding of the box around the "M". If positive, the black box gets too wide, so I set it to 0pt. However, to retain an appropriate height to the black box, I make sure to add a \strut to the box containing the "M".

• The \noindent keeps the rule from being indented.

• the \stackalignment says that the stack (in this case, a word under a rule) is right aligned. I used \def rather than \renewcommand because I am a lazy typist and saved a few strokes.

• the default gap between short-stacked items is 3pt. But I wanted no gap between the rule and the underword. So I used the optional argument [0pt] to indicate that the stack should be built with no gap between the items.

• I enclose the whole construct in its own brace-delimited group, so that parameters like \fboxsep and \stackalignment revert to their prior values when done with the construct.

\documentclass{article}
\usepackage{xcolor,lipsum,stackengine}
\begin{document}
{\sffamily\fboxsep=0pt\noindent\Huge\def\stackalignment{r}%
\stackunder[0pt]{\rule{\textwidth}{2pt}}{\colorbox{black}{\strut\color{white}M}argin\'alia}}

\bigskip\lipsum[1]
\end{document}


If \bfseries is included immediately after the \sffamily, the result is this:

-
Would you mind to explain your code to us less enlightened readers? Why \fboxsep? Why \def instead of \renewcommand and why is the length of the stack 0 pt? –  Keks Dose Aug 6 '14 at 13:02
@KeksDose Thanks for the suggestion. Done. –  Steven B. Segletes Aug 6 '14 at 13:12

If I assume @Torbjorn T. understood your question right, the color-package should help.

\documentclass{article}
\usepackage{color}
\begin{document}
\colorbox{black}{\color{white}Some Text.}
\end{document}

-