Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [emphasis]

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.

1
vote
1answer
54 views

For Italicization, which command in LaTeX has turn-on behavior only?

Toggle, Turn-on, and Turn-off There are three types of behavior: TOGGLE Behavior if italics were ON, turn italics OFF if italics were OFF turn italics ON TURN ON Behavior If already on,...
4
votes
1answer
191 views

Redefine \em to use \slshape

My google skills are failing me. How do I get \em to exhibit it's usual behavior (i.e. {\em slanted {\em upright} slanted}), while making the emphasis be that of \slshape? If document class has any ...
2
votes
1answer
41 views

How to align equation numbers inside and outside of mdframed?

I am using mdframed to box equations to include the equation number, as I quite like how it looks. However I've noticed that this results in a misalignment between equation numbers that are boxed, ...
1
vote
0answers
41 views

emph: how to change the color only if two words follow each other?

I would like to know whether it is possible to give a different color for a string of multiple words. I would like to use dark blue for "proc catalog" and default blue for "catalog". Plese find the ...
3
votes
2answers
68 views

How to italicize enumeration in task environment

Consider the following MWE: \documentclass{article} \usepackage{tasks} \begin{document} \begin{tasks}[label-format=\itshape](4) \task Ex. 1 \task Ex. 2 \task Ex. 3 \task Ex. 4 \end{...
2
votes
1answer
206 views

Bōten/Wakiten (Japanese emphasis symbol) in [p]LaTeX

This may be a rather obscure matter, but I recently attempted to find an easy way of emphasizing Japanese text using bōten/wakiten (furigana dots) in a document I am writing using [p]LaTeX. So far I ...
12
votes
3answers
407 views

reflectbox in emphasis environment

I try to get irony punctuation mark in LaTeX with CMU font. This symbol is in Unicode: ⸮ (U+U+2E2E) So I search a way to get a correct rendering with CMU of this symbol. But the problem is the ...
3
votes
1answer
75 views

Strange listings syntax: emph=[<number>]{<identifier list>} or emph={[<number>]<identifier list>}?

In the documentation of listings (2015/06/04, Version 1.6) on p. 18 we see the example \lstset{emph={square}, emphstyle=\color{red}, emph={[2]root,base}, emphstyle={[2]\color{blue}} Note that the ...
2
votes
1answer
100 views

emphasis in the theorem enviroment

I'm doing a project in soluble gorups and I begin by defining a subnormal series. In this definition the words "factors" and "length" are both emphasised. However, in the theorem enviroment, the \emph{...
0
votes
1answer
67 views

Switch body font shape of newtheorem automatically

It is interesting that \emph will switch the shape of font automatically based on the current font is italic or not, e.g., \emph{This is \emph{non-italic} italic}. will produce something like: ...
3
votes
1answer
78 views

hyphenation in partly emphasised words

I frequently get to typeset texts where -- due to a specific philological convention -- shorter parts of the words are emphasised. As far as I understand the mechanism the start/end of the \emph-tags ...
0
votes
0answers
203 views

Text definitions - \textit or \emph? [duplicate]

If I want mark definition in text, should I use \textit or \emph. For example: A \textit{graph} is ... I know, it is not the same.
2
votes
1answer
365 views

Error: Reconstruction failed for \hl (highlighted) newcommand text

Sorry if this has been asked before. I could not find an answer to this problem yet. I'm finding some issues when highlighting text defined by newcommand: \documentclass{article} \usepackage{color,...
1
vote
1answer
980 views

Should the p in p-value (probability value) use the math environment or \emph{}?

I usually use $p$-value but I was wondering if \emph{p}-value is the recommended way to typeset terms with a one or more italicized character? (Edit: Similar cases include t-test, t-statistic and t-...
0
votes
0answers
61 views

How do I mark text as never to be emphasized? [duplicate]

An \emph inside another cancels the emphasis. But what if I want to make sure something is never emphasized, even if the surrounding emphasis is removed? \textrm doesn't turn off ItalicFeatures ...
0
votes
1answer
101 views

Ignore emph in Theorem environment

I'm using enumitem in a theorem environment: \begin{theorem} The following are equivalent: \begin{enumerate}[label=(\emph{\roman*})] \item \label{ref1} Something. \item \label{...
0
votes
1answer
38 views

Lyx - emphasize does not work due to macros - missing $ somewhere [closed]

When I emphasize a word, the document is not complied correctly. The error is ! Missing $ inserted. <inserted text> $ Trying to debug this, it seems to relate to my macro ...
2
votes
1answer
581 views

Bold letters within minted (bash/text)

I need to emphasise one entries in this liste of number, but I can't seem to use \textbf{} or something similar in within a minted workspace. How do I emphasise certain within minted? \documentclass[...
0
votes
0answers
135 views

\emph breaks soul's underline

\emph within soul's \ul leaves small gaps in the underline, their size varying depending on the font and whether there is a space after \emph. \documentclass{article} \usepackage{soul} \begin{...
6
votes
1answer
98 views

Improving spacing to previous word when redefining \emph to use letter spacing

The most common way to emphasise in German (and probably other) blackletter typesetting was to use letter-spacing (Sperrsatz in German). I am attempting to implement a way to effectively redefine the \...
0
votes
0answers
234 views

Why \emph{} is not working in beamer? [duplicate]

I am making some slides for a presentation. I am copying parts of a texfile which I made earlier. The \emph{} command is not working in beamer (even though it is working in my original texfile). For ...
1
vote
0answers
43 views

Clean way of italicizing whole preface with \emph inside (which will de-italicize) [duplicate]

I would like to set a part of the LaTeX document in italics but with using \emph{...} for emphasizing inside. This is easy to do within single paragraph where \emph can be easily nested. But since \...
11
votes
2answers
3k views

\textit is to \emph as \textbf is to…?

Supposedly, \emph is more "semantic" while \textit can be seen as an aspect of its implementation. LaTeX has no \strong --- as opposed to, say, HTML which has both <em> and <strong>. So ...
2
votes
1answer
99 views

Can I make a piece of text ignore formatting changes applied by its outer context?

I have a command which formats a piece of text a certain way. Simple example: \begincommand{\myformat}[1]{\texttt{#1}} I want to be able to place this command inside other text formatting commmands ...
4
votes
1answer
452 views

Changing the behaviour of `\emph'` inside an environment

I want to change the behaviour of \emph{} command inside definitions to be bold rather than italic. This question has a nice and elegant solution for the problem (or so it seems). It just doesn't ...
1
vote
0answers
192 views

\emph not working when fontspec is loaded [duplicate]

The following minimal example: \documentclass{scrartcl} \usepackage{fontspec} \begin{document} test \emph{emph} \textit{textit} \textbf{textbf} \end{document} outputs this: i.e. the \emph ...
1
vote
1answer
241 views

Beamer: Change the colour of text one line at a time using itemize/alert

I'm wanting to change the colour of the text in an itemized list one line at a time. This is the code I am using: \documentclass{beamer} \mode<presentation> \usepackage{amssymb} \usepackage{...
16
votes
1answer
2k views

\emph{} no longer works as expected in XeLaTeX / LuaLaTeX

Compiling with either XeLaTeX or LuaLaTeX, \emph{} no longer displays text as expected, i.e. in italics. \textit{} works fine. Here is a MWE demonstrating the issue. \documentclass{article} \...
4
votes
1answer
272 views

\emph and punctuation

I know \emph is to be used to emphasize text. However once in a while, a punctuation mark follows emphasized text, mostly commas and periods. When \emph makes text italic, it should extend to the ...
4
votes
1answer
887 views

Why did latex choose italic for emphasis text

This is not a duplicate of What is the canonical way to redefine the \emph command because I am not looking to change the behavior of \emph{}. I just wanna know why did LaTeX choose the default ...
4
votes
2answers
3k views

How to put box around a single equation in align environment?

I want to put a box around one of my equations in aligned environment. I am looking to do something similar to Attractive Boxed Equations, but the code only caters for individual equations. Here is ...
0
votes
1answer
472 views

Change the behaviour of emph per environment

Is there redefine the way emph behaves in the definition environment? Right now, since definition is in italics, emph just makes the text non-italic which is not enough to make it stand out. Is there ...
0
votes
0answers
97 views

\emph and \ce in titles with ClassicThesis

I have to use the \emph command (for a latin word) and the \ce command (for chemical formulas and compounds) in titles but the result with ClassicThesis is awful! In particular the \emph command in ...
3
votes
1answer
2k 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
589 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
101 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
834 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, ...
5
votes
1answer
608 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 \renewcommand{\emph}[...
3
votes
1answer
188 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). ...
2
votes
2answers
367 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
1k 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
1k 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. ...
5
votes
2answers
306 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} $$\underline{K}~\underline{\...
4
votes
3answers
8k 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 ...
3
votes
1answer
356 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. ...
5
votes
0answers
181 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
74 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 \glossary{\emph{...
1
vote
1answer
725 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 ...
2
votes
2answers
296 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
574 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 ...