I'm trying to write a code which exports a series of ten "block" characters. I refer to the character 219 in the ascii table. Imagine having such character instead of "a" in the following MWE.
\documentclass[11pt, a4paper]{article}
\usepackage{ifthen}
\newcounter{WrittenWords}
\newcounter{WrittenCharacters}
\begin{document}
\setcounter{WrittenWords}{0}%
\whiledo{\value{WrittenWords}<50}{%
\addtocounter{WrittenWords}{1}%
\setcounter{WrittenCharacters}{0}%
\whiledo{\value{WrittenCharacters}<11}{%
\addtocounter{WrittenCharacters}{1}%
a%
}
}
\end{document}
I tried to copy-paste it, but it doesn't work because I'm working with utf-8 alphabet and apparently it doesn't contain that character.
I tried to use the pmboxdraw package and the \textlfblock command, and it works, but it puts a space between characters. I want them to be attached.
The same goes if I use the \amdsymbol package and the \blacksquare command.
I came to discover, in this answer to an other question, the existence of the command \char, after which I should put a code. I tried to use \char32 instead of 'a' in the code above, and in fact it works in printing that weird character in the way that I want. The issue is that I don't understand where to find the number of my block character. I tried to play with \char and as much as I understood the number I must put in front of it is not the decimal number of the character, nor the hex number of it. I didn't find anywhere an explaination of such command which linked to a table with the numbers I needed.


\textlfblockcreates a 'left block', which from the name implies it is a 'half-block' on the left and space on the right (per character). Why not use the\textblockcommand which creates blocks spanning the full character width? Then there won't be spaces between consecutive characters? – Troy May 12 '17 at 15:56\usepackage{pmboxdraw}to your MWE above, and using\textblock, I receive no such error. so it's coming from somewhere else.. If you would like to receive help in this regard (instead of the\charapproach), you may consider updating your MWE to actually reflect this name clash error problem.. As of now, I'm interpreting your main question to be about reproducing this block character (by any means possible), not specifically about doing so using\char– Troy May 12 '17 at 16:06textpospackage, which apparently defines the\textblockcommand. So I guess they are incompatible. Is there a way to just use \char? That seems so easy – il mietitore May 12 '17 at 16:23