So, I started to use orgmode for writing the documentation for my latest software project. This means, that I have code blocks and lots of special characters in my document. I will have to export this whole file to LaTex/pdf, so my colleague can bind it into his project documentation and this is exactly where my problems are. First of all: how can I turn of the need to manually stop the code execution for code blocks when exporting? I have the single line src_bash{} blocks but also the multiline versions:

#+begin_src bash :
#code
#+ends_src

The next thing is, that my function names include underscores, which in orgmode translates to making the following text lowercase. I tried using \ to escape it, but that only breaks it in a new way and I seriously cant comprehend how this so called zero width space is supposed to be used.

  • da_cow (she/her)@feddit.orgOP
    link
    fedilink
    arrow-up
    1
    ·
    1 day ago

    When doing C-h k _ I get the following message:

    _ runs the command org-self-insert-command (found in org-mode-map),
    which is an interactive native-comp-function in ‘org.el’.
    
    It is bound to SPC..~ and \200..\300.
    
    (org-self-insert-command N)
    
    Like ‘self-insert-command’, use ‘overwrite-mode’ for whitespace in tables.
    If the cursor is in a table looking at whitespace, the whitespace is
    overwritten, and the table is not marked as requiring realignment.
    
    This function has :before advice: ‘org-fold-check-before-invisible-edit-maybe’.
    

    I also se the latest version of emacs (30.2)

    • tal@lemmy.today
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 day ago

      Oh, nah, that’s the same function; it’s not bound to something else. Either I’m misunderstanding what you’re seeing or…oh. You were talking about writing function names.

      The next thing is, that my function names include underscores, which in orgmode translates to making the following text lowercase.

      Do you only see this behavior when writing function names or source code or something? Like, when you’re writing ordinary text in org-mode, hitting “_” doesn’t make the text lowercase?

      Like, do you have a snippet of text that causes the problem for you? I can look at that.

      I also se the latest version of emacs (30.2)

      I’m using 30.1, but I think that I’m probably just misunderstanding what you’re hitting.