4
votes
2answers
120 views

Remove macro's functionality via a regular expression

I want find all \textbf in my .tex file and delete it, together with it's argument braces {}. For example, I want to change: \textbf{text} to text \textbf{text \textit{textbis}} to text ...
3
votes
2answers
66 views

Labelling commands for quick use

I have a certain command in LaTeX that I have used a lot in my current work: {\bf y} # this creates a bold letter y I want to create a shortcut e.g. \by that will automatically create a bold ...
5
votes
2answers
107 views

Define a command for vectors, boldface letters, but not numbers

The purpose for this would be to leave scripts out of the equation. For example, \renewcommand{\vec}[1]{\ensuremath{\mathbf{#1}}} ... \vec{x_0} would print the 0 as boldface, too. I know I can ...
2
votes
1answer
64 views

Automate replacement of `\not` when in `\bm` mode

Hendrik Vogt has provided a \longnot macro to alleviate the issues related to Interaction of \boldmath and \not. This seems to work fine, but I run into a snag when I try to automatically use ...
4
votes
1answer
185 views

Using Hashtag in macro

I had a problem putting the column headers in bold (in a table of course) using pgfplotstable. You can see the problem here I found a way to work arround that. It isn't generic as I wanted it to be, ...
10
votes
1answer
392 views

Interaction of \boldmath and \not

It seems that using \boldmath (or \bm) along with the \not does not quite work so well. Here is an example using \not\subseteq and \not\le where the line representing negation does not stretch ...
17
votes
4answers
606 views

How to define a command that bolds the first letter of each word in the input argument?

I want to define a command that takes a sentence, a word or several words as input and bolds the first letter of each word. I need this mostly for abbreviations and so far I have done it manually in ...
14
votes
5answers
11k views

\textbf{text} without increasing the length of the text

When using \textbf{text}, the length of text will be increased. Is there a way to make the text bold face without increasing its length? edit: Thanks to @Herbert and @Martin, here is a perfect ...
7
votes
1answer
4k views

Define command for bold list-item

I have a set of commands for producing various kinds of specific list-items, such as \newcommand{\staritem}{\item[$\star$]} % not really, but you get the gist All the ones I currently have can be ...
3
votes
3answers
453 views

Writing bold small caps with mathpazo package

The URW Palldio font (mathpazo package) does not provide bold small caps. To get round this issue, I'd want to make a macro to use small caps usually and normal caps in bold text. I tried this code: ...