104k views

### How to bold just one word in a line

If I have a line of text, how do I make just the first word bold? I tried this: \bf{NTn} = Number of lines but it made the entire line bold.
1k views

### Can I get $$…$$ to behave like $…$?

Is it possible to modify LaTeX so that good old $$...$$ behaves like $...$ (and by this I mean that it should be synonymous to it). If yes: Dear LaTeX3 developer, please integrate this into LaTeX3! ...
2k views

### Why are these commands considered as bad practice?

I was reading LaTeX: Do not use these commands, but the author didn't explain why they are bad. Could anyone help me understand. \\ (except inside a special environment like tabular, array, or ...
1k views

### Is there any reason not to use \let to redefine a deprecated control sequence to the currently recommended one?

I understand that \bf and \it are both deprecated in the current version of LaTeX. To the best of my knowledge, the correct control sequences replacing them are \bfseries and \itshape. Is there any ...
37k views

### customizing the algorithmic package: break and loop labels

I would like to add two customizations to the algorithmic package: introduce a new break command and have the possibility to provide labels to the LOOP so that break {label} is clear to which loop is ...
11k views

### Memoir class and Bibtex

I have biblio.bib: @article{XX, title={{Title}}, author={Author}, journal={Journal Title}, volume=1, number=11, pages={1-2}, year=1666 } And myfile.tex \documentclass[oneside]{memoir} \...
28k views

### Space between lines

I try to typeset title pages and use LARGE and bold for this. The problem is that the lines seem to be too close to each other. I think it looks bad. Is this the way it is supposed to be? Is there a ...
29k views

### Merge columns in LaTeX

I would like to merge column in LaTeX. I can make that but this line is incomplete because it still open on the left. Perhaps you will not understand what I mean, but this is the code that I wrote \...
14k views

### Synonyms for \bfseries and \itshape and such?

Seeing as it is quite confusing for non-TeX expert to know how to specify italic or bold font, and the names such as \bfseries are not straightforward... Is there a package that defines synonyms like ...
9k views

### ! Paragraph ended before \@optionaltemp was complete

I'm desperate, can't figure out what's going on... So here's my code for a gloosed example: \a \begingl \gla nie ale jeśli ją \underline{pan} \underline{zobaczy} \underline{będzie} \underline{pan} \...
2k views

### Why is the \bf command applied to more than I asked?

MWE: \documentclass{article} \usepackage{bm} \begin{document} $$x(t), \bf{x}(t), \bf{x(t)}$$ \end{document} Result: Question: Why are the second and third x(t) typeset the same? In the second ...
2k views

### Remove spaces after a custom definition

As scientific species names should be written in italic, I have adopted a shortcut to do this in LaTex by creating a definition in the preamble: \def\GM{{\it Gadus morhua~}} Then it's easy to call ...
8k views

### How can I get TeXstudio's syntax highlighting to recognize an unknown command?

TeXstudio does not recognize the LaTeX command \rm (red highlighting in the document, with the message: unrecognized command), even after I activate all possible completion files (.cwl). In such a ...
I have written in my work $X^{+},\,\rm{e}^{X},\,|X|^{p}$. Why is the second and third term not in italics?