Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [scripts]

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

0
votes
0answers
26 views

Do TeXStudio Macros allow for conditionals?

I am trying to get a conditional to work within a TeXStudio script macro. Specifically, this is what I have: %SCRIPT txt = cursor.selectedText() editor.write("\\left\\langle "+txt+" \\right\\rangle") ...
2
votes
2answers
66 views

Is there a way to convert \def macro in \newcommand macro automatically?

I have a big file of macros, they are all in this form : \def\eclaire{\mathbb} \def\R{\ensuremath{\eclaire R}} I want to have them in \newcommand form, for those macro it's quite easy, i just have ...
3
votes
0answers
61 views

arara: load a local batch script or transform the batch script to an own rule

My question is similar to the one here, however it has a little different focus. I am working under Windows using MikTeX 2.9. I do have several latex projects which are part of a tool documentation. ...
0
votes
1answer
72 views

De-macro script not working anymore?

I would like to use a script which is included in TeX Live called De-macro (link), this module is a bit old, the last update is from 2007 and it works with Python 2.7 I guess. I tried to use it ...
1
vote
1answer
52 views

TeXworks script for inserting inline math mode

I've been trying to set up a TeXworks script that would add the in-line math mode symbol '$' around a selection. E.g., if one selected '\omega' and executed the script, the result would be '$\omega$'. ...
1
vote
1answer
48 views

Input variable as argument in metapost script?

I would like to pass input parameters into my .mp script. For example, instead of running: mpost script.mp I want to run something like: mpost script.mp 1 1 2 diamand Where "1 1 2 diamond" are 4 ...
2
votes
1answer
41 views

How to vertically wrapped page around formula?

thank you for your time. I wonder if it is possible to render one phrase only in latex and make sure the document is wrapped around the phrase (no bigger that it need to be)? I know you can set the ...
1
vote
1answer
81 views

Selecting a string beginning with $ and ending with $

The LaTeX editor I use, TeXStudio, allows for custom script-macros. I have little experience with JAVASCRIPT, but I do have one script I managed to create after reading the TeXstudio : user manual ...
2
votes
1answer
51 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{}, \...
0
votes
0answers
47 views

How to tell TeXWorks where I put my aux files so it can remove them?

All my typsetting runs are done with pdflatex with the option -aux-directory=auxfiles. Now when TeXWorks detects a corrupt aux file it shows a remove-aux-files-dialog. However, it looks for the aux ...
1
vote
0answers
59 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 ...
1
vote
1answer
42 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 ...
0
votes
0answers
74 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 ...
2
votes
1answer
93 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 ...
0
votes
1answer
2k 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 ...
3
votes
0answers
64 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 ...
1
vote
0answers
50 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 ...
0
votes
0answers
70 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 ....
1
vote
1answer
2k 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 \...
1
vote
0answers
157 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:
4
votes
7answers
566 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 ...
3
votes
1answer
92 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 ...
2
votes
1answer
113 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}{\...
0
votes
0answers
76 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) ...
1
vote
1answer
329 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. ...
2
votes
1answer
79 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 ...
2
votes
1answer
78 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. ...
1
vote
1answer
189 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 ...
0
votes
1answer
325 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 ...
0
votes
1answer
70 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 ...
1
vote
1answer
210 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 ...
1
vote
1answer
512 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 ...
1
vote
1answer
218 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 ...
2
votes
2answers
831 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,...
1
vote
0answers
80 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 ...
1
vote
1answer
239 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 ...
3
votes
0answers
348 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 ...
1
vote
1answer
97 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 #...
0
votes
1answer
67 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 ...
1
vote
0answers
67 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, ...
1
vote
0answers
58 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 ...
10
votes
1answer
243 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 \]...
2
votes
1answer
517 views

Removing all markup automatically changes package

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....
3
votes
0answers
1k 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 ...
1
vote
1answer
80 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:",...
1
vote
1answer
376 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 ...
3
votes
1answer
922 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 ...
2
votes
0answers
489 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.) ...
1
vote
1answer
495 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 ...
2
votes
0answers
208 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)...