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.
\textlfblock
creates 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\textblock
command which creates blocks spanning the full character width? Then there won't be spaces between consecutive characters?