{scripts} is for questions involving external scripts (small programs in source code form) related to (La)TeX.

learn more… | top users | synonyms (1)

7
votes
1answer
684 views

MiKTeX and Perl scripts (and one Python script)

Again and again here on TeX.SX users of MiKTeX ask a question having a problem with a package or included program, where it turns out, that a Perl script is involved, in particular glossaries (because ...
126
votes
17answers
35k views

Is there any way to do a correct word count of a LaTeX document?

Often assignments (or even papers) have a word count limit. That is not a big deal when using Word, but I don't know how to do that using LaTeX. My solution has been so far to compile the document and ...
8
votes
2answers
229 views

replace often used Tex-Literals ($ and $$) for math regions into \( or \) and \[ or \]

Is there an editor or IDE (or a script) for substituting the TeX-Commands $ and $$ for opening and closing math regions into the corresponding LaTeX-Commands \(,\) and \[,\]? I'm sure there is a tool ...
9
votes
1answer
2k views

all-in-one-engine for TeXShop

I am trying to write my 'Matura work' for school in LaTeX. Therefore I am using MacTeX and TeXShop and normally it works fine. But I am really annoyed with running all these different engines like ...
5
votes
3answers
834 views

How to make the rmligs script available globally on Windows?

Hopefully on-topic as about "(La)TeX related software and tools" I just learned about the rmligs script. Since it isn't available through MiKTeX (and neither through TeX Live), I downloaded the ...
11
votes
6answers
3k views

Generate LaTeX Truth Table with Python Cheetah

While looking for code which can automatically generate truth table in LaTeX I stumbled on this Python generator. It appears that the code can be used from Cheetah's framework. Can anybody point me to ...
24
votes
6answers
926 views

How can other programming languages and tools be used to create content for TeX documents?

When writing about programming languages or tools one often wants to include output from them in the document. Then it is useful if such output can be created as the document is compiled. For ...
14
votes
3answers
795 views

Automatic document update

As many of you I do quite a bit of teaching to make living. The worst part of the semester is usually beginning when I create and upload course Syllabi as well as the end of the semester when I ...
8
votes
2answers
984 views

How can I update TikZ/PGF?

I am searching a script that will do the following. Removing all old PGF/TikZ files in my local texmf tree Installation of all new PGF/TikZ in my local texmf tree of the csv repository: PGF and TikZ ...
20
votes
4answers
1k views

texdiff for multi-file documents in subversion

I've been looking for a convenient way to highlight changes between subversion revisions of my Latex document in the generated PDF. I am working on a reasonably complex document that pulls together ...
18
votes
4answers
920 views

How to create a PDF presentation for each available Beamer theme automatically?

Rather than changing the theme by hand and compiling it for each available theme, is there an easier way to do so such that I can get a PDF presentation for each available theme automatically?
10
votes
3answers
745 views

Most efficient method to strip all of the LaTeX code from a document?

Can some people please give me some suggestions for the most efficient method to strip all of the LaTeX code from a document? The best method that comes to my mind, which I have no clue about how to ...
5
votes
1answer
1k views

Run a shell script from a PDF generated by LaTeX

I have a shell script (which should open some program/file) which I want to invoke by clicking on a link in the generated .pdf file (in my case a beamer presentation). I tried including: ...
8
votes
2answers
730 views

Compiling latex directly from R

I want to find a programmatic way of converting a .tex latex document to pdf. What I usually do, and this works in most cases, is to use: tools::texi2dvi(latexfile, pdf = TRUE, clean = TRUE) ...
4
votes
2answers
1k views

Unable to use python.sty package

When compiling a .tex file that uses python.sty package and contains: \begin{python} ... \end{python} I keep getting an error: ./main.tex:33:I can't find file 'bin/main.py.out' \end{python} ...
0
votes
1answer
248 views

Problem executing script for latexdiff

I am a LaTeX beginner and new to Scripting. I try to implement this interesting solution for latexdiff and multiple files found in this question-answer before I begin writing my phd thesis. However ...
16
votes
6answers
2k views

Automatically replace all |foo| with \abs{foo}

Technically speaking, this isn't a LaTeX specific question, but there are so many useful tools in LaTeX, and I'm using it to solve a LaTeX problem, so I thought here would be a good place to ask. I ...
39
votes
3answers
4k views

Detecting all pages which contain color

In an larger LaTeX document there are often only some pages with color content (mainly figures) and the remaining ones are only black and white. Because printing costs for color pages are much higher ...
16
votes
2answers
3k views

Write18: capturing shell (script) output as command/variable?

Let's say I compile the following file with pdflatex -shell-escape test.tex: \documentclass{minimal} \begin{document} File listing is: \immediate\write18{ls /usr} \end{document} This will send ...
10
votes
3answers
294 views

How to replace all $ $ by \( \)?

I want to replace all TeXish math $ $ in a tex file by LaTeXish \( \) and also $$ $$ by \[ \]. How can I do this cleverly? Please beware that in TikZ environment, one can not replace $ $ by \( \).
10
votes
2answers
917 views

Is there a tool/script available to simply install packages locally?

This question is not on how to manually install packages but how to install packages automatically via script. This question is not about MikTeX or the limited tex package management in certain linux ...
7
votes
1answer
815 views

Search & Replace Script for TeXworks

Does anyone have an example for a search & replace lua script that I can use with TeXworks. I have a rather large document here (about 3'000 pages DIN A5) which I need to update continously. To ...
14
votes
1answer
495 views

Testing Framework API for LaTeX

As part of an online exam application, we need to automate the evaluation of LaTeX scripts written by the students. Essentially, the script should be evaluated against a set of test cases and if it ...
14
votes
2answers
674 views

Use \addbibresource via a script

Is there some way to use \addbibresource with biblatex to fetch a remote bibliography (in my case from CiteULike), but piping it through a script first? The output from CiteULike isn't perfect for ...
2
votes
1answer
2k views

Converting from LaTeX to HTML using htlatex

Using htlatex to convert LaTeX to HTML Referring to the question posted above. So I used both the script and the htlatex command from the command-prompt in order to convert my LaTeX file to HTML but ...
4
votes
2answers
326 views

Generate list of all installed (La)TeX files

I'm trying to write a script (Perl) for the general public which would need to have a list of all installed TeX files of a certain type, e.g. .sty and/or .cls files or only plainTeX files (.tex), ...
6
votes
1answer
206 views

What is the state of support for (Unicode) Indic scripts in Context?

I have used XeTeX for typesetting a book using Unicode Malayalam. It is working perfectly and the production is fine. Reading about ConteXt, I learn it is more suitable and flexible for book ...
5
votes
2answers
1k views

error “latexdiff: The Perl Script could not be found.” [duplicate]

I have MikTeX 2.9 installation and Strawberry Perl 5.10.1.5. All the latexdiff, latexdiff-fast, latexidff-so paths seem to be present in the scripts.ini file and their .exe files in the ...
5
votes
2answers
1k views

External scripts when using TeXShop

As I wrote in this answer to my question, I decided to use a shell script in order to concatenate the bunch of .tex files and compile them. However, this way, when ever I want to compile the whole ...
3
votes
1answer
384 views

Possible to have a shell script containing the whole LaTeX document?

I've seen some examples where shell scripts are incorporated into LaTeX documents. However, I haven't seen any example of an entire LaTeX document being incorporated into a shell script. Does anyone ...