Giter VIP home page Giter VIP logo

asciidoctor-packt's Issues

Key_20_Word_20__5b_PACKT_5d_ won't work, but strong does??

Tried to code Keyword, but it goes nuts when plugging in Key_20_Word_20__5b_PACKT_5d_ as the style. So, using what I use in asciidoc: plugin strong and then replace it in post processing, only inside normal/tips/bullets. (Should probably expand post proessing to include numbered lists.)

image::foo.png not working

I used docbook's image.xml.slim as a basis, but it won't insert any of the attributes.

I have:

text:p text:style-name="imageblock" 
  draw:frame draw:style-name="imageblock" draw:name="image" text:anchor-type="paragraph" draw:z-index="1" svg:width="(attr :width)" svg:height="(attr :height)" 
    draw:image xlink:href="(@target)" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad"

docbook has:

figure id=@id role=(attr :role) xreflabel=(attr :reftext)
  - if title?
    title=title
  mediaobject
    imageobject
      imagedata fileref=image_uri(attr :target) contentwidth=(attr :width) contentdepth=(attr :height) scale=(attr :scale) width=(attr :scaledwidth) scalefit=((attr? :scaledwidth) ? 1 : nil) align=(attr :align)
    textobject: phrase=attr :alt

Might be the double quotes.

Title

Hi,
Thanks a lot for this tool :).
I've noticed that the titles do not appear as "Heading 1,Heading 1 [PACKT]" but as "Heading 1". Is this because Packt has "copied" standard headings or it this a bug?

Thanks again for creating a sharing this awesome tool :), you made my day.

Image include issue

I cannot have an inline image in the asciidoc file unless I know the aspect ratio. If I do not specify width and height then the picture will be a thumbnail.

If I say image:: .... [width="100%"]

then the height will be zero, and I get a line.

If I say image:: .... [width="100%" heigth="50%"]

then the image will be distorted based on the original aspect ratio and the size of the page (note 50% can be practically anything).

My workaround is that I have a python script that reads the width and the height from the SVG file and then inserts it automatically into the manuscript, but this is a hack.

Entertain code inside tips

Right now, the following chunk doesn't render properly:

[NOTE]
====
Yada yada.

[source,xml]
----
<my-xml>
</my-xml>
----
====

It looks fine in HTML with the code nicely inserted inside the admonition. But in FODT, nothing is visible probably because its a text:p inside a text:p.

Obscure error message from asciidoc

I'm trying to use asciidoc-packt
I'd be grateful if someone could interpret the following error message
asciidoc: FAILED: asciidoc_manual.txt: line 8: illegal [miscellaneous] subsverbatim: specialcharacters,callouts,replacements3: replacements3

That was in response to this command
asciidoc -b packt --theme packt asciidoc_manual.txt

I'm running on Ubuntu 12.04

In case its relevant, here is what I did to install packt-theme-0.1.0.zip
sudo asciidoc --theme install packt-theme-0.1.0.zip /etc/asciidoc/themes/packt

And the second zip (packt-backend-0.1.0.zip)
sudo asciidoc --backend install packt-backend-0.1.0.zip /etc/asciidoc/backends/packt

Make admonitions more details

So far, all admonitions result in a Tip. Already need the means to use Information Box. So...might as well come up with way to may all of them.

Are callouts supported?

I'm seeing this when using code sections with callouts.

Caused by: org.jruby.exceptions.RaiseException: (RuntimeError) Could not find a converter to handle transform: inline_callout

Margins

Packt margins are pretty big (4 from each border) while asciidoctor created much smaller margins.

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.