Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8108521
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T01:08:12+00:00 2026-06-06T01:08:12+00:00

I use the following C-ish indentation/bracing style when writing LaTeX code: \foo{ blah blah…

  • 0

I use the following C-ish indentation/bracing style when writing LaTeX code:

\foo{
  blah blah... this line is getting too long and should be wrapped
}

whenever I need to re-wrap (technically, refill) a block/paragraph, according to fill-column option (50 in this example), I hit M-q. That also changes the braces’ position:

\foo{ blah blah blah... this line is getting too
  long and should be wrapped }

which hurts my eyes 🙁
Indeed I’d like to keep the braces in their original position, namely:

\foo{ 
  blah blah blah... this line is getting too
  long and should be wrapped 
}

I guess I should add a custom fill-nobreak-predicate hook for AUCTeX, or customize paragraph-start and paragraph-separate, but I’m not that skilled with emacs lisp…

Since this question might apply to any markup-text-mode, fill free to move it upstream.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T01:08:13+00:00Added an answer on June 6, 2026 at 1:08 am

    With @Stefan suggestion., I come up with this, Seems working well, for simple tests,

    (add-hook 'LaTeX-mode-hook
              '(lambda ()
                (setq paragraph-separate (concat " *}\\|^ *\\\\[a-zA-Z]* ?{\\|"
                                                  paragraph-separate))))
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I use following code : public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setTheme(android.R.style.Theme_Wallpaper); setContentView(R.layout.main); }
I use following line of code to read config.properties file in my spring mvc
I use following style attribute so when i will start typing in text box
I use following code: Create a retry policy, when error, retry after 1 second,
I just use following code to add an image to my project, var paper
I use VS2010, C# to develop Silverlight 4 app, I use following code in
I use following code-behind for javascript pop up for conforming, it works well but
I Use following code for single file drag and drop. private void FormRegion2_DragEnter_1(object sender,
I use following PHP function: file_get_contents('http://example.com'); Whenever I do this on a certain server,
I use following code to resize the image after i upload it. function re-sizes

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.