Questions tagged [scripts]
{scripts} is for questions involving external scripts (small programs in source code form) related to (La)TeX.
195
questions
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{}, \...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ....
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 \...
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:
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 ...
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 ...
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}{\...
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) ...
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.
...
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 ...
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.
...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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,...
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 ...
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 ...
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 ...
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 #...
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 ...
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, ...
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 ...
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 \]...
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....
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 ...
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:",...
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 ...
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
...
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.) ...
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 ...
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)...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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{...
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 ...