Skip to content

Commit

Permalink
Closes #156
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvainhalle committed Mar 31, 2021
1 parent aafe1cf commit a61c04f
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,27 @@ The same can be done with macros:

This command will remove all occurrences of use-defined command `\foo` in the text. Alternate syntaxes like `\foo{bar}` and `\foo[x=y]{bar}` are also recognized and deleted.

### Replacing strings

Before TeXtidote analyses a file, you can ask it to apply a set of
find/replace operations (for example, to replace a macro by some predefined
character string). You can write these patterns into a text file and pass them
to the program at the command line:

$ java -jar textidote.jar --replace replacements.txt

Here, `replacements.txt` is the file that contains the find/replace patterns,
fomatted as follows:

```
# Empty lines beginning with a pound sign are ignored
# Search and replace patterns are separated by a tab
find replace
foo bar
# Patterns can also be regular expressions
abc\d+[^x] 123
```

### Reading a sub-file

By default, TeXtidote ignores everything before the `\begin{document}`
Expand Down

0 comments on commit a61c04f

Please sign in to comment.