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

0
votes
1answer
26 views

Set color of \emph{} in beamer

How can I set the color of the \emph{}-tag in beamer? I tried something like \setbeamercolor{emph}{fg=red} inside of beamercolortheme.sty but it had no effect.
11
votes
3answers
564 views

Smart functions

The \emph command is smart. It behaves differently depending of the nesting level. \emph{Italics within \emph{italics within \emph{more italics} and} so on}. outputs: Italics within italics ...
2
votes
1answer
31 views

Cannot emphasize underscored words in listings

I declared an emphasis mode that underlines and colors words in red, as follows: \lstset{columns=fullflexible,basicstyle=\vttfamily,emph={\color{red}\underline}} However, when using it in a ...
3
votes
1answer
86 views

How to have both emphasis/italics and Chinese font

I'm creating a document in Lyx which has both Chinese and English characters. I need to be able to show emphasis through italics, but I cannot figure out a way to accomplish both. I changed the fonts, ...
3
votes
1answer
59 views

Biblatex, emphasized/italic entries and redefined \emph{}

Many Biblatex-Styles use \mkbibemph{} to typeset italic parts of an bibliographic entry. By default, \mkbibemph{} is defined as \emph{}. My Problem: If one redefines \emph{} like ...
3
votes
1answer
34 views

glossaries emphasize text when cgls command is used

I use the style provided in this answer by @NicolaTalbot to emphasise the long form of acronyms in combination with an additional protected whitespace and support for foreign acronyms (see here). ...
3
votes
2answers
138 views

ConTeXt: Change emphasis font when used within blockquote environment

Background Looking to change the font for emphasized text within a specific type of macro block (environment). Only emphasized text should change; any text within the environment that is not ...
4
votes
1answer
57 views

Italicizing and Underlining journal and book titles respectively

I am trying to customize the bibtex environment using spbasic.bst file according to this answer. I would like to italicize journal titles while underlining book titles. Now if we provide command ...
2
votes
1answer
218 views

\emph gets lost in beamer class when used within italic or bold text

I use the beamerclass in Latex. Using \emph has worked fine so far. Now I want to use \emphwithin a bold (\textbf) and an italic (\textit) sentence. However, the output seems to ignore the emphases. ...
6
votes
2answers
152 views

How to “italicize after underscoring”

I want to use \underline for tensors (please don't question) but, for example, I don't like how $\underline{K}$ looks. Why? \documentclass{article} \begin{document} ...
5
votes
3answers
275 views

Emphasize the exponential function in the text

I want to typeset something like this: [...] $y = \exp(x)$, where $\exp$ is the exponential function. However, I don't like that $\exp$ is not at all emphasized in the text. What are good ...
2
votes
1answer
105 views

Emphasize author in bibliography for use in CV

I would like to create a bibliography for my CV, where my name is emphasized to stand out from the list of authors. I've already tried various things, including the suggestions provided here and here. ...
4
votes
0answers
57 views

Kerning issue in soul \hl with \emph

The text is little squashed when using \hl with \emph, but only with particular words which makes me think this is a kerning issue? \documentclass{article} \usepackage{color} \usepackage{soul} ...
1
vote
1answer
36 views

Specific formatting for some entries of a glossary

I use the memoir class. In my glossary, I need to emphasize certain terms (and descriptions), but let the others in roman. The command is \glossary{term}{description} so I tried to do ...
1
vote
1answer
153 views

Adding emphasis (italics) to a word in a chapter title LyX [closed]

I have a chapter title which contains a word which needs to be in italics. LyX allows me to add emphasis to it in the LyX window (with Ctrl+E) and it appears italicized in the LyX window. However, in ...
0
votes
0answers
57 views

Change \emph to swash in fontspec

I read this post Activate swash or alternate for Italic only about swash and \emph command. Reading comments I see that \emph just chooses between \textit and \textrm depending on the slope of the ...
3
votes
2answers
68 views

Italicized or emphasized text is not displaying

There's an infinite loop with the Captcha under Chrome, so once again I have to use this avatar. I have two issues with my document and would appreciate assistance. For some reason italics or ...
7
votes
3answers
271 views

Draw italic box as a placeholder (around a single letter) in a word

I am comparing a lot of different cases that are all following a predefined naming scheme. I would now like to replace one of the character in the name with a box to indicate that this parameter is ...
6
votes
1answer
158 views

Why does the ragged2e package screw up my emphasized text and headings?

I encountered a weird behavior of the ragged2e package. \documentclass{article} \usepackage{blindtext} \usepackage{amsmath} \usepackage{ragged2e} \newcommand{\ir}[1]{_{\mathrm{#1}}} ...
2
votes
2answers
159 views

How to redefine \emph to have bold text with bold math?

This question explains how to redefine the \emph command so that the text is bold. When mathematical text is included with emphasized text, I have been using the following solution: ...
3
votes
1answer
175 views

How to emphasize a part of a line in listing?

With the package listing I can use emph= to emphasize specific identifiers in the whole listing. \begin{lstlisting}[style=towi, title=Functions,emph={add}] void print(int arg) { /* ... */ } int ...
0
votes
0answers
14 views

Underline in 2 column format paper [duplicate]

I am trying to make an underline using \underline{TEXT} in a 2 column format paper. However, when I underline the text, if it is long, it doesn't go to the next line and just continues straight. I ...
3
votes
1answer
85 views

Not enough emphasis on some symbols

I'm trying to write some text in bold font but some symbols are not set in bold properly. The emphasis is set with \bfseries and is correct for :: and = but not enough for > and -. See below image for ...
5
votes
2answers
2k views

Redefine \emph to be both bold and italic

I'm trying to redefine the \emph command to make text bolded in addition to being italic, but when I use \newcommand{\bfemph}[1]{\textbf{\emph{#1}}} \renewcommand{\emph}[1]{\bfemph{#1}} I get an ...
2
votes
1answer
54 views

In FoilTeX, with sans serif font, \emph gives serif font

I'm using the foils class. I'd like all the text to be serif, so I added \renewcommand{\familydefault}{\rmdefault} to the preamble. However, when I use \emph{}, it displays italicised SANS serif! ...
2
votes
1answer
107 views

Create a command for a different font

I'm pretty new to Latex and I am writing my thesis. I would like to use a command that I can essentially change the font of a few words in-line or separate (like an equation). I have computer ...
1
vote
1answer
225 views

LyX doesn't know `eqref`?

LyX somehow can't use eqref. (I use version 2.0.2 and wouldn't want to update, if possible, since I've set up everything in a very specific way and wouldn't like a new version to perhaps tamper with ...
2
votes
2answers
55 views

Automatically not emphasizing references inside propositions

Is there a way to make reference not emphasized in proposition ? For propositions I used the standart AMS packages, so everything is emphasized in it. Thus, when I insert a reference, it also ...
1
vote
0answers
60 views

Spacing between words in listings package and emphasizing identifiers

I have written some source code using listings package but is stretching out of the page. This package leaves huge spaces between the words, so is there a way to make them smaller? At least like the ...
0
votes
1answer
72 views

How to dim part of the syntax-highlighted source?

I'd like to typeset a (LaTeX) source code with syntax highlighting (I guess I'm going to use minted, but I haven't decided that for sure yet). I'd like to have complete examples (with \documentclass ...
1
vote
0answers
330 views

Lyx - Enable emphasized text hyphenation, prevent overflow

I use emphasis in Lyx to indicate variables in a description of a computational algorithm. Some of these variables have a long name. Lyx does not attempt to hyphenate these variables when they enter ...
2
votes
1answer
146 views

Make \emph{} look like Stackoverflow highlighting

How can I make \emph{} look exaclty like this StackExchange highlighting. I like the highlighting from StackExchange forum family and would like to use it in my Latex document. Sorry I can't put my ...
1
vote
0answers
25 views

How to define a bold font style for \emph text [duplicate]

Recently, I wanted to set all my \emphasized text to bold, because I think the default Italic of \emph is not distinctly emphasized. But I haven't found a solution for it. Please give me some idea. ...
6
votes
1answer
116 views

\em of ulem package surrounding by environment does not compile

The following code does not compile if any % is removed. It reports run away argument. \documentclass{article} \usepackage{ulem} \begin{document} \begin{center} %\em This is center ...
2
votes
1answer
100 views

Should I emphasize the hyphen, here? [closed]

I need to emphasize one part of a combined word containing a hyphen (cis-Golgi). What would be correct? Including or excluding the hyphen / minus in \emph{}? Does it make a difference?
5
votes
2answers
181 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
118 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
385 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 ...
8
votes
1answer
960 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
129 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' ...
14
votes
2answers
812 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
60 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 ...
6
votes
2answers
137 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
73 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
933 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
216 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
179 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} ...
16
votes
1answer
4k 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 ...
11
votes
1answer
1k 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, ...
12
votes
1answer
847 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} ...