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

Questions tagged [awk]

{awk} is about questions related to the AWK language and TeX

Filter by
Sorted by
Tagged with
2 votes
2 answers
181 views

Automatically remove \ifthenelse

Let's assume that you have a single LaTeX source file that can compile two arts of documents: a main conference paper and its extended long version. Inside, you use \ifthenese to produce the two ...
user avatar
2 votes
0 answers
836 views

Can I Use LaTeX to Convert UK to US Spellings? [closed]

I have written a paper using LaTeX. My supervisor wishes to use US English for our paper to submit to an American journal. However, I'm based in New Zealand and have written the entire paper in LaTeX ...
Tom Kelly's user avatar
  • 387
10 votes
1 answer
3k views

drawing the mean in a pgfplot

I would like to add a straight line to a pgfplot that indicates the mean of the data. For a histogram, this should be a vertical line; for a simple plot, a horizontal line. Now, I do get as far as in ...
Shedeki's user avatar
  • 103
5 votes
2 answers
1k views

Shell script which parses .tex files for figures

I would like to pull all figures including captions out of multiple .tex files and write them into a single new .tex file. This means I have to parse for \begin{figure} . . . \end{figure} and ...
Eekhoorn's user avatar
  • 3,507
19 votes
4 answers
1k views

Extract all emphasized words from latex document

I need to produce a list of all words that are emphasised in my LaTeX document (=which are enclosed by \emph{...}). How can I use awk to process the .tex file and extract all patterns starting with \...
juri's user avatar
  • 309
6 votes
1 answer
764 views

Some useful AWK scripts for TeX users

Some people like old cars, some like antiques, and I like classical Unix toolbox. Most likely the second (after shell script) scripting language that any old school Unix user learn is AWK. It is an ...