-
Notifications
You must be signed in to change notification settings - Fork 97
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
moderncv.sty binding #924
moderncv.sty binding #924
Conversation
I'm also wondering if the
|
I Like it! Well, the results, anyway. I'm not so convinced about the need for the XSLT; that it's even necessarily CV specific, or maybe about what it exactly does. It seems that it could be handled more generically in the standard structure stylesheet, possibly with appropriate css (maybe hiding some of the output by default?). |
I double-checked with a friend who is a CTO of a job-application company, in which "CV imports" are a fundamental acquisition channel, and indeed they are working entirely with PDF and Word files. To the best of her knowledge there is no HTML standard for CVs in wide use today, and no one is really using HTML as a CV import channel for them. Or in other words, we are "free to innovate" with the HTML target for this PR. I was actually looking for an easy out, so that I just adopt some "CV standard" for HTML, but it seems we'd have to invent something like one. Will be back to this issue soon. |
This ties into your XSLT comment - the stylesheet applies the Bootstrap The big problem remains that Bootstrap is not a latexml CSS requirement, and it really shouldn't be. I should up my CSS game and find a solution that is native, instead of requiring a new framework. Then the XSLT can go away and only use the CSS file. |
I've heard (only) great things about flexbox, modern Bootstrap is based on it, and it looks like flexbox grids are simple to code in CSS (random tutorial here) So I will take a stab at reworking what I have to pure flexbox |
Yeah, flex has crept into the stock LaTeXML css, too :> And, yeah, we don't want to build in assumptions about css or js frameworks, they come & go so often, and folks have their own preferences. OTOH, waving hands, it would be nice if we could more easily enable the use of random frameworks. It seems the common way of applying these frameworks is to add specific classes from the framework onto your html markup, which then gets whatever properties & behaviour of the kit. So (waving hands more franticly) that it wouldn't be hard to develop a simple tool to that used either css selectors or xpath (either on the latexml xml or html) and added the appropriate css class to the matching items. |
Hm, sounds handy, but maybe that is premature abstraction at this point? Since we haven't had the need for external frameworks yet, and it is very hard to predict the future... Should I postpone my flexbox rewrite here, or you think that sounds good for now? |
On 04/05/2018 03:13 PM, Deyan Ginev wrote:
Should I postpone my flexbox rewrite here, or you think that sounds good
for now?
Probably a good thing if it can easily be covered by flexbox
|
Since I just merged TagsNTitles, you'll probably have to remake your test case (don't think anything else would be affected). |
Trying to reconcile with the main stylesheet, I decided it may be convenient to just have a I'm a bit confused by the frontmatter macro machinery, as the metadata macros (such as For now I just added this to the binding which does the trick (as it executes on package load) but it feels... hacky? RawTeX('\@add@frontmatter{ltx:creator}[role=cv]{}'); |
Making it work was easier than I thought, but making the CV look good with flexbox has a bit of a learning curve... makes you appreciate bootstrap's magic when dealing with an entire doc 👍 |
Alright, ready for review here again @brucemiller . I have:
Feel free to take a look at the latest I'm still short of covering all moderncv features, but basic CVs can look reasonable! |
Oh, and I forgot - improved user experience ergonomics. You don't need any special options now, a simple invocation will get you an HTML CV:
Done. |
Tiny fix: had piggybacked on the wrong XSLT rule which turned the mobile number into an email link. Much better now. |
Another fun bit - you can actually generate the CV as an epub file that Calibre understands and shows nicely, which makes it distributable akin to a PDF, if such a future ever becomes mainstream. Cool side effect! |
The tests, css, (other stuff?) need to go into the MANIFEST, too. Otherwise, let me know when you're done tweaking...it's looking good. |
I am done tweaking here, but the MANIFEST is confusing me. Can I just run a command and have it auto-update instead of adding each file by hand? I think there was a |
I tried and remembered that Should be ready to merge, I'm done working on this PR 👍 |
Cool! Thanks!! |
Finally making progress on my promise in #200 and starting to generalize my personal CV binding sketch towards supporting all of moderncv.sty.
Would like some feedback on what may be the sane approach to deal with the special CV styling however - a bit more concretely now that I have a first test CV and attached PDF and HTML files to compare. I "chickenized" my own CV as a first test, it is not an exhaustive one by any means and I should add at least one of the official templates to ensure the coverage makes some sense.
There's also the open question of allowing to use the various
\moderncvtheme
definitions, maybe a native read-in of the TeX could get more of that auto-ingested?In any case, this PR contains the working setup from my private website (responsible for my cv ), and should be a good starting point to adding support for CVs. Feedback more than welcome!