We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [keywords]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
46
votes
4answers
37k views

Extend a language with additional keywords?

I'm using listings and I want to extend a language with additional keywords for highlightning. I know there is an option morekeywords available, but that only works for a particular lstset declaration ...
13
votes
4answers
1k views

automatically apply special formatting to selected words in text

Is it possible and furthermore constructive to make LaTeX automatically format specific words in specific way? Let's say, for example, I'd like to have every occurrence of the word "hello" in a bold ...
28
votes
6answers
2k views

Highlight every occurrence of a list of words?

In order to revise a draft, and identify related sections, I would like to identify similar words (by color of text, highlight, underline, or otherwise) according to topic. For example, I would like ...
9
votes
3answers
1k views

How to highlight keywords?

I have an article with many keywords mixed throughout. I also have a list of those keywords and their definitions (this list needn't appear in the document, and I can put it in a CSV or any format as ...
9
votes
1answer
1k views

Keywords with spaces in Listings

I want spaced keywords in listings (that is, keyword, with spaces in between). Now, there are some questions in this site already answered, like this one, where the official answer is that “it is not ...
12
votes
1answer
44k views

How do I put keywords after abstract in amsart?

I'm using amsart and want to place keywords after abstract but amsart places them in the footnote. Does anyone know how Ι can override this? An example of the code I've been using: \documentclass[...
6
votes
1answer
12k views

Add keywords to an existing language in listings

I've already read extending a language with additional keywords and I have found kind of a solution, but I'm not quite sure if it's the right way and if I won't have problems in the future. The ...
3
votes
1answer
267 views

\lstdefinelanguage cannot handle keywords #if, #endif,

I need to insert C-code snippets in my LaTeX document. Therefore I define a C-code language syntax highlighting: \usepackage[utf8]{inputenc} \usepackage{listings} \usepackage{color} \definecolor{...
22
votes
2answers
89k views

LaTeX Error: Environment keywords undefined

I am using a template for a conference and everything is OK, except for the "Keywords", This is strange, it didn't occur to me before. Usually I don't use a specific package for keywords. and the code ...
12
votes
1answer
5k views

Use multiple keywords in \ printbibliography to filter the bibliography

Is there a way to filter \printbibliography using multiple keywords that are present in the .bib file entries ? For exemple, I'd like the command \printbibliography[keyword={key_1,key_2,key_3}] to ...
7
votes
1answer
994 views

Use multiple keywords (OR) in \ printbibliography to filter the bibliography

Similarly, but slightly different from Use multiple keywords in \ printbibliography to filter the bibliography I wonder: Is there a way to filter \printbibliography using multiple keywords that are ...
1
vote
1answer
280 views

Biblatex/Biber subbibliography sorting by keywords

I want to make multiple subbibliographies using biblatex package and biber as backend. I know that the option sorting= of biblatex takes care of the sorting but it only knows name, year, volume and ...
6
votes
1answer
5k views

Colorize symbols with lstdefinelanguage in latex

I want to put some symbols in green color with lstdefinelanguage in latex, but it seems that symbols are not recognized. The symbols I need to be colored are =, > and <. Is it possible? How can I ...
8
votes
2answers
2k views

Multiple citations styles in the body text (biblatex), based on keywords

I've been looking for a while, but I don't manage to use multiple citation styles with biblatex, depending on different keywords contained in the .bib file. I already use keywords to sort my ...
6
votes
3answers
479 views

Automatically format words in a PDFLaTeX document which are in a keyword list

When writing technical documents, I often want to format 'technical phrases' (such as the name of some technology) in a particular way, which becomes annoying when I type the phrases frequently. I'm ...
4
votes
1answer
763 views

How to I emphazise all words beginning with ` in an lstlisting

I use a preprocesser to process some code before my verilog compiler. All preprocesser words start with the ` character Example: `pp_if unfortunately its possible to define your own preprocessor ...
3
votes
1answer
3k views

listings doesn't print my keywords bold in lstlisting

I've got the following problem: I want to print a listing with the listings package and lstlisting: \documentclass{scrreprt} \usepackage{listings} \begin{document} \begin{lstlisting}[language=...
3
votes
1answer
3k views

How to highlight own keywords in HTML lstlistings?

I would like to highlight some words in a lstlisting. The language is HTML. However, \emph seems not to be working with HTML. Any suggestions how I could work around this problem? Right now I have: \...
3
votes
1answer
2k views

How to use angle brackets for a keyword in \listings?

I've got a code of a HTML website that I want to show in my LaTeX document. The problem is, that the HTML code has a tag called <canvas> and the JavaScript code inside the HTML document has a ...
3
votes
1answer
3k views

Disable line numbering of specific lines

Is there way how to turn off numbering of lines for specific line in algorithm2e? I need bold : after keyword. So I tried redefine these macros: \renewcommand{\KwIn}[1]{\textbf{Input:} #1} \...
2
votes
1answer
2k views

How to correctly use equal sign in keywords for listings?

I work on a listings code style for HTML5. The style looks quite good but I have a little problem with the equals sign. I defined the equals sign as a keyword: ndkeywords={=, ... } This will cause ...
1
vote
1answer
1k views

How can I highlight keywords with special characters or numbers in them?

In the following MWE the declared keywords te-st and 999 are not highlighted as expected: \documentclass{scrartcl} \usepackage{listings,xcolor} \lstdefinelanguage{mylang}{keywords={test,te-st,999,xyz}...