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

5
votes
2answers
109 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
82 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
38 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
50 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
50 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
209 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
27 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
87 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
68 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
40 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
49 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
55 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
155 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
85 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
18 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
85 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
86 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
135 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
77 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
233 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 ...
7
votes
1answer
568 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
108 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
600 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 ...
6
votes
2answers
120 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
56 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
564 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
144 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
113 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} ...
12
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 ...
11
votes
1answer
755 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
497 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} ...
14
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 ...
4
votes
4answers
9k 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
328 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
63 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
422 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 ...
6
votes
1answer
1k 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
118 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
538 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
877 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
374 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
244 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
523 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 ...
12
votes
3answers
327 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
1k 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
731 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} ...