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

Sidenote indexing #177

Open
ghost opened this issue Feb 25, 2022 · 8 comments
Open

Sidenote indexing #177

ghost opened this issue Feb 25, 2022 · 8 comments

Comments

@ghost
Copy link

ghost commented Feb 25, 2022

I don't know what I did wrong. I got weird indexing of the sidenote.

image

@AB1908
Copy link
Contributor

AB1908 commented Mar 3, 2022

Can you post the source?

@ghost
Copy link
Author

ghost commented Mar 3, 2022

The file is located at my PC. I downloaded the css file from https://github.com/edwardtufte/tufte-css, renamed it, modified font size, font color, and used it at yaml.

output:
  tufte::tufte_html:
    css: css\tufte_v03.css

Could you reproduce the problem by using such tufte.css?

@AB1908
Copy link
Contributor

AB1908 commented Mar 4, 2022

I can't say I've run into this but it looks like styling rules are being applied twice. We'd need more info about you're applying the CSS and what your HTML looks like.

@ghost
Copy link
Author

ghost commented Mar 8, 2022

I can't say I've run into this but it looks like styling rules are being applied twice. We'd need more info about you're applying the CSS and what your HTML looks like.

I am not sure how I share the html file with the associated css file. email to you?

@AB1908
Copy link
Contributor

AB1908 commented Mar 8, 2022

Paste here whatever HTML you used to generate the screenshot above. E.g.

<p> sample preparation equipment <sup>2</sup></p>

@ghost
Copy link
Author

ghost commented Mar 17, 2022

Paste here whatever HTML you used to generate the screenshot above. E.g.

<p> sample preparation equipment <sup>2</sup></p>

I wrote it this way in R Markdown:

sample preparation equipment ^[test]

@ghost
Copy link
Author

ghost commented Mar 17, 2022

Please be noted that I replaced the default tufte_html css setting in YAML with a specific CSS file in a folder for this file as follows. I assume that it caused the problem.

output:
  tufte::tufte_html:
    css: css\tufte_v03.css

The reason is this. If I do not change the default tufte_html css setting in YAML, but add the following to the R Markdown file:

<style type="text/css">
...
...
</style>

I don't have any problem with the side notes.

@AB1908
Copy link
Contributor

AB1908 commented Mar 17, 2022

It may be an issue with your static site generator. Sadly, I'm not well versed in what's happening here and use pandoc to generate my HTML so I won't be of much help.

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

1 participant