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

Superscript/subscript in cactus theme not work #260

Closed
nanhung opened this issue Feb 22, 2018 · 4 comments
Closed

Superscript/subscript in cactus theme not work #260

nanhung opened this issue Feb 22, 2018 · 4 comments
Milestone

Comments

@nanhung
Copy link

nanhung commented Feb 22, 2018

My question is that I used cactus as my blog's theme. But the function of subscript and superscript can't work in this theme. I did try to test the function H~2~O and r^2^ in the default (lithium), and it works well. Any suggestion?

@yihui yihui added this to the v0.6 milestone Feb 22, 2018
@yihui yihui added the question label Feb 22, 2018
@yihui
Copy link
Member

yihui commented Feb 22, 2018

Too little information... Where is your example?

The author of the cactus theme should be the better person to answer your question.

@yihui yihui closed this as completed Feb 22, 2018
@nanhung
Copy link
Author

nanhung commented Feb 22, 2018

Here are the examples:
This is the default theme
Imgur

This is the cactus them.
Imgur

Since this test in rmd file not md file, I'm not sure the author of the cactus can solve this problem.

@nanhung
Copy link
Author

nanhung commented Feb 22, 2018

Uh~problem solved. It seems that the cactus author forgot the definition in css file. Here is my revision. Sorry for bothering you.

sub {
  vertical-align: -0.6em;
  font-size: 0.6em;
}

sup {
  vertical-align: 0.6em;
  font-size: 0.6em;
}

@yihui
Copy link
Member

yihui commented Feb 22, 2018

Glad you figured it out!

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

2 participants