
Preciso digitar \big(
, mas com uma linha vertical, seja no meio ou de ponta a ponta (prefiro ter as duas opções). Para esclarecer, preciso de algo parecido com \llparenthesis
(package stmaryrd
), mas de tamanho exato \big(
. Por alguma razão obscura, os delimitadores \big\llparenthesis
não funcionam, mas \bigllbracket
funcionam. Eu encontrei uma solução temporária usando \scaleobj{1.1}{\llparenthesis}
(package scalerel
), que é visivelmente menor em altura que \big(
. Para resumir, abaixo está uma imagem mostrando como as coisas são e como eu quero que elas sejam. Obviamente, também preciso de uma versão com parênteses direitos. Obrigado, Piotr.
Responder1
Atualizado 2: Esta solução deve ser usada apenas com fontes matemáticas Computer Modern e Latin Modern.
\documentclass[12pt]{article}
\newcommand{\lstruck}{\mathopen{\Big(\kern-.475ex\Big\vert}}
\newcommand{\rstruck}{\mathclose{\Big\vert\kern-.475ex\Big)}}
\newcommand{\parstruck}[1]{\lstruck #1\rstruck}
\newcommand{\lmstruck}{\mathopen{\Big(\kern-.8ex\big\vert}}
\newcommand{\rmstruck}{\mathclose{\big\vert\kern-.8ex\Big)}}
\newcommand{\nparstruck}[1]{\lmstruck #1\rmstruck}
\begin{document}
\phantom{\texttt{n}}\verb|\parstruck|: $\parstruck{aBf(x)g}$
\verb|\nparstruck|: $\nparstruck{aBf(x)g}$
\end{document}
Atualizado 1
Esta é uma melhoria da minha resposta anterior:
\documentclass[a4paper,12pt]{article}
\usepackage{amsmath,amssymb}
\newcommand{\lstruck}{\Bigl(\mkern-4mu{\Big\lvert}}
\newcommand{\rstruck}{{\Big\rvert}\mkern-4mu\Bigr)}
\newcommand{\lmstruck}{\Bigl(\mkern-7.1mu{\bigl\lvert}}
\newcommand{\rmstruck}{{\bigr\rvert}\mkern-7.1mu\Bigr)}
\newcommand{\parstruck}[1]{{\lstruck{\mathbin #1}\rstruck}}
\newcommand{\nparstruck}[1]{{\lmstruck{\mathbin #1}\rmstruck}}
\begin{document}
\verb|\parstruck{...}| direct command where has been used \verb|\mathbin| for the first type of brackets:
\[\parstruck{aBf(x)g}\]
\verb|\nparstruck{...}| direct command where has been used \verb|\mathbin| for the second type of brackets:
\[\nparstruck{rsg(x)hp}\]
Classic \verb|\parstruck{...}| commands without \verb|\mathbin|:
\[\lstruck pQr \rstruck, \, \lmstruck pQr \rmstruck\]
\end{document}
Apenas como um exercício. Você mesmo pode criar seus parênteses.
\documentclass[a4paper,12pt]{article}
\usepackage{amsmath,amssymb}
\newcommand{\lstruck}{\Bigl(\mkern-4mu{\Big\lvert}}
\newcommand{\rstruck}{{\Big\rvert}\mkern-4mu\Bigr)}
\newcommand{\lmstruck}{\Bigl(\mkern-7.1mu{\bigl\lvert}}
\newcommand{\rmstruck}{{\bigr\rvert}\mkern-7.1mu\Bigr)}
\begin{document}
\[\lstruck pQr \rstruck\]
\[\lmstruck pQr \rmstruck\]
\end{document}