Code Monkey home page Code Monkey logo

Comments (10)

MartinPacker avatar MartinPacker commented on August 17, 2024 1

And yet another branch got merged. (Not going to provide running commentary.)

from md2pptx.

tiktoor avatar tiktoor commented on August 17, 2024 1

Still trying to figure out what breaks my layout. Will get back to you with a reproducible test setup. Thank you for your efforts!

from md2pptx.

MartinPacker avatar MartinPacker commented on August 17, 2024

Thanks for your kind words. This comment of mine is not a "no". Indeed dynamic metadata versions of these - as well as the static - might have value.

This would be quite a lot of reworking the layout logic, of course.

I will comment that right now the expectation is you will have a decent template presentation - that sets the bounds of eg the title object. So, could you achieve what you want with a tweaked template presentation?

Again, this is not a "no"; I'm exploring the area.

from md2pptx.

MartinPacker avatar MartinPacker commented on August 17, 2024

Also, I think the point about centimetres vs inches is valid.

from md2pptx.

tiktoor avatar tiktoor commented on August 17, 2024

Regarding the template, this was my first try. But perhaps it's just a user error. I was tweaking the original template to use the title elements in the master, but i was irritated that the template design was overwritten by the "adjusting titles" I was able to fix the titles with the metadata, but the content block was "ignored" as well.

This was the reason why i thought, as you do some magic with multiple colums etc. if it would make life easier if i would be able to define a "content area" whare the magic can happen.

And this lead to the same assumption for titles and footnotes.

I hope this clarifies my thoughts. Totally ok if you will not adapt. I was just thinking that this could be helpful for more people than just myself :-)

from md2pptx.

MartinPacker avatar MartinPacker commented on August 17, 2024

In principle - having located the content shape (for example) - it's not much code to resize it. The wider issue will be updating the layout model.

I also think we need a syntax for "use the default" but that's not difficult.

This is not one I'm going to rush at, in the meantime. So I'd further encourage you to experiment with your own template file. (There is a section towards the end of the user guide that might help weigh this.)

The "units" question is probably more fiddly. And the reason for inches is that font sizes are relative to that (i.e. points). But cm should - one day - be doable.

from md2pptx.

tiktoor avatar tiktoor commented on August 17, 2024

Thank you, will test the template and i made a fork to experiment with the code. If I fine a short patch, i will push it to you. In the meantime thank you for your fast replies.

regarding units, afaik python-pptx ist using this EMU thing as a base and provides an util to convert everything to it.

https://python-pptx.readthedocs.io/en/latest/user/autoshapes.html

My proposal was to use the same util set to process different inputs

`>>> from pptx.util import Inches, Pt

length = Inches(1)
length
914400
length.inches
1.0
length.cm
2.54
length.pt
72.0
length = Pt(72)
length
914400`

from md2pptx.

MartinPacker avatar MartinPacker commented on August 17, 2024

Thanks. It helps the effort more if you try to use the user guide to tweak your template. If there are shortcomings in the docs we can fix them. By the way mdpre is always run to create the user_guide.md file - so don't try editing it directly.

There is another very active code branch going on right now - so merging your code changes might be difficult.

from md2pptx.

MartinPacker avatar MartinPacker commented on August 17, 2024

The other code branch got merged just now. But still it's most helpful to check if the documentation is good enough when it come to creating template presentations.

from md2pptx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.