Questions tagged [active-characters]
The active-characters tag has no summary.
62 questions
2 votes
0 answers
66 views
Cannot use a centered dot as active character
I wanted to have a better looking centered dot in words for gendered-neutral expressions in French, and the simplest solution that suited me was replacing it by $\cdot$: un$cdot$e dévelopeur$\cdot$se. ...
0 votes
0 answers
27 views
Winedt: Can anyone guide me a little to start creating the ActiveString \usepackage{?} in WinEdt?
Can anyone guide me a little to start creating the ActiveString \usepackage{?} in the simplest possible way?, where ? is a popup menu with a large list of packages ? that I supose that should do in a ...
3 votes
1 answer
129 views
Active space characters
The following macro \mytest should 1) evaluate it's argument and 2) typeset it verbatim. The output looks ok for me, but the log files says: LaTeX Info: Active space character found while output ...
2 votes
4 answers
161 views
Inconsistency in expansion of active characters within \csname
I am very confused about this. I am trying to build a csname from syntax like this: |ex,x;fa,y| --> \box_use:N \l__formal_exbox x and \box_use:N \l__formal_fabox y In this case the ; (and |) are ...
3 votes
2 answers
135 views
replacing shortandoff{-} by xpatch parameter
I'm writing in czech with babel so there are some problems with - delimiter. The template I'm using is changing - delimiter to an active character (as the template says) for the \cline and \cmidrule ...
4 votes
3 answers
231 views
Having ... (three dots) as macro name
For convenience (and also to deepen my LaTeX knowledge), I'm trying to define a list in a simple manner: \mylist(First, Second, Third, ...) Replacing the commas by something else (in this case by \...
1 vote
1 answer
254 views
How to handle babel active characters when writing a package?
In the bodeplot package, I defined new environments using (defined like this to avoid issues with externalization of tikz graphics) \documentclass{standalone} \usepackage{pgfplots,xparse} \pgfplotsset{...
6 votes
1 answer
127 views
Active character only in text mode
I have the following code to replace ' to \textquotesingle, because I prefer this symbol when I type an apostrophe. \makeatletter \catcode`\'=\active \def'{\textquotesingle} \makeatother The problem ...
3 votes
2 answers
188 views
Active character can be defined, but not within \def?
This is a follow up to my earlier question here: Detect catcode of next character? What I want to do: Count the number of " used in the document body. I am not using " for purposes such as ...
3 votes
1 answer
137 views
Make only first space active
This is follow up to a previous question that has been closed because it was treated wrongly. Brief recap: let \newcommand{\foo}{foo}. Having \foo in text like so test \foo bar will omit the space ...
0 votes
1 answer
71 views
Prevent active character from being expanded in macro argument
Goal: Have an active character not expanded when writing to file MWE \documentclass{article} \makeatletter % == Package code -- untouchable \def\foo{\@ifnextchar[{\@foo}{\@foo[x]}} \...
1 vote
1 answer
71 views
Detect space after active character does not handle trailing formatting macro
There's an active character * (can be anything, asterisk just used for demonstration purposes). If the character following * is a space, write \marginpar{foo}, otherwise write \marginpar{bar}. This ...
0 votes
2 answers
227 views
How to print a vertical bar if it is \active?
I'm trying to print a vertical bar symbol, but it's \active in the ltxdoc document style (this code doesn't compile): \documentclass{ltxdoc} \begin{document} This is a vertical bar: |\|| \end{document}...
2 votes
1 answer
73 views
Make <: ... :> acts like one macro
I use jinja to write templates. This makes me work with files like the one below. \documentclass[a4paper, 12pt]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \newcommand\devtool[1]{\...
5 votes
2 answers
169 views
Why does \newcommand on an already defined active character not yield an error?
We (or at least I) usually think of an active character as just another command whose name just happens to a character rather than a control sequence. So why does \newcommand<active character> ...