Questions tagged [scripts]

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

is for questions involving external scripts (small programs in source code form) related to (La)TeX. If your question is about using (La)TeX as a programming language, use ; if your question is about typesetting code in LaTeX, use , or the or packages.

Syntax Highlighting

If your question or answer includes code in a non-TeX language, you can syntax highlight it by doing the following:

<!-- language: lang-??? -->

    code goes here

Then, replace the ??? with the code for your language. Here is a list of available codes for supported languages, e.g. lang-bash and lang-csh for shell scripts, lang-java for Java, lang-js for Javascript, lang-lua for Lua, lang-perl for Perl, lang-py for Python, lang-r for R, and lang-xml for XML.

Frequently Asked Questions

  1. Is there a correct way to do a word count of a LaTeX document?
  2. Issues with Perl and Python scripts when installing MikTeX
  3. How can I detect all pages that contain color?
194 questions
10
votes
3 answers

`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 internal bracket pairs as well. For example running the…
6
votes
1 answer

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 one concatened string to the first argument. How to…
Tarass
  • 16,912
4
votes
1 answer

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 have an example of what this would look like? …
lawlist
  • 1,382
  • 1
  • 16
  • 21
2
votes
1 answer

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 the necessary command to get :
1
vote
0 answers

Using MLS package and Kotex package together

I asked a similar question before but would like to rephrase it to make the point clearer. I would like to use the package MLS (to type Mongolian and Manchu scripts) and Kotex (to type Chinese-Japanese-Korean scripts) together. But when I run them…
Ian
  • 119
1
vote
0 answers

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
  • 11
  • 2
1
vote
1 answer

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 #1. Item 1 (from txt) Item 4 (from txt) Header…
1
vote
2 answers

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 in the source. Example…
Tohiko
  • 1,789
1
vote
1 answer

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 following snippet:
ohBoy
  • 13
0
votes
0 answers

Dynamically move and edit text?

I've created a LaTeX document to track my goals and weekly/daily to-do's. I have labels for the goals and weekly tasks that I reference in the daily tasks. Here is what I am hoping to automate with either LaTeX or an external script: On the next…
Pareod
  • 101