5
votes
1answer
267 views

Putting normal letters in between Greek ones

So I am trying to write out Gauss' law for gravitation and I am having a hard time figuring out how to write it out without an error. I am currently trying to write in an equation block ...
4
votes
2answers
129 views

How do you make the underscore active in environments but preserve its orignal use in math mode?

I'm experimenting with creating a formatting shorthand package. I want to use the underscore to delimit an underlined text span, like so some text _underlined text_ more text Simply making the ...
7
votes
1answer
89 views

What does “@” at the beginning of a command name mean? [duplicate]

The answers to this question mention commands such as \@author and \@director, and latex.ltx is full of them. However, when I use \@author in my document, it just outputs the word "author". What does ...
0
votes
1answer
33 views

Findig the latex-command for a character [duplicate]

How can I write in latex? Which command should I use?
9
votes
2answers
138 views

Can spaces at the beginning of a line ever cause problems?

To structure my sourcecode, I often use spaces for padding: \newcommand{\st}[1]{% \begin{tabular}{lr} \emph{Student} & \emph{Score}\\ #1 \end{tabular}% } Can this ever cause ...
1
vote
1answer
219 views

Math Symbols Palette?

I'm using TeXworks version 0.4.3 r857 (MiKTeX 2.9) in Windows 7. Usually I use TeXShop on the Mac, but my Mac G5 is in need of repair. So now on the Windows side I'm wondering if there is an ...
11
votes
3answers
110 views

Mirror tilde accent

Does anybody know if there is a "mirror" tilde accent command in any package? That is, the "wiggling" of the tilde accent going in the other direction. Something like defining this \backtilde ...
8
votes
3answers
198 views

Definitions of mathematical terms and declaration of symbols

When writing articles containing math, I would like to have a way to ensure that I am not using an undefined term or symbol. For instance, I want to use the term "simple algebra" only after I define ...
13
votes
2answers
265 views

A \(re)newcommand that does not care if a command is already defined

Does there exists a version of \newcommand, something like \extranewcommand{\foo}{bar} which does defines \foo to stand for bar regardless of whether \foo has been previously defined? Of course, if ...
9
votes
3answers
252 views

Defining a macro for “real” colored delimiters

I recently looked up J. van Hoorn's question on How to color delimiters in Math Mode, and so I decided to test my LaTeX knowledge by trying to define a new appropriate command: ...
17
votes
1answer
484 views

What does the # symbol do in LaTeX?

I know most of the effects of the special characters in LaTeX, like \ is used for most commands, or $ is used for opening or closing the math ambience, but I don't know what the symbol # does, and I ...
29
votes
5answers
1k views

Censoring Curse Words with Grawlixes

Suppose that I would like to censor a curse word <word> using grawlixes, e.g. "What the #@$! are you doing?!" How can I define a command \censor such that \censor{<word>} results in a ...
4
votes
1answer
48 views

Inserting noncrossing partions

I am trying to create non crossing partions in latex. That is to connect numbers with lines drawn below them. An example would be 1 2 3 4 5 │└┘││ └───┘ But the lines should be directly ...
9
votes
1answer
373 views

LaTeX command for equal (=)

Is there a LaTeX command for the equal (=) sign? I'd like to overwrite the command so that all equal signs in my document are colored green. But it seems I cannot do it with just the symbol =, which ...
2
votes
1answer
62 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 ...
10
votes
1answer
340 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 ...
6
votes
3answers
176 views

How to define a new command for guillemets marks [duplicate]

Possible Duplicate: babel shorthand "| doesn’t work in macros I would like to define a new command for guillemets marks. I know how to obtain them in LaTeX and those I would like to ...
2
votes
0answers
122 views

The meaning of the percent sign in LaTeX coding [duplicate]

Possible Duplicate: What is the use of percent signs (%) at the end of lines? I know that % is commonly used to uncomment parts of the code, but recently I read that there is another use ...
4
votes
1answer
320 views

\lstinline & \colorbox

Why the command below don't work? How can I fix it? \documentclass[11pt]{book} \usepackage[dvipsnames]{xcolor} \usepackage{listings} \lstset{language=[LaTeX]Tex, ...
0
votes
1answer
102 views

Defect of measuring into the count of alphabet width

Question: Why in the example below I get (with CM at 10pt) \alphabet=342.93138pt and \myalphabetwidth=342.6536pt why I have this difference between the two measures? What is the more correct? ...
3
votes
1answer
182 views

Support for the punctuation symbols into a macro for characters count

Question about this macro: Is possible to have a higher precision with this macro by adding some punctuation symbols like ,.;:?!'() into the final count of the characters? ...
7
votes
1answer
145 views

Creating a customizable n-ary operator?

I'd like to be able to create a customizable n-ary operator that behaves like \sum or \bigoplus but which takes an arbitrary symbol as an argument. The closest that I have been able to come to ...
7
votes
3answers
1k views

How to rename a command for a symbol

I'm using the symbol int for the interior of the topological space and Int for the interior of a closed manifold in Rn. But \int is the built-in command for the 'integral' symbol. How can I rename ...
6
votes
1answer
716 views

Using \leftroot{}, \uproot{} with closed square root symbol

As mentioned in this answer to Nice-looking p-th roots the amsmath package provides \leftroot{} and \uproot{} which allow you to move the position of the root to the left, and up in small increments. ...
12
votes
4answers
2k views

Optional arguments in \def

I want to re-define the \sqrt command (as detailed in Nice-looking p-th roots), and so far I have the following: \documentclass{article} \usepackage{fouriernc} % use the New Century Schoolbook font ...
13
votes
3answers
4k views

Creating a large “such that” symbol

I'm using the following macro in my LaTeX document: \newcommand{\suchthat}{\, \mid \,} % nice "such that" so that set notation like the following looks nice: \{x_n \suchthat n \in \mathbb{N}} ...
5
votes
4answers
210 views

Symbols to avoid while creating new commands

I experienced some problems when creating \newcommand that have some numbers in their names; I can't find docs about that, about the accepted charset for the commands in LaTeX.
38
votes
2answers
7k views

“Closed” (square) root symbol

I found a cool trick in the LaTeX wikibook which allows the square root sign to be altered such that it "closes" over its contents. Here's an example: ("closed" root on the left, normal one on the ...
11
votes
2answers
1k views

Is it safe to temporarily redefine \and, \or, and \not?

I'm writing lots of logic expressions in LaTeX and I'd much rather write $p \and \not q \or r$ than $p \land \lnot q \lor r$. I was thinking of doing something like this: \newenvironment{logic}{% ...
14
votes
3answers
5k views

How to add a custom symbol to LaTeX?

Suppose I need some crazy custom symbol for personal use. e.g. when I write \foobar, LaTeX should show . How do I achieve this? Update: I was writing Klingon writing system for fun. Thank you very ...
3
votes
1answer
2k views

How can I get capital Angstrom symbol to appear in bibliography (using .bib file and natbib)?

I have search all around but cannot seem to find the solution for getting a capital angstrom symbol (an "A" with a small circle above it) to appear in the bibliography of my dissertation. Instead, it ...
118
votes
4answers
5k views

What is the use of percent signs (%) at the end of lines?

I see that the code in many packages and examples contains percent signs % at the end of (many) lines. What are they used for? Do they affect the parsing of those lines?
10
votes
3answers
1k views

How to use \bigtimes without pain

I've been fighting with mathabx lately and it's not really worth my time, so I tried switching to MnSymbol which also modifies some of my regular symbols. Is the best solution just to make my own ...
14
votes
2answers
2k views

Extendible equals sign

I have a command that has been floating around in my standard preamble for a while: \newcommand{\xeq}[1]{\stackrel{\;#1}{\cleaders\hbox{=\!}\hfill}\:} It is meant to mimic the AMS-LaTeX extendible ...
5
votes
1answer
579 views

How do I convert a character to a numeric value?

Now that I've gotten Will Robertson's excellent unicode-math package working to change the colour and style of letters in my mathematics (trust me, there is a reason) thanks to his answer to my ...
14
votes
3answers
1k views

Can I change the font and colour of a letter permanently?

For my lectures, I like to colour the symbols in the equations to make it easier to follow what's going on - a bit like syntax highlighting. So all vector spaces are one colour, all sets another, e ...