-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unwanted newlines in LaTeX export #27
Comments
Note that Then you can experiment with this function to see what it is generating; e.g., (org--blockquote 'latex "*This* is a /try/.")
;; Press C-u C-x C-e at the end of the closing parens above to get the following:
"#+begin_export latex
\\blockcquote[]{}{
#+end_export
*This* is a /try/.
#+begin_export latex
}
#+end_export" This ugly mess is what Org "sees" before producing LaTeX 😨
Hope this helps.
|
This comment was marked as outdated.
This comment was marked as outdated.
After hours of searching, I have finally found the culprit. Your export machinery makes an unncessary move. Let us take
as an example again. The function
It then uses two-functions: :
In our case it produces:
Also note the newline after
The empty lines immediately above and below result form the The easiest way to go about this is to just not use this weird syntax at all but actually parsing the
by
we export the
I have added a merge request, see #30. It would be great if you could check whether this solution works and merge it. It's important for me that this is working. |
@Perangelot Thanks for the investigations! 🔥 I haven't been able to get #30 incorporated, it's out of date and seems to break things on my end. I'm still investigating. However, it seems the most up to date version of With this definition
The LaTeX export does not produce too many unwanted newlines...
|
Consider the following custom block:
which was defined like this
What it should print:
What it does print:
The problem is that, due to the added whitespace, the custom block just shown produces the latter output. If this is exported to LaTeX, instead of
"**This** is a _try_"
, you get" **This** is a _try_ "
. regexp-replacement does not work here, adding%
only for the first line. Any ideas what to do?The text was updated successfully, but these errors were encountered: