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

Questions tagged [scripts]

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

Filter by
Sorted by
Tagged with
7 votes
3 answers
21k views

OS X command-script to compile LaTeX

I'm trying to create a script that compiles LaTeX on OS X. Unfortunately I'm not familiar with the language and even though the code works, it has several flaws. Is it possible to close the terminal ...
Hugo's user avatar
  • 897
5 votes
2 answers
8k 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 miktex/bin/...
user24021's user avatar
  • 103
2 votes
1 answer
926 views

Configure TeXShop to run a script on the document before typesetting

Is it possible to configure TeXshop to automatically run a script on a document at the beginning of the typesetting process? I am interested in having the application run a python script on the ...
Кигава Енсеи's user avatar
6 votes
1 answer
383 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 ...
Hussain K.H's user avatar
8 votes
1 answer
8k 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 ...
Uwe Ziegenhagen's user avatar
1 vote
0 answers
1k views

More generic live preview editor? (can support pandoc and/or custom scripts) [closed]

I'm a fan of using things like pandoc, GPP and Rake to make my source files to look cleaner, be human readable, simplify my workflow and get some level of style/semantics separation (especially for ...
Jello_Raptor's user avatar
2 votes
2 answers
821 views

Is LaTeX scriptable through AppleScript and to what extent?

Before I go full into this software and explore it thoroughly, I have some questions that need to be answered. How far can I automate or script LaTex using AppleScript? I am choosing applescript ...
Jonathan T. Allen's user avatar
10 votes
3 answers
844 views

How do I make a script to make inkscape TikZ more human readable

When I export a svg file from inkscape to TikZ, the result is often huge, and not very human readable. I would like to write a perl script for post processing the output. The script should be able to: ...
hpekristiansen's user avatar
3 votes
3 answers
1k views

Script to delete a command and associated curly braces from source in TeXShop?

When I'm editing the source in TeXShop, I often find that I want to remove emphasis from a word or phrase. But deleting the \emph from the beginning of the word and the {} surrounding it is a bit more ...
Dennis's user avatar
  • 3,795
18 votes
4 answers
2k 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?
kiss my armpit's user avatar
6 votes
1 answer
1k views

pdftex and interaction=batchmode and xwatermark

I try to compile this file: \documentclass[10pt,openany,titlepage]{book}% \usepackage{lipsum}% \usepackage{xcolor}% \usepackage[printwatermark,default-first-page=10]{xwatermark}% \newwatermark[...
Pablo González L's user avatar
4 votes
0 answers
141 views

Is there a package or scripted solution to generate the program for scientific conferences [duplicate]

Possible Duplicate: Is there a LaTeX package for conference event programs? I am looking for a solution to generate the program to a scientific event with multiple conferences and workshops. I ...
Simon Wagner's user avatar
1 vote
0 answers
314 views

Script to import .bib and output HTML based on a style [closed]

I'm able to use various tools (such as pyP2B.py) to generate a BibTex database. I've also successfully created a AMA styled RTF of the database using JabRef and the APAish extension, although this ...
a coder's user avatar
  • 311
10 votes
2 answers
4k 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 -...
Marco Daniel's user avatar
  • 94.6k
89 votes
5 answers
33k 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 ...
Martin Scharrer's user avatar
1 vote
0 answers
93 views

Calling an external script from LyX [duplicate]

Possible Duplicate: LyX: How to add command line option/flag for latex compiling? Is there a way to call an external script with LyX? Something like the math-extern command, that sends the text ...
Idan Arye's user avatar
  • 193
3 votes
2 answers
4k 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} ./...
rook's user avatar
  • 383
26 votes
6 answers
3k 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 instance,...
N.N.'s user avatar
  • 35.5k
18 votes
6 answers
2k 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 -...
Bastian Ebeling's user avatar
1 vote
1 answer
123 views

Copy sectioning and non-text environments to new file (for presentation)

My situation is as follows: I've completed a thesis in LaTeX (memoir) and now need to create a presentation for its defense. That means copying all of the document structure from the thesis (...
mmdanziger's user avatar
3 votes
1 answer
6k 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 ...
S M Tadmir Bin Chisti's user avatar
45 votes
7 answers
6k views

What are the advantages of Lua over other scripting languages for a TeX implementation?

The question is inspired by Martin Schröder's answer to I am new to TeX. Should I use LaTeX, XeLaTeX, …? as well as my two previous questions on this forum: Automatic document update Generate LaTeX ...
Predrag Punosevac's user avatar
15 votes
2 answers
2k 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 ...
Primal Pappachan's user avatar
13 votes
6 answers
8k 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 ...
Predrag Punosevac's user avatar
15 votes
3 answers
4k 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 ...
Predrag Punosevac's user avatar
12 votes
2 answers
9k 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 ...
Robin des Bois's user avatar
4 votes
1 answer
2k views

Kile: show me script example

Can someone please show me an example script in Kile? I want a example. . . . .
Regis Santos's user avatar
  • 14.1k
15 votes
2 answers
166 views

How do extra braces impact the placement of items in the document?

I am placing some of my document through some outside BASH scripts, but want to protect some information such that the scripts will not change them. The simplest option for me is to put { and } around ...
Village's user avatar
  • 13.2k
7 votes
1 answer
4k 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: \href{run:./...
Dror's user avatar
  • 22.2k
8 votes
3 answers
6k 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 ...
doncherry's user avatar
  • 53.5k
14 votes
2 answers
1k 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 ...
qubyte's user avatar
  • 17k
9 votes
3 answers
5k 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) ...
Andrie's user avatar
  • 221
26 votes
4 answers
14k views

pdflatex bash script to supress all output except error messages? [duplicate]

I have a bash script which I use to compile a file with pdflatex twice (to make sure it sorts out references properly, etc.). This is the 'latexbuild' script I use: module load ctan pdflatex --shell-...
Eddy's user avatar
  • 1,845
13 votes
4 answers
4k views

Does LaTeX have a built-in scripting language?

Say I want to draw a simple graph in LaTeX. I'm interested to know if you can write a for loop or something to create things like lines or squares programmatically in LaTeX.
bobobobo's user avatar
  • 4,306
6 votes
2 answers
814 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), ...
Martin Scharrer's user avatar
2 votes
1 answer
5k views

How to generate LaTeX documents with Perl

I have to generate Software Requirement Specification documents in LaTeX. I have to use Perl to accomplish this. The documents consist of tables, lists, pictures, TOC, table of figures, headings and ...
AlexTheBird's user avatar
4 votes
1 answer
1k views

LaTeX compilation failure on Mac OS X from Python Script

I wrote a Python script to automate some LaTeX builds. Currently I develop/test on Mac OS X (did not try it on other UNIX flavors). The particular execution function which should compile the LaTeX ...
ovanes's user avatar
  • 324
37 votes
4 answers
12k 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 ...
sdaau's user avatar
  • 16.9k
14 votes
2 answers
2k 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 ...
alfC's user avatar
  • 14.1k
21 votes
4 answers
4k 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 ...
Stephen's user avatar
  • 311
17 votes
3 answers
1k views

Automated removal of unneeded packages

As others certainly do, I generally use a template for my papers, which contains everything I usually need (packages, macros, ...) to typeset my documents. However, my needs sometimes vary, and in the ...
Anthony Labarre's user avatar
4 votes
2 answers
5k 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 ...
Dror's user avatar
  • 22.2k
13 votes
2 answers
9k views

Exit codes of pdfLaTeX

In the script I presented in this question I encountered the following problem. In case of a compilation error, I have to cancel the execution of pdflatex 3 times. This can be very annoying. I would ...
Dror's user avatar
  • 22.2k
7 votes
2 answers
3k views

Filter .bib file for items that are actually used with \cite? [duplicate]

Possible Duplicate: How to split all BibTeX referenced entries from a big BibTeX database to a copy? I have one big foo.bib file that contains all my references. Every one of my different LaTeX ...
Frank's user avatar
  • 6,975
416 votes
28 answers
444k 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 ...
Vivi's user avatar
  • 26.4k

1 2 3
4