Change LaTeX emph with line marker style

2019-04-05 139 words 1 min read

Lets change LaTeX emph command to look with line markers.

We redefine LaTeX \emph like this.

Japanese
Gothic, Bold
Other
Italic, Bold
Maker
Yellow

We use uline--.sty. Because uline--.sty is not a standar LaTeX style, please download from this site:

This howo to redefine the emph command:

Code Snippet 1: Redefine emph (latex)
\usepackage[usetype1]{uline--}

\renewcommand{\emph}[1]{%
{\sffamily\bfseries\itshape%
  \uline[
    background,
    color={[rgb]{1,1,0.0}},
    width=0.8em,position=1pt]{#1}}}

With this, this Org-mode snippet:

Code Snippet 2: 強調の例 (org)
/強調の行です。 This is emph/ 。うまくいくかな?

converts to LaTeX like this:

(latex)
\emph{強調の行です。 This is emph} 。うまくいくかな?

This will be typese in LaTeX like this:

Figure 1: LaTeX Sample

Figure 1: LaTeX Sample


Tags: LaTeX

We notice you're using an adblocker. If you like our webite please keep us running by whitelisting this site in your ad blocker. We’re serving quality, related ads only. Thank you!

I've whitelisted your website.

Not now
This website uses cookies to ensure you get the best experience on our website. Learn more Got it