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.
140
questions
0
votes
2
answers
54
views
Beamer: How to deemphasize some text / part of a slide in a theme friendly way?
Is there a counterpart of the \emph command, namely one that de-emphasizes some text? There is obviously the possibility to explicitly change the color to greyed-out, but that would depend on the ...
0
votes
0
answers
23
views
wider overall kerning for emphasis [duplicate]
Some older texts use wider kerning to emphasise text (see picture). I would like to mimic that in LaTeX. Is it possible to set up an environment (like \bf or \em) that does this?
1
vote
1
answer
76
views
Italic correction in tcbtheorem
I have redefined the \emph command to give bold and slanted text
\DeclareEmphSequence{\bfseries\boldmath\slshape, \itshape}
however, this appears to affect horizontal spacing on the line which \emph ...
0
votes
1
answer
54
views
Emphasise font automatically
I want abbreviations to be written using the \mathsf font. For this, I created a command \mystyle. I would like these abbreviations to be emphasised in emphasised environments automatically. Is there ...
3
votes
3
answers
409
views
Is there something similar to \itshape but for \emph text?
Edit: this question is misinformed and the chosen answer answers a different question altogether.
\emph produces slightly better italicized text for certain symbols, e.g., punctuation. Right now, I ...
0
votes
2
answers
2k
views
What does \rmfamily do, or how do I undo a declaration like \em and \bfseries?
The short example below shows that \bfseries has its effect, but that is superimposed on \em's effect. If \rmfamily just means "don't add anything", that also explains why it has ...
1
vote
2
answers
63
views
How can I endline in tabular environment?
How do you end line in a tabular environment so that it would stay in it's lane? I've made an improvisation but I would like it to be automated.
\documentclass[12pt,a4paper,titlepage]{report}
\...
1
vote
1
answer
85
views
hyphenation with smallcaps and other formatting in bidi RTL environment
When smallcaps, bold, or italics are used for part of a hyphenated word in a right-to-left bidi environment, weird things happen.
The following is a MWE of what I'm noticing (compiled with XeLaTeX):
\...
0
votes
3
answers
132
views
Use specific font for small caps inside emph context
I use \setmainfont{CMU Serif} to change the font. But CMU Serif doesn’t support small caps emphasis font as you can see with the following MWE:
\documentclass[a5paper,10pt,twoside,french]{book}
\...
0
votes
1
answer
48
views
Emphasise an equation within align environment
I would like to emphasise and so make bigger the first and the last row of this align environment. This because the two rows in the middle are of course important but not as much as the result.
I am ...
1
vote
1
answer
580
views
Overrunning Sentences within Emphasized Text When Using Microtype and Compiling with Lualatex [closed]
Consider the code which is to be compiled with Lualatex:
\documentclass{book}
\usepackage{lipsum}
\usepackage[tracking=true]{microtype}
\begin{document}
\large
\emph{\lipsum[1]}
\end{document}
which ...
0
votes
2
answers
100
views
Biblatex Reference list: Emphasizing name with prefix
In my reference list (manage with biblatex) I want to emphasize an author.
I did find the \mkbibnamegiven and \mkbibnamefamily commands.
The problem is my author has a prefix (not a name with space!) ...
3
votes
1
answer
2k
views
How to highlight the bullet points one by one?
I would like to achieve the following effect:
Show the first bullet point and highlight the keywords in it;
Show both the first and the second bullet points and highlight the keywords in the second ...
3
votes
2
answers
1k
views
A Visual Comparison of Emphasized Text and Italicized Text---What is the Difference? [duplicate]
Please consider the output of the following code in book class:
\documentclass{book}
\begin{document}
\thispagestyle{empty}
\Huge
\noindent \emph{Emphasized Text} \\[10pt]
\textit{Italicized Text}
\\[...
4
votes
1
answer
150
views
Defining a macro in which \emph behaves differently
I want to declare a macro \myemph which typesets its argument in italics. When \emph is used in \myemph, it should use boldface. But when \emph is used outside of \myemph, it should still use italics:
...
0
votes
0
answers
25
views
Is it possible to lock justification spacing for an inline part of the text?
I'm using \emph to denominate diagrams in my text, and, since they are referenced as almost like mathematical variables, I would like to keep them visually tight. However, LaTeX seems to go in the ...
0
votes
1
answer
133
views
How to make `\emph`ed letters bold italic when they are in `\textbf`?
I have some emphasised letters in \textbf{}, i.e. \textbf{\emph{abc}}, to bold-italicise the letters. However, the text merely comes to be italic, not bold italic. How can I redefine \emph to get bold ...
1
vote
0
answers
34
views
emphasise certain parts in lstlistings [duplicate]
I'd like to know wether there is the possibility to change the colour of a single word in a lstlisting. I know you can set certain words or characters to certain colours in the beginning with lstset{.....
1
vote
2
answers
88
views
Highlight text with math signs
I need to highlight some text with the command \emph whose content is "valeurAop += analogRead(mesure_aop)" : the compilation gives me an error, I think it is due to the mathematical symbols....
1
vote
2
answers
132
views
Underline text with === (SETEX style)
I'm trying to recreate the typewriter look.
How to make \underline{sometext} work like SETEX-style section marker?
The intended use is with monospaced/typewriter fonts for lines with plenty of space ...
2
votes
1
answer
931
views
Glossaries: italic first use in text but not the parentheses for specific entries
This might be a tricky one. I am using the glossaries-extra package to define a list of acronyms. In my document I have 'general' acronyms and sometimes 'jargon' acronyms that I would like to ...
1
vote
1
answer
75
views
Use Font and Emphasise at the same time
It seems that whenever I use setmainfont(Cochin), all the textbf{}, textit{} in the main text will just not work. Anyone know how to fix this? Thanks! I am not sure if it's because of the font.
The ...
0
votes
0
answers
61
views
How to make font within equations look normal [duplicate]
When writing maths equations and I want to write words within the dollar signs, or between when I've written \begin{equation} and \end{equation} it comes out in italics. I have tried \emph{...} but it ...
1
vote
1
answer
298
views
Emphasise text when gls{} is used
I'm currently writing my master thesis. I will handout a PDF version and a printed version aswell.
For the reason that hyperlinks will not look very good in the printed version I will remove them with ...
0
votes
0
answers
600
views
How to make part of the caption italic?
I just want a few words in my caption to be italic, not the entire caption. I have seen other questions on here about making part of a figure/table caption italic, but all solutions I saw were just ...
1
vote
0
answers
145
views
\emph isn´t working with scrartcl
I want to use \emph{}, but as I changed all \textit{} in \emph{}, my code isn´t working anymore. I am using TeX-Studio and suddenly it´s not showing me the page anymore. It says "Underfull hbox in..." ...
0
votes
1
answer
373
views
LyX with XeTeX refuses to use the italics version of David CLM
I've been using a setup of LyX with XeTeX on my laptop and it's been working just fine. However, I installed it on my desktop (with the same fonts, packages, everything) and I've noticed that whenever ...
6
votes
1
answer
420
views
Redefine \emph to typeset the first level in bold and the second level in bold italic
I would like to redefine \emph that odd emphasised levels are bold and even emphasised levels are bold italic (\emph{bold \emph{bold italic \emph{bold}}}). How could I redefine \emph using \em to ...
0
votes
1
answer
558
views
Expose single sentence through paragraph-like formatting
I was wondering if there exists a "common-practice"-possibility to expose a single sentence to
make it stand out without adding too much weight to the overall look of a page (i.e. I don't want it to ...
1
vote
1
answer
506
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,...
5
votes
1
answer
3k
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
1
answer
331
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
0
answers
162
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
2
answers
478
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
1
answer
551
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
3
answers
771
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
1
answer
231
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 ...
3
votes
1
answer
1k
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
1
answer
487
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
1
answer
512
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
0
answers
2k
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.
4
votes
1
answer
3k
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,...
8
votes
1
answer
6k
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
0
answers
80
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
1
answer
256
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
1
answer
158
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 ...
4
votes
1
answer
3k
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
0
answers
448
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
1
answer
244
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 \...
1
vote
0
answers
768
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 ...