Explorar el Código

replace parantheses in salign with left right correspondents

master
flavis hace 5 años
padre
commit
ef949f3849
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. +5
    -0
      lecture.cls

+ 5
- 0
lecture.cls Ver fichero

@@ -220,6 +220,11 @@
{ (\c{iff}&|&\c{iff}|\c{impliedby}&|&\c{impliedby}|\c{implies}&|&\c{implies}|\c{approx}&|&\c{approx}|\c{equiv}&|&\c{equiv}|=&|&=|\c{le}&|&\c{le}|\c{ge}&|&\c{ge}|&\c{stackrel}{.*?}{.*?}|\c{stackrel}{.*?}{.*?}&|&\c{neq}|\c{neq}&) }
{ \c{kern} \u{l_tmp_dim_needed} \1 \c{kern} \u{l_tmp_dim_needed} }
\l__lec_text_tl
% replace all parantheses with \left( \right)
\regex_replace_all:nnN { \( } { \c{left}( } \l__lec_text_tl
\regex_replace_all:nnN { \) } { \c{right}) } \l__lec_text_tl
\regex_replace_all:nnN { \[ } { \c{left}[ } \l__lec_text_tl
\regex_replace_all:nnN { \] } { \c{right}] } \l__lec_text_tl
\l__lec_text_tl
}
\cs_generate_variant:Nn \lec_insert_padding:n { V }


Cargando…
Cancelar
Guardar