As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [xesearch]

xesearch is a string finder package for `XeTeX`; applications may be check spelling, word counting, and syn­tax highlighting of pro­gram­ming lan­guages

Filter by
Sorted by
Tagged with
9 votes
2 answers
442 views

Spotting strings that are typos in "text mode" but that are right in "math mode"

My copy editor work is largely dedicate do spot typos. I have a kind of typos formed by strings like, e.g., ".", ",", ":"... (a space before a punctuation sign) that we consider typos in text-mode (...
Gabriele Nicolardi's user avatar
9 votes
1 answer
637 views

Word count and 'TeX capacity exceeded'

I use this piece of code in the preamble, obtained from Environment that counts words inside: \usepackage{xesearch} \newcounter{words} \newenvironment{assignment}{% \setcounter{words}{0} \...
DGarside's user avatar
  • 839
9 votes
1 answer
1k views

Convert all all-caps words to small caps

I'd like to turn all all-uppercase words, acronyms etc. into small caps, preferably automatically on the fly and without changing the source files. The ideal solution would also allow me to block some ...
Florian's user avatar
  • 2,899
5 votes
1 answer
605 views

wordcount with xesearch errors

I'm using some code I found here on stackexchange to count words in a LaTeX document. I'm using TeXLive on a Mac and using XeLateX to produce the pdf document. It produces a pdf, but with an error ...
Liz's user avatar
  • 75
4 votes
1 answer
606 views

Is there a way to have xesearch search and replace a term and have the replacement compiled as LaTeX command?

I have used the package xesearch https://www.ctan.org/pkg/xesearch?lang=en xesearch in my header to automatically replace shorthand notations: \usepackage{xesearch} \SearchList{list1}{Very Long ...
A Feldman's user avatar
  • 3,960
2 votes
2 answers
96 views

How to search for a phrase that includes a comma using xesearch?

I am using xelatex and trying to italicize a text segment that includes a comma. The only way ahead that I know of is by using xesearch and its command SearchList. It works for the most part, but if ...
Jishnu's user avatar
  • 168
2 votes
1 answer
109 views

Re: inserting a counter value that preceeds the counter environment in a latex document?

I am using the following macro to count the number of words in a journal article: \usepackage{xesearch} \newcounter{words} \newenvironment{wordcount}{% \setcounter{words}{0} \SearchList!{...
Steve Hodgkinson's user avatar
1 vote
1 answer
34 views

xesearch error dealing with itemize (\item)

I figured out a minimal working example. If \item good has the same starting word in the search list, the document doesn't compile. If I write something like \item foo, the document compiles. \...
Gqqnbig's user avatar
  • 482
1 vote
1 answer
116 views

XeLaTeX ligatures clash with package xesearch

I am using XeLaTeX to compile a document in French, using the fontspec package (with the Ligatures=TeX} option) and babel package (with the french option on). The problem: the endash and emdash ...
PatrickT's user avatar
  • 2,798
0 votes
1 answer
69 views

Error automatically apply special formatting to selected words in text (XeLaTeX) [duplicate]

I need to color a specific word in my document compiled with XeLaTeX engine, following this answer automatically apply special formatting to selected words in text. \documentclass{article} \...
Salim Bou's user avatar
  • 16.7k