This tag is used for questions that are related to placing emphasis at certain points in a document by changing font face, shape, weight, or other properties in order to render the objects distinguishable from the surrounding context.

learn more… | top users | synonyms

4
votes
2answers
105 views

Alegreya prevents nested \emph commands to behave as expected

I'm using Alegreya font with PDFLaTeX, and have noticed that the \emph command did not work anymore when nested. To be clearer, this code : \documentclass{book} \usepackage{Alegreya} \begin{document} ...
1
vote
0answers
51 views

Using algorithm2e with polyglossia produces undesired emphasized text

Here's a minimal working example: \documentclass[a4paper]{article} \usepackage{fontspec} \setmainfont{CMU Serif} \setsansfont{CMU Sans Serif} \setmonofont{CMU Typewriter Text} ...
5
votes
0answers
129 views

Italicizing emphatic speech: Italic or upright quotation marks? [closed]

This is a typography question. I'm not sure if it's on-topic here; please feel free to migrate to a more appropriate site if necessary. I'm typesetting HPMOR for private amusement, and the online ...
6
votes
1answer
280 views

Non-italic \emph, italic biblatex titles

The internal Biblatex \mkbibemph macro defaults to being an alias for \emph (see section 4.10.4 Auxiliary Commands and Hooks in its documentation). It is used with \DeclareFieldFormat to typeset ...
1
vote
0answers
83 views

mass replace all words that are wrapped between single quotes

In my manual, I've wrapped many words with single quotes, like this: 'bear', 'apple' and 'country'. My goal is to replace all single quotes with \emph{}, so 'bear' becomes \emph{bear} and 'apple' ...
11
votes
2answers
413 views

List of Underlining Packages - Pros and Cons

The \underline macro built into LaTeX is pretty much not useable per Why does underlined text not get wrapped once it hits the end of a line ? I have been attempting to use the soul package to ...
0
votes
0answers
58 views

\emph not working with TrueType font on XeLaTeX [duplicate]

I am using a font package on my computer as both "roman" and "sans" font in such a way that \setromanfont{Chaloult_Cond} \setsansfont{Chaloult_Cond} although it is a sans font. This makes great ...
5
votes
2answers
106 views

What is a short command for bold face and emph at the same time in a table cell?

I need a short command to replace \textbf{\emph{...}}. Especially, in entering tables in the text editor, this would help me to keep the structure of table uniform and easy to edit. Thanks.
6
votes
1answer
49 views

Stop a bitwise-or in \emph from becoming a dash

I want to use a "|" in my \emph{}, like \emph{"Yes"|"No"}, but it changes the | to a --. How do I stop this from happening?
3
votes
2answers
353 views

emph ignores the page margin

Why \emph ignores the page margin? How can I fix it by setting the word in emph to a new line? See the example below: EDIT: The second line of the text is too long. I don't want ...
1
vote
0answers
97 views

Emphasize text that is highlighted using the soul package [closed]

I can highlight a bit of text (i.e., make the background yellow) using the soul package like this: \hl{a bit of text} I figured I could also use italics like this: \hl{\emph{a bit of text}} ... ...
1
vote
2answers
83 views

genuine way to give an image an emphasized and normal caption

In my work I give each image a small description (usually in emphasized style) and a long description in normal font. To achieve this I have to write \usepackage{subcaption} \begin{figure} ...
9
votes
1answer
999 views

Getting \emph back to normal after loading ulem

I'm typesetting a manuscript that is required to turn all \emph into underlines. But then I want to use the original definition of \emph for the list of references. How do I get \emph to behave like ...
9
votes
1answer
538 views

Fake bold in LuaLaTeX

I am sometimes using a font that has no boldface, so I am wondering whether or not there is a way to use some fakebold-feature in LuaLaTeX. The fontspec documentation explains a feature for XeLaTeX, ...
9
votes
1answer
283 views

Beamer does not restore roman style for emph inside emph

It seems that \em and \emph do not alternate between itshape and normal shape. How can this be restored? Test case: \documentclass{beamer} \begin{document} \frame{\em abc \emph{def \emph{ghi} jkl} ...
13
votes
3answers
1k views

How to emphasize some author names using BibTeX?

I would like to create bibliographies that have certain authors highlighted (e.g., bold). There are several solutions along these lines, but they usually assume that it's the same author that's being ...
3
votes
4answers
4k views

Displaying Linux commands in LaTeX [duplicate]

Possible Duplicate: Syntax Coloring in LaTeX Unix Command Highlighting latex I am after some advice on how to display Linux terminal commands into LaTeX, so that they are indented and ...
10
votes
1answer
259 views

How to replace a given string in a bibliography with biblatex?

Mendeley allows you to emphasise Latin names in article or report titles using HTML notation like so: A treatise on the ecology of <I>Rattus rattus</I> Using biblatex, the tags are ...
2
votes
0answers
61 views

Italicize all text in the body matching a pattern [duplicate]

Possible Duplicate: Is it possible to have certain words in the document always in bold? I have some old papers with a lot of references in it. I am converting them into LaTeX PDFs. I am ...
12
votes
1answer
330 views

\emph vs. \mkbibemph and other things

I usually use the commands that come with biblatex (like mkbibemph, mkbibquote etc.) only in my bibliography. What about using them in the text of my document? Should I do that? Are there any ...
2
votes
3answers
1k views

\emph in math mode

I am new to LaTeX and have a problem with the line The difference is that the signing key \emph{x} is split into two pieces, \begin{math} \emph{x_{L}}\end{math} and ...
5
votes
1answer
832 views

Equations in fancy boxes

I've checked the post here, where the package empheq is used for embedding equations into coloured boxes. With that idea, I wrote in my file the following: % in the preambule \usepackage{empheq} ...
2
votes
1answer
107 views

Counting lines and making calculations

This code snippet provides a way to highlight lines in a listings environment. If you consider the following line, though: \emphline{1-6} {7} {8-15} {potencia.f95} You'll notice how the #1 and the ...
2
votes
1answer
463 views

Using \emph and a subscript

How would I go about adding a subscript to a symbol I'm defining from an equation. For example I have an equation E_m = \alpha_m x + y How can I then do something like \emph \alpha\textsubscript{m} ...
3
votes
1answer
721 views

Changing the font size with \emph

In the .tex document I created, the emphasis command \emph{text} is frequently used (note that I use \documentclass{llncs} ). However, the .pdf preview shows the emphasized text as smaller that the ...
2
votes
1answer
255 views

How to make a line of text in a slightly different color (light gray in my case) in XeLaTeX

I Like to add an informal footnote to my document, containing web addresses. Some of the text is to be de-emphasized using gray text. How do I do that for a line or a word in XeLaTeX?
2
votes
2answers
179 views

Can emphasize produce an index item?

I would like to have a command which empasizes a term (like a definition in a mathematical text) and produces an item for the index (I use makeindex). Ideally the macro should not be too invasive, ...
2
votes
1answer
393 views

Redefine \emph inside theorem using \newshadedtheorem from ntheorem

Using the ntheorem package, the definition of \newshadedtheorem overwrites the \theoremprework, which I wanted to use to redefine \emph inside a custom shaded theorem. The definition of ...
11
votes
3answers
313 views

Should I distinguish text that names a concept and text that is to be emphasized, on font?

In scientific writing, we often need to mention a term and emphasize a point. So far, I always try to distinguish these two typical cases on font, by using different series or styles, say, use slanted ...
8
votes
1answer
844 views

How to change emphasis commands in pandoc's LaTeX template?

I want to change the default strong emphasis command in the conversion from pandoc's markdown to LaTeX, say, from \textbf to \textsc. Since running pandoc in the source file prints into the .tex file ...
16
votes
3answers
676 views

Short version of emph?

Is there something like a short version of \emph? What I want is something comparable to \lstShortInline or what the shortvrb provides, just not for the \verb command but for the \emph command ...
5
votes
1answer
982 views

How can I use multiple declarations (\textbf, \emph) in listings' emphstyle?

How do I provide multiple emphstyles with the listings package? \begin{lstlisting}[emph={if,for},emphstyle={\textbf\emph}] if something end if \end{lstlisting} Both styles above (\emph and \textbf} ...
5
votes
4answers
971 views

Verse environment won't set in italics

Could someone please help me fix the following problem? I want to typeset an indented paragraph in italics. Using the verse package, the paragraph typesets without a problem, but when I try to add ...
5
votes
2answers
5k views

When to emphasize text in formal texts? [closed]

Text can be emphasized in LaTeX using \emph or \textit. For what kinds of text or situations is it recommended to use such emphasis in formal texts? For example, in an article, paper or thesis, when ...
29
votes
4answers
24k views

What is the difference between \em and \emph?

What is the difference between \emph{...} and {\em ...}? When to use each of them?
2
votes
2answers
498 views

\emph yields bold-italic using the package “libertine”

How can I make \emph use italics again after loading the package libertine? I suspect that this may be a bug in the font itself. I tried reinstalling the font and upgrading it onto the most recent ...
14
votes
3answers
770 views

How can I get Sperrsatz?

Sperrsatz is a special kind of emphasis often used in combination with blackletter fonts. A word in Sperrsatz has 0.125 em spaces between its characters, but some ligatures are preserved. For example: ...
2
votes
0answers
286 views

Emphasize first line of paragraph in LaTeX [duplicate]

Possible Duplicate: Changing the style of the first typeset line of a paragraph Trying to find out how to emphasize the line of text automatically. The issue here is that I have no idea ...
23
votes
3answers
561 views

Should I include punctuation marks in \emph, or should I place those marks after the command?

I wonder if I should place punctuation marks directly after the \emph{} command, or should I include those marks within the curly brackets? Thus: The languages only differ in their \emph{grammar}, ...
16
votes
5answers
4k views

Does LaTeX define a semantic equivalent of \textbf ?

In HTML, there's the distinction between <em> as semantic markup and <i> as its pure-formatting equivalent. LaTeX has the same distinction: \emph is semantic markup, rendered using ...
9
votes
2answers
3k views

How to redefine the \emph command in Beamer?

I am using the Beamer class and would like to redefine \emph to use \bfseries instead of \itshape. I have tried the following command: \renewcommand<>{\emph}[1]{{\only#2{\bfseries}#1}} but I ...
26
votes
2answers
3k views

What is the canonical way to redefine the \emph command

Question says it all. What is the best way to redefine the \emph command to be bold font and upright?
4
votes
2answers
1k views

Beamer: Emphasize a part of a slide

I am using Beamer to create presentations. I know that it is possible to use environments like Theorem, Definition and so on: \begin{Teorem} Great theorem \end{Theorem} It appears in the box of ...
9
votes
3answers
1k views

Space between emphasized word and parenthesis

When I have the following text (\emph{WSJ}) the J will touch the parenthesis in an ugly way (my opinion). Is LaTeX supposed to keep some space there? How can I get some more space there in a a nice ...
76
votes
2answers
35k views

\emph or \textit

In the comments section of Does it matter if I use \textit or \it, I asked for a clarification of these points. The clarification has mostly been made, but it was requested that I turn this into a ...