Grande parentesi con una linea verticale al suo interno

Aug 25 2020

Devo digitare \big(ma con una linea verticale al suo interno, nel mezzo o da un capo all'altro (preferirei avere entrambe le opzioni). Per chiarire, ho bisogno di qualcosa sulla falsariga di \llparenthesis( pacchetto stmaryrd), ma di dimensioni esatte \big(. Per qualche oscura ragione sui delimitatori \big\llparenthesisnon funziona, ma \bigllbracketfunziona. Ho trovato una soluzione temporanea utilizzando \scaleobj{1.1}{\llparenthesis}(package scalerel), che è visibilmente più piccolo in altezza rispetto a \big(. Per riassumere, di seguito c'è un'immagine che mostra come stanno le cose e come voglio che siano. Ovviamente ho bisogno anche di una versione con parentesi destra. Grazie Piotr.

Risposte

5 Sebastiano Aug 26 2020 at 06:36

Aggiornato 2 : questa soluzione è pensata per essere utilizzata solo con i caratteri matematici 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}


Aggiornato 1


Questo è un miglioramento della mia risposta precedente:

\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}


Proprio come esercizio. Puoi crearti la tua parentesi.

\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}