The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
0answers
13 views

keywords error in abstract and outside abstract [duplicate]

I am not able to know why i am getting an error in the keywords is any package is missing ? \documentclass[apaper,12pt,spanish, preprint,times]{article} \usepackage{babel} \usepackage[utf8]{inputenc}...
7
votes
1answer
62 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 ...
2
votes
1answer
32 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{...
4
votes
2answers
41 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 ...
2
votes
1answer
44 views

Latex \keywords{} repeating keywords bug [closed]

I'm using an IEE conference latex model, and when I try to add keywords by using \keywords{ADAS, Smartphones, Data recording device, Road segmentation, Intelligent vehicles.} After my \end{...
2
votes
1answer
39 views

How to make Latex recognize individual keywords in lstlisting without delimiter?

I want to add a few lines of G-Code (used for 3D-printing) to my latex file using the listing package. Unfortunately, g-code is not supported as a language and therefore has no highlighted commands. I ...
1
vote
0answers
49 views

Define listings language with multiple keyword groups

I wanted to used syntax highlighting for a language unsupported by the listings package. Right now I have it almost working, but not completely. This is the MWE: \documentclass{article} \usepackage{...
7
votes
1answer
215 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 ...
1
vote
1answer
26 views

Set Keywords in two specific colors inside of a codeblock

Is it possible to set two Colors to Keywords inside of a Codeblock? I have the current settings for my Codeblock \lstset{language=[Sharp]C, captionpos=b, %numbers=left, %Nummerierung %numberstyle=\...
2
votes
1answer
38 views

How to get Key authors list from my references? [closed]

Currently I'm managing my thesis bibliography with JabRef and I want to know how to obtain key authors list and relations between them from all these references. I know that this can be accomplished ...
6
votes
3answers
240 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 ...
0
votes
0answers
76 views

Adding keywords to an algorithm in LYX

I am using the method explained in this post to add algorithms in LYX. I wonder if it is possible to add new keywords like (Input, Output, ...) so they appear in bold. I use Algorithm-Style Package ...
1
vote
1answer
114 views

keyword printing with achemso template

I am using 'achemso' package template on MixTex 2.9 and trying to print my keywords, but could not succeed. I have read that there is a bug fix report on the 'change history' section of the achemso ...
2
votes
1answer
477 views

How to make Keywords section for IEEEtrans conf. document class TeX file

I need to make below code as the Keywords of my paper in IEEEtran conference document class: \par \textbf{\textit{Keywords$—$}} Please help me with this. Thanks
4
votes
3answers
229 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 ...
7
votes
2answers
5k 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{...
2
votes
0answers
45 views

Listings - Getting the colors right for custom language

I have lots of bookkeeping transactions that I would like to typeset in a color coded format. I am using the listings package to accomplish what I want. I tried the following code. \documentclass[...
21
votes
5answers
806 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 ...
3
votes
2answers
378 views

Fast way to underline words and characters

I’m making a summary of definitions for Linear Algebra. I need to underline all vectors. This takes me a lot of time because \underline{u} is a long command to type. Is there a way to set an alias for ...
2
votes
1answer
199 views

Adding keywords to multiple languages in `listings` package

I have a pdflatex project where I need both Python and SQL listings. The listings package works great, I was able to add and reformat the extra keywords for Python with the following code: \lstset{ ...
3
votes
1answer
302 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 ...
4
votes
1answer
153 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 ...
5
votes
2answers
1k 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 ...
1
vote
0answers
26 views

Custom color in keywordstyle for listings under LyX [duplicate]

There are several Questions and Answers regarding the use of listings under LyX. And they mention, or explain, how to enable syntax highlighting. While this is easy to achieve, my attempt to use a ...
0
votes
0answers
251 views

How do put keywords in Texmaker with MikTex

How do put keywords in Texmaker with MikTex. \documentclass[10pt,a4paper]{article} \usepackage[latin1]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb}
2
votes
1answer
685 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 ...
6
votes
1answer
444 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 ...
3
votes
1answer
982 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 ...
1
vote
1answer
128 views

Translating the “keywords” label (icst class)

I'm writing an article for my faculty and I have to use this template. I would like to translate the keywords label, at the beginning of the template, to my native language. I tried: \renewcommand{\...
1
vote
1answer
438 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}...
2
votes
0answers
139 views

Listings Keyword Part of Comment [closed]

I made a homebrewed language for structured text (because I expected no language like this to be available). Now there is a comment that starts with /* and ends with */ and a line comment that starts ...
3
votes
1answer
694 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 (...
2
votes
1answer
423 views

Where is the MiKTeX list of keywords?

I recently downloaded Basic MiKTeX 2.9.4813.. I'm trying to find on the MiKTeX dir a file containing a list of all general keywords for LaTeX languages but can't find any... Could you help me?
4
votes
1answer
310 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 } ...
5
votes
1answer
4k 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 ...
9
votes
2answers
33k 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 ...
3
votes
1answer
2k 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=...
1
vote
0answers
532 views

Insert code snippet via keyboard shortcut in TeXworks

I know there already are questions (1, 2) on creating keyboard shortcuts in TeXworks. The discussion (also in the Google thread referred to), however, seems a little outdated. By now, there is the ...
7
votes
1answer
554 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}...
5
votes
1answer
7k 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 ...
4
votes
1answer
6k 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: ...
6
votes
1answer
522 views

format special 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 ...
2
votes
1answer
2k 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
944 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 ...
3
votes
1answer
1k 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 ...
4
votes
2answers
2k 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-...
5
votes
1answer
775 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} \...
1
vote
1answer
1k views

Include a lstlistings keyword in lstlistings caption

I'm writing a small summary for my fellow students about VB in LaTeX. I have to cover the basic loops and found the \lstlistnigs package to be the best for writing colored code. I have already added ...
4
votes
1answer
361 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 ...