# lookForAlignDelims and tabbing? #187

Closed
opened this issue Feb 6, 2020 · 7 comments
Closed

# lookForAlignDelims and tabbing?#187

opened this issue Feb 6, 2020 · 7 comments
Labels

### anyong commented Feb 6, 2020

 According to listing 13, we should be able to add the tabbing environment to lookForAlignDelims. However, tabbing uses \= and \> for alignment, while lookForAlignDelims seems to only recognize &. Is this a typo in the docs, or is there some other command I missed to align my tabbing delimeters \= and \>?

### cmhughes commented Feb 6, 2020

 Thanks for this. This isn't currently possible. If you can provide examples of before and after, I can see what I can do. … On Thu, 6 Feb 2020, 11:04 Edward Greve, ***@***.***> wrote: According to listing 13 , we should be able to add the tabbing environment to lookForAlignDelims. However, tabbing uses \= and \> for alignment, while lookForAlignDelims seems to only recognize &. Is this a typo in the docs, or is there some other command I missed to align my tabbing delimeters \= and \>? — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#187?email_source=notifications&email_token=AAQ7CYG3XCZQVJRKR3B7ED3RBPVEVA5CNFSM4KQ24WAKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4ILPH5QQ>, or unsubscribe .

### anyong commented Feb 6, 2020

 Basically exactly the same as the alignment based on &, but in tabbing the first line has \= to set tabstops and subsequent lines use \> to align tabs. Here's an example of what I'd like it to accomplish? Before: \begin{tabbing} Tone \= 1 changes to Tone \= 7 \qquad Tone \= 5 changes to Tone \= 7 \\ \> 2 \> 1 \> 7 \> 3 \\ \> 3 \> 2 \> 8 \> 3 \\ \> 4 \> 2 \\ \end{tabbing}  After: \begin{tabbing} Tone \= 1 changes to Tone \= 7 \qquad Tone \= 5 changes to Tone \= 7 \\ \> 2 \> 1 \> 7 \> 3 \\ \> 3 \> 2 \> 8 \> 3 \\ \> 4 \> 2 \\ \end{tabbing} 

### cmhughes commented Feb 6, 2020

 That's great, thanks. Should be doable, but there's a few ahead of this. I'll let you know when I have an update, but it may well be a while.

### cmhughes commented Feb 13, 2020

 This feature could be interesting for bibliography entries also: @Article{a-key, author = {Person One}, title = {A demo in lowercase}, journal = {Journal of Irreproducible Results}, year = {2020} } 
added a commit that referenced this issue Mar 14, 2020
 New feature: delimiterRegEx for aligning blocks at different delimite… 
 e4495d4 
…rs, #187

### cmhughes commented Mar 14, 2020

 As of e4495d4 this is implemented in the develop branch, and documented. If you'd like to clone the develop branch, you should be able to test it. For your example, you might like the following YAML: lookForAlignDelims: tabbing: delimiterRegEx: '(\\(?:=|>))'  Thanks for suggesting this!
added the label Mar 14, 2020

## demonstration

Starting with

\begin{tabbing}
aa \=
bb \= cc \= dd \= ee \\
\>2\> 1 \> 7 \> 3 \\
\>3 \> 2\>8\> 3 \\
\>4 \>2 \\
\end{tabbing}


and the YAML

lookForAlignDelims:
tabbing:
delimiterRegEx: '(\\(?:=|>))'


gives

\begin{tabbing}
aa \= bb \= cc \= dd \= ee \\
\> 2  \> 1  \> 7  \> 3  \\
\> 3  \> 2  \> 8  \> 3  \\
\> 4  \> 2              \\
\end{tabbing}

mentioned this issue Mar 21, 2020

### cmhughes commented Mar 21, 2020

 Implemented in Version 3.8, #190
closed this Mar 21, 2020