-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
Feature Request: Add ability to select between multiple styles #135
Comments
I don't know how your current CSS styles are defined. I think one solution would be to add a .rootClassA .tag_class {
xxxx
}
.rootClassB .tag_class {
xxxx
}
... This I don't know if that meets your expectations? |
@jmcd040 Obsidian supports the |
I only want to style the PDF, not the note. I want to select the particular PDF style according to its purpose when I generate the PDF. Currently, using Typora, I have several different "themes." Each one leaves the document/note format alone, but changes the @media print{} css. I was hoping your plugin would allow me to select a css file that contained the @media print{} I need for that PDF export. |
Currently, this feat can be achieved by modifying the |
Hi
Would it be possible to allow the user to select from among css files in
the snippets directory that would then control that export operation?
I picture a button that says "Select a User Format" in the preview that
opens a dialog allowing the user to select a css file. Once selected,
the user should be able to check a box saying "use this as a default"
(until changed) or leave it alone to get your default formatting.
After selecting an appropriate css file, the user would then use
"Refresh" to invoke the new preview.
You might want to inspect part of the css file to be sure it's valid
before you render the export preview.
- Jim
------ Original Message ------
From "l1xnan" ***@***.***>
To "l1xnan/obsidian-better-export-pdf"
***@***.***>
Cc "Jim" ***@***.***>; "Mention"
***@***.***>
Date 3/12/2024 11:50:46 PM
Subject Re: [l1xnan/obsidian-better-export-pdf] Feature Request: Add
ability to select between multiple styles (Issue #135)
Currently, this feat can be achieved by modifying the cssclasses
attribute. If we want a selection entry point on the interface, I
haven't figured out how to present it yet. Do you have any good
suggestions?
—
Reply to this email directly, view it on GitHub
<#135 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKU4FF43MRXKO4VM4VT2NLLYX7SLNAVCNFSM6AAAAABECKL36KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOJTGYYTQNZSGM>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
Have a great day,
Jim McDaniel
719-640-3104
|
Thank you for your suggestion, I will try to see if I can access the inactive CSS snippet file. |
First, your plugin is a great addition to Obsidian. Thank you.
Before finding Obsidian, I was using Typora. I created several "Themes" in Typora where the only difference was the style of the PDF export.
I have a style for editing that has a wide right margin and larger line height.
Then I have a style for publishing.
I also have a style that I call "Speaker Script" which has a large font and more distinctive colors for headings. I use this last one as my script when giving a lecture.
Each style has other variations as well.
Having a css file for each style allows me the flexibility I need. So at the moment, I'm using your plugin for printing a script for simple editing, but use Typora to access my specially developed styles.
It would be nice if your plugin allowed for the selection of different css files for styling. You could allow the user to select a default one, then on the preview screen allow additional selections before finally exporting.
Thanks
-Jim
The text was updated successfully, but these errors were encountered: