master
Ondřej Hruška 7 years ago
parent 91aaecdb73
commit 04afe9b44a
Signed by: MightyPork
GPG Key ID: 2C5FD5035250423D
  1. 2
      fig.gex-descriptors.tex
  2. BIN
      thesis.pdf
  3. 33
      undash.php

@ -134,5 +134,5 @@ Device Descriptor:
\end{verbatim} \end{verbatim}
\end{minipage}\vspace{-1em} \end{minipage}\vspace{-1em}
\begin{figure}[H] \begin{figure}[H]
\caption{\label{fig:gex-descriptors}USB descriptors of a GEX prototype obtained using ``\mono{lsusb}''} \caption{\label{fig:gex_descriptors}USB descriptors of a GEX prototype obtained using ``\mono{lsusb}''}
\end{figure} \end{figure}

Binary file not shown.

@ -1,25 +1,24 @@
<?php <?php
if (count($argv)==1) die("no file\n"); array_shift($argv);
foreach($argv as $i => $value) { if (count($argv)==0) die("no file\n");
if ($i == 0) continue;
if(!file_exists($value)) die("no file ".$value."\n"); foreach($argv as $value) {
if(!file_exists($value)) die("no file ".$value."\n");
} }
foreach($argv as $i => $value) { foreach($argv as $value) {
if ($i == 0) continue; echo "Cleaning $value\n";
echo "Cleaning $value\n"; $content = file_get_contents($value);
$content = file_get_contents($value); $pat = '/(\\\\(?:label|cref|Cref|ref))\\{([^}]+)\\}/';
$fixed = preg_replace_callback($pat, function($match) {
$pat = '/(\\\\(?:label|cref|Cref|ref))\\{([^}]+)\\}/'; return $match[1] . '{' . trim(str_replace('-', '_', $match[2])) . '}';
$fixed = preg_replace_callback($pat, function($match) { }, $content);
return $match[1] . '{' . trim(str_replace('-', '_', $match[2])) . '}';
}, $content); file_put_contents($value, $fixed);
file_put_contents($value, $fixed);
} }
echo "OK.\n"; echo "OK.\n";

Loading…
Cancel
Save