Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more

Questions tagged [percent-sign]

The {percent-sign} `%` is used as a TeX comment, or typeset with `\%`.

Filter by
Sorted by
Tagged with
1 vote
1 answer

Convert % to macro, retain as comment?

I often transfer files between myself and someone with little knowledge of LaTeX, for editing purposes. So far, I have managed to get most TeX-specific oddities under control (thanks to utf-8 encoding)...
user avatar
1 vote
1 answer

Can't use percent sign in \directlua [duplicate]

while the following works: \documentclass{article} \usepackage{luacode} \begin{document} \directlua{token.set_macro("prjdatetime",} \end{document} I get in trouble when I want to ...
thomas's user avatar
  • 121
2 votes
5 answers

obtaining a substring with \directlua when original string contains %-character

I want to implement in LaTeX a sort of function with two parameters a String containing a percentage e.g. "3.20 %" an integer, e.g. 2000 The result should be the product of both numbers (in ...
Thomas Monnerjahn's user avatar
0 votes
0 answers

what's the point of % before line breaks? [duplicate]

I see this pattern of %(s) before line-breaks a lot in packages. What's the point of it? Is it necessary or a convention? For example: \newenvironment{blah}{% some command% some other command% }
Mili's user avatar
  • 1
0 votes
0 answers

Is it possible to use the percent sign in my acronym list?

I have an established list of acronyms in my document and use \newacronym to add new terms. I was hoping I could add one for %MVC using the following command: \newacronym{\%MVC}{\%MVC}{Percentage of ...
Jaime's user avatar
  • 1
1 vote
0 answers

What does "{%" mean? [duplicate]

What does "{%" (a brace followed by a percent) mean, and what is it called if I want to find the documentation for it? Here is an example. \newcommand{\atest} {% \includegraphics[width=1in]{...
Doug Ransom's user avatar
0 votes
2 answers

How can I write multiple % in url in figure?

I have something like that: \begin{figure}[h] \begin{center} \includegraphics[scale=0.17,angle=00]{some_images.jpg} \caption[The_caption} \textbf{\textit{Source :}} https://some_domain/...%C3%...
TTT's user avatar
  • 163
3 votes
1 answer

Special rule in Siunitx for percentages

The convention used at my workplace is to have spaces between numbers and units except percentages. Is there a way to create such an exception for a single unit throughout the document using the ...
Miloop's user avatar
  • 900
2 votes
1 answer

How to cite a youtube video (with URL when there are percentage signs)?

I would like to cite this youtube video in an overleaf file. I'm not sure how this ...
Monty's user avatar
  • 123
2 votes
1 answer

How do I use the following reference without it outcommenting the link?

I am quite new to overleaf/latex and have run into a problem. I want to cite a link which containt % and this outcomments the link is there anyway to get around this? code: @book{web:...
sisva's user avatar
  • 33
3 votes
1 answer

How to get the percent sign using the latex moodle package

I'm preparing a quiz for moodle using the moodle package (+ LuaLaTeX). When I input a percentage in the usual way (i.e. 40\,\%), the LaTeX render is OK but the backslash is passed along to moodle and ...
Christoph Frings's user avatar
0 votes
0 answers

Percent signs in class file [duplicate]

I am trying to write my own class and I don't quite understand the use of percent signs. For example, I have this snippet of code in my .cls file: \renewcommand{\maketitle}{ \begin{center} ...
fresh's user avatar
  • 413
3 votes
1 answer

How to underline siunitx numbers with soul?

I'm trying to write very long lines of underlined text containing percentages using soul for allowing linebreaking and siunitx for getting the right spacing, as I do in the rest of the document. ...
Alessandro's user avatar
5 votes
2 answers

How to escape percent sign (%) in \path or \texttt environment?

How to escape percent sign (%) in \path{...} or in \texttt{...}? For instance compiling this code fails since % sign starts comment: \path{%SystemRoot%\system32\drivers\etc\hosts} The result of ...
patryk.beza's user avatar
5 votes
3 answers

how to insert % symbol in a statement without intending comment? [duplicate]

I wish to insert a % symbol in a line. But the rest of the statement goes missing since % is usually intended for comment. How can I resolve this problem?
Sowmya's user avatar
  • 87
4 votes
3 answers

Want to show the percentage symbol using Helvetica rather than using the default text font

The following code produces a strange rendered percentage symbol which looks like this: Here's my code: \documentclass[12pt, a4paper, twoside, %openright, toc=listof, BCOR=5mm, bibliography=totoc, ...
Max's user avatar
  • 438
9 votes
1 answer

How can I \typeout a percent sign?

I want to \typeout a message containing a percent sign. I know that if I want to \typeout a macro followed by a space, as in: The name Name is unknown. I have to use \space, not \␣, because \space ...
Hammerite's user avatar
  • 3,596