0

Which command should I use to get the shorter version of underscore, on picture below. I tried everything _ , {_}, \underscore, \textunderscore, but I always get the longer version of underscore - shown on other image. I even tried \underscore{ } and \underline{ }, but if I use this two expressions, my undercore is not lined with text, but it is below the text.

Please help!¨I am losing my mind!

I forgot to mention that I even used all commands noted above with $...$, but no luck either.

enter image description here enter image description here

\documentclass[a4paper]{scrartcl}

\usepackage[slovene]{babel} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage{amsmath} \usepackage{amsfonts}

\begin{document} \textbf{latex}_\textbf{Priimek}_\textbf{Ime} \end{document}

enter image description here

Markus G.
  • 2,735

1 Answers1

1

You can redefine the size of the underscore by using \renewcommand{\_}{\textscale{.5}{\textunderscore}} You need to load \usepackage{relsize} in your preamble

\documentclass[a4paper]{scrartcl}

\usepackage[slovene]{babel} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage{amsmath} \usepackage{amsfonts}

\usepackage{relsize}

\begin{document}

\renewcommand{_}{\textscale{.5}{\textunderscore}} \textbf{latex}_\textbf{Priimek}_\textbf{Ime}

\end{document}

enter image description here

nlair
  • 329
  • 1
  • 9