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

learn more… | top users | synonyms (1)

1
vote
0answers
93 views

How can I make a beautiful form to input in latex?

I want to make a form, with multiple choice, or buttons or whatever... And I want that this form will give me an output that I can use in LaTex, but I don't know how make this. an output like: ...
3
votes
3answers
82 views

How to clean unused files?

I recently edited an existing document to create a new one from it (that is: I copied the whole folder to a new location and started from there). The early document had a lot of figures, but not all ...
0
votes
0answers
83 views

Script to extract and copy from LaTeX files

I have a large LaTeX document, one main and a lot of \input{file} for each chapter. For each of these files I would like to copy them and only keep the Theorems, in other words I'd like to extract and ...
5
votes
2answers
91 views

Is there any way to know what equation number will be?

Suppose I am writing a LaTeX document describing some code and in the code I would like to refer to specific equation numbers in the document. Is there an automatic way to determine what equation ...
6
votes
2answers
103 views

Nicely recover embedded images

I have the latex source code and final generated PDF, but not the image files. I'd like to modify the document, so I'd like to recover the image file so that I can recompile. I can (very slowly) ...
4
votes
1answer
123 views

How to batch generate badges with a list of names?

I want to make a number of badges using LaTeX for the participants of a summer school. There are 40 or so people, so I don't want to manually change the name and compile and then print. I could think ...
1
vote
0answers
32 views

It is possible to generate more than one pdf from one source? [duplicate]

I would like to generate some pdf files with a 'for' cycle. The documents have to be very similar, but some variables are different. It is possible to do it with only LaTeX language without external ...
4
votes
2answers
116 views

TeXstudio: Can a script read its trigger?

I would like to write a macro with a trigger #[a-z] that, dependent on the character in the trigger, writes the corresponding Greek letter. That is, the trigger #a should produce \alpha, the trigger ...
9
votes
1answer
237 views

Make a “standalone” version of multiple files: all document in one .tex file

Disclaimer: this question is not related to the standalone package. When writing an article, I split the content between several files, to ease the versionning notably. At the time of writing, most ...
7
votes
1answer
83 views

How to pass argument to an external script?

I want to pass some argument to an external script. I try : \immediate\write18{./script \a\ \b\ \c > output.tex} It works, but \a \b and \c are not given as three different arguments, but as ...
5
votes
1answer
186 views

Splitting a huge `.tex` file to chapter files on TeX/LaTeX level [closed]

Inspired by (although a possible duplicate) Outputting each chapter of a LaTeX document to a separate PDF, I wonder whether there is a possibility to extract the chapter (or whatever sectioning level) ...
0
votes
0answers
359 views

Hyphen (-) , prime symbol ( ′ ), double prime symbol ( ″ ) are missing

\documentclass[conference]{IEEEtran} \hyphenation{op-tical net-works semi-conduc-tor} \begin{document} \title{Paper Title (use style: paper title)} \author{\IEEEauthorblockN{Authors Name/s per 1st ...
2
votes
1answer
64 views

TeXstudio readAllStandardOutputStr seems not to work

I try to insert automatic timestamps into a LaTeX file, to get id's for some items On a windows machine I have got the following macro (JavaScript): %SCRIPT var ...
9
votes
1answer
3k 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 ...
3
votes
2answers
683 views

Sublime Text Snippets just for LaTeX

If I want to write a few new Key Bindings for Sublime Text which should only work in LaTeX files (like typing _ or ^ after another character adds the surrounding curly brackets automatically) what do ...
1
vote
1answer
836 views

Small script letter in text or math mode?

I know that \documentclass{article} \usepackage{mathrsfs} \usepackage{extarrows} \begin{document} $\mathscr{ABCDEFGHIJKLMNOPQRSTUVWXYZ}$ \end{document} produce : but I want to know what is ...
3
votes
1answer
90 views

How to send a package to CTAN with ctanupload? (I get an error)

Im trying to send a new package to CTAN and I wanted to use the makefile given in the manual of ctanupload. This is how my file looks CONTRIBUTION = metrix NAME = Tobias Weh EMAIL = mail@tweh.de ...
10
votes
3answers
335 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 \( \).
4
votes
1answer
121 views

Triple scripts for analysis

I am doing the music harmonic analysis. There are plenty of symbols that must be added and there are need for: underscript triple sub/super scripts:
17
votes
6answers
3k 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 ...
1
vote
1answer
427 views

TextMate 2 and lost paths

This is a recent development, and I'm not sure what I've changed to make this happen… other than setting TM_SUPPORT_PATH to ~/Library/Application Support/TextMate/Managed/Bundles/Bundle ...
0
votes
1answer
308 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 ...
10
votes
3answers
1k 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 ...
3
votes
1answer
554 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 ...
0
votes
0answers
32 views

Problems With Text Encoding While Cutting [duplicate]

Introduction I'm learning how to type with LaTeX and I've found that the character encoding is very important to get good results. I find myself copying parts from pdf documents such as problem ...
11
votes
4answers
470 views

Autocompile LaTeX doc when updated in Windows (via dropbox, in this case)

Goal: I'd like to be able to have a script running on my Windows computer that autogenerates the PDF of my LaTeX doc whenever the main .tex doc gets updated. Use case is I am editing the .tex file ...
0
votes
1answer
438 views

Sublime Text 2 Snippet escaping backslash

I'm trying to set up a snippet for building a set with appropriate spacing. I want the snippet to generate the following markup when I type "set" + TAB: \{ \, content here \, \} I have the ...
4
votes
2answers
3k 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 ...
5
votes
2answers
2k 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 ...
2
votes
1answer
224 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 ...
6
votes
1answer
223 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 ...
7
votes
1answer
2k 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 ...
1
vote
0answers
479 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 ...
1
vote
2answers
365 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 ...
9
votes
3answers
623 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: ...
1
vote
3answers
372 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 ...
18
votes
4answers
1k 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?
5
votes
1answer
476 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}% ...
3
votes
0answers
67 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 ...
1
vote
0answers
174 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 ...
8
votes
2answers
1k 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 ...
44
votes
3answers
6k 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 ...
1
vote
0answers
62 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 ...
4
votes
2answers
2k 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} ...
24
votes
6answers
1k 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 ...
10
votes
2answers
254 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 ...
1
vote
1answer
101 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 ...
2
votes
1answer
3k 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 ...
32
votes
7answers
3k 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 ...
14
votes
1answer
536 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 ...