Linked Questions

17
votes
4answers
7k views

Line break in texttt

I would like latex to break long text inside \texttt{} that does not contain any whitespaces. Currently the text just runs off the page. The latex document is generated from a reStructureText ...
18
votes
1answer
1k views

What is the equivalent of \usepackage[T1]{fontenc} in plain TeX?

I have inherited a semi-small TeX project in which I, after syncing across various computers and OS'es, had some problems with encodings of special characters like åäö. My initial approach for fixing ...
9
votes
2answers
298 views

What does “frozen” mean (e.g. for catcodes)?

In a comment (emphasis mine) no, it has to change catcodes and this don't work if they are already frozen in response to my comment on her answer Ulrike Fischer mentioned the concept of frozen ...
8
votes
3answers
505 views

Make Characters Active via Macro in Math Mode

I am trying to make characters active in math mode, but can't seem to get past the most basic of examples. I would like to define a macro which is passed: the character to make active and the macro ...
7
votes
2answers
240 views

Expansion of \char in \def

In answering another question, I ran into some issues trying to use a combination of \def and \char. Consider the following example: \documentclass{minimal} \usepackage{etoolbox} \usepackage{xstring}...
6
votes
2answers
252 views

How can I manipulate letters and numbers with \lccode?

If \lccode does not change category codes, shouldn't the code based on the lowercase trick work for numbers too? For that matter, any character? \documentclass{article} \usepackage{fontspec}% xelatex ...
5
votes
2answers
328 views

Turn * into thin space for clearer math spacing

In a formula, the space between variables often corresponds implicitly to a multiplication operator. I find LaTeX's default spacing not so readable: symbols are too close to each other, and I would ...
8
votes
1answer
455 views

Locally disabling en and em dash ligatures

A programming tool that I use (coqdoc) generates LaTeX documentation from my source code. Parts of the manual include pretty-printed code listings and math proofs. These listings and proofs are ...
7
votes
1answer
191 views

How can I give active characters definitions with expl3?

It's very much glossed over in texdoc interface3… \documentclass{article} \usepackage{xparse} \ExplSyntaxOn \NewDocumentCommand \Digits { m m }{ \group_begin: \char_set_catcode_active:N ; \...
1
vote
1answer
1k views

!Missing control sequence inserted. <inserted text> \inaccessible

Tried to found solution by myself but didn't find nothing certain, I'm still not very good in LaTeX. I have code which works well. \documentclass[14pt]{extreport} \usepackage[normalem]{ulem} \...
6
votes
1answer
206 views

Could someone explain the branching in xparse's \SplitList?

I was digging through xparse.sty to better understand how \SplitList works and am confused about some branching that is happening there. \SplitList is essentially letted to be \__xparse_split_list:nn ...
3
votes
1answer
146 views

redefine caret ^ while using mathtools package

consider the following MWE: \documentclass{article} %\usepackage{mathtools} \newcommand\newCaret{X} \catcode`^=\active \let^=\newCaret \begin{document} $x^2$ \end{document} this works fine, ...
2
votes
1answer
200 views

change catcode with tickets (business card print) and tables

Update, much later Don’t do this. Change the font instead. This just causes much trouble in unexpected and hard-to-debug places. See the other answer to the same question for details. changing the ...
3
votes
1answer
67 views

expl3 replacement for \lowercase trick

Given this example code: \documentclass{article} \usepackage{expl3} \ExplSyntaxOn \group_begin: \char_set_catcode_active:n { `\* } \cs_new_protected:Npn \foo #1 { \group_begin: \...