I'm trying to find a LaTeX command that allows me to repeat a specified character (like quotation marks) a certain number of times around a given text. For example, I want to define a command like \quote[n]{y}
, which would output n repetitions of a character surrounding (the quotations marks in this case) the text y
.
Is there a package with a command doing this job? If not, how could I define it?
Note that, in LaTeX, n repetitions of the quotations marks would have n times repetions of the left quotation mark (i.e., `
) at the left and n repetion of the right quotation mark (i.e., '
) at the right. Alternatively, it could be n repetions of the command \enquote{}
, with suitable adaptations (each repetion should onctain only one pair of simple quotation marks).
OP edit: Is there a way to, instead of puting ` at the left, to indicate the left quote of the command \enquote* provided by the csquotes package (and respectively for ')? I say this because I would also like that it be adapted to other languages, like German.
pgffor
package.