Skip to content
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

doesn't work with ess-auctex files #3

Open
pank opened this issue Sep 1, 2015 · 3 comments
Open

doesn't work with ess-auctex files #3

pank opened this issue Sep 1, 2015 · 3 comments

Comments

@pank
Copy link

pank commented Sep 1, 2015

hi,

In Rnw files when ESS is plugged into AUCTeX, darkoom-mode will be disabeled when you move from an R block to a LaTeX block.

Example move from the LaTeX part to the sweave part with darkoom-mode on:

end{center}
\begin{center}
\captionof{table}{Quantiles of value of payments\label{tab:quant}}
<<qunatile_transfer_types, echo=FALSE, results='asis'>>=
kable(quantile(report_year, report_month), digits=2, 
       booktabs=TRUE)
@ 
\end{center}

Rasmus

@joaotavora
Copy link
Owner

Do you have any idea how I can reproduce this, i.e. "plug" ESS into AUCTeX? Do I need any packages not in Emacs 24.5? Is the sample you posted enough to form such a Rnw file?

@pank
Copy link
Author

pank commented Sep 9, 2015 via email

@kguidonimartins
Copy link

Hey @pank

Have you ever tried to apply the darkroom inside an ess-auctex block? I noticed something similar when using polymode for RMarkdown files (markdown-mode and ess-mode in the same buffer). When I apply the darkroom to markdown text, the buffer changes to the darkroom specification as expected. When I move the cursor to an ess chunk, the buffer maintains the font size and resets the margins. It can be resolved by applying the darkroom again within the ess chunk, and the entire buffer and all modes within it respect the darkroom margins. However, this last command doubles the font size. After a few adjustments to the font size, I'm good to go.

Thanks @joaotavora! I have tried other minor modes, and the darkroom is the best so far.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants