Post AO8krRqYf6AzYmO2ue by asparagi@hax0rbana.social
 (DIR) More posts by asparagi@hax0rbana.social
 (DIR) Post #AO8iQihvfLde7rThYG by csepp@merveilles.town
       2022-10-01T21:30:19Z
       
       0 likes, 0 repeats
       
       Oh my Glowcloud, does LaTeX not have local variables?  I'm trying to define a `\.` to show a dot but insert a zero width space so long.qualified.names.in.code.like.this can be broken into multiple lines.  LaTeX always complains the name is already taken.
       
 (DIR) Post #AO8iQl3cveBPPje3eK by csepp@merveilles.town
       2022-10-01T21:38:22Z
       
       0 likes, 0 repeats
       
       Hmm so something called groups exists.  Ideally I'd prefer something that replace the dots automatically in the raw source code.
       
 (DIR) Post #AO8iQntoMb78EA4lGa by adam@hax0rbana.social
       2022-10-02T00:08:39Z
       
       0 likes, 0 repeats
       
       @csepp If you do this for all periods, you'll probably want to but the \allowbreak after the dot, lest you risk the period at the end of a sentence wrapping to the next line.As for local variables, I have never seen them. I'm not sure if there are even variables other than just redefining commands, which is only a quasi-variable in my mind.Later versions of LaTeX have added a lot though, so maybe the new engine has support.@asparagi might know the answer to this?
       
 (DIR) Post #AO8krRqYf6AzYmO2ue by asparagi@hax0rbana.social
       2022-10-02T00:35:53Z
       
       0 likes, 0 repeats
       
       @adam @csepp I have yet to find out about local variables in LaTeX myself, although I've been looking.I also don't know how to get line breaks like that off the top of my head, nor have I defined a single-character command, but my approach would be to research code listing environments to see if one of them does this already.  I know there are at least verbatim and the listings environment.