The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
0answers
25 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
63 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}
1
vote
0answers
73 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
169 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 ...
2
votes
1answer
111 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
27 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: ...
1
vote
1answer
91 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} ...
2
votes
0answers
65 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
114 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
251 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
126 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 } ...
3
votes
1answer
943 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 ...
5
votes
2answers
9k 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 ...
2
votes
1answer
618 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} ...
1
vote
0answers
239 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
259 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 ...
6
votes
1answer
2k 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} ...
2
votes
1answer
2k 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
2k 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: ...
5
votes
1answer
269 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
816 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
485 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
577 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
2answers
849 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, ...
5
votes
1answer
324 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
559 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
195 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
0answers
59 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 ...
1
vote
1answer
155 views

Conditionally generate word explanations in appendix

Is there a way to declare a set of conceptual keywords with their explanation that will be taken and compiled into the appendix when one of the keywords is used throughout the documents body? For ...
0
votes
0answers
37 views

Word not hyphenated when surrounded by $ signs, and causing errors without $ signs [duplicate]

Possible Duplicate: Despite using backslash dollar sign, error persists I don't know why, but the word kAudioUnitSubType_RemoteIO is causing problems for me when I type it. I tried ...
3
votes
1answer
300 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, ...
7
votes
1answer
18k 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: ...
8
votes
2answers
781 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 ...
2
votes
2answers
888 views

adding keywords to be highligted in the lstlistings

The recent version of C++ has added a some new keywords e.g. decltype etc.. I want to highlight them in my report. I saw this post but it didn't work for me. Extend a language with additional ...
4
votes
1answer
6k 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) ...
2
votes
1answer
113 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
253 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} ...
25
votes
2answers
11k 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 ...
3
votes
1answer
2k 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: ...
7
votes
3answers
658 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 ...
7
votes
1answer
959 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).
2
votes
1answer
1k views

pstricks and beamer compilation with xelatex results in xkeyval error

I'm creating some slides and need to include a pstricks image. I'd like to compile the file via xelatex. My minimal example reads \documentclass[ngerman,xcolor=pst]{beamer} ...