# Tag Info

1

With luatex, you can use the package chickenize, somewhat like this: \documentclass{article} \usepackage{chickenize} \addtosubstitutions{have}{HAVE} \addtosubstitutions{has}{HAS} \addtosubstitutions{each}{EACH} \addtosubstitutions{every}{EVERY} \begin{document} \substitutewords I am not a native English speaker and there are some grammar mistakes I do a ...

1

You can use the listings package to do this, although it is not ideal because the text won't be typeset "normally" and most comments are disabled inside a lstlisting environment. If you are happy with these constraints then this might be OK, at least for drafts. Here's what is does to your question: and here is the latex code: \documentclass{article} ...

2

Short answer Copy the following into your ~/.vim/ftplugin/tex.vim file. Typing p1x1 followed by ^* gives p_1(x_1): function! <SID>SubBrackets(keyOne, keyTwo) let l = strpart(getline("."), col(".")-5, 4) if len(l) == 4 && l[3] == a:keyOne return join(["\<bs>\<bs>\<bs>\<bs>_", l[0], "(", l[1], "_", l[2], ")"], ...

0

Here is an easy was to do the automation: ( I am using TeXWorks in Ubuntu 14.04 Linux Enviroment ) 1- add a new typeset tool, (Edit > Preferences > Typesetting > Add Processing tools) 2- And use Browse to add your simple bash code: #!/bin/bash echo "Compiling $1 ..." file_basename=$2 ...

1

If you're looking for a solution to the problem rather than an answer to the question (as I understand it), I'd recommend using arara. There's very good integration documentation available in arara's critically-acclaimed manual, chapter 4. Essentially, you place a few lines at the top of your TeX document like this: % arara: pdflatex % arara: bibtex % ...

0

At last I have managed to write a WinEdt macro which overcomes the shortcoming of the solution of Karl Koeller. This macro is modified from Compile Selected.edt file. // Compiles current paragraph in current TeX Document. Requires(20110504); // Requires this build of WinEdt to work properly // Already Running... IfConsoleRunning(!"ShowConsole(1);> ...

4

This is quite easy to achieve. The only restriction is that the cursor can not be in the first line of the block (\begin{tikzpicture}, for instance) when you launch the command we are going to define. Now, we'll redefine the command 'Compile Selected' to do what you want. Go to "Options" -> "Options Interface" and double-click the "Main Menu" item: A ...

0

Inspired by @BenCrowell, I solved this by writing a short MATLAB script to do this. In the hope that some future readers find it useful, I post it here. fileID = fopen('./incl_img_latex.txt', 'w'); fprintf(fileID, '\\begin{figure}[h!]\n\\centering\n'); files = dir('./*.png'); for file = files' str = file.name; fprintf(fileID, ...

Top 50 recent answers are included