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

2
votes
1answer
56 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
35 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
33 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
40 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
37 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
85 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
73 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
16 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
79 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
84 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?
4
votes
2answers
121 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
65 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
167 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
421 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
95 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' ...
12
votes
2answers
519 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
114 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
52 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
455 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
120 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
93 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} ...
11
votes
1answer
2k 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
626 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
380 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
2k 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
6k 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
289 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
62 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 ...
13
votes
1answer
379 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
2k 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
938 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
112 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
495 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
795 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
302 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
204 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
449 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
317 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
920 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
704 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
1k 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
1k 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 ...
7
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 ...
36
votes
4answers
29k 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
512 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
823 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
582 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}, ...
18
votes
5answers
5k 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 ...