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
2 votes
1 answer
267 views

Move editor viewport in TeXstudio script

I'm using the "Finding the next sectioning command" TeXstudio script from the TeXstudio wiki. The script moves the editor's cursor to the next sectioning command, i.e. the next \section{}, \...
chrisma's user avatar
  • 1,209
1 vote
0 answers
230 views

How do I run the build script for dissertate?

I'm writing my thesis in LaTeX, and since I don't really understand how computers work I'm having a little trouble. I've downloaded a generic template here: https://github.com/suchow/Dissertate The ...
user166222's user avatar
1 vote
1 answer
118 views

Seamless invocation of bib de-duplication script from document source preamble?

Unfortunately, for reasons beyond my control, I am stuck with mendeley as my citation manager which provides an option to export its library to a bib file. My mendeley library is organised into ...
Dr Krishnakumar Gopalakrishnan's user avatar
1 vote
0 answers
349 views

Running pdflatex from a RAM disk

For performance reasons. I would like to be able to run pdflatex directly from memory and not have to go to disk. Plan is to set up a RAM disk, /RamDisk, and run everything there. Currently I have ...
Peter Grill's user avatar
2 votes
1 answer
300 views

Determine active distribution via shell script

Background: Currently, I have installed /usr/local/texlive/2016 /usr/local/texlive/2017 /usr/local/texlive/2018 With TeXLive, I can use the TeX Live Utility.app to select which TeX distribution to ...
Peter Grill's user avatar
4 votes
1 answer
13k views

How to install REVtex into TEXlive

I have downloaded and installed TEXlive, I now wish to use REVtex on it. I have downloaded the zip file revtex4-1. However I do not know how to install it. I have looked on other forums and they have ...
user511607's user avatar
3 votes
0 answers
171 views

TeXshop with shell script setting can't find a program in the shell. Why does this happen?

Hello people in this site, I am a newbie to this site, and this is my first question here. In the Preference->Engine->Latex of TeXshop, I wrote as ~/Library/TeXShop/bin/pdfplatex2 where platex2 is a ...
hiroyuki's user avatar
4 votes
1 answer
334 views

Programmatically editing Synctex files?

I'm in a situation where I'm building my LaTeX with a script that preprocesses my .Tex files, producing new ones as output that are then compiled with latexmk. Ideally, the synctex files will point ...
jmite's user avatar
  • 1,509
0 votes
0 answers
148 views

Run Apple Script File (.scpt) from TexMaker

Is there a possibility to run an Apple Script File (.scpt) directly from TexMaker in macOS? EDIT: My intention is to delete all not used data like .log, .acr ... to be able to share the raw .tex and ....
PascalS's user avatar
  • 622
6 votes
1 answer
7k views

Multiple Find & Replace in TexStudio using Script Macros

I am using TexStudio with MikTex. I am using at least two packages regularly to create certain lists. Let us say, in one package I have to use \begin{exam} and \end{exam} to start and end list and \...
MathNovice's user avatar
1 vote
0 answers
373 views

Dual-dialogue in play scripts

Is there a package in which dual-dialogue (dialogue in parallel columns) in a stage-play script is possible? Thank you! Something like the example in this picture:
Tom's user avatar
  • 11
4 votes
6 answers
854 views

How to properly draw a circle with two tangent line marking the right angles

I've been trying to draw a figure, like the following draft, with precision for the last two days. After a research on internet I was able to test a lot of softwares and script languages. Two script ...
Dan's user avatar
  • 79
3 votes
1 answer
269 views

Is TeXMaker capable of using a .js script made to work for TeXWorks? If not, how do I go about turning a .js into a .tms?

I'm trying to do the following: LaTeX -> (text selected, keyboard shortcut pressed) -> \hyperref[LaTeX]{LaTeX} I can't use user tags for this because it can't use selection twice, only once. I ...
Robo's user avatar
  • 71
2 votes
1 answer
285 views

Short-commands for many German scripts

I am typing a note which contains many German script letters. In particular, I need to type a German letter in capital as well as small. I used following commands for such: .... \newcommand{\R}{\...
Soluble's user avatar
  • 339
1 vote
0 answers
97 views

Is it possible to install wrappers for scripts not available in the package distribution in a local texmf?

Is it possible to install wrappers for scripts not available in the package distribution in a local texmf ? I would like to be able to add some perl scripts (not present in the MiKTeX distribution) ...
Idefix's user avatar
  • 147
1 vote
1 answer
981 views

Can't embed hyperlink references in a tooltip

I'm having troubles trying to embed text references in a tooltip. I'm using the tooltip script which can be found here: Tooltip that works with all pdf readers. I'm also using the hyperref package. ...
Beafantles's user avatar
2 votes
1 answer
205 views

Chemistry diagram variable substitution

I would like to write a script for doing my biochemistry homework that utilizes variable substitution. For example, I could create a base molecule using ChemFig with an X on it, then substitute that X ...
devin's user avatar
  • 33
2 votes
1 answer
222 views

Unsupported line breaks for tooltips

I was looking for a tooltips package but as fancytooltips & cooltooltips doesn't do what I want, I switched for a script which can be found here: Tooltip that works with all pdf readers. ...
Beafantles's user avatar
1 vote
1 answer
685 views

Automatic closing and showing embedded PDF viewer in Texstudio

I know in Texstudio the embedding PDF viewer can be closed using Esc and will appear again if I hit F7 key and it can also be expanded. Is it possible to write a macro script for which whenever I ...
m. bubu's user avatar
  • 123
0 votes
1 answer
840 views

Create template and open in TexStudio (Linux) [closed]

I am constantly writing up my homework in Latex and they always have the same framework. Is there anyway I can create a script in Linux that creates a file with the framework then opens it in ...
David's user avatar
  • 101
0 votes
2 answers
212 views

Tool for adding index automatically to tex's files from a list

Is there any dedicated tool (script or LaTeX's package) for adding the \index command (or other command) to many LaTeX's files? The idea is to declare the list of the requested index such Henri ...
Guuk's user avatar
  • 1,483
1 vote
1 answer
433 views

How change TeXShop default engine depending on file type

How do I get TeXShop to open with a certain engine already selected when it opens a certain file type? Right now the default engine is always LaTeX, which is fine when I am opening .tex files. However ...
proteus7's user avatar
4 votes
1 answer
1k views

How to add markdown engine to TeXShop?

I have installed pandoc and MacTex so I can convert markdown to pdf from the command line but I want to be able to edit and compile .md files to pdf from the TexShop interface if possible. I looked ...
proteus7's user avatar
3 votes
1 answer
351 views

Script for dualizing diagrams in tikzcd

I'm very new to Tex, and recently realized that I will be needing to use TikZCD a fair amount. I began to draw many diagrams and realized that it would be very convenient if there was a quick way of ...
Ishan Levy's user avatar
4 votes
2 answers
2k views

Adding a new engine in TeXShop

I would like to add a new engine in TeXShop which is able to perform the xindy command in the following way: texindy -g meindok.idx I do not want to call the command every time from the command line,...
Andy's user avatar
  • 55
1 vote
0 answers
96 views

How creating a style or typeset for my own symbol

I write my own symbol or language script. How defining in TeX or Latex this symbol in new alphabet? source code This is example of my word: VVielka z1ool2ta z1aba z1arl2a z1ur. efect This is ...
Neumiasz Er's user avatar
2 votes
1 answer
574 views

Automatic insertion of commands in TeXstudio only during compilation / quick build (with script)

I would like to achieve the following functionality in TeXstudio 2.12.4 (hg 6476:3e5c3afa4719). During a quick build (Build and view, F5 shortcut), and only when I invoke this command, I would like ...
ksgj1's user avatar
  • 617
3 votes
0 answers
713 views

LaTeX to Windows Executable?

I have a .tex file that uses a specific 5-digit number (that I change in the document whenever I run it) and a .csv file to generate a PDF document. A co-worker of mine wants to use it, but ...
FissionChips's user avatar
1 vote
1 answer
183 views

Automatically generate similar docs

I need to generate the document containing items from txt file (for example). Txt file: Item 1 Item 2 Item 3 Item 4 Item 5 Item 6 Can I run script (?) which generate about the following: Header #...
Vasya  Pravdin's user avatar
0 votes
1 answer
130 views

Minted: Different 'firstnumbers' for each code piece

I use minted to view my bash script. But i have to split my code into 4 pieces. My problem is, that every code piece begins now with the number 1. i.e. i want, that piece 1 is from number 1 till ...
idontknowwhoiamgodhelpme's user avatar
1 vote
0 answers
100 views

Using a fixed .aux file

I teach a large class of about 600+ students and like to preformat my exams with names, tutorials, etc. I create an exam template in LaTeX, then have a script fill in the necessary information, ...
Tyler Holden's user avatar
2 votes
0 answers
263 views

ID-number descriptive lines [closed]

I want to describe each part of an ID-number, like so: How would I go about this? Could i set up something using tikz? I want to be able to describe IDs of different length and complexity. Preferably ...
Morten's user avatar
  • 63
10 votes
1 answer
313 views

XeTeX vs LuaTeX operator limits

To compare the \nolimits algorithms for operators for XeTeX and LuaTeX, I tested: \documentclass{article} \usepackage{unicode-math} \setmathfont{xits-math.otf} \begin{document} \[ \int_0^\infty \]...
breeden's user avatar
  • 377
2 votes
2 answers
2k views

Removing all markup automatically changes package [closed]

I have looked around and found no answer to this question. I am using the changes package, and I need to remove all markup from the source file. There's this question about using the delcmdchanges....
Elad Den's user avatar
  • 3,881
3 votes
0 answers
2k views

! LaTeX Error: File `luatex.def' not found [closed]

I've tried to make a bash script that uses pandoc in conjunction with LaTeX to convert my university notes from markdown to PDF. I initially copied the idea and script from someone of which I've ...
Alistair Hughes's user avatar
1 vote
1 answer
131 views

javascript script for automatic labeling of equations inside the tex file

What is wrong with the following code for script of the texstudio var linenumber = 0; var keynumber = 1; dialog = UniversalInputDialog(["a","b","c","d","e","g","h","i","j","k"],"Insert The Postfix:",...
Hamid's user avatar
  • 1,064
1 vote
1 answer
782 views

Autocomplete Texstudio macro script

Is it possible to use autocomplete in creating a macro script for Texstudio. The reason I need this is that I want to see what classes with what features can I reach when creating an script. For a ...
Hamid's user avatar
  • 1,064
3 votes
1 answer
2k views

TexStudio script for autolabeling formulas

I was thinking of a script for auto labeling the formulas in TexStudio. It should be able to Find a "{key}" Determine if it is in a math environment Choose a unique number for each equation ...
Hamid's user avatar
  • 1,064
2 votes
0 answers
951 views

Filling LaTeX template programatically [closed]

I have an offical document template in LaTeX, which I would like to fill programatically, i.e. providing script with values for selected variables (e.g. name, surname or boolean value for Mr./Mrs.) ...
syntagma's user avatar
  • 369
3 votes
1 answer
2k views

Redefining font sizes in LaTex

My intention is to set all font sizes to \normalsize. I can achieve this by redefining the command for each font size, using: \renewcommand{\Large}{\normalsize} In this example, why the scriptsize is ...
J. A. Corbal's user avatar
2 votes
0 answers
440 views

Kile script for regexp replace

It would be very handy to set a shortcut to script in Kile that replaces given instances of text, like for setting non-breaking spaces (~) around given words within selected text: (^|~|\s)(I|of|not)...
The_Keeper's user avatar
1 vote
2 answers
727 views

Tool to expand latex commands in text

Is there a script out there to expand LaTeX commands in a tex source? I am submitting a manuscript source and I need a tool that expands a LaTeX command because I do not want some commands to appear ...
Tohiko's user avatar
  • 1,757
2 votes
2 answers
223 views

Making csv2latex work with OSX El Capitan and TexMaker

I have encountered several difficulties making csv2latex work after excel2latex mysteriously failed after having worked fine for 2 years (no upgrades of office or anything)... I am using TexMaker as ...
Simon's user avatar
  • 21
1 vote
0 answers
234 views

Randomly generate pdf on website [closed]

I have created a latex file which creates a pdf by randomly selecting 10 subfiles from a pool of files. This works fine, and I am able to generate a random PDF every time I run my script. A breakdown ...
Christopher Zerafa's user avatar
10 votes
3 answers
1k views

`sed` command to remove highlights from text

I'm using the hl command from the soul package for highlighting. Is there a quick way, using sed or any better tool to remove all highlights? Keep in mind that the highlighted text may contain ...
nbubis's user avatar
  • 581
1 vote
1 answer
1k views

Exporting graphs from Mathematica to LaTex document?

Matlab has Matlab2Tikz while open for Mathematica2Tikz, more here. How can I export graphs such as Harary graphs from Mathematica to LaTex? Example graph generated in Mathematica without finding ...
hhh's user avatar
  • 8,493
2 votes
0 answers
251 views

search for and highlight words/numbers in pdfpages while only printing highlighted pages

I have a project where it would be very helpful to be able to include pdf pages with certain text and or number highlighted, and in addition limit the pages output to those which have the highlighted ...
A Feldman's user avatar
  • 3,960
0 votes
1 answer
231 views

for shell script containing the whole latex document, adding a file name choosing capability [closed]

I ran across this post Possible to have a shell script containing the whole LaTeX document? The solution in that post works perfectly as written. However I wanted to be able to choose the name of ...
A Feldman's user avatar
  • 3,960
1 vote
1 answer
471 views

Format code listing package

I am documenting a script which has almost 43+ keywords. The output I want is something on the below lines... and the latex code I have is \documentclass[a4paper, onesided]{article} \usepackage{...
abyshukla's user avatar
  • 399
3 votes
1 answer
553 views

Google docs to TeX and pdf shell script produces a blank first page, and gives me a "! LaTeX Error: Missing \begin{document}." error

I made a shell script, Ubuntu 14.04 (taking ideas from google docs as team editor) to grab a google docs file and convert it to LaTeX, compile with LaTeXmk to PDF and then open the pdF with evince as ...
A Feldman's user avatar
  • 3,960