Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

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 ...
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 ...
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 ...
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 ...
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 ...
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[...
11
votes
1answer
30k views

How to use \IEEEkeywords

I am trying to have \keywords ... and used \begin{keywords} { . . . } \end{keywords} but the compiler keeps telling me to use \IEEEkeywords instead... but I haven't find a clear (and simple) ...
11
votes
1answer
2k views

listings package - Can I include a backslash \ in language keyword (\begin) for syntax highlighting in LaTeX code?

I want to highlight a LaTeX code (including backslash \, e.g. \begin). Unfortunately, by default a LaTeX listings package does syntax highlighting only keywords WITHOUT back slash (e.g. begin).
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
2answers
39k views

How do I put keywords into abstract in elsarticle?

I am really new to LaTeX. I am preparing a journal article in Tex Studio. I downloaded TexLive as well and am using it. Problem is \begin{keywords) returns unrecognized command. \end{abstract} \begin{...
9
votes
2answers
3k views

Springer's middot character

In the "Springer Guidelines for Authors of Proceedings", I found that: Keywords: Please list your keywords here. They should be separated by middots, if possible. ... So I assume that the LaTeX ...
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 ...
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 ...
7
votes
1answer
998 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 ...
7
votes
1answer
249 views

Show all colored words at the end of document

Is there any way to show all colored words at the end of a document? Say I'm marking definitions as red and theorems as blue. Is it possible to make a list of "keywords" where all red words is ...
7
votes
2answers
4k views

Adding Keywords to Existing Language for Listings Package

I would like to add more keywords to an existing language definition so that when I use \begin{lstlisting} ... \end{lstlisting}, the new keywords are highlighted along with the predefined ones. This ...
7
votes
1answer
13k views

IEEE references in alphabetical order or numerical order?

Thank you all for your time reading and replying to my question(s). I am really confused about two major issues. Issue One: I am writing an IEEE conference paper and I am trying to understand why ...
7
votes
1answer
988 views

How can I highlight a keywordsprefix in listings?

Ok, so here's my problem which I'm repeatedly gnawing on, whenever I try to typset source code. To this day, I have not found someone on the internet asking for the same problem. I want to add a ...
7
votes
1answer
3k views

LaTeX code formatting using lstlistings: custom keywords not recognized

I'm trying to add some keywords to an existing language using the morekeywords setting: \documentclass[12pt]{article} \usepackage{color} \usepackage[usenames,dvipsnames]{xcolor} \usepackage{listings}...
6
votes
3answers
4k views

Bib file convertion to csv or Excel

I have a large .bib file and need to analyze which keywords are used in which bibliography entry. Therefore I am looking for a "tool" to convert the .bib file to CSV or XLS format. I need a CSV which ...
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 ...
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 ...
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 ...
6
votes
1answer
2k views

Override properties of a predefined listing style

I use the listings package and I want to override an attribute of the HTML style. Unfortunately my code overrides the whole HTML style and not just a single property: \lstloadlanguages{HTML} \...
5
votes
1answer
277 views

How to make #include <stuff> to be highlighted as keywords?

I have the following snippet of code: \documentclass{beamer} % Solarized colors \definecolor{sbase03}{HTML}{002B36} \definecolor{sbase02}{HTML}{073642} \definecolor{sbase01}{HTML}{586E75} \...
5
votes
1answer
450 views

mark LaTeX keywords in listings

I am using this code to define keywords for listings \lstdefinestyle{demostyle}{ columns=flexible, keepspaces=true, basicstyle=\small\ttfamily, language = [LaTeX]TeX, ...
4
votes
3answers
113 views

What markup indicates a newly introduced word?

Suppose I am writing a book where I want to mark newly introduced words. What is the LaTeX markup in say, the following passage from The Lorax (Dr. Suess)? And with great skillful skill and with ...
4
votes
1answer
3k views

Keywords not showing up using journal template

So I am submitting a journal article to Elsevier, and using their template. However, I am unable to get keywords to work. I am replacing the dummy words with mine, but none of it is showing up. Can ...
4
votes
2answers
15k views

Bibtex Key definition

I only recently started using Latex for my university documents and for my current one I am using a template provided by them. I am using bibtex to manage my sources. Here is an example bibtex-entry: ...
4
votes
1answer
542 views

Why aren't my keywords recognized when immediately followed by a comma?

I am using listings to display custom keywords in bold. In my listings, those keywords are sometimes followed by a comma. However, in the example below, any comma following a keyword will prevent the ...
4
votes
2answers
4k views

How to use a colon in lstlisting keywords?

for the use of CSS code I've defined the following style: \lstdefinelanguage{CSS}{ sensitive=true, alsodigit={-}, keywords={transform, transition-property, transition-duration, transition-...
4
votes
1answer
161 views

Parsing some buzzwords in the Latex document and replacing them by link possible?

Is it possible to parse teh whole document automatically, looking for buzzwords, which I will maintain in a special list, and replacing the buzzwords by links to a predefined page e.g. a glossary?
4
votes
1answer
764 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 ...
4
votes
1answer
445 views

How to highlight a non-ascii keyword using the listings package? [duplicate]

I'm trying to highlight a couple of keywords which contain non-ASCII characters using the listingsutf8 package. This is the relevant part of my document: \usepackage[brazilian]{babel} \usepackage[T1]{...
4
votes
0answers
176 views

listings keywords highlighting with underscore [duplicate]

I have a function named log_prior(...) and I don't want the 'log_' highlighted, here's what I tried \documentclass{article} \usepackage{listings} \usepackage{color} \definecolor{dkgreen}{rgb}{0,0.6,...
4
votes
0answers
92 views

Highlighting keywords with spaces with the listings package [duplicate]

Possible Duplicate: How to emphasize within a listing two successive identifiers separated by a space? I am trying to highlight the following keywords with the listings package: over window:...
3
votes
3answers
708 views

how to add a key word beside a paragraph?

I would like to add a key word beside a paragraph for the sake of clarity as follows \documentclass[12pt]{article} \usepackage{blindtext} \begin{document} \blindtext \end{document} How can I ...
3
votes
1answer
268 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{...
3
votes
2answers
288 views

Single character keywords/operators with no spaces with listings package

I want to add a very simple macro language to listings. It uses single-letter keywords/operators, with no whitespace between. I can't see how to make keywords that don't require some kind of separator ...
3
votes
1answer
2k views

Address before appendix in amsart

I am writing an article using amsart class and because I'm having a little problem with placing the address, I'd like to ask for your help. If I use predefined commands to print out the address (...
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

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} \...
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

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
33 views

Lines Abstract Keyword

im super new in Latex. I just read some basic stuff. And i have this basic stuff: \documentclass[12pt, letterpaper]{article} \usepackage[utf8]{inputenc} \pagestyle{empty} \begin{document} \title{...
3
votes
4answers
141 views

Remove indent of first item without producing empty line

I would like to add keywords to my article. I used \renewcommand{\abstractname}{Keywords} to create the environment in style of the abstract. If I now add keywords using \itemize, the first item will ...
3
votes
1answer
286 views

How to replace semicolon with comma for pdfkeywords in hyperref

From an external file I get a list with keywords separated by ;. Since hyperref only works with keywords separated by , I need to replace the semicola. Following MWE works for text but not for ...
3
votes
1answer
515 views

Biblatex / biber reverse numbering w/ keyword filtering

I'm struggling with the (popular) biblatex change where the 2016 upgrade stopped reverse labeling from working. Someone has provided a solution for filtering by type here and here. This solution ...
3
votes
1answer
1k views

How to remove # keyword from a listing style?

I have a snippet of code I'm putting into a paper written in LaTeX. I don't want it to highlight any of the keywords that start with a # sign, such as #define, or #pragma. Here is a MWE of what I ...
3
votes
1answer
543 views

Why does a space destroy my keywords in listingspackage?

I am using the following: \usepackage{listings} \lstset{ language=C, keywordstyle=\color{pantone309!90}, morekeywords={ omp, parallel, \#pragma } ...