17

This question already has an answer here:

I'm a beginner trying to use LaTeX. I tried to write a sentence which includes the %-symbol using \text{}, but the function that the %-symbol has in LaTeX seems to block me from using it in a normal text sentence.

\documentclass{article}
\usepackage[utf8]{inputenc}
\begin{document}
\maketitle

\text{I can't use the %-symbol}
\end{document}

marked as duplicate by Werner, gernot, David Carlisle, egreg symbols Nov 14 '16 at 23:43

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • Welcome to TeX.SX! You have to type \% (backslash percent) to get a percent sign. – gernot Nov 14 '16 at 23:14
  • 1
    See also Escape character in LaTeX. – gernot Nov 14 '16 at 23:28
  • @Werner, are you sure this is a duplicate of the link of you've posted? It seems to me that is not the case. This post asks about typing special characters of Latex within a text. – CroCo Nov 14 '16 at 23:31
  • There is no need for \text{}. You are already in the text mode. – CroCo Nov 14 '16 at 23:33
  • @CroCo: Yes. I can find it on Detexify and it is listed in Table 1 of The Comprehensive LaTeX Symbol List. And the use-case would be no different if you didn't use \text. – Werner Nov 15 '16 at 1:01
24

very simple

use \ before the %

as

\text{I can't use the \%-symbol}

Second you do know that you need to load package amsmath

as

\usepackage{amsmath}

lastly, why do you need \maketitle?

anyways there you go you can use \% to show symbol and to use \text you have to load package \usepackage{amsmath}

have a blessing day

  • I don't know why those commands are used, it's just a sort of template i'm using. – Luuk Nov 15 '16 at 6:03
  • 1
    luuk, it what are you using latex for? i use it mainly for journal / article or beamer. and you really never have to use '/text'. let me know if i can help on anything – Eric Nov 20 '16 at 2:04

Not the answer you're looking for? Browse other questions tagged or ask your own question.