New answers tagged

2

I extend Chris H's answer: I extented the pdfcolorsplit.py script with an option -r to reassemble all split parts again into a final pdf, by converting all b/w parts to grayscale before reassembling: use like (-p option worked the best) : ./pdfcolorsplit.py -p -v -s -r Report.pdf The code is here: #!/usr/bin/env python # Python 2 and 3 compatible. # ...


2

The following should do the job (script and test file below): pdflatex test.tex python ltx-table_sort.py pdflatex test.tex test.tex \RequirePackage{filecontents} \begin{filecontents*}{table0_unsorted.tex} \begin{tabular}{lllllll} Language & Syllable & IPA & VIS & VDS & CS & CVS \\ \hline Malayalam & & & ...


2

Let a space in the \def or use \space in \psbarcode \documentclass[border=4,pstricks]{standalone} \usepackage{pst-barcode} \usepackage{auto-pst-pdf} % pdflatex require -shell-escape option!!! \begin{document} \begin{pspicture}(0,-0.2)(1.6in,0.5in) \def\h{0.33 } \def\w{1.6 } \psbarcode{NODATA}{height=\h width=\w includecheck includetext}{code128} ...


3

The problem is that the key-value pairs are separated by spaces and in \psbarcode{NODATA}{height=\h width=\w includecheck includetext}{code128} there is no space after \h and \w, because they're ignored at tokenization time. I tried with height={\h} or {height=\h} but neither works. A workaround is to define the macros with a parameter text: ...


2

Instead of juggling with \addtocounter{enumi} etc it's better to use enumitem and it's start=... option. The \getrefnumber{...} macro from refcount provides an aid to get the real 'number' of an reference -- \ref isn't expandable and will fail here. Please note: \getrefnumber{...} will yield anything as equation number here, i.e. something 1.A.5 would be ...



Top 50 recent answers are included